:root {
    --bg-color: #0a0a0a;
    --accent: #ffffff;
    --text: #e0e0e0;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
}

/* 1. FULLSCREEN VIDEO (Desktop) */
.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.portfolio-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 2. OVERLAYING NAVIGATION */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    box-sizing: border-box;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.logo {
    font-weight: 1000;
    letter-spacing: 4px;
    color: #ffffff;
}

.sub-logo {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    text-transform: uppercase;
}  

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* 3. PROJECT INFO (Bottom Left) */
.project-info {
    color: #ffffff;
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.project-info h3 {
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.description {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

/* 4. BUTTONS */
.video-overlay {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 5;
}

.unmute-button {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.unmute-button:hover {
    background: transparent;
    color: black;
    opacity: 0.7;
}

#prv-btn, #nxt-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    color: white;
    font-size: 3rem;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

#prv-btn:hover, #nxt-btn:hover { opacity: 1; }
#prv-btn { left: 50px; }
#nxt-btn { right: 50px; }

/* 5. ANIMATIONS */
@keyframes color-flicker {
    0%, 100% {
        color: #ffffff; 
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    50% {
        color: #ff0000; 
        text-shadow: none;
    }
}

/* Logic for Muted State */
.is-muted .unmute-button {
    animation: color-flicker 2s linear infinite;
}

.is-unmuted .unmute-button {
    animation: none;
    color: #ffffff;
}

/* --- MOBILE REFINEMENTS (Max-width 768px) --- */
@media (max-width: 480px) {
    body, html {
        overflow-y: auto; 
        height: auto;
    }

    .header-bar {
        position: relative; 
        background: var(--bg-color);
        padding: 20px 15px;
        flex-direction: column;
        gap: 15px;
        z-index: 20;
    }

    .nav-links {
        display: flex;
        gap: 15px;
    }

    .nav-links a {
        margin-left: 0;
    }

    .video-container {
        height: auto; /* Allow container to grow with stacked content */
        display: flex;
        flex-direction: column;
    }

    .portfolio-video {
        position: relative;
        width: 100%;
        height: 56.25vw; /* Fixed 16:9 ratio for mobile video */
    }

    .project-info {
        position: relative; 
        bottom: 0;
        left: 0;
        padding: 30px 20px 10px;
        text-align: center;
    }

    .video-overlay {
        position: relative; 
        bottom: 0;
        right: 0;
        text-align: center;
        margin: 20px 0;
    }

    .unmute-button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .side-controls {
        position: relative;
        display: flex;
        justify-content: center;
        gap: 80px;
        padding-bottom: 50px;
    }

    #prv-btn, #nxt-btn {
        position: static;
        transform: none;
        font-size: 2.5rem;
        opacity: 1;
    }
}