/* video.css - Video Section Styles – with CSS variables */

.video-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: var(--bg-dark, #0a0a0a);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--glow-video, rgba(26, 115, 232, 0.22)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 1.8s ease-out 0.3s;
    pointer-events: none;
}

.video-wrapper {
    width: 90%;
    max-width: 1400px;
    height: 80%;
    max-height: 800px;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 1.8s ease-out, transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper.visible,
.glow-bg.visible {
    opacity: 1;
    transform: scale(1);
}

.video-frame {
    width: 100%;
    height: 100%;
    background: var(--video-frame-bg, #000);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-video, 0 20px 60px rgba(0, 0, 0, 0.7)), inset 0 0 40px var(--inset-glow, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-video, rgba(255, 255, 255, 0.08));
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-frame video,
.video-frame iframe,
.video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.play-cursor-btn {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    padding: 0.9rem 1.8rem;
    background: var(--btn-video-bg, rgba(0, 0, 0, 0.7));
    color: var(--text-light, white);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.15));
    box-shadow: var(--shadow-btn-video, 0 8px 32px rgba(0, 0, 0, 0.5));
    transition: opacity 0.4s ease, transform 0.12s ease-out;
    white-space: nowrap;
}

.video-section:hover .play-cursor-btn {
    opacity: 1;
}

.play-cursor-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Media Queries for Responsive Video */
@media (max-width: 1200px) {
    .video-wrapper {
        width: 95%;
        height: 70%;
    }
}

@media (max-width: 992px) {
    .video-section {
        height: 80vh;
        min-height: 500px;
    }

    .video-wrapper {
        width: 98%;
        height: 60%;
    }

    .video-frame {
        border-radius: 20px;
    }

    .play-cursor-btn {
        font-size: 0.95rem;
        padding: 0.8rem 1.6rem;
    }
}

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

    .video-wrapper {
        width: 100%;
        height: 50%;
    }

    .video-frame {
        border-radius: 16px;
    }

    .play-cursor-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.4rem;
    }
}