/* ══════════════════════════════════════════════════════════════
   APEX AI × Digital Advocators — v2 Integration Page
   Dark mode · Parallax · Glassmorphism · Scroll-Driven FX
   5 Services · Quiz CTA · Real Testimonials
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

:root {
  /* ── Core Palette ── */
  --cyan: #00F0FF;
  --cyan-dim: rgba(0, 240, 255, 0.12);
  --cyan-glow: rgba(0, 240, 255, 0.25);
  --blue: #0066FF;
  --blue-light: #3388FF;
  --blue-dark: #0044CC;
  --green: #00D26A;
  --amber: #D4A574;
  --sage: #6B8F71;

  /* ── Surfaces ── */
  --black: #030308;
  --dark: #060610;
  --surface: #0B0F1E;
  --surface-light: #111628;
  --card: rgba(12, 18, 35, 0.7);
  --card-border: rgba(0, 240, 255, 0.08);
  --card-border-hover: rgba(0, 240, 255, 0.25);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* ── Text ── */
  --text-white: #FFFFFF;
  --text-light: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.40);
  --text-cyan: var(--cyan);

  /* ── Typography ── */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  /* ── Layout ── */
  --max-w: 1100px;
  --max-w-narrow: 780px;
  --section-pad: clamp(60px, 8vw, 100px);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-white);
}
p { color: var(--text-light); margin-bottom: 16px; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION — Floating glass bar
   ══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 6, 16, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(6, 6, 16, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .accent {
  color: var(--cyan);
}

.nav-brand .divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 6px;
}

.nav-brand .sub {
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-cta {
  background: var(--cyan) !important;
  color: var(--dark) !important;
  padding: 8px 22px !important;
  border-radius: 100px;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.nav-cta:hover {
  background: #fff !important;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-white);
  display: block;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   HERO — Immersive Parallax Zoom-In
   ══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform: scale(1.1);
  transition: transform 0.1s linear;
}

/* Interactive canvas layer */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}


/* Parallax layers for depth */
.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-layer--particles {
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(0, 240, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(0, 102, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(0, 240, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 45%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 85%, rgba(0, 240, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 75%, rgba(0, 102, 255, 0.2) 0%, transparent 100%);
  animation: particleDrift 20s ease-in-out infinite;
}

@keyframes particleDrift {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-8px) translateX(4px); }
  50% { transform: translateY(-3px) translateX(-6px); }
  75% { transform: translateY(-10px) translateX(2px); }
}

.hero-layer--gradient {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0, 102, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 0%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(6, 6, 16, 0.4) 60%, var(--dark) 100%);
}

.hero-layer--vignette {
  background: radial-gradient(ellipse at center, transparent 40%, var(--dark) 100%);
}

/* Grid overlay for tech feel */
.hero-layer--grid {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(0, 240, 255, 0.015) 79px, rgba(0, 240, 255, 0.015) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0, 240, 255, 0.015) 79px, rgba(0, 240, 255, 0.015) 80px);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-eyebrow .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
  50% { opacity: 0.5; box-shadow: 0 0 20px var(--cyan); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue-light) 50%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

/* General gradient text for section titles */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue-light) 50%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  -webkit-text-fill-color: var(--cyan);
  background: none;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1s ease 2s forwards;
}

.scroll-indicator span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan);
  color: var(--dark);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3), 0 6px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS — General
   ══════════════════════════════════════════════════════════════ */

.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.section--dark { background: var(--dark); }
.section--surface { background: var(--surface); }
.section--black { background: var(--black); }

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 2px;
  margin-bottom: 24px;
}

.text-center .accent-line { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════════════════════
   PROBLEM NARRATIVE — Staggered text reveal
   ══════════════════════════════════════════════════════════════ */

.narrative {
  padding: var(--section-pad) 0;
  background: var(--dark);
  position: relative;
}

.narrative::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
}

.narrative-lines {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrative-line {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.08);
  transition: color 0.8s ease;
  margin-bottom: 8px;
}

.narrative-line.is-visible {
  color: var(--text-white);
}

.narrative-line .highlight {
  color: var(--cyan);
}

.narrative-line.is-visible .highlight {
  color: var(--cyan);
}

/* ══════════════════════════════════════════════════════════════
   SERVICES — Glassmorphism Cards
   ══════════════════════════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Bottom row: 2 cards centered under the 3 */
.services-grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 740px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
}

