/* Enhanced Modern Carousel Styles with #00baff Theme */

/* CSS Custom Properties for Dynamic Sizing */
:root {
    --navbar-height-desktop: 76px;
    --navbar-height-mobile: 60px;
    --carousel-height-desktop: calc(100vh - var(--navbar-height-desktop));
    --carousel-height-mobile: calc(100vh - var(--navbar-height-mobile));
    --vh: 1vh; /* Fallback value */
    --actual-navbar-height: 76px; /* Will be updated by JavaScript */
    --actual-carousel-height: calc(100vh - var(--actual-navbar-height)); /* Dynamic height */
}

/* Ensure proper viewport handling across browsers */
html, body {
    overflow-x: hidden;
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    :root {
        --vh: 1vh;
    }
    
    .hero-carousel,
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: calc(var(--vh, 1vh) * 100 - var(--actual-navbar-height));
    }
    
    .carousel-item img {
        height: calc(var(--vh, 1vh) * 100 - var(--actual-navbar-height));
    }
}

/* Additional browser compatibility */
.hero-carousel {
    /* Ensure no scrollbars appear */
    box-sizing: border-box;
    /* Prevent content from overflowing */
    contain: layout;
}

/* Ensure proper sizing on all browsers */
@media screen and (min-width: 1px) {
    .carousel-item img {
        min-height: 100%;
        max-width: 100%;
        display: block;
    }
}

