/* 🎬 VOD Manager - Video Background with Parallax Effect */

/* ========== VIDEO BACKGROUND CONTAINER ========== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 30, 0.85) 0%,
        rgba(26, 26, 46, 0.75) 50%,
        rgba(15, 15, 30, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    transition: transform 0.1s ease-out;
}

/* Parallax effect - video moves slightly with scroll */
body.home-page.scrolled .video-background video {
    transform: translate(-50%, calc(-50% + var(--scroll-offset, 0px))) scale(1.1);
}

/* Optional: Add subtle animation to the video */
@keyframes subtle-zoom {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Uncomment to enable subtle zoom animation */
/*
.video-background video {
    animation: subtle-zoom 60s ease-in-out infinite;
}
*/

/* Ensure content is above video */
.hero-section,
.features-section,
.workflow-section,
.specs-section,
.access-section,
.home-footer {
    position: relative;
    z-index: 1;
}

/* Performance optimization for mobile devices */
@media (max-width: 768px) {
    .video-background video {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .video-background video {
        transform: translate(-50%, -50%) scale(1.05) !important;
        animation: none !important;
    }
    
    body.home-page.scrolled .video-background video {
        transform: translate(-50%, -50%) scale(1.05) !important;
    }
}
