/* ============================================================
   Auto Tech — Animations
   animations.css
   ============================================================ */

/* ── Scroll Reveal ── */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.reveal-fade.is-visible {
  opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for child elements */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ── Scroll Pulse (hero line) ── */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Hero text entrance ── */
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow { animation: heroSlideUp 0.8s var(--ease-out) 0.3s both; }
.hero-title   { animation: heroSlideUp 0.9s var(--ease-out) 0.5s both; }
.hero-sub     { animation: heroSlideUp 0.8s var(--ease-out) 0.7s both; }
.hero-ctas    { animation: heroSlideUp 0.8s var(--ease-out) 0.9s both; }
.scroll-hint  { animation: heroSlideUp 0.8s var(--ease-out) 1.2s both; }

/* ── Hero BG Ken Burns ── */
@keyframes kenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
.hero-bg {
  animation: kenBurns 14s var(--ease-out) forwards;
}

/* ── Float glow ── */
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--glow-accent-sm); }
  50%       { box-shadow: var(--glow-accent); }
}

/* ── Counter number roll ── */
@keyframes counterRoll {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-number.counting {
  animation: counterRoll 0.3s ease forwards;
}
