/* Hero Video Background Styles */

.hero-video-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

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

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video Overlay for Text Readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 55, 92, 0.85) 0%, rgba(14, 27, 43, 0.75) 50%, rgba(0, 55, 92, 0.85) 100%);
    z-index: 1;
}

/* Ensure Content is Above Video */
.hero-video-section .container {
    position: relative;
    z-index: 2;
}

.hero-video-section .mission-grid {
    position: relative;
    z-index: 2;
}

/* Enhanced Text Visibility on Video Background */
.hero-video-section .mission-content h2 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-video-section .mission-content p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-video-section .mission-content strong {
    color: #ffffff;
}

.hero-video-section .mission-content .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Mission Image Enhancement */
.hero-video-section .mission-image {
    position: relative;
    z-index: 2;
}

.hero-video-section .mission-image img {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Video Background */
@media (max-width: 768px) {
    .hero-video-section {
        min-height: 500px;
    }

    /* Hide video on mobile for performance, show gradient instead */
    /*.video-background video {*/
    /*    display: none;*/
    /*}*/

    /*.video-overlay {*/
    /*    background: linear-gradient(135deg, rgba(0, 55, 92, 0.95) 0%, rgba(14, 27, 43, 0.9) 100%);*/
    /*}*/
}

@media (max-width: 576px) {
    .hero-video-section {
        min-height: 400px;
    }
}

/* Animation for Content on Load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-video-section .mission-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-video-section .mission-image {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Video Play/Pause Control (Optional) */
.video-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    background: rgba(0, 55, 92, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.video-control:hover {
    background: rgba(0, 55, 92, 1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.video-control i {
    margin-right: 5px;
}
