/* =====================================================
   GLOBAL ANIMATION STYLES
   Wspólne style dla animacji GSAP
===================================================== */


/* Zapobiega poziomemu przewijaniu przy animacjach */
html,
body {
    overflow-x: hidden;
}


/* =====================================================
   SCROLL REVEAL
===================================================== */

.reveal,
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right {
    will-change: transform, opacity;
}


/* Początkowy stan elementów animowanych */
.reveal-hidden {
    opacity: 0;
    visibility: hidden;
}


/* =====================================================
   FADE EFFECTS
===================================================== */

.fade-in {
    opacity: 0;
}

.fade-out {
    opacity: 1;
}


/* =====================================================
   PARALLAX
===================================================== */

.parallax {
    will-change: transform;
}


/* =====================================================
   IMAGE ANIMATIONS
===================================================== */

.image-reveal {
    overflow: hidden;
}

.image-reveal img {
    display: block;
    will-change: transform;
}


/* =====================================================
   GENERAL ANIMATION HELPERS
===================================================== */

[data-animate] {
    will-change: transform, opacity;
}


/* =====================================================
   ACCESSIBILITY
   Ograniczenie animacji dla osób, które tego potrzebują
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-up,
    .reveal-down,
    .reveal-left,
    .reveal-right,
    .parallax,
    [data-animate] {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

}
