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

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Add these for better compatibility */
    opacity: 1;
    visibility: visible;
}

/* Fallback for unsupported formats */
.video-background.fallback {
    background-image: url('your-fallback-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional: Add overlay for better text readability */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay */
    z-index: -1;
    pointer-events: none;
}

/* Alternative lighter overlay */
.video-overlay-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Light overlay */
    z-index: -1;
    pointer-events: none;
}

/* Ensure content stays above video */
.main-content,
.content-wrapper,
.principle-page {
    position: relative;
    z-index: 1;
}

/* Mobile optimization - pause video on small screens to save bandwidth */
@media (max-width: 768px) {
    .video-background video {
        display: none; /* Hide video on mobile if needed */
    }
    
    /* Fallback background for mobile */
    .video-background {
        background-color: #1e1b4b; /* Your original dark blue */
        background-image: url('fallback-image.jpg'); /* Optional fallback image */
        background-size: cover;
        background-position: center;
    }
}
