/* ═══════════════════════════════════════════
   Animations & Scroll Effects
   ═══════════════════════════════════════════ */

/* ── Scroll-triggered reveal ── */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.stagger > .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.stagger > .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.stagger > .animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.stagger > .animate-on-scroll:nth-child(6) { transition-delay: 400ms; }
.stagger > .animate-on-scroll:nth-child(7) { transition-delay: 480ms; }
.stagger > .animate-on-scroll:nth-child(8) { transition-delay: 560ms; }


/* ── Keyframes ── */

@keyframes heroGlowPulse {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}


/* ── Reduced motion ── */

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

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
