/* ============================================
   Ankur Mishra — Senior Full Stack Engineer
   Premium, minimal, mobile-first portfolio
   ============================================ */

:root {
  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Colors — neutral, premium */
  --color-bg: #fafafa;
  --color-bg-alt: #f0f0f2;
  --color-text: #1a1a1e;
  --color-text-muted: #5c5c66;
  --color-accent: #0f766e;
  --color-accent-hover: #0d5c56;
  --color-border: #e4e4e8;
  --color-white: #ffffff;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 72rem;
  --container-padding: 1.25rem;
  --section-padding-y: var(--space-3xl);
  --section-padding-y-lg: var(--space-4xl);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --transition: 0.2s var(--ease);

  /* 3D */
  --perspective: 1200px;
  --card-tilt: 8deg;
}

/* ============================================
   ANIMATIONS & 3D — Keyframes
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes floatCube {
  0%, 100% {
    transform: rotateY(0deg) rotateX(10deg) translateZ(0);
  }
  50% {
    transform: rotateY(180deg) rotateX(10deg) translateZ(20px);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.25);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(15, 118, 110, 0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

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

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaBounceIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.9);
  }
  60% {
    transform: translateX(-50%) translateY(-6px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes backToTopBounceIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  60% {
    transform: translateY(-8px) scale(1.05);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tech animations */
@keyframes techGridPulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.08; }
}

@keyframes techScan {
  0% { transform: translateY(-100%); opacity: 0.4; }
  50% { opacity: 0.7; }
  100% { transform: translateY(100vh); opacity: 0.4; }
}

@keyframes circuitFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -24; }
}

@keyframes techNodePulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes techSymbolFloat {
  0%, 100% { opacity: 0.15; transform: translateY(0) translateX(0); }
  25% { opacity: 0.35; transform: translateY(-8px) translateX(4px); }
  50% { opacity: 0.2; transform: translateY(-4px) translateX(-4px); }
  75% { opacity: 0.4; transform: translateY(-12px) translateX(0); }
}

@keyframes terminalCursor {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes dataFlow {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@keyframes dataStream {
  0% { transform: translateX(-100%); opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { transform: translateX(100vw); opacity: 0.3; }
}

/* ========== 100+ Tech Animation Keyframes ========== */
@keyframes techBlink { 0%, 50%, 100% { opacity: 0.4; } 25%, 75% { opacity: 0.9; } }
@keyframes techBlink2 { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.6; } }
@keyframes techSpin { to { transform: rotate(360deg); } }
@keyframes techSpinSlow { to { transform: rotate(-360deg); } }
@keyframes techDriftX { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes techDriftY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes techDriftXY { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(6px, -6px); } 66% { transform: translate(-6px, 6px); } }
@keyframes techFadeInOut { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.5; } }
@keyframes techFadeInOut2 { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }
@keyframes techScalePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes techScalePulse2 { 0%, 100% { transform: scale(0.9); } 50% { transform: scale(1.1); } }
@keyframes techRotateSlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes techRotateSlow2 { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes techSlideX { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes techSlideY { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes techGlowExpand { 0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.3); } 50% { box-shadow: 0 0 0 8px rgba(15, 118, 110, 0); } }
@keyframes techGlowExpand2 { 0%, 100% { box-shadow: 0 0 6px rgba(15, 118, 110, 0.4); } 50% { box-shadow: 0 0 16px rgba(15, 118, 110, 0.2); } }
@keyframes techBorderFlow { 0% { border-color: rgba(15, 118, 110, 0.2); } 50% { border-color: rgba(15, 118, 110, 0.5); } 100% { border-color: rgba(15, 118, 110, 0.2); } }
@keyframes techWiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes techWiggle2 { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } }
@keyframes techBreathe { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } }
@keyframes techBreathe2 { 0%, 100% { transform: scale(1.05); opacity: 0.4; } 50% { transform: scale(0.95); opacity: 0.7; } }
@keyframes techFloatUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes techFloatDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes techShimmer { 0% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@keyframes techDotPulse { 0%, 100% { width: 4px; height: 4px; opacity: 0.4; } 50% { width: 8px; height: 8px; opacity: 0.8; } }
@keyframes techDotPulse2 { 0%, 100% { width: 6px; height: 6px; } 50% { width: 10px; height: 10px; } }
@keyframes techLineGrow { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes techLineGrow2 { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
@keyframes techOpacityWave { 0%, 100% { opacity: 0.2; } 25% { opacity: 0.5; } 50% { opacity: 0.3; } 75% { opacity: 0.6; } }
@keyframes techOpacityWave2 { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } }
@keyframes techSkew { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(3deg); } }
@keyframes techSkew2 { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(2deg); } }
@keyframes techMoveLeft { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-15px); } }
@keyframes techMoveRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(15px); } }
@keyframes techMoveUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes techMoveDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
@keyframes techGlowPulse { 0%, 100% { filter: brightness(1); opacity: 0.5; } 50% { filter: brightness(1.3); opacity: 0.9; } }
@keyframes techGlowPulse2 { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } }
@keyframes techDashOffset { to { stroke-dashoffset: -20; } }
@keyframes techDashOffset2 { to { stroke-dashoffset: -40; } }
@keyframes techRipple { 0%, 100% { transform: scale(0.8); opacity: 0.3; } 50% { transform: scale(1.2); opacity: 0.6; } }
@keyframes techRipple2 { 0% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes techSway { 0%, 100% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(4px) rotate(1deg); } 75% { transform: translateX(-4px) rotate(-1deg); } }
@keyframes techSway2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(4px) rotate(-1deg); } 75% { transform: translateY(-4px) rotate(1deg); } }
@keyframes techZoomIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 0.6; } }
@keyframes techZoomOut { 0% { transform: scale(1.2); opacity: 0.5; } 100% { transform: scale(1); opacity: 0.3; } }
@keyframes techMorph { 0%, 100% { border-radius: 50%; transform: scale(1); } 50% { border-radius: 8px; transform: scale(1.1); } }
@keyframes techMorph2 { 0%, 100% { border-radius: 8px; } 50% { border-radius: 50%; } }
@keyframes techSlideInFromLeft { 0% { transform: translateX(-20px); opacity: 0; } 100% { transform: translateX(0); opacity: 0.5; } }
@keyframes techSlideInFromRight { 0% { transform: translateX(20px); opacity: 0; } 100% { transform: translateX(0); opacity: 0.5; } }
@keyframes techGridMove { 0%, 100% { background-position: 0 0; } 100% { background-position: 36px 36px; } }
@keyframes techGridMove2 { 0%, 100% { background-position: 0 0; } 100% { background-position: -36px -36px; } }
@keyframes techScanHorizontal { 0% { transform: translateX(-100%); } 100% { transform: translateX(100vw); } }
@keyframes techScanVertical { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes techDataFlow { 0% { opacity: 0.2; transform: translateX(0); } 50% { opacity: 0.6; } 100% { opacity: 0.2; transform: translateX(30px); } }
@keyframes techDataFlow2 { 0% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 0.7; } 100% { opacity: 0.3; transform: translateY(-20px); } }
@keyframes techSymbolRotate { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-6px); } }
@keyframes techSymbolRotate2 { 0%, 100% { transform: rotate(0deg) translateX(0); } 50% { transform: rotate(-5deg) translateX(6px); } }
@keyframes techNodeBlink { 0%, 40%, 100% { opacity: 0.3; } 20%, 60% { opacity: 0.9; } }
@keyframes techNodeBlink2 { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes techCircuitPulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.5; } }
@keyframes techBorderPulse { 0%, 100% { border-width: 1px; opacity: 0.4; } 50% { border-width: 2px; opacity: 0.8; } }
@keyframes techGradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes techGradientShift2 { 0% { background-position: 100% 0; } 100% { background-position: 0 100%; } }
@keyframes techOrbit { 0% { transform: rotate(0deg) translateX(20px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); } }
@keyframes techOrbit2 { 0% { transform: rotate(360deg) translateX(15px) rotate(-360deg); } 100% { transform: rotate(0deg) translateX(15px) rotate(0deg); } }
@keyframes techBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes techBounce2 { 0%, 20%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes techFlicker { 0%, 100% { opacity: 0.6; } 10%, 30%, 50%, 70%, 90% { opacity: 0.3; } 20%, 40%, 60%, 80% { opacity: 0.8; } }
@keyframes techFlicker2 { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.9; } }
@keyframes techExpand { 0%, 100% { transform: scale(0.9); opacity: 0.4; } 50% { transform: scale(1.05); opacity: 0.7; } }
@keyframes techExpand2 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes techFlow { 0% { transform: translateX(0) scale(1); } 100% { transform: translateX(20px) scale(1.05); } }
@keyframes techFlow2 { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }
@keyframes techPing { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.4); } 50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(15, 118, 110, 0); } }
@keyframes techPing2 { 0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.3); } 100% { box-shadow: 0 0 0 15px rgba(15, 118, 110, 0); } }
@keyframes techWave { 0%, 100% { transform: translateY(0) scale(1); } 25% { transform: translateY(-4px) scale(1.02); } 75% { transform: translateY(4px) scale(0.98); } }
@keyframes techWave2 { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes techDash { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -30; } }
@keyframes techDash2 { 0% { stroke-dashoffset: 30; } 100% { stroke-dashoffset: 0; } }
@keyframes techFade { 0% { opacity: 0.1; } 50% { opacity: 0.5; } 100% { opacity: 0.1; } }
@keyframes techFade2 { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--color-accent-hover);
}

