/* Fix hero section conflicts */
.hero.section {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    display: none;
}

/* Hero Slider Styles */
#heroSlider {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
}

.carousel-inner {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel-item {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    opacity: 0;
}

/* Smooth transitions and prevent white flash */
.carousel-item:not(.active) {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-item.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.hero-slide-content {
    width: 100%;
    height: 100vh;
    position: relative;
}

.hero-media-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block !important;
    transition: transform 1.2s ease-in-out;
    background: #000;
}

/* Zoom animation for images */
.carousel-item.active .hero-main-image {
    transform: scale(1.05);
}

.carousel-item:not(.active) .hero-main-image {
    transform: scale(1);
}

.hero-main-video {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-main-video .ratio-16x9 {
    height: 100vh;
}

.hero-main-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease-in-out;
    background: #000;
}

/* Zoom animation for videos */
.carousel-item.active .hero-video-element {
    transform: scale(1.05);
}

.carousel-item:not(.active) .hero-video-element {
    transform: scale(1);
}

/* Left Side Faded Overlay */
.hero-faded-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.7) 20%, 
        rgba(0, 0, 0, 0.5) 40%, 
        rgba(0, 0, 0, 0.3) 60%, 
        rgba(0, 0, 0, 0.1) 80%, 
        rgba(0, 0, 0, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

/* Left Side Text Content */
.hero-text-content-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.hero-text-wrapper {
    max-width: 600px;
    padding: 3rem;
    pointer-events: auto;
    margin-left: 5%;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-in-out 0.3s;
}

.carousel-item.active .hero-text-wrapper {
    opacity: 1;
    transform: translateX(0);
}

.hero-overlay-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out 0.5s;
}

.carousel-item.active .hero-overlay-title {
    opacity: 1;
    transform: translateY(0);
    padding-left: 20px;
}

.hero-overlay-title span {
    color: #3b8ca6;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* UPDATED: White description with black shadow */
.hero-overlay-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: white; /* Changed to pure white */
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Strong black shadow */
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out 0.7s;
}

.carousel-item.active .hero-overlay-description {
    opacity: 1;
    transform: translateY(0);
    padding-left: 20px;
}

.hero-overlay-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out 0.9s;
}

.carousel-item.active .hero-overlay-buttons {
    opacity: 1;
    transform: translateY(0);
}

.btn-get-started {
    background: #3b8ca6;
    color: white;
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3b8ca6;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-get-started:hover {
    background: transparent;
    color: #3b8ca6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 140, 166, 0.3);
}

/* UPDATED: White text for Watch Video button */
.btn-watch-video {
    background: transparent;
    color: white; /* White text */
    padding: 14px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-watch-video:hover {
    background: white;
    color: #3b8ca6; /* Changes to blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-watch-video i {
    font-size: 1.3rem;
    margin-right: 10px;
    color: white; /* White icon */
}

.btn-watch-video:hover i {
    color: #3b8ca6; /* Icon changes to blue on hover */
}

/* Hide video controls */
.video-controls,
.video-play-btn,
.video-pause-btn {
    display: none !important;
}

/* Hide YouTube controls */
.hero-main-video iframe .ytp-chrome-top,
.hero-main-video iframe .ytp-chrome-bottom,
.hero-main-video iframe .ytp-large-play-button,
.hero-main-video iframe .ytp-button,
.ytp-gradient-top,
.ytp-gradient-bottom,
.ytp-chrome-top,
.ytp-chrome-bottom,
.ytp-show-cards-title {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(59, 140, 166, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0.8;
    z-index: 20;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #3b8ca6;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 30px;
    z-index: 20;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #3b8ca6;
    border-color: #3b8ca6;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(255,255,255,0.8);
}

/* Bootstrap Carousel Transition Overrides */
.carousel-item {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out !important;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-text-wrapper {
        max-width: 500px;
        margin-left: 3%;
        padding: 2.5rem;
    }
    
    .hero-overlay-title {
        font-size: 3rem;
    }
    
    .hero-overlay-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-faded-overlay {
        background: linear-gradient(90deg, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(0, 0, 0, 0.6) 30%, 
            rgba(0, 0, 0, 0.4) 60%, 
            rgba(0, 0, 0, 0.2) 80%, 
            rgba(0, 0, 0, 0) 100%);
    }
    
    .hero-text-wrapper {
        max-width: 90%;
        margin-left: 5%;
        padding: 2rem;
        text-align: center;
    }
    
    .hero-overlay-title {
        font-size: 2.5rem;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    }
    
    .hero-overlay-description {
        font-size: 1.1rem;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    }
    
    .hero-overlay-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-text-wrapper {
        padding: 1.5rem;
        margin-left: 2%;
    }
    
    .hero-overlay-title {
        font-size: 2rem;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    }
    
    .hero-overlay-description {
        font-size: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-overlay-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-get-started,
    .btn-watch-video {
        width: 220px;
        text-align: center;
        padding: 12px 25px;
    }
}

/* Ensure full height on mobile */
@media (max-height: 700px) {
    #heroSlider,
    .carousel-inner,
    .carousel-item,
    .hero-slide-content,
    .hero-media-wrapper,
    .hero-main-video .ratio-16x9 {
        height: 100vh;
        min-height: 600px;
    }
}

/* Enhanced text readability */
.hero-overlay-title,
.hero-overlay-description {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Mobile Controls Visibility */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .show-mobile-controls .carousel-control-prev,
    .show-mobile-controls .carousel-control-next {
        display: flex;
    }
}