.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.video-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--bg-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 110, 44, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-overlay.active .video-modal {
    transform: scale(1);
}

.video-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-light);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.video-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

#hero-video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
    .video-modal {
        width: 95%;
    }
}