/* Modern Hero Slider General Wrapper */
.video-wrapper {
    display: block;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    padding: 0;
    position: relative;
    background: #0b0c10;
    overflow: hidden;
    z-index: 5;
}

@media (max-width: 575.98px) {
    .video-wrapper {
        height: 60vh;
        min-height: 400px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .video-wrapper {
        height: 500px;
    }
}

@media (min-width: 992px) {
    .video-wrapper {
        height: calc(100vh - 138px);
        min-height: 500px;
        max-height: 800px;
    }
}

/* Owl Carousel Minimum Viable Fix */
#MainSlider,
#MainSlider .owl-stage-outer,
#MainSlider .owl-stage,
#MainSlider .owl-item {
    height: 100%;
    width: 100%;
}

#MainSlider .item {
    height: 100%;
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.hero-slide-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Background Image Style */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll;
}

/* Premium Left-aligned Gradient Overlay for Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* User requested no solid overlays so the image sits naturally */
    background: transparent;
}

@media (max-width: 991.98px) {
    .hero-content {
        padding-top: 2rem !important;
    }
}

/* Content Animations */
.z-index-2 {
    z-index: 2;
}

.hero-title,
.hero-divider,
.hero-subtitle,
.hero-btn {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.owl-item.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.owl-item.active .hero-divider {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.owl-item.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.owl-item.active .hero-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* Custom Navigation Dots - Modern Lines */
#MainSlider .owl-dots {
    position: absolute !important;
    bottom: 40px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    z-index: 99 !important;
    display: flex !important;
    justify-content: center;
    gap: 8px;
}

#MainSlider .owl-dots .owl-dot {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    outline: none !important;
}

#MainSlider .owl-dots .owl-dot span {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0;
    border-radius: 2px;
    transition: all 0.4s ease;
    display: block;
}

#MainSlider .owl-dots .owl-dot.active span,
#MainSlider .owl-dots .owl-dot:hover span {
    background: #fff;
    width: 60px;
}

/* Typography Overhaul - Elegant Premium UI */
.hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 4rem;
    font-weight: 700 !important;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 400 !important;
    line-height: 1.6;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
}

.hero-divider {
    width: 60px;
    height: 5px;
    background: #008caa;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 140, 170, 0.5);
    border: none;
}

/* Glassmorphism Call to Action Button */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.08);
    /* Transparent Light */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari Support */
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 4px;
    /* Industrial / Tech Sharpness */
    padding: 16px 35px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    background: #008caa;
    color: white;
    border-color: #008caa;
    box-shadow: 0 12px 25px rgba(0, 140, 170, 0.5);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    #MainSlider .owl-dots {
        bottom: 20px !important;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Hide navigation buttons */
#MainSlider .owl-nav {
    display: none !important;
}
