.carousel-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

/* Parallax Backgrounds */
.bg-zoom {
    transform: scale(1);
    transition: transform 5.5s linear;
    will-change: transform;
}
.carousel-slide.active .bg-zoom {
    transform: scale(1.08);
}

/* Interactive Glass Cards */
.glass-card {
    background: rgba(42, 10, 102, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tilt-card {
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}
.tilt-card:hover {
    box-shadow: 0 40px 80px rgba(123, 44, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tilt-card.leave {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Staggered Reveals */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}
.carousel-slide.active .reveal-item {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Animated Indicators */
.progress-fill {
    width: 0%;
    height: 100%;
    transition: width 0s linear;
}
.dot-wrapper.dot-active {
    width: 3rem;
}
.dot-wrapper.dot-active .progress-fill {
    width: 100%;
    transition: width 5s linear;
}

/* Micro-interactions */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.btn-glow {
    box-shadow: 0 0 30px rgba(123, 44, 255, 0.4);
    animation: pulse-glow 3s infinite;
}
.btn-glow:hover {
    box-shadow: 0 0 50px rgba(123, 44, 255, 0.7);
    animation: none;
    transform: scale(1.05);
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px rgba(123, 44, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(123, 44, 255, 0.6); }
    100% { box-shadow: 0 0 20px rgba(123, 44, 255, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-zoom, .reveal-item, .tilt-card, .progress-fill, .btn-glow {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
    .carousel-slide.active .bg-zoom {
        transform: scale(1);
    }
}
