.video-section {
    background-color: #030812;
    font-family: sans-serif;
    width: 100%;
    padding: 60px 20px;
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    max-height: 70vh;
    background-color: #060d1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.video-thumbnail.thumbnail-hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.custom-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    background: #000;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.custom-video.video-visible {
    opacity: 1;
    transform: scale(1);
}

.play-btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 5;
    opacity: 1;
    visibility: visible;
}

.play-btn-overlay.btn-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.3);
}

.play-icon-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #009CFE 0%, #0168EF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 156, 254, 0.6), 0 0 60px rgba(0, 156, 254, 0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    padding-left: 6px;
    animation: pulseGlow 2s ease-in-out infinite;
    will-change: transform, box-shadow;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 156, 254, 0.6), 0 0 60px rgba(0, 156, 254, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 156, 254, 0.9), 0 0 80px rgba(0, 156, 254, 0.5);
    }
}

.play-btn-overlay:hover .play-icon-circle {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(0, 156, 254, 1), 0 0 90px rgba(0, 156, 254, 0.6);
}

.play-btn-overlay:active .play-icon-circle {
    transform: scale(0.95);
}

.video-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 8, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.video-loading-overlay.loader-visible {
    opacity: 1;
    visibility: visible;
}

.video-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 156, 254, 0.2);
    border-top: 4px solid #009CFE;
    border-radius: 50%;
    animation: videoLoaderSpin 0.8s linear infinite;
    box-shadow: 0 0 30px rgba(0, 156, 254, 0.4);
}

@keyframes videoLoaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-video:fullscreen {
    object-fit: contain;
    background: #000;
    animation: fullscreenZoomIn 0.5s ease-out;
}

.custom-video:-webkit-full-screen {
    object-fit: contain;
    background: #000;
    animation: fullscreenZoomIn 0.5s ease-out;
}

.custom-video:-moz-full-screen {
    object-fit: contain;
    background: #000;
    animation: fullscreenZoomIn 0.5s ease-out;
}

.custom-video:-ms-fullscreen {
    object-fit: contain;
    background: #000;
}

@keyframes fullscreenZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .video-wrapper {
        height: 450px;
    }

    .play-icon-circle {
        width: 75px;
        height: 75px;
    }

    .video-loader-spinner {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: 40px 15px;
    }

    .video-wrapper {
        height: 280px;
        border-radius: 16px;
    }

    .play-icon-circle {
        width: 60px;
        height: 60px;
    }

    .play-icon-circle svg {
        width: 22px;
        height: 22px;
    }

    .video-loader-spinner {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        height: 220px;
    }

    .play-icon-circle {
        width: 55px;
        height: 55px;
    }
}