/* Video Player Page Styles */

/* Base Styles - Matching Portfolio */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
}

body {
    background: #ffffff;
    color: #000;
    overflow-x: hidden;
}

/* Navigation - Exact Same as Portfolio */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-logo {
    height: 50px;
}

.logo-img {
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: #cc0000;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    height: 24px;
    width: 30px;
    position: relative;
    z-index: 200;
}

.menu-toggle-label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ff0000;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle-label span:nth-child(1) {
    top: 0px;
}

.menu-toggle-label span:nth-child(2) {
    top: 10px;
}

.menu-toggle-label span:nth-child(3) {
    top: 20px;
}

/* Hamburger Animation */
.menu-toggle:checked + .menu-toggle-label span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle:checked + .menu-toggle-label span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle:checked + .menu-toggle-label span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10%;
}

/* Video Section */
.video-section {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.video-title {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards 0.3s;
}

.video-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ff0000;
}

/* Video Container */
.video-container {
    width: 100%;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards 0.5s;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 9;
}

/* Video Element */
#main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Custom Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 10px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-controls,
.video-controls:hover,
.video-controls.active {
    opacity: 1;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #ff0000;
    border-radius: 5px;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Control Buttons */
.controls-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn:focus {
    outline: none;
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

/* Volume Controls */
.volume-container {
    display: flex;
    align-items: center;
    position: relative;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    margin-left: 0;
}

.volume-container:hover .volume-slider-container {
    width: 80px;
    margin-left: 10px;
}

.volume-slider {
    width: 80px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    border-radius: 5px;
}

/* Video Description */
.video-description {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards 0.7s;
}

.video-description h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #000;
}

.video-description p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.1rem;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.meta-item {
    font-size: 1rem;
    color: #555;
}

.meta-item strong {
    color: #000;
}

.back-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 3px;
}

.back-btn:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    padding: 2rem 10%;
    text-align: center;
    background: #f5f5f5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer .social-icon {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.footer .social-link:hover .social-icon {
    transform: scale(1.2);
    opacity: 1;
}

.copyright {
    font-size: 1rem;
    color: #000;
}

.version {
    color: #ff0000;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Menu Toggle */
    .menu-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* Navigation Links */
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-100%);
        transition: all 0.5s ease;
    }
    
    /* Show mobile menu when checkbox is checked */
    .menu-toggle:checked ~ .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    /* Adjust nav button styling for mobile */
    .nav-btn {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        background-color: transparent;
        color: #000;
        position: relative;
    }
    
    .nav-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #ff0000;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-btn:hover {
        background-color: transparent;
        color: #ff0000;
    }
    
    .nav-btn:hover::after {
        width: 80%;
    }
    
    .nav {
        padding: 1rem 5%;
    }
    
    .container {
        padding: 0 5%;
    }
    
    .video-section {
        padding: 100px 0 60px;
    }
    
    .video-title {
        font-size: 2rem;
    }
    
    .video-meta {
        gap: 1rem;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .video-title {
        font-size: 1.8rem;
    }
    
    .video-controls {
        padding: 10px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .volume-container:hover .volume-slider-container {
        width: 60px;
    }
    
    .volume-slider {
        width: 60px;
    }
}