/* Hero Carousel Container */
.hero-carousel {
    position: relative;
    min-height: var(--actual-carousel-height);
    max-height: var(--actual-carousel-height);
    overflow: hidden;
    background: linear-gradient(135deg, #000814, #001d3d);
    width: 100%;
    /* Fallback for browsers that don't support CSS custom properties */
    min-height: calc(100vh - 76px);
    max-height: calc(100vh - 76px);
}

/* Main Carousel Styling */
.carousel {
    height: var(--carousel-height-desktop);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-inner {
    height: var(--carousel-height-desktop);
    border-radius: 0;
    width: 100%;
}

.carousel-item {
    height: var(--carousel-height-desktop);
    position: relative;
    transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.7;
    width: 100%;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    height: var(--carousel-height-desktop);
    width: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.6) contrast(1.1) saturate(0.9);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active img {
    filter: brightness(0.7) contrast(1.15) saturate(1.05);
    transform: scale(1.02);
    animation: smoothImageEnhance 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

/* Carousel Overlay */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 186, 255, 0.3) 0%,
        rgba(0, 156, 255, 0.2) 30%,
        rgba(0, 136, 255, 0.15) 60%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, background;
}

.carousel-item:not(.active) .carousel-overlay {
    opacity: 0.7;
    background: linear-gradient(
        135deg,
        rgba(0, 186, 255, 0.1) 0%,
        rgba(0, 156, 255, 0.1) 30%,
        rgba(0, 136, 255, 0.1) 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.carousel-item.active .carousel-overlay {
    opacity: 1;
    animation: smoothOverlayFadeIn 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s both;
}

/* Content Overlay */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    color: white;
    perspective: 1000px;
}

.carousel-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Base state for all content elements */
.carousel-item:not(.active) .carousel-content > * {
    opacity: 0;
    transform: translateY(40px) translateZ(0);
    filter: blur(3px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-item.active .carousel-content > * {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    filter: blur(0);
}

/* Staggered animation delays for smooth cascade effect */
.carousel-item.active .carousel-badge {
    animation: smoothBounceIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.carousel-item.active .carousel-title {
    animation: smoothSlideInUp 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.carousel-item.active .carousel-description {
    animation: smoothFadeInScale 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.carousel-item.active .carousel-actions {
    animation: smoothSlideInUp 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

/* Alternate animation patterns for different slides */
.carousel-item:nth-child(2).active .carousel-badge {
    animation: smoothFadeInScale 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.carousel-item:nth-child(2).active .carousel-title {
    animation: smoothSlideInLeft 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.carousel-item:nth-child(2).active .carousel-description {
    animation: smoothSlideInRight 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.carousel-item:nth-child(3).active .carousel-badge {
    animation: smoothSlideInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.carousel-item:nth-child(3).active .carousel-title {
    animation: smoothBounceIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.carousel-item:nth-child(3).active .carousel-description {
    animation: smoothSlideInUp 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

/* Primary button animation */
.carousel-item.active .btn-primary-cta {
    animation: smoothSlideInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}

/* Exit animations for smoother transitions */
.carousel-item:not(.active) .carousel-badge {
    animation: smoothSlideOutDown 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19) 0s both;
}

.carousel-item:not(.active) .carousel-title {
    animation: smoothSlideOutDown 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19) 0.1s both;
}

.carousel-item:not(.active) .carousel-description {
    animation: smoothSlideOutDown 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19) 0.2s both;
}

.carousel-item:not(.active) .carousel-actions {
    animation: smoothSlideOutDown 0.6s cubic-bezier(0.55, 0.06, 0.68, 0.19) 0.3s both;
}

/* Badge Styling */
.carousel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 186, 255, 0.25);
    border: 1px solid rgba(0, 186, 255, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    backdrop-filter: blur(10px);
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    from { box-shadow: 0 4px 15px rgba(0, 186, 255, 0.3); }
    to { box-shadow: 0 6px 25px rgba(0, 186, 255, 0.5); }
}

/* Typography */
.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Call-to-Action Button */
.carousel-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary-cta {
    background: linear-gradient(135deg, #00baff, #0099ff);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 186, 255, 0.3);
    border: 2px solid transparent;
}

.btn-primary-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 186, 255, 0.5);
    background: linear-gradient(135deg, #0099ff, #00baff);
    color: white;
    text-decoration: none;
}

.btn-primary-cta:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 186, 255, 0.4);
}



/* Enhanced Navigation Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 186, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 186, 255, 0.4);
    border-color: rgba(0, 186, 255, 0.6);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 186, 255, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: auto;
    height: auto;
    background: none;
}

.carousel-control-prev-icon i,
.carousel-control-next-icon i {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Enhanced Indicators */
.carousel-indicators {
    bottom: 30px;
    margin: 0;
    gap: 6px;
    z-index: 3;
    align-items: center;
}

/*
 * Strategi: biarkan Bootstrap punya button structure-nya sendiri,
 * sembunyikan background bawaannya, render dot pakai ::after — bebas dari
 * pengaruh border-top/bottom: 10px transparent milik Bootstrap.
 */
.carousel-indicators [data-bs-target] {
    flex: 0 0 30px       !important;
    width: 30px          !important;
    height: 30px         !important;
    border: 0            !important;
    border-top: 0        !important;
    border-bottom: 0     !important;
    background-color: transparent !important;
    opacity: 1           !important;
    margin: 0            !important;
    padding: 0           !important;
    box-sizing: border-box !important;
    display: flex        !important;
    align-items: center  !important;
    justify-content: center !important;
}

/* Dot yang sesungguhnya — sepenuhnya kita kontrol */
.carousel-indicators [data-bs-target]::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel-indicators .active::after {
    background: #00baff;
    border-color: #00baff;
    transform: scale(1.45);
    box-shadow: 0 0 8px rgba(0, 186, 255, 0.8);
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.carousel-progress .progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00baff, #00e6ff);
    box-shadow: 0 2px 10px rgba(0, 186, 255, 0.5);
    border-radius: 0;
    transition: none !important;
    animation: none;
}

.carousel-progress .progress-bar.running {
    animation: carouselProgressFill 6s linear forwards;
}

.carousel-progress .progress-bar.paused {
    animation-play-state: paused;
}

@keyframes carouselProgressFill {
    from { width: 0%; }
    to   { width: 100%; }
}

/* Play/Pause Button */
.carousel-play-pause {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 186, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-play-pause:hover {
    background: rgba(0, 186, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 186, 255, 0.3);
}

/* Floating Statistics */
.carousel-stats {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 3;
    backdrop-filter: blur(20px);
    background: rgba(0, 186, 255, 0.1);
    padding: 20px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00baff;
    text-shadow: 0 2px 10px rgba(0, 186, 255, 0.5);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Animations */
@keyframes smoothSlideInUp {
    0% {
        opacity: 0;
        transform: translateY(60px) translateZ(0) scale(0.95);
        filter: blur(5px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) translateZ(0) scale(1.02);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0) scale(1);
        filter: blur(0);
    }
}

@keyframes smoothSlideOutDown {
    0% {
        opacity: 1;
        transform: translateY(0) translateZ(0) scale(1);
        filter: blur(0);
    }
    50% {
        opacity: 0.6;
        transform: translateY(10px) translateZ(0) scale(0.98);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: translateY(40px) translateZ(0) scale(0.95);
        filter: blur(3px);
    }
}

@keyframes smoothFadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateZ(0);
        filter: blur(3px);
    }
    60% {
        opacity: 0.9;
        transform: scale(1.05) translateZ(0);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
        filter: blur(0);
    }
}

@keyframes smoothSlideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) translateZ(0);
        filter: blur(3px);
    }
    60% {
        opacity: 0.9;
        transform: translateX(5px) translateZ(0);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateZ(0);
        filter: blur(0);
    }
}

@keyframes smoothSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px) translateZ(0);
        filter: blur(3px);
    }
    60% {
        opacity: 0.9;
        transform: translateX(-5px) translateZ(0);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateZ(0);
        filter: blur(0);
    }
}

@keyframes smoothBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateZ(0);
        filter: blur(3px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translateZ(0);
        filter: blur(1px);
    }
    70% {
        opacity: 0.9;
        transform: scale(0.95) translateZ(0);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
        filter: blur(0);
    }
}

@keyframes smoothImageEnhance {
    0% {
        filter: brightness(0.5) contrast(1.0) saturate(0.8);
        transform: scale(1);
    }
    50% {
        filter: brightness(0.75) contrast(1.1) saturate(1.0);
        transform: scale(1.01);
    }
    100% {
        filter: brightness(0.7) contrast(1.15) saturate(1.05);
        transform: scale(1.02);
    }
}

