/* CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Design System - Variables */
:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-primary: #4f46e5; /* Indigo/Electric Blue */
  --accent-secondary: #06b6d4; /* Cyan */
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-heading:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Animation */
  --transition-base: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Global Styles */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.1);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid var(--glass-border);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.logo img {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--text-primary);
}

/* Sections Base */
section {
  padding: var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Background Effects */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.15) 0%,
    rgba(10, 10, 10, 0) 70%
  );
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
}

/* About/Services Section */
.services {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 24px;
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 70, 229, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-secondary);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
}

/* Contact Section */
.contact {
  text-align: center;
}

.contact-box {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.05),
    rgba(6, 182, 212, 0.05)
  );
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  header {
    padding: 1rem 0;
  }

  nav ul {
    display: none; /* Can add mobile menu later if needed, keeps it simple */
  }
}

/* Tech Stack */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
}

.tech-item:hover {
    color: var(--text-primary);
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Animations Support */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.contact-form button {
    width: 100%;
    margin-top: 0.5rem;
    border: none;
    font-family: var(--font-body);
}

.contact-form ::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}
