/* BTM 3D Interactive Carousel Stylesheet */

.btm-carousel-container {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

/* Category Filter Pills */
.btm-carousel-filters-wrapper {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.btm-carousel-filters-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.btm-carousel-filters {
    display: flex;
    gap: 12px;
    padding: 8px 20px;
}
.btm-filter-pill {
    background-color: #ffffff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.btm-filter-pill:hover {
    border-color: #0c2340;
    color: #0c2340;
    transform: translateY(-1px);
}
.btm-filter-pill.active {
    background-color: #0c2340;
    color: #ffffff;
    border-color: #0c2340;
    box-shadow: 0 10px 15px -3px rgba(12, 35, 64, 0.3);
}

/* 3D Coverflow Viewport */
.btm-3d-slider-viewport {
    width: 100%;
    height: 480px;
    position: relative;
    perspective: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btm-3d-slider-track {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* Slide Cards */
.btm-carousel-slide {
    position: absolute;
    width: 65%;
    height: 480px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    user-select: none;
}

.btm-slide-card {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* Webkit clipping fixes for rounded corners in 3D transforms */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.btm-slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.8s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Hover overlay and text */
.btm-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(12, 35, 64, 0.95) 0%, rgba(12, 35, 64, 0) 100%);
    padding: 30px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btm-carousel-slide.active .btm-slide-card:hover .btm-slide-overlay {
    opacity: 1;
    transform: translateY(0);
}

.btm-carousel-slide.active .btm-slide-card:hover img {
    transform: scale(1.08);
}

.btm-slide-info h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.btm-zoom-btn {
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c2340;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.btm-zoom-btn:hover {
    background-color: #f97316;
    color: #ffffff;
    transform: scale(1.1);
}

/* Nav Dots */
.btm-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.btm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.btm-dot.active {
    background-color: #0c2340;
    transform: scale(1.25);
    width: 24px;
    border-radius: 10px;
}

/* Lightbox Modal */
.btm-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 35, 64, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.btm-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.btm-lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.btm-lightbox-overlay.active .btm-lightbox-content {
    transform: scale(1);
}
.btm-lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}
.btm-lightbox-title {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-top: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.btm-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.btm-lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    color: #f97316;
}

/* Responsive States */
@media (max-width: 768px) {
    .btm-3d-slider-viewport {
        height: 380px;
    }
    .btm-carousel-slide {
        width: 240px;
        height: 320px;
        margin-left: -120px;
        margin-top: -160px;
    }
    .btm-slide-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 15px;
    }
    .btm-slide-info h4 {
        font-size: 1rem;
    }
    .btm-zoom-btn {
        width: 36px;
        height: 36px;
    }
    .btm-lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 32px;
    }
}