@keyframes smoothOverlayFadeIn {
    0% {
        opacity: 0;
        background: linear-gradient(
            135deg,
            rgba(0, 186, 255, 0.1) 0%,
            rgba(0, 156, 255, 0.1) 30%,
            rgba(0, 136, 255, 0.1) 60%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    50% {
        opacity: 0.8;
        background: linear-gradient(
            135deg,
            rgba(0, 186, 255, 0.25) 0%,
            rgba(0, 156, 255, 0.15) 30%,
            rgba(0, 136, 255, 0.12) 60%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }
    100% {
        opacity: 1;
        background: linear-gradient(
            135deg,
            rgba(0, 186, 255, 0.3) 0%,
            rgba(0, 156, 255, 0.2) 30%,
            rgba(0, 136, 255, 0.15) 60%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-title {
        font-size: 3rem;
    }
    
    .carousel-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        min-height: var(--carousel-height-mobile);
        max-height: var(--carousel-height-mobile);
    }
    
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: var(--carousel-height-mobile);
    }
    
    .carousel-item img {
        height: var(--carousel-height-mobile);
        object-position: center center;
    }
    
    .carousel-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .carousel-description {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .carousel-actions {
        align-items: center;
    }
    
    .btn-primary-cta {
        padding: 12px 25px;
        font-size: 1rem;
        width: 250px;
        justify-content: center;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-control-prev-icon i,
    .carousel-control-next-icon i {
        font-size: 1.2rem;
    }
    
    .carousel-stats {
        bottom: 80px;
        gap: 25px;
        padding: 15px 25px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .carousel-play-pause {
        bottom: 20px;
        right: 20px;
      width: 40px;
      height: 40px;
        font-size: 1rem;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .carousel-indicators [data-bs-target] {
        flex: 0 0 24px !important;
        width: 24px    !important;
        height: 24px   !important;
    }

    .carousel-indicators [data-bs-target]::after {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        min-height: var(--carousel-height-mobile);
        max-height: var(--carousel-height-mobile);
    }

    .carousel,
    .carousel-inner,
    .carousel-item {
        height: var(--carousel-height-mobile);
    }

    .carousel-item img {
        height: var(--carousel-height-mobile);
        object-position: center top;
    }

    .carousel-caption {
        width: 95%;
        padding: 0 8px;
    }

    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .carousel-description {
        font-size: 0.9rem;
        margin-bottom: 16px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .carousel-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
        margin-bottom: 10px;
    }

    .carousel-actions {
        margin-top: 14px;
    }

    .btn-primary-cta {
        width: 100%;
        max-width: 260px;
        padding: 11px 20px;
        font-size: 0.88rem;
        min-height: 46px;
    }

    .carousel-control-prev { left: 8px; }
    .carousel-control-next { right: 8px; }

    .carousel-indicators { bottom: 14px; gap: 7px; }
    .carousel-indicators [data-bs-target] { flex: 0 0 22px !important; width: 22px !important; height: 22px !important; }
    .carousel-indicators [data-bs-target]::after { width: 7px; height: 7px; }
    .carousel-play-pause  { bottom: 14px; right: 14px; }
}

@media (max-width: 360px) {
    .carousel-title {
        font-size: 1.25rem;
    }

    .carousel-description {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }

    .btn-primary-cta {
        font-size: 0.82rem;
        padding: 10px 16px;
    }
}

/* Extra small screens and landscape phones */
@media (max-width: 360px) {
    :root {
        --navbar-height-mobile: 50px;
        --carousel-height-mobile: calc(100vh - var(--navbar-height-mobile));
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-carousel {
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 100vh;
    }
    
    .carousel-item img {
        height: 100vh;
    }
    
    .carousel-stats {
        bottom: 50px;
    }
    
    .carousel-caption {
        top: 45%;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .carousel-item,
    .carousel-item img,
    .carousel-content,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators [data-bs-target],
    .btn-primary-cta,
    .carousel-overlay {
        transition: none !important;
        animation: none !important;
    }
    
    .carousel-item.active img {
        transform: none !important;
        filter: brightness(0.7) contrast(1.15) saturate(1.05) !important;
    }
    
    .carousel-badge,
    .carousel-title,
    .carousel-description,
    .carousel-actions {
        animation: none !important;
    }
    
    .carousel-item.active .carousel-content > * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    
    .carousel-item:not(.active) .carousel-content > * {
        opacity: 0 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .carousel-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .carousel-title {
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    }
    
    .carousel-description {
        color: white;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    }
}

/* Focus States for Accessibility */
.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-play-pause:focus,
.carousel-indicators [data-bs-target]:focus {
    outline: 3px solid #00baff;
    outline-offset: 2px;
}

.btn-primary-cta:focus {
    outline: 3px solid #00baff;
    outline-offset: 3px;
}