@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes scrollRight {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.animate-scroll-left {
    animation: scrollLeft 40s linear infinite;
}

.animate-scroll-right {
    animation: scrollRight 50s linear infinite;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* The "Apple" Reveal: Blurs in while sliding up */
@keyframes softReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    /* Hidden by default */
    will-change: transform, opacity, filter;
}

.reveal-on-scroll.visible {
    animation: softReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Delays for the "Story" effect (Staggering) */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}


/* Widget Animations */
@keyframes coinFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes coinFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.widget-enter {
    animation: coinFadeIn 0.8s ease-out forwards, coinFloat 5s ease-in-out infinite 0.8s;
}

.widget-exit {
    transition: opacity 0.6s ease;
    opacity: 0;
}