/* Focus styles (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 0.375rem;
  transition: top var(--transition);
}
.skip-link:focus {
  top: var(--space-md);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

.visually-subtle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-tertiary {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-tertiary:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.btn-ani {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-ani:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.btn-secondary.btn-ani:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  animation: navSlideDown 0.6s var(--ease-out) 0.15s forwards;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

.nav-desktop {
  display: none;
}

.nav-desktop a {
  color: var(--color-text-muted);
  margin-left: var(--space-lg);
}

.nav-desktop a:hover,
.nav-desktop a.btn-primary {
  color: var(--color-text);
}

.nav-desktop a.btn-primary {
  margin-left: var(--space-md);
}

.nav-cv {
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-social {
  display: flex;
  gap: var(--space-md);
  margin-left: var(--space-lg);
}

.nav-social a {
  font-size: 0.875rem;
}

.nav-mobile .nav-social {
  margin-left: 0;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  gap: var(--space-lg);
}

.nav-mobile .nav-social a {
  padding: 0;
  border: none;
}

.nav-desktop a.is-active {
  color: var(--color-text);
  font-weight: 600;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-lg);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: var(--space-md) 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }
}

/* ============================================
   1. HERO
   ============================================ */
.hero {
  position: relative;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.06) 0%,
    transparent 40%,
    rgba(15, 118, 110, 0.03) 70%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  pointer-events: none;
}

/* ============================================
   HERO — Full tech animation layer
   ============================================ */
.hero-tech-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  contain: layout style;
}

/* Animated tech grid (full hero) */
.tech-grid-bg {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: techGridPulse 6s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

/* Scan line */
.tech-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.4), transparent);
  animation: techScan 8s linear infinite;
  box-shadow: 0 0 20px rgba(15, 118, 110, 0.3);
}

/* Circuit SVG */
.tech-circuit {
  position: absolute;
  width: 280px;
  height: 200px;
  right: 5%;
  top: 20%;
  color: rgba(15, 118, 110, 0.35);
}

.tech-circuit-path {
  stroke-dasharray: 8 4;
  stroke-dashoffset: 0;
  animation: circuitFlow 3s linear infinite;
}

.tech-circuit-path-2 {
  animation-delay: 1.5s;
  stroke-dasharray: 6 6;
}

.tech-circuit-node {
  fill: rgba(15, 118, 110, 0.5);
  animation: techNodePulse 2s ease-in-out infinite;
}

