/* Video Player Styles - Modern Design 2024 */

/* Video Section */
.video-section {
    background-color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 0;
}

.video-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    z-index: 0;
}

/* Redesigned Video Player */
.video-player-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.video-player-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-player-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.video-is-playing .video-player-container::after {
    opacity: 0;
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
    z-index: 1;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Play Button that will be hidden when video is playing */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.play-button-overlay i {
    color: white;
    font-size: 35px;
    margin-left: 6px; /* Slight offset for play icon */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hide play button when video is playing */
.video-is-playing .play-button-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    transition: opacity 0.3s ease;
    background-color: #000;
}

.video-is-playing .video-thumbnail {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player-container:hover .video-controls {
    opacity: 1;
}

/* CTA Button */
.video-cta-btn {
    margin-top: 30px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: inline-block;
    text-decoration: none;
}

.video-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
}

.video-cta-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.5) 0%, rgba(37, 99, 235, 0) 60%);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-cta-btn:hover::after {
    opacity: 1;
}

.video-section .section-title {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.video-section .section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Loading State */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.is-loading .video-loading {
    opacity: 1;
    visibility: visible;
}

.video-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for video player */
@media (max-width: 991.98px) {
    .video-section {
        padding: 60px 0;
    }
    
    .video-section .section-title {
        font-size: 2.25rem;
    }
    
    .video-section .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .play-button-overlay {
        width: 80px;
        height: 80px;
    }
    
    .play-button-overlay i {
        font-size: 30px;
        margin-left: 5px;
    }
    
    .video-player-container {
        max-width: 700px;
    }
}

@media (max-width: 767.98px) {
    .video-section {
        padding: 40px 0;
    }
    
    .video-section .section-title {
        font-size: 2rem;
    }
    
    .video-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .play-button-overlay {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .play-button-overlay i {
        font-size: 26px;
        margin-left: 4px;
    }
    
    .video-cta-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .video-player-container {
        margin-bottom: 30px;
    }
}

/* Unmute Button */
.unmute-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.5s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-is-muted .unmute-button {
    opacity: 1;
}

.unmute-button:hover {
    background: rgba(37, 99, 235, 0.9);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.unmute-button i {
    margin-right: 8px;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Pulsating effect for unmute button to draw attention */
.video-is-muted .unmute-button {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}