/* ─────────────────────────────────────────────────────────────
   TOKENS & RESET
───────────────────────────────────────────────────────────── */
:root {
  --bg-base:        #080810;
  --bg-surface:     #0f0f1a;
  --bg-elevated:    #161626;
  --bg-card:        #1b1b2e;

  --accent-violet:  #7b5cfa;
  --accent-cyan:    #00e5ff;
  --accent-glow:    rgba(123, 92, 250, 0.35);
  --accent-glow-c:  rgba(0, 229, 255, 0.25);

  --text-primary:   #dde1f0;
  --text-secondary: #8b90ab;
  --text-muted:     #4a4e6a;

  --border-subtle:  rgba(123, 92, 250, 0.15);
  --border-dim:     rgba(221, 225, 240, 0.07);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 70px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img, video {
  display: block;
  max-width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────────────────────────── */
.accent {
  color: var(--accent-violet);
}

.body-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.8;
}

.body-text + .body-text {
  margin-top: 1.25rem;
}

.body-text--center {
  margin-inline: auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-heading--center {
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────────────────── */
.section {
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 120px 40px;
}

/* ─────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);

  background: rgba(8, 8, 16, 0.7);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border-dim);

  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  background: rgba(8, 8, 16, 0.92);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1160px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 40px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-block;
    text-shadow: initial;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-right: auto;
    transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.75;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    position: relative;
    display: inline-flex;
    z-index: 0;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

/* Gliding pill indicator */
.nav-indicator {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  z-index: -1;
  pointer-events: none;
  /* width & left driven by JS */
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-violet);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-violet);
  background: rgba(123, 92, 250, 0.08);
  transform: translateY(-2px);
}

.btn--submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────────── */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
}

/* Background grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.hero-grid__line {
  border-right: 1px solid var(--border-dim);
  opacity: 0;
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 92, 250, 0.28) 0%, transparent 70%);
  top: 10%;
  left: -120px;
}

.orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, transparent 70%);
  bottom: 5%;
  right: -80px;
}

.orb--3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(123, 92, 250, 0.15) 0%, transparent 70%);
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-inline: 40px;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin-bottom: 1.75rem;
}

.hero-headline__line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
}

.hero-headline__line--accent {
    text-shadow: 0 0 30px rgba(255, 0, 127, 0.9);
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-tags {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-tag {
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-dim);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  transition: color var(--transition), border-color var(--transition);
}

.hero-tag:hover {
  color: var(--accent-violet);
  border-color: var(--border-subtle);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.scroll-hint__track {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--text-muted);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-hint__dot {
  width: 4px;
  height: 4px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────────────────────── */
.section--about {
  background: var(--bg-surface);
}

.section--about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-violet), transparent);
  opacity: 0.4;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Stats row */
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-violet);
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* About card / visual */
.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1.05;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 80px rgba(123, 92, 250, 0.1);
}

.about-card__inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 55% 45%;
  grid-template-columns: 55% 45%;
  gap: 2px;
  padding: 24px;
}

.about-card__block {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  border: 1px solid var(--border-dim);
  opacity: 0;
  transform: scale(0.92);
}

.about-card__block--1 {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.about-card__block--2,
.about-card__block--3 {
  grid-column: auto;
}

.about-card__line {
  position: absolute;
  background: var(--border-subtle);
  pointer-events: none;
}

.about-card__line--h {
  height: 1px;
  left: 24px;
  right: 24px;
  top: 57%;
  transform: scaleX(0);
}

.about-card__line--v {
  width: 1px;
  top: 57%;
  bottom: 24px;
  left: 57%;
  transform: scaleY(0);
}

/* ─────────────────────────────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────────────────────────────── */
.section--contact {
  background: var(--bg-base);
}

.section--contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.35;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin-inline: auto;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(123, 92, 250, 0.15);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
  padding: 2rem 40px;
}

.footer-inner {
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--accent-violet);
}

/* ─────────────────────────────────────────────────────────────
   REVEAL ANIMATION BASE STATES
   (GSAP will animate these in)
───────────────────────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-inner {
    padding: 80px 24px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
  }

  .about-card {
    max-width: 320px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-container {
    padding-inline: 24px;
  }

  .hero-content {
    padding-inline: 24px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .about-stats {
    gap: 1.5rem;
  }
}

.bouncing-ball {
    position: fixed;
    top: -50px; /* Hide above viewport until triggered */
    left: 10%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff00ff, #7f00ff);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    pointer-events: none; /* Allows clicks to pass through to text */
    z-index: 999;
    opacity: 0;
}

/* HERO BACKGROUND WRAPPER */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    /* 🔧 CUSTOMIZE: Base neon gradient colors */
    background: linear-gradient(120deg, #00eaff, #0066ff, #8f00ff, #00eaff );
    background-size: 300% 300%;
    filter: blur(40px); /* 🔧 CUSTOMIZE: blur intensity */
}

    /* OPTIONAL: Tech grid overlay */
    .hero-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        /* 🔧 CUSTOMIZE: grid color + opacity */
        background-image: linear-gradient(#00eaff22 1px, transparent 1px), linear-gradient(90deg, #00eaff22 1px, transparent 1px);
        background-size: 40px 40px; /* 🔧 CUSTOMIZE: grid spacing */
        pointer-events: none;
    }

.hero-bg {
    --glow-x: 0%;
}

    .hero-bg::before {
        background-position: var(--glow-x) 0;
    }