.tech-circuit-node:nth-child(5) { animation-delay: 0.3s; }
.tech-circuit-node:nth-child(6) { animation-delay: 0.6s; }
.tech-circuit-node:nth-child(7) { animation-delay: 0.9s; }
.tech-circuit-node:nth-child(8) { animation-delay: 1.2s; }

/* Floating tech symbols (0 1 { } </> etc) */
.tech-symbols {
  position: absolute;
  inset: 0;
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
  color: rgba(15, 118, 110, 0.25);
  overflow: hidden;
}

.tech-sym {
  position: absolute;
  animation: techSymbolFloat 8s ease-in-out infinite;
  white-space: nowrap;
}

.tech-sym:nth-child(1) { left: 8%; top: 15%; animation-delay: 0s; }
.tech-sym:nth-child(2) { left: 15%; top: 75%; animation-delay: 1s; }
.tech-sym:nth-child(3) { left: 75%; top: 20%; animation-delay: 2s; }
.tech-sym:nth-child(4) { left: 82%; top: 70%; animation-delay: 0.5s; }
.tech-sym:nth-child(5) { left: 25%; top: 45%; animation-delay: 1.5s; }
.tech-sym:nth-child(6) { left: 60%; top: 55%; animation-delay: 2.5s; }
.tech-sym:nth-child(7) { left: 45%; top: 25%; animation-delay: 0.8s; }
.tech-sym:nth-child(8) { left: 70%; top: 85%; animation-delay: 1.8s; }
.tech-sym:nth-child(9) { left: 12%; top: 50%; animation-delay: 2.2s; }
.tech-sym:nth-child(10) { left: 88%; top: 35%; animation-delay: 0.3s; }
.tech-sym:nth-child(11) { left: 50%; top: 80%; animation-delay: 1.2s; }

/* Terminal / code strip */
.tech-terminal {
  position: absolute;
  bottom: 18%;
  right: 12%;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-family: ui-monospace, monospace;
  color: rgba(15, 118, 110, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 180px;
}

.tech-terminal-line {
  letter-spacing: 0.02em;
}

.tech-terminal-cursor {
  display: inline-block;
  animation: terminalCursor 1.2s step-end infinite;
  color: var(--color-accent);
}

/* Data nodes (glowing dots) */
.tech-data-nodes {
  position: absolute;
  inset: 0;
}

.tech-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 10px rgba(15, 118, 110, 0.4);
  animation: techNodePulse 2.5s ease-in-out infinite;
}

.tech-node:nth-child(1) { left: 20%; top: 30%; animation-delay: 0s; }
.tech-node:nth-child(2) { left: 80%; top: 25%; animation-delay: 0.4s; }
.tech-node:nth-child(3) { left: 35%; top: 70%; animation-delay: 0.8s; }
.tech-node:nth-child(4) { left: 65%; top: 75%; animation-delay: 1.2s; }
.tech-node:nth-child(5) { left: 50%; top: 45%; animation-delay: 1.6s; }
.tech-node:nth-child(6) { left: 10%; top: 60%; animation-delay: 2s; }

/* Horizontal data stream line */
.tech-data-stream {
  position: absolute;
  bottom: 25%;
  left: 0;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.5), transparent);
  animation: dataStream 6s linear infinite;
  box-shadow: 0 0 8px rgba(15, 118, 110, 0.3);
}

@media (max-width: 768px) {
  .tech-circuit {
    width: 160px;
    height: 120px;
    right: 2%;
    top: 15%;
  }
  .tech-terminal {
    bottom: 12%;
    right: 5%;
    font-size: 0.625rem;
    max-width: 140px;
  }
  .tech-sym {
    font-size: 0.75rem;
  }
}

/* Hero 3D decorative shapes */
.hero-3d {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: var(--perspective);
  z-index: 0;
}

.hero .container.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-3d-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.hero-3d-cube {
  width: 100px;
  height: 100px;
  right: 18%;
  top: 28%;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.22) 0%, rgba(15, 118, 110, 0.06) 100%);
  transform-style: preserve-3d;
  transform: rotateY(25deg) rotateX(12deg);
  animation: floatCube 12s ease-in-out infinite;
  box-shadow: 0 25px 50px rgba(15, 118, 110, 0.15);
}

.hero-3d-orb {
  width: 70px;
  height: 70px;
  right: 28%;
  bottom: 22%;
  background: radial-gradient(circle at 30% 30%, rgba(15, 118, 110, 0.28), rgba(15, 118, 110, 0.06));
  animation: floatSlow 6s ease-in-out infinite;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.12);
}

.hero-3d-grid {
  width: 180px;
  height: 180px;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: gridPulse 5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-3d-cube {
    width: 80px;
    height: 80px;
    right: 10%;
    top: 15%;
  }
  .hero-3d-orb {
    width: 50px;
    height: 50px;
    right: 15%;
    bottom: 25%;
  }
  .hero-3d-grid {
    width: 120px;
    height: 120px;
  }
}

/* Hero reveal (staggered on load) */
.hero-reveal {
  opacity: 0;
  animation: fadeInUp 0.85s var(--ease-out) forwards;
}

.hero-inner .hero-profile {
  animation-delay: 0.1s;
}

.hero-inner .hero-headline {
  animation-delay: 0.2s;
}

.hero-inner .hero-subheadline {
  animation-delay: 0.35s;
}

.hero-inner .hero-ctas {
  animation-delay: 0.5s;
}

.hero-inner .hero-trust {
  animation-delay: 0.65s;
}

.hero-inner .hero-tech {
  animation-delay: 0.8s;
}

.hero-inner .hero-tech .tech-badge-ani {
  opacity: 0;
  animation: popIn 0.4s var(--ease-out) forwards;
}

.hero-inner .hero-tech .tech-badge-ani:nth-child(1) { animation-delay: 0.9s; }
.hero-inner .hero-tech .tech-badge-ani:nth-child(2) { animation-delay: 0.95s; }
.hero-inner .hero-tech .tech-badge-ani:nth-child(3) { animation-delay: 1s; }
.hero-inner .hero-tech .tech-badge-ani:nth-child(4) { animation-delay: 1.05s; }
.hero-inner .hero-tech .tech-badge-ani:nth-child(5) { animation-delay: 1.1s; }
.hero-inner .hero-tech .tech-badge-ani:nth-child(6) { animation-delay: 1.15s; }

