/* Presentation Video Styles - 2 Column Layout */

/* Section Styles */
.presentation-section {
    padding: 80px 0;
    background: #fff;
}

.presentation {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Two Column Layout */
.presentation__row {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* Left Column - Text Info */
.presentation__info {
    flex: 1;
    min-width: 0;
}

.presentation__info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.presentation__info p {
    text-align: left;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* Presentation List Styles */
.presentation__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.presentation__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.presentation__list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff9500;
    font-weight: bold;
    font-size: 18px;
}

.presentation__list strong {
    color: #333;
    display: inline-block;
    margin-right: 5px;
}

/* Right Column - Video */
.presentation__video {
    flex: 1.2;
    min-width: 0;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.presentation-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

/* Ensure video controls are always visible and clickable */
.presentation-video::-webkit-media-controls {
    z-index: 10;
}

.presentation-video::-webkit-media-controls-timeline,
.presentation-video::-webkit-media-controls-current-time-display,
.presentation-video::-webkit-media-controls-time-remaining-display {
    display: flex !important;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .presentation-section {
        padding: 60px 0;
    }
    
    .presentation__row {
        gap: 40px;
    }
    
    .presentation__video {
        flex: 1;
    }
}

/* Mobile Styles - Stack Vertically */
@media (max-width: 768px) {
    .presentation-section {
        padding: 40px 0;
    }
    
    .presentation {
        padding: 0 15px;
    }
    
    .presentation__row {
        flex-direction: column;
        gap: 30px;
    }
    
    .presentation__info {
        text-align: center;
        width: 100%;
    }
    
    .presentation__video {
        width: 100%;
    }
    
    .video-container {
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .presentation {
        max-width: 1600px;
    }
    
    .presentation__row {
        gap: 80px;
    }
}

/* Video Controls Enhancement */
.presentation-video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.presentation-video::-webkit-media-controls-play-button,
.presentation-video::-webkit-media-controls-mute-button,
.presentation-video::-webkit-media-controls-fullscreen-button {
    filter: brightness(1.2);
}

/* Loading Animation */
.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff9500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    display: none;
}

.video-container.loading::before {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus Styles for Accessibility */
.presentation-video:focus {
    outline: 3px solid #ff9500;
    outline-offset: 3px;
    border-radius: 12px;
}

/* Hover Effect for Desktop */
@media (hover: hover) and (min-width: 1024px) {
    .video-container {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .video-container:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    }
}

/* Video Loading Indicator */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 12px;
}

.loading-progress {
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.loading-text {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    display: block;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: #ff9500;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.loading-percent {
    color: #ff9500;
    font-size: 18px;
    font-weight: bold;
}

/* Remove click prevention when video is loading */
.video-container.loading .presentation-video {
    pointer-events: none;
}