/* Modern Hero Section - Using Dynamic ACF Colors */

/* Modern Hero Section - Using Dynamic ACF Colors */

.hero-section.modern-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 0;
    padding-top: 50px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    /* Remove fixed min-height, now using dynamic CSS variable */
    height: var(--hero-height, 100vh);
    min-height: max-content;
    --content-color: #ffffff;
    transition: min-height 0.3s ease;
    overflow: hidden;
}



.hero-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 1;

}



/* Make hero container take full height of the section */
.hero-container:has(h1){
    padding-top: 120px;
}
.hero-container {
    position: relative;

    z-index: 2;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    color: var(--content-color);

    /* min-height: calc(var(--hero-height, 100vh) - 120px); Subtract header padding */

    padding: 40px 0;

}



/* Left Content */

.hero-content {

    flex: 1;

    max-width: 55%;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    text-align: left;

}



/* Subtitle with line - Using main color */

.hero-subtitle-wrapper {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 15px;

}





.hero-subtitle {

    display: block;

    font-size: clamp(14px , 2vw , 16px);

    text-transform: uppercase;

    letter-spacing: 3px;

    font-weight: 600;

    color: var(--main-color);

    margin: 0;

}



/* Title with highlight using main color */

.hero-title {

    padding: 5px 0 20px 0;

}



.hero-title * {

    font-size: 65px;

    line-height: 1.2;

    font-weight: 700;

    color: var(--content-color);

    margin: 0;

}



.hero-title .highlight-main {

    color: var(--main-color);

}



/* Description */

.hero-description {

    margin-bottom: 15px;

    max-width: 600px;

}



.hero-description * {

    font-size: 17px;

    font-weight: 400;

    margin: 0;

    line-height: 1.7;

    color: var(--content-color);

    opacity: 0.85;

}



/* Modern Icon Boxes */

.hero-icon-boxes.modern-icon-boxes {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(75px, 85px));

    gap: 5px;

    margin: 15px 0 30px 0;

    width: 100%;

    @media (max-width:768px){

            justify-content: center;

    }

}



.icon-box-item.modern-icon-item {

    display: flex;

    gap: 8px;

    padding: 4px;

    flex-direction: column;

    max-width: 75px;

    align-items: center;

    justify-content: center;

    text-align: center;

}



.icon-box-image {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.icon-box-image img {

    width: 100%;

    height: auto;

    object-fit: contain;

}



.icon-box-title {

    font-size: 13px;

    font-weight: 500;

    color: var(--content-color);

    margin: 0;

    line-height: 1.3;

    opacity: 0.9;

}



/* CTA Buttons Row */

.hero-cta-row {

    display: flex;

    gap: 15px;

    margin-top: 5px;

    flex-wrap: wrap;

}



/* Base CTA Button Style */

.hero-cta {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 16px 32px;

    font-size: 15px;

    font-weight: 600;

    text-decoration: none;

    border-radius: 6px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    text-transform: uppercase;

    letter-spacing: 0.5px;

    position: relative;

    overflow: hidden;

    cursor: pointer;

}



.cta-arrow {

    transition: transform 0.3s ease;

}



.hero-cta:hover .cta-arrow {

    transform: translateX(4px);

}



/* Primary CTA - Using main color */

.hero-cta-primary {

    background-color: var(--main-color);

    color: #ffffff;

    border: 2px solid var(--main-color);

}



.hero-cta-primary:hover {

    background-color: transparent;

    color: var(--main-color);

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

}



/* Secondary CTA - Outline using main color */

.hero-cta-secondary {

    background-color: transparent;

    color: var(--content-color);

    border: 2px solid var(--main-color);

}



.hero-cta-secondary:hover {

    background-color: var(--main-color);

    color: #ffffff;

    border-color: var(--main-color);

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

}



/* Hero Image */

.hero-image {

    flex: 1;

    max-width: 45%;

}



.hero-img {

    width: 100%;

    height: auto;

    border-radius: 12px;

    display: block;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

}



/* Animations */

.hero-content > * {

    animation: fadeInUp 0.8s ease forwards;

    opacity: 0;

}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }

.hero-content > *:nth-child(2) { animation-delay: 0.2s; }

.hero-content > *:nth-child(3) { animation-delay: 0.3s; }

.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

.hero-content > *:nth-child(5) { animation-delay: 0.5s; }



@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* Responsive Design */

@media (max-width: 1024px) {

    .hero-title * {

        font-size: 60px;

    }

    /* .hero-icon-boxes.modern-icon-boxes {

        grid-template-columns: repeat(2, 1fr);

    } */

}



