/* Contact Page Styles - Video Background */

/* Hero section - contains video background */
.contact-hero.hero {
    background: #000000 !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh;
    z-index: 1;
}

/* Hide old background elements */
.contact-hero .hero-background {
    display: none !important;
}

.contact-hero .hero-particles {
    display: none !important;
}

/* Hero background video - positioned behind hero content */
.hero-background-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 0 !important; /* Behind content */
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 0; /* Start hidden for fade-in - allow JS to override */
    animation: videoFadeIn 2s ease-in-out forwards;
    background: #000000 !important;
    /* Maintain quality - no blur */
    filter: none !important;
    -webkit-filter: none !important;
    /* No borders */
    border: none !important;
    outline: none !important;
    /* Maintain aspect ratio and quality */
    min-width: 100% !important;
    max-width: 100% !important;
}

/* When video is playing, ensure it's visible */
.hero-background-video.playing {
    opacity: 1 !important;
}

/* Fade-in animation for video */
@keyframes videoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dark overlay on video for text readability (40-50% black) */
.hero-video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Above video, below text */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.5) 100%
    ) !important;
    pointer-events: none !important;
}

/* Hero content - above video and overlay */
.contact-hero .container,
.contact-hero .hero-content,
.contact-hero .hero-text,
.contact-hero .hero-title,
.contact-hero .hero-description,
.contact-hero .hero-actions {
    position: relative !important;
    z-index: 2 !important; /* Above video and overlay */
}

/* Ensure all containers are transparent */
.contact-hero .container {
    background: transparent !important;
}

/* Main content - above video */
.main {
    position: relative;
    z-index: 1; /* Above video and overlay */
    background: #000000 !important;
}

/* Ensure all sections are above video */
section {
    position: relative;
    z-index: 1; /* Above video */
}

