/* Hero Section - Exact Match to Original Elementor Design */

/* CSS Custom Properties for full screen coverage */
:root {
    --vh: 1vh;
    --full-height: calc(var(--vh, 1vh) * 110); /* 110vh for full coverage */
}

/* Body styles handled by home-page-specific.css */

/* Ensure header is above hero video but below hero content */
/* Removed position: relative to allow sticky header to work */
.aufg-global-header {
    /* position and z-index handled by global-header-styles.css */
}

/* Hero section with maximum specificity - overrides all other styles */
html body main .hero-section-exact.hero-section-exact.hero-section-exact {
    position: relative !important;
    height: 110vh !important;
    min-height: 110vh !important;
    max-height: 110vh !important;
    margin-top: 0 !important; /* Remove negative margin to fix gap */
    margin-bottom: 0 !important;
    padding-top: 0 !important; /* Remove padding since we removed negative margin */
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    z-index: 0 !important; /* Behind header */
    box-sizing: border-box !important;
}

/* Ensure main container doesn't constrain the hero */
main {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Video Background - Full Coverage */
.hero-video-bg {
    position: absolute !important;
    top: 0 !important; /* Start from the very top to cover area behind header */
    left: 0 !important;
    width: 100% !important;
    height: 100% !important; /* Cover full hero section including the negative margin area */
    z-index: -1 !important;
    overflow: hidden !important;
}

/* Dark overlay gradient */
.hero-video-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.3) 0%, 
        rgba(0,0,0,0.5) 50%, 
        rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* Video iframe - full coverage */
.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%) scale(1.1); /* Slightly reduced scale for better fit */
    pointer-events: none;
}

/* Content Container - LEFT aligned as in original */
.hero-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Text Content Wrapper */
.hero-text-content {
    max-width: 800px;
    margin-left: 0; /* Left aligned */
}

/* Welcome text with blue background */
.hero-welcome-box {
    display: inline-block;
    background-color: #038BB9;
    padding: 10px 10px; /* Match Elementor padding */
    margin-bottom: 0;
    border-radius: 0;
}

.hero-welcome {
    font-family: "Poppins", sans-serif;
    font-size: 24px; /* Exact Elementor size */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2em;
}

/* Company name - below welcome text */
.hero-company-name {
    font-family: "Poppins", sans-serif;
    font-size: 32px; /* Exact Elementor size */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2em;
    letter-spacing: 0;
    color: #E8F1FA; /* Exact Elementor color */
    text-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    margin: 10px 0 0 0;
    max-width: 800px;
}

/* Desktop specific adjustments */
@media (min-width: 1200px) {
    /* Keep original sizes - don't increase */
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-content-container {
        padding: 0 30px;
    }
    
    .hero-company-name {
        font-size: 42px;
    }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .hero-section-exact {
        margin-top: 0 !important; /* Remove negative margin to fix gap */
        height: 100vh !important;
        min-height: 500px !important;
        padding-top: 0 !important; /* Remove padding since we removed negative margin */
        position: relative !important;
        overflow: hidden !important; /* Ensure video doesn't overflow */
        width: 100% !important;
    }
    
    .hero-section-exact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, 
            rgba(0, 0, 0, 0.3) 0%, 
            rgba(0, 0, 0, 0.5) 100%);
        z-index: 1;
        pointer-events: none;
    }
    
    .hero-video-bg {
        display: block !important; /* Show video on mobile */
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0.8; /* Slightly dim for mobile readability */
        z-index: -1 !important;
        overflow: hidden !important;
    }
    
    /* Mobile video iframe - full coverage */
    .hero-video-bg iframe {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 100vw !important;
        height: 56.25vw !important; /* 16:9 Aspect Ratio */
        min-height: 100vh !important;
        min-width: 177.77vh !important; /* 16:9 Aspect Ratio */
        transform: translate(-50%, -50%) scale(1.3) !important; /* Scale up more for full coverage */
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    .hero-content-container {
        padding: 0 20px;
        display: flex;
        align-items: center;
        height: 100%;
        position: relative;
        z-index: 2; /* Above video and overlay */
        width: 100%;
    }
    
    .hero-text-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-welcome-box {
        margin: 0 auto 15px;
    }
    
    .hero-welcome {
        font-size: 16px;
    }
    
    .hero-company-name {
        font-size: 28px;
        line-height: 1.2;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .hero-company-name {
        font-size: 24px;
    }
    
    .hero-welcome {
        font-size: 14px;
    }
}

/* Ensure text is always readable */
.hero-section-exact * {
    box-sizing: border-box;
}

/* Remove default margins */
h1, h2 {
    margin: 0;
    padding: 0;
}