/**
 * Hero Slider Styles
 *
 * Styles for the custom hero slider on the front page.
 */

/* Section Container */
.hero-slider-section {
    width: 100%;
    height: 60vh; 
    position: relative;
    overflow: hidden; 
    background-color: #000; 
    display: block; /* Explicitly set display */
    z-index: 5; /* Establish a stacking context, can be adjusted */
}

.hero-swiper {
    width: 100%;
    height: 100%;
    position: relative; 
}

.swiper-slide {
    overflow: hidden; 
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #111; 
}

/* Slide Background (Image/Video) */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scale(1.2); /* Start slightly zoomed IN */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transition for the zoom effect */
}

.hero-image-bg,
.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    background-size: cover;
    background-position: center center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* This transform is for centering the video, separate from the slide-background scale */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
}

/* Slide Overlay for transitions and text legibility */
.slide-background .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 2;
    transition: background-color 0.1s ease;
}

/* Slide Content Overlay */
.swiper-slide-content {
    position: relative;
    z-index: 3; 
    color: #fff; 
    padding: 20px;
    max-width: 800px; 
}

.hero-content-inner {
    /* Styles for the inner container of text elements if needed */
}

.pre-heading {
    font-size: 0.85rem; 
    font-weight: 800;
    letter-spacing: 4px; 
    text-transform: uppercase;
    margin-bottom: 32px; 
    opacity: 0; 
    color: #fff; 
}

.swiper-slide-content .main-heading {
    font-size: 2.8rem; 
    font-weight: 800; 
    line-height: 1.2;
    margin-bottom: 38px; 
    opacity: 0; 
    text-transform: uppercase; 
    color: #fff; 
    letter-spacing: 8px; 
}

.cta-button {
    display: inline-block;
    background-color: #fff; 
    color: #000; 
    padding: 12px 35px; 
    text-decoration: none;
    font-weight: 600; 
    border-radius: 0px; 
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; 
    opacity: 0; 
    border: 1px solid transparent;
    text-transform: uppercase; 
    font-size: 0.95rem; 
    letter-spacing: 8px; 
}

.cta-button:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px); 
}

/* Text Animations */
.animate-text { 
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
    transition-duration: 0.8s; 
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.swiper-slide-active .animate-text { 
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .pre-heading { transition-delay: 0.2s; }
.swiper-slide-active .main-heading { transition-delay: 0.4s; } 
.swiper-slide-active .cta-button { transition-delay: 0.5s; }


/* Slide Transition Animations */
.swiper-slide {
    transition-property: transform, opacity; /* Default Swiper transition for slide change */
}

.swiper-slide-active .slide-background {
    transform: scale(1); /* Zoom OUT to normal size when active */
    /* The transition for this is now defined in the base .slide-background rule (0.8s) */
}

/* Dark overlay during fade transition */
.hero-swiper .swiper-slide-active .slide-background .slide-overlay {
    background-color: rgba(0, 0, 0, 0.3); 
}
.hero-swiper .swiper-slide:not(.swiper-slide-active) .slide-background .slide-overlay {
    background-color: rgb(0, 0, 0); 
}


/* Swiper Pagination - Custom Dots with Progress */
.swiper.hero-swiper .hero-swiper-pagination {
    position: absolute;
    bottom: 30px; 
    left: 0; 
    right: 0;
    width: 100%; 
    z-index: 10;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 15px; 
    box-sizing: border-box; 
}

.swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet { 
    width: 6px; 
    height: 6px; 
    background-color: rgba(255, 255, 255, 0.5); 
    opacity: 1;
    margin: 0 8px !important; 
    border-radius: 50%;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    flex-shrink: 0; 
}

.swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet-active { 
    background-color: #fff; 
    transform: scale(1.2); 
}

.swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet .bullet-progress-svg { 
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px; 
    height: 10px;
    transform: translate(-50%, -50%) rotate(-90deg); 
    display: none; 
}

.swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet-active .bullet-progress-svg { 
    display: block;
}

.swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet .bullet-progress-svg circle { 
    fill: none;
    stroke-width: 2; 
}

.swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet .bullet-progress-svg .progress-track { 
    stroke: rgba(255, 255, 255, 0.3); 
}

.swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet .bullet-progress-svg .progress-bar { 
    stroke: #fff; 
    stroke-linecap: round; 
    transition: stroke-dashoffset 0.1s linear; 
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slider-section {
        height: 43vh; 
    }

    .swiper-slide-content .main-heading { 
        font-size: 2.2rem; 
        letter-spacing: 1px;
        margin-bottom: 15px; 
    }

    .pre-heading { 
        font-size: 0.8rem; 
        letter-spacing: 1.5px;
        margin-bottom: 8px; 
    }

    .cta-button { 
        padding: 10px 25px;
        font-size: 0.8rem; 
        letter-spacing: 1px;
    }

    .swiper.hero-swiper .hero-swiper-pagination {
    bottom: 15px;
    }

    .swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
        margin: 0 6px !important;
    }
    .swiper.hero-swiper .hero-swiper-pagination .swiper-pagination-bullet .bullet-progress-svg {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 480px) {
    .swiper-slide-content .main-heading { 
        font-size: 1.8rem; 
        margin-bottom: 20px; 
    }
    .hero-slider-section {
        height: 38vh; 
    }
    .pre-heading { 
        font-size: 0.75rem;
        margin-bottom: 12px; 
    }
    .cta-button { 
        font-size: 0.75rem;
        padding: 8px 20px;
    }
}
