/* animations.css */
/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(242, 179, 61, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(242, 179, 61, 0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   SCROLL REVEAL UTILITIES
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.fade-up {
    transform: translateY(30px);
}

.reveal.fade-in {
    transform: none;
}

.reveal.slide-left {
    transform: translateX(-40px);
}

.reveal.slide-right {
    transform: translateX(40px);
}

.reveal.scale-in {
    transform: scale(0.9);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Delays for Grids */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* ==========================================================================
   ANIMATION UTILITY CLASSES
   ========================================================================== */
.float-bob {
    animation: floatBob 4s ease-in-out infinite;
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

.marquee-track {
    display: flex;
    width: 200%;
    animation: marquee 20s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ==========================================================================
   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;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .float-bob {
        animation: none;
    }
}