/*--------------------------------------------------------------
# Final Orbital Carousel
--------------------------------------------------------------*/
.orbital-carousel-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.background-video.active {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Ensure all carousel content is on top of the blurred background */
.orbital-system-container, .navigation {
    z-index: 3;
}

.orbital-system-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.planet {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-in-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.planet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.6s ease;
}

/* Style for the transition effect */
.planet.transitioning {
    transform: scale(0.9);
    opacity: 0.7 !important;
}

.planet:hover img {
    transform: scale(1.1);
}

.planet.left, .planet.right {
    width: 200px;
    height: 200px;
    opacity: 0.7;
    filter: blur(1px);
}

.planet.center {
    width: 420px;
    height: 420px;
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-width: 6px;
}


.navigation {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.nav-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .orbital-system-container {
        height: 350px;
        gap: 10px;
    }

    .planet.center {
        width: 200px;
        height: 200px;
    }

    .planet.left, .planet.right {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .orbital-system-container {
        height: 300px;
        gap: 5px;
    }

    .planet.center {
        width: 180px;
        height: 180px;
    }

    .planet.left, .planet.right {
        width: 100px;
        height: 100px;
    }
}