/* Video Animation CSS */

/* Container for the video with position relative for overlay positioning */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animation class that will be added via JavaScript when scrolled into view */
.video-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient overlay that will animate across the video */
.video-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: translateX(-100%);
    z-index: 2;
    pointer-events: none; /* Allows clicks to pass through to video */
    opacity: 0.9;
}

/* Animation for gradient to wipe across the video */
.video-container.animate-in .video-gradient-overlay {
    animation: gradientWipe 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes gradientWipe {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Make the video responsive */
.video-container iframe {
    width: 100%;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        margin: 0 15px;
    }
    
    .video-section {
        padding: 60px 0;
    }
}
