/* ==========================================================================
   Scroll Reveal Animation (replacement for AOS + wow.js on this page)
   Works identically on mobile and desktop.
   Safe fallback: elements stay visible unless JS successfully adds
   the "js-aos-enabled" class to <html>.
   ========================================================================== */

html.js-aos-enabled [data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

html.js-aos-enabled [data-aos="fade-up"] {
    transform: translate3d(0, 40px, 0);
}

html.js-aos-enabled [data-aos="fade-left"] {
    transform: translate3d(40px, 0, 0);
}

html.js-aos-enabled [data-aos="fade-right"] {
    transform: translate3d(-40px, 0, 0);
}

html.js-aos-enabled [data-aos].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Respect user's motion preference — show everything instantly */
@media (prefers-reduced-motion: reduce) {
    html.js-aos-enabled [data-aos] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Slightly shorter travel distance + duration on small screens
   so the animation doesn't feel sluggish on mobile */
@media (max-width: 767px) {
    html.js-aos-enabled [data-aos] {
        transition-duration: 0.6s;
    }
    html.js-aos-enabled [data-aos="fade-up"] {
        transform: translate3d(0, 24px, 0);
    }
    html.js-aos-enabled [data-aos="fade-left"] {
        transform: translate3d(24px, 0, 0);
    }
    html.js-aos-enabled [data-aos="fade-right"] {
        transform: translate3d(-24px, 0, 0);
    }
}