/* Ensure GSAP-animated service cards become fully visible */
.service-card.is-visible,
.service-card[style*="opacity"] {
  opacity: 1 !important;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 240, 255, 0.05);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.12);
}

/* ══════════════════════════════════════════════════════════════
   METHODOLOGY — Horizontal Scroll Section
   ══════════════════════════════════════════════════════════════ */

.methodology {
  padding: var(--section-pad) 0;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.methodology::before,
.methodology::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.12), transparent);
}
.methodology::before { top: 0; }
.methodology::after { bottom: 0; }

.method-track {
  display: flex;
  gap: 32px;
  padding: 0 24px;
  width: max-content;
}

.method-step {
  width: 340px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
}

.method-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.2;
  margin-bottom: 16px;
}

.method-step h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.method-step p {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   STATS — Counter Section
   ══════════════════════════════════════════════════════════════ */

.stats {
  padding: 48px 0;
  background: var(--black);
  border-top: 1px solid rgba(0, 240, 255, 0.06);
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.stat-item {
  padding: 20px 0;
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT — Split Panel with Parallax
   ══════════════════════════════════════════════════════════════ */

.about {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px solid var(--card-border);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--surface), var(--surface-light));
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  pointer-events: none;
}

.about-text .section-eyebrow {
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--text-white);
}

.about-sig {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cyan);
  margin-top: 24px;
}

.about-sig small {
  display: block;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Credibility tags */
.cred-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cred-tag {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.cred-tag:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  left: 24px;
}

.testimonial-text {
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 20px;
}

.testimonial-author {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-white);
}

.testimonial-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.testimonial-stars {
  color: #FFD700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════════
   FINAL CTA — Glow Section
   ══════════════════════════════════════════════════════════════ */

.final-cta {
  padding: var(--section-pad) 0;
  text-align: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, rgba(0, 102, 255, 0.03) 30%, transparent 60%);
  pointer-events: none;
  animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ══════════════════════════════════════════════════════════════
   QUIZ CTA — Mid-Page Conversion Section
   ══════════════════════════════════════════════════════════════ */

.quiz-cta {
  padding: var(--section-pad) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.quiz-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
}

.quiz-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.quiz-cta-text .section-eyebrow { margin-bottom: 12px; }

.quiz-cta-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.quiz-cta-text p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.quiz-cta-visual {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-cta-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.quiz-score-preview {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.quiz-score-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.quiz-items {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.quiz-items li {
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-items li .check {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

.quiz-meta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.quiz-meta-tag {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .quiz-cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.footer {
  padding: 40px 0;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 12px;
}

.footer-brand .accent { color: var(--cyan); }

.footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer a {
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition);
}

.footer a:hover { color: var(--cyan); }

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════════
   SCROLLING TECH BACKGROUND — Full-Page Parallax Canvas
   ══════════════════════════════════════════════════════════════ */

.tech-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#tech-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO — Behind The Scenes Showcase
   ══════════════════════════════════════════════════════════════ */

.portfolio-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
}

.portfolio-section .section-eyebrow,
.portfolio-section .section-title,
.portfolio-section .section-subtitle {
  text-align: center;
}

.portfolio-section .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 24px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--surface);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  aspect-ratio: 16/10;
}

.portfolio-item--wide {
  grid-column: span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
}

.portfolio-item:hover {
  border-color: var(--card-border-hover);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 240, 255, 0.06);
  transform: translateY(-4px);
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(0deg, rgba(3, 3, 8, 0.95) 0%, rgba(3, 3, 8, 0.6) 60%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 8px;
}

.portfolio-overlay p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX — Full-Screen Image Viewer
   ══════════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan);
}

.lightbox-caption {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   DIVIDERS & DECORATIVE
   ══════════════════════════════════════════════════════════════ */

.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
}

.marquee-strip {
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--black);
  border-top: 1px solid rgba(0, 240, 255, 0.04);
  border-bottom: 1px solid rgba(0, 240, 255, 0.04);
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-content span {
  margin: 0 40px;
}

.marquee-content .dot {
  color: var(--cyan);
  margin: 0 20px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .services-grid-bottom {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item--wide {
    grid-column: span 1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .about-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .cred-tags { justify-content: center; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-step { width: 300px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 16, 0.97);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.active a {
    font-size: 1.1rem;
    color: var(--text-white);
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: clamp(60px, 10vw, 80px);
  }

  .hero-content {
    padding: 0 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    aspect-ratio: 16/9;
  }

  .tech-bg-layer {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .method-step { width: 280px; padding: 28px 24px; }
}
