/* ==========================================================================
   Scroll Animations & Transitions
   ========================================================================== */

/* ── Fade In from Bottom ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ── Staggered Children ── */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: 0.7s; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: 0.8s; }

/* ── Fade In from Left ── */
.animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Fade In from Right ── */
.animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Scale In ── */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-left,
    .animate-right,
    .animate-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .stagger-children .animate-on-scroll {
        transition-delay: 0s;
    }
}
