/* Full-Width Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 2560px; /* Clamped at 2K resolution */
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--bg-panel);
    border-bottom: 2px solid var(--accent-dark-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle glow effect when hovering over the carousel frame */
.carousel-container:hover {
    border-bottom-color: var(--accent-cyan);
    box-shadow: 0 4px 25px rgba(0, 206, 209, 0.25);
}

/* Sliding Track */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* Responsive Slide & Height Scaling */
.carousel-slide {
    min-width: 100%;
    /* Fluid height: scales smoothly from mobile up to large screens */
    height: clamp(240px, 42vw, 620px);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Buttons (Left & Right) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 5, 24, 0.65);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Navigation Indicator Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: var(--accent-cyan);
}

.dot.active {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transform: scale(1.25);
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .carousel-dots {
        bottom: 12px;
        gap: 8px;
    }

    .dot {
        width: 9px;
        height: 9px;
    }
}