/* Enhanced Videos Block - Professional Design */

.section-videos {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Enhanced Background with subtle pattern */
.section-videos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced Small Title */
.videos-small-title {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
}

.videos-small-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.videos-small-title:hover::after {
    width: 60px;
}

/* Enhanced Main Title */
.videos-main-title {
    font-size: 56px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: var(--spacing-4xl);
    text-align: center;
    line-height: 1.1;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}

.videos-main-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.videos-main-title:hover::after {
    width: 160px;
}

/* Enhanced Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-3xl);
    position: relative;
    z-index: 2;
}

/* Enhanced Video Item */
.video-item {
    width: 100%;
    animation: fadeInUp 0.8s ease-out both;
    opacity: 0;
}

.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.2s; }
.video-item:nth-child(3) { animation-delay: 0.3s; }
.video-item:nth-child(4) { animation-delay: 0.4s; }
.video-item:nth-child(5) { animation-delay: 0.5s; }
.video-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    background: var(--color-gray-900);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) rotateY(0deg);
    cursor: pointer;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 47, 93, 0.1) 0%, rgba(250, 204, 110, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.video-wrapper:hover {
    transform: perspective(1000px) rotateY(-2deg) translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-wrapper:hover::before {
    opacity: 1;
}

/* Enhanced Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-wrapper:hover .video-thumbnail::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Enhanced Play Button Overlay */
.play-button-overlay {
    position: relative;
    z-index: 4;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-wrapper:hover .play-button-overlay {
    transform: scale(1.15) rotate(5deg);
    background: var(--color-white);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.play-icon {
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(2px);
}

.video-wrapper:hover .play-icon {
    color: var(--secondary-color);
    transform: translateX(4px) scale(1.1);
}

/* Enhanced Video Elements */
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Video Content */
.video-content {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.video-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.video-item:hover .video-title {
    color: var(--primary-color);
}

.video-description {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    transition: color 0.3s ease;
}

.video-item:hover .video-description {
    color: var(--text-color);
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
    .videos-main-title {
        font-size: 48px;
    }
    
    .videos-grid {
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
    
    .videos-main-title {
        font-size: 44px;
    }
    
    .play-button-overlay {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 991px) {
    .section-videos {
        padding: var(--spacing-4xl) 0;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-2xl);
    }
    
    .videos-main-title {
        font-size: 40px;
        margin-bottom: var(--spacing-3xl);
    }
    
    .play-button-overlay {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 768px) {
    .section-videos {
        padding: var(--spacing-3xl) 0;
    }

    .videos-grid {
        gap: var(--spacing-xl);
    }
    
    .videos-main-title {
        font-size: 36px;
        margin-bottom: var(--spacing-2xl);
    }
    
    .play-button-overlay {
        width: 60px;
        height: 60px;
    }
    
    .video-content {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 576px) {
    .section-videos {
        padding: var(--spacing-2xl) 0;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .videos-main-title {
        font-size: 32px;
        margin-bottom: var(--spacing-2xl);
    }
    
    .videos-small-title {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-sm);
    }
    
    .play-button-overlay {
        width: 55px;
        height: 55px;
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    .video-wrapper,
    .play-button-overlay,
    .videos-small-title,
    .videos-main-title {
        animation: none !important;
        transition: none !important;
    }
    
    .video-wrapper:hover {
        transform: none;
    }
    
    .video-wrapper:hover .play-button-overlay {
        transform: none;
    }
}

/* Enhanced Focus States */
.video-wrapper:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 4px;
}

.play-button-overlay:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .video-wrapper {
        border: 3px solid var(--text-color);
    }
    
    .play-button-overlay {
        border: 3px solid var(--text-color);
    }
} 