/* ==============================================
   SIMPLE SCROLL ANIMATION CSS - NO CONFLICTS
   ============================================== */

/* Base setup - minimal and non-conflicting */
.slide-left,
.slide-right,
.slide-up,
.slide-down,
.fade-in,
.fade-scale,
.spin-fade,
.spin-up,
.spin-down,
.spin-left,
.spin-right,
.spin-scale {
    will-change: transform, opacity;
}

/* IMPORTANT: Ensure transforms work with your positioning */
.cartes.spin-left,
.cartes.spin-right,
.cartes.spin-up,
.cartes.spin-down,
.cartes.spin-fade,
.cartes.spin-scale,
.cartes.slide-left,
.cartes.slide-right,
.cartes.slide-up,
.cartes.slide-down {
    transform-origin: center center;
}

/* Stagger classes - empty placeholders (JavaScript handles timing) */
.stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5,
.stagger-6, .stagger-7, .stagger-8, .stagger-9, .stagger-10 { }

.stagger-fast-1, .stagger-fast-2, .stagger-fast-3, 
.stagger-fast-4, .stagger-fast-5, .stagger-fast-6, .stagger-fast-7 { }

.stagger-slow-1, .stagger-slow-2, .stagger-slow-3, 
.stagger-slow-4, .stagger-slow-5, .stagger-slow-6, .stagger-slow-7 { }

/* Responsive - reduce movement on mobile */
@media (max-width: 768px) {
    /* JavaScript will handle reduced distances */
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .slide-left,
    .slide-right,
    .slide-up,
    .slide-down,
    .fade-in,
    .fade-scale,
    .spin-fade,
    .spin-up,
    .spin-down,
    .spin-left,
    .spin-right,
    .spin-scale {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ==============================================
   FISH SCROLL ANIMATION CSS
   Afegir aquest codi al teu scroll-animations.css
   ============================================== */

/* Container dels peixos */
.peixos1,
.peixos2 {
    position: relative;
    /*width: 100%;*/
    height: 100%;
    /*overflow: hidden;*/
    pointer-events: none;
}

/* Estils individuals dels peixos */
.peix {
    position: absolute;
    width: 103px;
    height: 109px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
}

.peix.visible {
    opacity: 1;
    transform: translateY(0);
}

.peix img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Animació de nedar */
@keyframes fishSwim {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    100% {
        transform: translateX(10px) rotate(2deg);
    }
}

/* Responsive - peixos més petits en mòbil */
@media (max-width: 768px) {
    .peix {
        width: 75px;
        height: 80px;
    }
    
    @keyframes fishSwim {
        0% {
            transform: translateX(0) rotate(0deg);
        }
        100% {
            transform: translateX(5px) rotate(1deg);
        }
    }
}

/* Accessibilitat - desactivar animació si es prefereix */
@media (prefers-reduced-motion: reduce) {
    .peix {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }
    
    @keyframes fishSwim {
        0%, 100% {
            transform: none;
        }
    }
}