.hero-profile {
  margin-bottom: var(--space-xl);
}

.hero-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: glowPulse 3s ease-in-out infinite;
}

.hero-initials {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-radius: 0.25rem;
}

.hero-inner {
  max-width: 42rem;
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero-subheadline {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.trust-value {
  font-weight: 600;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .hero {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

/* ============================================
   2. TRUST STRIP
   ============================================ */
/* ============================================
   SECTION TECH LAYERS (all sections)
   Background + foreground tech animations
   ============================================ */
.section-has-tech {
  position: relative;
  overflow: hidden;
}

.section-has-tech .container {
  position: relative;
  z-index: 1;
}

.section-tech {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  contain: layout style;
}

/* Section tech grid (background) */
.section-tech-bg.section-tech-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: techGridPulse 8s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 15%, transparent 65%);
}

.section-tech-grid--light {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

.section-tech-grid--footer {
  background-size: 28px 28px;
  opacity: 0.6;
}

/* Section scan line */
.section-tech-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.25), transparent);
  animation: techScan 10s linear infinite;
}

.section-tech-scan--slow {
  animation-duration: 14s;
  opacity: 0.8;
}

/* Section data stream (horizontal line) */
.section-tech-data-line {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.35), transparent);
  animation: dataStream 7s linear infinite;
}

.section-tech-data-line--right {
  left: auto;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.35), transparent);
  animation: dataStreamRight 7s linear infinite;
}

.section-tech-data-line--footer {
  bottom: 30%;
  width: 50%;
  opacity: 0.6;
}

.section-tech-scan--light {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: techScan 12s linear infinite, techFadeInOut 6s infinite;
}

.section-tech-data-line--light {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: dataStream 8s linear infinite, techDataFlow 4s infinite;
}

@keyframes dataStreamRight {
  0% { transform: translateX(100%); opacity: 0.3; }
  100% { transform: translateX(-100vw); opacity: 0.3; }
}

/* Mini circuit (decorative path) */
.section-tech-circuit-mini {
  position: absolute;
  right: 5%;
  top: 30%;
  width: 120px;
  height: 80px;
  border: 1px dashed rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  animation: gridPulse 4s ease-in-out infinite;
}

.section-tech-circuit-mini::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(15, 118, 110, 0.15);
  border-radius: 4px;
  animation: gridPulse 4s ease-in-out infinite 0.5s;
}

/* Section tech nodes (glowing dots) */
.section-tech-nodes {
  position: absolute;
  inset: 0;
}

.section-tech-nodes i,
.section-tech-node {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.4);
  box-shadow: 0 0 8px rgba(15, 118, 110, 0.3);
  animation: techNodePulse 2.5s ease-in-out infinite;
}

.section-tech-nodes i:nth-child(1),
.section-tech-node:nth-child(1) { left: 10%; top: 25%; animation-delay: 0s; }
.section-tech-nodes i:nth-child(2),
.section-tech-node:nth-child(2) { left: 85%; top: 20%; animation-delay: 0.4s; }
.section-tech-nodes i:nth-child(3),
.section-tech-node:nth-child(3) { left: 25%; top: 70%; animation-delay: 0.8s; }
.section-tech-nodes i:nth-child(4),
.section-tech-node:nth-child(4) { left: 70%; top: 75%; animation-delay: 1.2s; }
.section-tech-nodes i:nth-child(5),
.section-tech-node:nth-child(5) { left: 50%; top: 45%; animation-delay: 1.6s; }
.section-tech-nodes i:nth-child(6),
.section-tech-node:nth-child(6) { left: 15%; top: 55%; animation-delay: 2s; }
.section-tech-nodes i:nth-child(7),
.section-tech-node:nth-child(7) { left: 90%; top: 60%; animation-delay: 2.4s; }

