/* Luminous Depth Carousel - 3D Rotating Carousel */

.luminous-depth-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 20px;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
}

.depth-carousel-wrapper {
    position: relative;
    height: 192px; /* 48 * 4 = 192px (h-48 in Tailwind) */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* Carousel Item */
.carousel-item {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}

.carousel-item.active {
    z-index: 30;
}

.carousel-item:not(.active) {
    z-index: 10;
}

/* Item Content Wrapper */
.carousel-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state drop shadow */
.carousel-item.active .carousel-item-content {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.carousel-item:not(.active) .carousel-item-content {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

/* Icon Wrapper */
.carousel-icon-wrapper {
    position: relative;
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active .carousel-icon-wrapper {
    transform: scale(1.1);
}

/* Icon Glow Background */
.carousel-icon-glow {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(20px);
    transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active .carousel-icon-glow {
    opacity: 0.8;
}

.carousel-item:not(.active) .carousel-icon-glow {
    opacity: 0.4;
}

/* Icon Circle */
.carousel-icon {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.carousel-icon svg {
    width: 40px;
    height: 40px;
}

/* Text Content */
.carousel-text {
    text-align: center;
}

.carousel-title {
    font-family: Georgia, serif;
    color: #f4f4f4;
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    margin: 0;
}

.carousel-item.active .carousel-title {
    font-size: 24px;
    line-height: 1.2;
}

.carousel-item:not(.active) .carousel-title {
    font-size: 18px;
    line-height: 1.3;
}

.carousel-subtitle {
    color: #c2a97a;
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    margin: 0;
}

.carousel-item.active .carousel-subtitle {
    font-size: 16px;
    opacity: 1;
}

.carousel-item:not(.active) .carousel-subtitle {
    font-size: 14px;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .luminous-depth-carousel-container {
        margin-top: 30px;
        padding: 10px;
    }

    .depth-carousel-wrapper {
        height: 160px;
        perspective: 1000px;
    }

    .carousel-icon {
        width: 60px;
        height: 60px;
    }

    .carousel-icon svg {
        width: 30px;
        height: 30px;
    }

    .carousel-item.active .carousel-title {
        font-size: 20px;
    }

    .carousel-item:not(.active) .carousel-title {
        font-size: 16px;
    }

    .carousel-item.active .carousel-subtitle {
        font-size: 14px;
    }

    .carousel-item:not(.active) .carousel-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .depth-carousel-wrapper {
        height: 140px;
        perspective: 800px;
    }

    .carousel-icon {
        width: 50px;
        height: 50px;
    }

    .carousel-icon svg {
        width: 25px;
        height: 25px;
    }

    .carousel-item.active .carousel-title {
        font-size: 18px;
    }

    .carousel-item:not(.active) .carousel-title {
        font-size: 14px;
    }

    .carousel-title,
    .carousel-subtitle {
        white-space: normal;
        max-width: 150px;
    }
}
