/* ============================================
   DEPAPELIS — Animations & Transitions
   ============================================ */

/* === Scroll Animations === */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in {
    transform: none;
}

.animate-on-scroll.slide-left {
    transform: translateX(-40px);
}

.animate-on-scroll.slide-right {
    transform: translateX(40px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
}

/* Staggered children */
.animate-on-scroll.visible .stagger-child:nth-child(1) {
    transition-delay: 0ms;
}

.animate-on-scroll.visible .stagger-child:nth-child(2) {
    transition-delay: 100ms;
}

.animate-on-scroll.visible .stagger-child:nth-child(3) {
    transition-delay: 200ms;
}

.animate-on-scroll.visible .stagger-child:nth-child(4) {
    transition-delay: 300ms;
}

.animate-on-scroll.visible .stagger-child:nth-child(5) {
    transition-delay: 400ms;
}

.animate-on-scroll.visible .stagger-child:nth-child(6) {
    transition-delay: 500ms;
}

.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-on-scroll.visible .stagger-child {
    opacity: 1;
    transform: none;
}

/* === Pulse for countdown === */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 45, 120, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 45, 120, 0);
    }
}

.countdown__block {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* === Float animation for hero badge === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero__image-badge {
    animation: float 3s ease-in-out infinite;
}

/* === Shimmer for offer banner === */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.offer-banner {
    background-size: 200% auto;
    animation: shimmer 6s ease-in-out infinite;
    background-image: linear-gradient(90deg,
            var(--color-accent) 0%,
            #ff5a9e 25%,
            var(--color-accent) 50%,
            #ff5a9e 75%,
            var(--color-accent) 100%);
}

/* === Accessibility: Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .stagger-child {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__image-badge {
        animation: none;
    }

    .countdown__block {
        animation: none;
    }

    .offer-banner {
        animation: none;
        background-image: none;
        background: var(--color-accent);
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}