/* ============================================================
   ANIMATIONS — Keyframes, Reveal, Glow
   ============================================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-soft); }
    50%      { box-shadow: 0 0 0 10px transparent; }
}

@keyframes barRise {
    from { transform: scaleY(0); transform-origin: bottom; }
    to   { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes tickerSlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.anim-fade-in       { animation: fadeIn var(--transition-base) both; }
.anim-fade-in-up    { animation: fadeInUp var(--transition-slow) both; }
.anim-scale-in      { animation: scaleIn var(--transition-base) both; }
.anim-pulse         { animation: pulse 2s ease-in-out infinite; }
.anim-glow          { animation: glowPulse 2s ease-in-out infinite; }

.anim-stagger > *           { animation: fadeInUp 480ms cubic-bezier(0.4, 0, 0.2, 1) both; }
.anim-stagger > *:nth-child(1) { animation-delay: 0ms; }
.anim-stagger > *:nth-child(2) { animation-delay: 80ms; }
.anim-stagger > *:nth-child(3) { animation-delay: 160ms; }
.anim-stagger > *:nth-child(4) { animation-delay: 240ms; }
.anim-stagger > *:nth-child(5) { animation-delay: 320ms; }
.anim-stagger > *:nth-child(6) { animation-delay: 400ms; }

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

@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;
    }
}