@media (max-width: 768px) {

    .hero-container {

        text-align: center;

        flex-direction: column-reverse;

        gap: 30px;

        padding: 0 20px;

    }

    

    .hero-content {

        align-items: center;

        text-align: center;

        max-width: 100%;

        justify-content: center;

    }

    

    .hero-subtitle-wrapper {

        justify-content: center;

    }

    

    .hero-title * {

        font-size: 32px;

        line-height: 1.2;

    }

    

    /* .hero-description * {

        font-size: 16px;

        line-height: 1.6;

    } */

    

    .hero-icon-boxes.modern-icon-boxes {

        gap: 5px;

        max-width: 100%;

    }

    

    .icon-box-item.modern-icon-item {

        gap: 5px;

        padding: 10px 3px;

        background-color: rgba(0,0,0,0.5);

        border-radius: 10px;

        backdrop-filter: blur(3px);

    }

    

    .hero-cta-row {

        justify-content: center;

        flex-direction: column;

        width: 100%;

        max-width: 400px;

        align-items: center;

    }

    

    .hero-cta {

        width: 100%;

        text-align: center;

        justify-content: center;

        padding: 14px 24px;

        font-size: 14px;

    }

    

    /* .hero-section.modern-hero {

        min-height: auto;

        padding-top: 100px;

        padding-bottom: 50px;

    } */

    

    .hero-image {

        display: none;

    }

}



@media (max-width: 480px) {

    .hero-title * {

        font-size: 26px;

    }

    /* .hero-icon-boxes.modern-icon-boxes {

        grid-template-columns: repeat(1, 1fr);

    } */

    /* .hero-title * {

        font-size: 26px;

    }

    .hero-subtitle {

        font-size: 12px;

        letter-spacing: 2px;

    }

    .hero-description * {

        font-size: 15px;

    } */

    .icon-box-title {

        font-size: 11px;

    }

    .hero-icon-boxes.modern-icon-boxes {

        gap: 10px;

        row-gap: 20px;

    }

    .hero-icon-boxes.modern-icon-boxes {
        margin: 5px 0 5px;
        grid-template-columns: repeat(auto-fit, minmax(55px, 65px));
        gap: 5px;
    }
    .icon-box-image {
        width: 35px;
        height: 35px;
    }
}
@media (max-width:380px){
    .hero-icon-boxes.modern-icon-boxes {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    .icon-box-item.modern-icon-item {
        min-width: 80px;
    }
}


/* Video Background Styles */
/* .hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
} */

.hero-video {
    /* position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%); */
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* GIF Background Styles */
.hero-gif-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Enhanced overlay for video and GIF backgrounds */
.hero-video-overlay {
    background: linear-gradient(135deg, rgba(16, 21, 21, 0.7) 30%, rgba(16, 21, 21, 0.4) 60%, rgba(16, 21, 21, 0.1) 100%) !important;
}

/* Ensure content stays above video/gif */
.hero-section.has-video-bg .hero-container,
.hero-section.has-gif-bg .hero-container {
    z-index: 2;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    height: max-content;
    margin: auto;
}


/* Mobile optimizations for video */
@media (max-width: 768px) {
    .hero-video {
        /* Optionally hide video on mobile and show fallback */
        /* display: none; */
    }
    
    /* Add a stronger overlay on mobile for better text readability */
    .hero-video-overlay {
        /* background: rgba(16, 21, 21, 0.5) !important;
        backdrop-filter: brightness(0.6); */
    }
}

/* Optional: Add a smooth loading effect */
.hero-section.has-video-bg,
.hero-section.has-gif-bg {
    opacity: 0;
    animation: heroFadeIn 1.8s ease forwards;
}




/* Show Desktop Video by default */
.hero-video-desktop {
    display: block;
}

/* Hide Mobile Video by default */
.hero-video-mobile {
    display: none;
}

/* Video Fallback Image */
.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hidden unless video fails to load */
}

/* GIF Background Styles */
.hero-gif-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Enhanced overlay for video and GIF backgrounds */
/* .hero-video-overlay {
    background: linear-gradient(135deg, rgba(16, 21, 21, 0.95) 30%, rgba(16, 21, 21, 0.7) 60%, rgba(16, 21, 21, 0.3) 100%) !important;
} */

/* Ensure content stays above video/gif */
.hero-section.has-video-bg .hero-container,
.hero-section.has-gif-bg .hero-container {
    z-index: 2;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    height: max-content;
    margin: auto;
}
/* .hero-section.has-video-bg{
    height: max-content !important;
} */
/* Mobile: Switch to Mobile Video */
@media (max-width: 768px) {
    /* Hide desktop video on mobile */
    .hero-video-desktop {
        display: none !important;
    }
    
    /* Show mobile video on mobile */
    .hero-video-mobile {
        display: block !important;
        object-fit: cover;
    }
    
    /* Stronger overlay on mobile for better text readability */
    /* .hero-video-overlay {
        background: linear-gradient(135deg, rgba(16, 21, 21, 0.9) 30%, rgba(16, 21, 21, 0.75) 60%, rgba(16, 21, 21, 0.4) 100%) !important;
    } */
}

/* Smooth loading effect */
.hero-section.has-video-bg,
.hero-section.has-gif-bg {
    opacity: 0;
    animation: heroFadeIn 1.8s ease forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
    }   
}

/* Performance: Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none !important;
    }
    
    .hero-video-fallback {
        display: block !important;
    }
    
    .hero-section.has-video-bg {
        animation: none;
        opacity: 1;
    }
}

































@keyframes heroFadeIn {
    to {
        opacity: 1;
    }   
}