.section-tech-nodes--light i {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Section tech symbols (foreground) */
.section-tech-fg.section-tech-symbols {
  position: absolute;
  inset: 0;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: rgba(15, 118, 110, 0.2);
  overflow: hidden;
}

.section-tech-symbols span {
  position: absolute;
  animation: techSymbolFloat 10s ease-in-out infinite;
  white-space: nowrap;
}

.section-tech-symbols span:nth-child(1) { left: 8%; top: 18%; animation-delay: 0s; }
.section-tech-symbols span:nth-child(2) { left: 78%; top: 25%; animation-delay: 1.5s; }
.section-tech-symbols span:nth-child(3) { left: 45%; top: 72%; animation-delay: 3s; }
.section-tech-symbols span:nth-child(4) { left: 20%; top: 55%; animation-delay: 0.8s; }
.section-tech-symbols span:nth-child(5) { left: 88%; top: 65%; animation-delay: 2.2s; }
.section-tech-symbols span:nth-child(6) { left: 55%; top: 12%; animation-delay: 1.8s; }

.section-tech-symbols--light span {
  color: rgba(255, 255, 255, 0.35);
}

.section-tech--dark .section-tech-symbols span {
  color: rgba(255, 255, 255, 0.25);
}

/* Trust strip: fewer nodes */
.trust-strip .section-tech-node:nth-child(1) { left: 20%; top: 50%; animation: techNodePulse 2.5s ease-in-out infinite, techGlowExpand 2s infinite; }
.trust-strip .section-tech-node:nth-child(2) { left: 50%; top: 50%; animation: techDotPulse 2s infinite, techBlink 1.5s infinite; }
.trust-strip .section-tech-node:nth-child(3) { left: 80%; top: 50%; animation: techBreathe 2.2s infinite, techGlowPulse2 2s infinite; }

/* ========== 100+ Tech Animations — assign to all sections ========== */
.section-tech-bg.section-tech-grid { animation: techGridPulse 8s ease-in-out infinite, techFadeInOut 6s infinite; }
.services .section-tech-bg.section-tech-grid { animation: techGridPulse 8s infinite, techGridMove 20s linear infinite; }
.metrics .section-tech-bg.section-tech-grid { animation: techGridPulse 7s infinite, techGridMove2 18s linear infinite; }
.case-studies .section-tech-bg.section-tech-grid { animation: techGridPulse 9s infinite, techFade 5s infinite; }
.why-hire .section-tech-bg.section-tech-grid { animation: techGridPulse 8s infinite, techOpacityWave 6s infinite; }
.experience .section-tech-bg.section-tech-grid { animation: techGridPulse 7s infinite, techFadeInOut2 5s infinite; }
.testimonials .section-tech-bg.section-tech-grid { animation: techGridPulse 8s infinite, techOpacityWave2 4s infinite; }
.pricing .section-tech-bg.section-tech-grid { animation: techGridPulse 8s infinite, techFade2 5s infinite; }
.lead-magnet .section-tech-bg.section-tech-grid { animation: techGridPulse 8s infinite, techFadeInOut 6s infinite; }
.final-cta .section-tech-bg.section-tech-grid { animation: techGridPulse 7s infinite, techGridMove 22s linear infinite; }
.site-footer .section-tech-bg.section-tech-grid { animation: techGridPulse 10s infinite, techFade 6s infinite; }

.section-tech-scan { animation: techScan 10s linear infinite, techFadeInOut 8s infinite; }
.section-tech-scan--slow { animation: techScan 14s linear infinite, techOpacityWave 10s infinite; }
.section-tech-data-line { animation: dataStream 7s linear infinite, techDataFlow 3s infinite; }
.section-tech-data-line--right { animation: dataStreamRight 7s linear infinite, techDataFlow2 4s infinite; }
.section-tech-data-line--footer { animation: dataStream 8s linear infinite, techFadeInOut 5s infinite; }

.section-tech-circuit-mini { animation: gridPulse 4s ease-in-out infinite, techBorderFlow 3s infinite; }
.section-tech-circuit-mini::before { animation: gridPulse 4s ease-in-out infinite 0.5s, techCircuitPulse 2s infinite; }

.section-tech-nodes i:nth-child(1),
.section-tech-node:nth-child(1) { animation: techNodePulse 2.5s infinite 0s, techGlowExpand 2s infinite; }
.section-tech-nodes i:nth-child(2),
.section-tech-node:nth-child(2) { animation: techDotPulse 2.2s infinite 0.3s, techBlink 1.8s infinite; }
.section-tech-nodes i:nth-child(3),
.section-tech-node:nth-child(3) { animation: techBreathe 2.5s infinite 0.6s, techRipple 2s infinite; }
.section-tech-nodes i:nth-child(4),
.section-tech-node:nth-child(4) { animation: techScalePulse 2s infinite 0.9s, techNodeBlink 2.2s infinite; }
.section-tech-nodes i:nth-child(5),
.section-tech-node:nth-child(5) { animation: techDotPulse2 2.4s infinite 1.2s, techGlowPulse2 2.5s infinite; }
.section-tech-nodes i:nth-child(6),
.section-tech-node:nth-child(6) { animation: techBreathe2 2.3s infinite 1.5s, techPing 2.2s infinite; }
.section-tech-nodes i:nth-child(7),
.section-tech-node:nth-child(7) { animation: techExpand 2.6s infinite 1.8s, techNodeBlink2 1.9s infinite; }

.services .section-tech-nodes i:nth-child(1) { animation: techNodePulse 2.5s infinite, techSpin 8s linear infinite; }
.services .section-tech-nodes i:nth-child(2) { animation: techDotPulse 2s infinite, techDriftX 4s infinite; }
.services .section-tech-nodes i:nth-child(3) { animation: techBreathe 2.2s infinite, techDriftY 5s infinite; }
.services .section-tech-nodes i:nth-child(4) { animation: techScalePulse 2.3s infinite, techWiggle 3s infinite; }
.services .section-tech-nodes i:nth-child(5) { animation: techRipple 2.1s infinite, techFloatUp 4s infinite; }
.metrics .section-tech-nodes i:nth-child(1) { animation: techGlowExpand 2s infinite, techBounce 2.5s infinite; }
.metrics .section-tech-nodes i:nth-child(2) { animation: techDotPulse 2.2s infinite, techMoveLeft 5s infinite; }
.metrics .section-tech-nodes i:nth-child(3) { animation: techBreathe 2.4s infinite, techMoveRight 5.5s infinite; }
.metrics .section-tech-nodes i:nth-child(4) { animation: techPing 2.3s infinite, techMoveUp 4.5s infinite; }
.metrics .section-tech-nodes i:nth-child(5) { animation: techExpand 2.5s infinite, techMoveDown 5s infinite; }
.metrics .section-tech-nodes i:nth-child(6) { animation: techRipple 2s infinite, techSway 4s infinite; }
.metrics .section-tech-nodes i:nth-child(7) { animation: techNodeBlink 2.2s infinite, techMoveDown 5s infinite; }
.metrics .section-tech-nodes i:nth-child(8) { animation: techExpand2 2.4s infinite, techBounce 2.6s infinite; }
.case-studies .section-tech-nodes i:nth-child(1) { animation: techNodePulse 2.5s infinite, techOrbit 10s linear infinite; }
.case-studies .section-tech-nodes i:nth-child(2) { animation: techDotPulse2 2.2s infinite, techDriftXY 6s infinite; }
.case-studies .section-tech-nodes i:nth-child(3) { animation: techGlowExpand2 2.3s infinite, techSlideX 4s infinite; }
.case-studies .section-tech-nodes i:nth-child(4) { animation: techBreathe 2.4s infinite, techSlideY 4.5s infinite; }
.case-studies .section-tech-nodes i:nth-child(5) { animation: techMorph 3s infinite, techWiggle2 3.5s infinite; }
.case-studies .section-tech-nodes i:nth-child(6) { animation: techFlicker 2.1s infinite, techFloatDown 5s infinite; }
.case-studies .section-tech-nodes i:nth-child(7) { animation: techPing 2.2s infinite, techSway2 4.2s infinite; }
.why-hire .section-tech-nodes i:nth-child(1) { animation: techBlink 1.5s infinite, techScalePulse2 2.5s infinite; }
.why-hire .section-tech-nodes i:nth-child(2) { animation: techNodeBlink 2s infinite, techSkew 3s infinite; }
.why-hire .section-tech-nodes i:nth-child(3) { animation: techRipple 2.2s infinite, techSkew2 3.5s infinite; }
.why-hire .section-tech-nodes i:nth-child(4) { animation: techWave 2.4s infinite, techBounce2 2.8s infinite; }
.experience .section-tech-nodes i:nth-child(1) { animation: techNodePulse 2.5s infinite, techFlow 6s infinite; }
.experience .section-tech-nodes i:nth-child(2) { animation: techDotPulse 2.2s infinite, techFlow2 5s infinite; }
.experience .section-tech-nodes i:nth-child(3) { animation: techBreathe 2.3s infinite, techZoomIn 4s infinite; }
.experience .section-tech-nodes i:nth-child(4) { animation: techExpand 2.4s infinite, techZoomOut 4.5s infinite; }
.experience .section-tech-nodes i:nth-child(5) { animation: techGlowPulse 2.5s infinite, techMorph2 3.5s infinite; }
.testimonials .section-tech-nodes i:nth-child(1) { animation: techFadeInOut 2.5s infinite, techFloatUp 5s infinite; }
.testimonials .section-tech-nodes i:nth-child(2) { animation: techFadeInOut2 2.2s infinite, techFloatDown 5.5s infinite; }
.testimonials .section-tech-nodes i:nth-child(3) { animation: techOpacityWave 2.6s infinite, techDriftX 4s infinite; }
.testimonials .section-tech-nodes i:nth-child(4) { animation: techOpacityWave2 2.3s infinite, techDriftY 4.5s infinite; }
.testimonials .section-tech-nodes i:nth-child(5) { animation: techBreathe 2.4s infinite, techWave2 3.5s infinite; }
.testimonials .section-tech-nodes i:nth-child(6) { animation: techRipple 2.1s infinite, techSlideInFromLeft 6s infinite; }
.pricing .section-tech-nodes i:nth-child(1) { animation: techNodePulse 2.5s infinite, techRotateSlow 12s linear infinite; }
.pricing .section-tech-nodes i:nth-child(2) { animation: techDotPulse 2.2s infinite, techRotateSlow2 14s linear infinite; }
.pricing .section-tech-nodes i:nth-child(3) { animation: techBreathe 2.3s infinite, techOrbit2 11s linear infinite; }
.lead-magnet .section-tech-nodes--light i:nth-child(1) { animation: techNodePulse 2.5s infinite, techGlowExpand 2s infinite; }
.lead-magnet .section-tech-nodes--light i:nth-child(2) { animation: techBreathe 2.2s infinite, techFadeInOut 2.5s infinite; }
.lead-magnet .section-tech-nodes--light i:nth-child(3) { animation: techScalePulse 2.3s infinite, techBlink2 2s infinite; }
.lead-magnet .section-tech-nodes--light i:nth-child(4) { animation: techRipple 2.4s infinite, techPing 2.2s infinite; }
.lead-magnet .section-tech-nodes--light i:nth-child(5) { animation: techExpand 2.5s infinite, techWave 2.6s infinite; }
.lead-magnet .section-tech-nodes--light i:nth-child(6) { animation: techDotPulse2 2.1s infinite, techBounce 2.8s infinite; }
.final-cta .section-tech-nodes i:nth-child(1) { animation: techNodePulse 2.5s infinite, techFlicker 2s infinite; }
.final-cta .section-tech-nodes i:nth-child(2) { animation: techGlowExpand 2.2s infinite, techFlicker2 2.3s infinite; }
.final-cta .section-tech-nodes i:nth-child(3) { animation: techBreathe 2.3s infinite, techSlideInFromRight 5s infinite; }
.final-cta .section-tech-nodes i:nth-child(4) { animation: techPing 2.4s infinite, techGradientShift 8s infinite; }
.final-cta .section-tech-nodes i:nth-child(5) { animation: techExpand 2.5s infinite, techGradientShift2 10s infinite; }
.final-cta .section-tech-nodes i:nth-child(6) { animation: techRipple 2.1s infinite, techMorph 3.5s infinite; }

.section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite 0s, techSymbolRotate 6s infinite; }
.section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 1s, techSymbolRotate2 7s infinite; }
.section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 2s, techWiggle 4s infinite; }
.section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 3s, techWiggle2 4.5s infinite; }
.section-tech-symbols span:nth-child(5) { animation: techSymbolFloat 10s infinite 4s, techFadeInOut 3s infinite; }
.section-tech-symbols span:nth-child(6) { animation: techSymbolFloat 10s infinite 5s, techOpacityWave 3.5s infinite; }
.services .section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite, techBlink 2s infinite; }
.services .section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 0.5s, techBlink2 2.2s infinite; }
.services .section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 1s, techScalePulse 2.5s infinite; }
.services .section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 1.5s, techDriftX 5s infinite; }
.services .section-tech-symbols span:nth-child(5) { animation: techSymbolFloat 10s infinite 2s, techDriftY 5.5s infinite; }
.services .section-tech-symbols span:nth-child(6) { animation: techSymbolFloat 10s infinite 2.5s, techFloatUp 6s infinite; }
.metrics .section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite, techBounce 2.5s infinite; }
.metrics .section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 0.6s, techBounce2 2.8s infinite; }
.metrics .section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 1.2s, techMoveLeft 6s infinite; }
.metrics .section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 1.8s, techMoveUp 5s infinite; }
.metrics .section-tech-symbols span:nth-child(5) { animation: techSymbolFloat 10s infinite 2.4s, techMoveRight 5.5s infinite; }
.case-studies .section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite, techFlow 8s infinite; }
.case-studies .section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 0.5s, techFlow2 7s infinite; }
.case-studies .section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 1s, techZoomIn 5s infinite; }
.case-studies .section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 1.5s, techMorph 4s infinite; }
.case-studies .section-tech-symbols span:nth-child(5) { animation: techSymbolFloat 10s infinite 2s, techFlicker 2.5s infinite; }
.why-hire .section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite, techSkew 3.5s infinite; }
.why-hire .section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 0.5s, techSkew2 4s infinite; }
.why-hire .section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 1s, techWave 2.8s infinite; }
.why-hire .section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 1.5s, techWave2 3s infinite; }
.experience .section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite, techRotateSlow 15s linear infinite; }
.experience .section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 0.5s, techRotateSlow2 16s linear infinite; }
.experience .section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 1s, techDataFlow 4s infinite; }
.experience .section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 1.5s, techDataFlow2 4.5s infinite; }
.experience .section-tech-symbols span:nth-child(5) { animation: techSymbolFloat 10s infinite 2s, techExpand 2.6s infinite; }
.testimonials .section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite, techFadeInOut 3s infinite; }
.testimonials .section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 0.5s, techFadeInOut2 3.2s infinite; }
.testimonials .section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 1s, techGlowPulse2 2.8s infinite; }
.testimonials .section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 1.5s, techRipple 2.2s infinite; }
.pricing .section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite, techPing 2.2s infinite; }
.pricing .section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 0.5s, techRipple 2.4s infinite; }
.pricing .section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 1s, techBreathe 2.6s infinite; }
.pricing .section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 1.5s, techExpand 2.5s infinite; }
.pricing .section-tech-symbols span:nth-child(5) { animation: techSymbolFloat 10s infinite 2s, techNodeBlink 2.2s infinite; }
.final-cta .section-tech-symbols span:nth-child(1) { animation: techSymbolFloat 10s infinite, techFlicker 2s infinite; }
.final-cta .section-tech-symbols span:nth-child(2) { animation: techSymbolFloat 10s infinite 0.5s, techFlicker2 2.3s infinite; }
.final-cta .section-tech-symbols span:nth-child(3) { animation: techSymbolFloat 10s infinite 1s, techPing 2.4s infinite; }
.final-cta .section-tech-symbols span:nth-child(4) { animation: techSymbolFloat 10s infinite 1.5s, techRipple 2.2s infinite; }
.final-cta .section-tech-symbols span:nth-child(5) { animation: techSymbolFloat 10s infinite 2s, techBreathe 2.6s infinite; }

