/* 3D Carousel Container */
.carousel-3d-scene {
    width: 100%;
    height: 600px;
    /* Increased to accommodate larger items */
    perspective: 2000px;
    /* user: perspective 2000 */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Basic fade in animation */
    opacity: 0;
    animation: fadeInCarousel 1s ease-out forwards;
}

@keyframes fadeInCarousel {
    to {
        opacity: 1;
    }
}

.carousel-3d-ring {
    width: 300px;
    /* user: width 300 */
    height: 400px;
    /* user: height 400 */
    position: absolute;
    transform-style: preserve-3d;
    transform: translateZ(-500px);
    /* user: imageDistance 500 (moving center back) */
    will-change: transform;
}

.carousel-3d-item {
    position: absolute;
    width: 300px;
    /* user: width 300 */
    height: 400px;
    /* user: height 400 */
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -150px;
    /* Layout handled by JS, but basic setup here */
    transform-style: preserve-3d;
    cursor: grab;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel-card-content {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-3d-item:hover .carousel-card-content {
    transform: scale(1.05);
}

.carousel-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-instruction i {
    color: var(--neon-cyan);
    animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.carousel-3d-scene:active .carousel-3d-item {
    cursor: grabbing;
}