/* Video Container Styling for Homepage Hero */

.video-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 3rem auto 2rem auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(0, 123, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Maintain 16:9 aspect ratio */
.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 22px;
}

/* Video loading placeholder */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 22px;
    z-index: -1;
}

/* Adjust hero content spacing with video */
.hero-content .video-container + .hero-buttons {
    margin-top: 2rem;
}

/* Professional video overlay (optional) */
.video-container .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 22px;
    pointer-events: none;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

/* Video play button styling (for local videos) */
.video-container video::-webkit-media-controls-play-button {
    background-color: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
}

.video-container video::-webkit-media-controls-panel {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(16, 185, 129, 0.9));
}

/* Custom play button overlay (if needed) */
.video-container .custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007BFF, #10B981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

.video-container .custom-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.5);
}

.video-container .custom-play-button::after {
    content: '▶️';
    font-size: 1.8rem;
    margin-left: 3px;
}

/* Video caption/title (optional) */
.video-caption {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-container {
        max-width: 600px;
        margin: 2.5rem auto 1.5rem auto;
    }
}

@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        margin: 2rem auto 1.5rem auto;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
    }
    
    .video-container iframe,
    .video-container video {
        border-radius: 18px;
    }
    
    .video-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0, 123, 255, 0.3);
    }
    
    .hero-content .video-container + .hero-buttons {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-container {
        border-radius: 16px;
        margin: 1.5rem auto 1rem auto;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .video-container iframe,
    .video-container video {
        border-radius: 15px;
    }
    
    .custom-play-button {
        width: 60px;
        height: 60px;
    }
    
    .custom-play-button::after {
        font-size: 1.4rem;
    }
}

/* Animation for video container */
@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-container.fade-in {
    animation: videoFadeIn 0.8s ease-out;
}

/* Loading state */
.video-container.loading::before {
    content: 'Loading video...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    z-index: 5;
}

.video-container.loading::after {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(16, 185, 129, 0.3));
    z-index: 1;
}