.trust-strip {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background-color: var(--color-bg-alt);
}

.trust-strip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.trust-strip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

@media (min-width: 640px) {
  .trust-strip .container {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
  }

  .trust-strip-label {
    margin-bottom: 0;
    white-space: nowrap;
  }
}

/* ============================================
   3. SERVICES
   ============================================ */
.services {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: var(--space-md);
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-bottom: var(--space-2xl);
}

.services-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.service-card {
  padding: var(--space-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
}

/* 3D card tilt on hover */
.card-3d {
  transform-style: preserve-3d;
  perspective: var(--perspective);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.2s var(--ease);
}

.card-3d:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.service-card.card-3d:hover {
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.12);
}

.case-card.card-3d:hover,
.exp-card.card-3d:hover {
  transform: translateY(-4px) rotateX(1deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.pricing-card.card-3d:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.pricing-card-featured.card-3d:hover {
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.15);
}

.service-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-md);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.service-card li {
  padding: var(--space-xs) 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 500;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   4. IMPACT METRICS
   ============================================ */
.metrics {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background-color: var(--color-bg-alt);
}

.metrics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl) var(--space-lg);
}

.metrics-list li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

@media (min-width: 640px) {
  .metrics-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .metrics-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================
   5. CASE STUDIES
   ============================================ */
.case-studies {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.case-studies-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

.case-card {
  padding: var(--space-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.case-industry {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.case-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.case-problem,
.case-solution {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.case-result {
  font-size: 0.9375rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   6. WHY HIRE ME (Comparison)
   ============================================ */
.why-hire {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background-color: var(--color-bg-alt);
}

.comparison-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  background-color: var(--color-white);
  color: var(--color-text-muted);
}

.comparison-table th:first-child {
  color: var(--color-text);
}

.comparison-table td:last-child {
  color: var(--color-text);
}

.comparison-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Comparison cards (mobile) */
.comparison-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comparison-card {
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.comparison-card p {
  margin: var(--space-sm) 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.comparison-bad {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.comparison-good {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-accent);
}

.comparison-table-wrap {
  display: none;
}

@media (min-width: 768px) {
  .comparison-cards {
    display: none;
  }

  .comparison-table-wrap {
    display: block;
  }
}

/* ============================================
   7. EXPERIENCE
   ============================================ */
.experience {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.exp-card {
  padding: var(--space-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.exp-header h3 {
  font-size: 1.125rem;
  margin: 0;
}

.exp-role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
}

.exp-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.exp-highlights li {
  padding: var(--space-xs) 0;
  padding-left: 1.25rem;
  position: relative;
}

.exp-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ============================================
   8. TESTIMONIALS
   ============================================ */
.testimonials {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background-color: var(--color-bg-alt);
}

.testimonial {
  max-width: 36rem;
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

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

.testimonials-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.pricing-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.pricing-card {
  padding: var(--space-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.pricing-card-featured {
  border-color: var(--color-accent);
  background-color: rgba(15, 118, 110, 0.04);
}

.pricing-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}

.pricing-range {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   LEAD MAGNET
   ============================================ */
.lead-magnet {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background-color: var(--color-accent);
  color: var(--color-white);
}

.lead-magnet-inner {
  max-width: 32rem;
}

.lead-magnet h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.lead-magnet p {
  margin-bottom: var(--space-xl);
  opacity: 0.95;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.lead-magnet .btn-primary {
  background-color: var(--color-white);
  color: var(--color-accent);
}

.lead-magnet .btn-primary:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

.lead-magnet a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.lead-magnet a:hover {
  color: var(--color-white);
}

.audit-form,
.contact-form {
  margin-top: var(--space-xl);
  max-width: 28rem;
}

.audit-form input,
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.audit-form input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.audit-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.audit-form button {
  margin-top: var(--space-sm);
}

.audit-note {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  opacity: 0.9;
}

.contact-form {
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-2xl);
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  background-color: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-row input {
  margin-bottom: 0;
}

/* ============================================
   9. FINAL CTA
   ============================================ */
.final-cta {
  padding-top: var(--section-padding-y-lg);
  padding-bottom: var(--section-padding-y-lg);
  text-align: center;
}

.final-cta-headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-xl);
}

.final-cta .btn {
  margin-bottom: var(--space-md);
}

.final-cta-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-lg);
}

.footer-social a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

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

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 90;
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.floating-cta.is-visible {
  transition: none;
  animation: ctaBounceIn 0.55s var(--ease-out) forwards;
  opacity: 1;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.back-to-top:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
}

.back-to-top.is-visible {
  transition: none;
  animation: backToTopBounceIn 0.5s var(--ease-out) forwards;
  opacity: 1;
}

@media (max-width: 480px) {
  .floating-cta {
    bottom: var(--space-lg);
  }

  .back-to-top {
    bottom: var(--space-lg);
    right: var(--space-lg);
  }
}

/* Scroll animations */
.section-animate {
  opacity: 0;
  transform: translateY(28px) translateZ(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.section-animate.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.section-animate .section-title,
.section-animate .section-intro {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.section-animate.is-visible .section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.section-animate.is-visible .section-intro {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

/* Staggered children when section becomes visible */
.section-animate .service-card,
.section-animate .case-card,
.section-animate .pricing-card {
  opacity: 0;
  transform: translateY(24px);
}

.section-animate.is-visible .service-card {
  animation: fadeInUp 0.55s var(--ease-out) forwards;
}

.section-animate.is-visible .service-card:nth-child(1) { animation-delay: 0.08s; }
.section-animate.is-visible .service-card:nth-child(2) { animation-delay: 0.16s; }
.section-animate.is-visible .service-card:nth-child(3) { animation-delay: 0.24s; }
.section-animate.is-visible .service-card:nth-child(4) { animation-delay: 0.32s; }
.section-animate.is-visible .service-card:nth-child(5) { animation-delay: 0.4s; }
.section-animate.is-visible .service-card:nth-child(6) { animation-delay: 0.48s; }

.section-animate.is-visible .case-card {
  animation: fadeInUp 0.55s var(--ease-out) forwards;
}

.section-animate.is-visible .case-card:nth-child(1) { animation-delay: 0.1s; }
.section-animate.is-visible .case-card:nth-child(2) { animation-delay: 0.2s; }
.section-animate.is-visible .case-card:nth-child(3) { animation-delay: 0.3s; }
.section-animate.is-visible .case-card:nth-child(4) { animation-delay: 0.4s; }
.section-animate.is-visible .case-card:nth-child(5) { animation-delay: 0.5s; }

.section-animate.is-visible .pricing-card {
  animation: fadeInUp 0.5s var(--ease-out) forwards;
}

.section-animate.is-visible .pricing-card:nth-child(1) { animation-delay: 0.1s; }
.section-animate.is-visible .pricing-card:nth-child(2) { animation-delay: 0.2s; }
.section-animate.is-visible .pricing-card:nth-child(3) { animation-delay: 0.3s; }

.section-animate .metrics-list li {
  opacity: 0;
  transform: translateY(16px);
}

.section-animate.is-visible .metrics-list li {
  animation: fadeInUp 0.45s var(--ease-out) forwards;
}

.section-animate.is-visible .metrics-list li:nth-child(1) { animation-delay: 0.05s; }
.section-animate.is-visible .metrics-list li:nth-child(2) { animation-delay: 0.12s; }
.section-animate.is-visible .metrics-list li:nth-child(3) { animation-delay: 0.19s; }
.section-animate.is-visible .metrics-list li:nth-child(4) { animation-delay: 0.26s; }
.section-animate.is-visible .metrics-list li:nth-child(5) { animation-delay: 0.33s; }

.section-animate .comparison-card {
  opacity: 0;
  transform: translateX(-16px);
}

.section-animate.is-visible .comparison-card {
  animation: slideInLeft 0.45s var(--ease-out) forwards;
}

.section-animate.is-visible .comparison-card:nth-child(1) { animation-delay: 0.1s; }
.section-animate.is-visible .comparison-card:nth-child(2) { animation-delay: 0.18s; }
.section-animate.is-visible .comparison-card:nth-child(3) { animation-delay: 0.26s; }
.section-animate.is-visible .comparison-card:nth-child(4) { animation-delay: 0.34s; }
.section-animate.is-visible .comparison-card:nth-child(5) { animation-delay: 0.42s; }
.section-animate.is-visible .comparison-card:nth-child(6) { animation-delay: 0.5s; }

.section-animate .testimonial {
  opacity: 0;
  transform: translateY(20px);
}

.section-animate.is-visible .testimonial {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.section-animate.is-visible .testimonial:nth-child(1) { animation-delay: 0.1s; }
.section-animate.is-visible .testimonial:nth-child(2) { animation-delay: 0.25s; }
.section-animate.is-visible .testimonial:nth-child(3) { animation-delay: 0.4s; }

.section-animate .exp-card {
  opacity: 0;
  transform: translateX(20px);
}

.section-animate.is-visible .exp-card {
  animation: slideInRight 0.5s var(--ease-out) forwards;
}

.section-animate.is-visible .exp-card:nth-child(1) { animation-delay: 0.1s; }
.section-animate.is-visible .exp-card:nth-child(2) { animation-delay: 0.25s; }

/* Trust strip subtle animation */
.trust-strip-list li {
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.trust-strip-list li:hover {
  transform: translateX(4px);
  color: var(--color-accent);
}

/* Comparison card hover */
.comparison-card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.comparison-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
