.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-content {
    position: relative;
    z-index: 1;
}

.parallax-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.parallax-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.parallax-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.parallax-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.parallax-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.parallax-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.parallax-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.parallax-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.parallax-float {
    animation: parallaxFloat 6s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

.parallax-stagger > * {
    opacity: 0;
    transform: translateY(30px);
}

.parallax-stagger.visible > *:nth-child(1) { animation: staggerFade 0.5s ease-out 0.1s forwards; }
.parallax-stagger.visible > *:nth-child(2) { animation: staggerFade 0.5s ease-out 0.2s forwards; }
.parallax-stagger.visible > *:nth-child(3) { animation: staggerFade 0.5s ease-out 0.3s forwards; }
.parallax-stagger.visible > *:nth-child(4) { animation: staggerFade 0.5s ease-out 0.4s forwards; }
.parallax-stagger.visible > *:nth-child(5) { animation: staggerFade 0.5s ease-out 0.5s forwards; }
.parallax-stagger.visible > *:nth-child(6) { animation: staggerFade 0.5s ease-out 0.6s forwards; }

@keyframes staggerFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parallax-tilt {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.parallax-tilt-inner {
    transform: translateZ(30px);
}

.depth-layer-1 { transform: translateZ(10px); }
.depth-layer-2 { transform: translateZ(20px); }
.depth-layer-3 { transform: translateZ(40px); }

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.mouse-parallax {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .parallax-fade,
    .parallax-slide-left,
    .parallax-slide-right,
    .parallax-scale,
    .parallax-float,
    .scroll-reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .parallax-card:hover {
        transform: translateY(-4px);
    }
}
