﻿/* GLOBAL RESET & VARIABLES */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Ysabeau', sans-serif; /* Kept your font choice */
    --font-mono: 'Courier New', Courier, monospace; /* For futuristic accents */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    
    /* NEW: Flex layout to handle footer positioning */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: 1.5rem; border-left: 1px solid var(--accent-color); padding-left: 15px; }
p { font-size: 1.1rem; color: #aaa; max-width: 700px; }
a { text-decoration: none; color: var(--text-color); transition: 0.3s; }

/* NAVIGATION - FUTURISTIC HEADER */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end; /* Logo is fixed absolute, links right */
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    backdrop-filter: blur(5px);
}

.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    filter: invert(1); /* Inverts black logo to white */
    z-index: 1001;
    transition: transform 0.5s ease;
}
.logo:hover { transform: rotate(180deg); }

nav a {
    font-family: var(--font-mono);
    font-size: 14px;
    margin-left: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    opacity: 0.7;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover { opacity: 1; }
nav a:hover::after { width: 100%; }

/* CONTAINER & ANIMATIONS */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 50px 20px;
    
    /* NEW: This pushes the footer down */
    flex: 1;
    
    /* REMOVED: min-height: 100vh (this was causing the scrolling issue) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HOME PAGE specific */
.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Darken video slightly */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    mix-blend-mode: exclusion; /* Artistic effect */
}

.buy-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    font-family: var(--font-mono);
    transition: all 0.4s ease;
}

.buy-button:hover {
    background: #fff;
    color: #000;
    letter-spacing: 6px;
}

/* WORKS PAGE - Modern Grid */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.project-box {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 60px;
}

.project-info {
    flex: 1;
    min-width: 300px;
}

.image-container {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.project-img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Custom Navigation Arrows */
.nav-arrow {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 15px;
}
.nav-arrow:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

/* MODAL */
.modal {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}
.modal img {
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

/* CONTACT & ABOUT */
.social-links a svg {
    fill: #fff;
    transition: 0.3s;
}
.social-links a:hover svg {
    fill: #aaa;
    transform: translateY(-5px);
}

/* UPDATE FOOTER BLOCK */
footer {
    background-color: transparent; /* or var(--bg-color) if you want it solid */
    color: #555;
    border-top: 1px solid #111;
    font-size: 12px;
    font-family: var(--font-mono);
    padding: 30px 0; /* Reduced slightly for better look */
    margin-top: auto; /* Ensures it stays at bottom */
    width: 100%;
    text-align: center; /* ESSENTIAL: Centers the text */
    z-index: 10;
}

/* AUDIO CONTROLS */
.audio-controls {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
}

/* DEFAULT DESKTOP VIDEO STYLE */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%) scale(1.2); /* Scale ensures no edges show */
    pointer-events: none;
    object-fit: cover;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    nav {
        justify-content: center;
        padding: 15px;
        background: #000;
    }
    
    nav a {
        font-size: 11px;
        margin: 0 8px;
    }

    h1 { font-size: 2rem; }

    /* STACK LAYOUT: Image on top, text below */
    .project-box {
        flex-direction: column-reverse; 
        gap: 20px;
        border-bottom: 1px solid #111; /* Subtle separator */
    }

    .project-info {
        width: 100%;
        text-align: left; /* Keeps text readable */
    }

    /* OVERLAY ARROWS ON IMAGE */
    .image-container {
        position: relative; /* Needed for absolute positioning */
        width: 100%;
        display: block; /* Removes flex gap issues */
    }

    .project-img {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: block;
    }

    .nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        
        /* Make arrows visible on any background */
        background: rgba(0, 0, 0, 0.6); 
        border: 1px solid rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(4px);
        
        /* Size adjustments for touch */
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin: 0;
    }

    /* Position Left Arrow */
    .nav-arrow:nth-child(1) { 
        left: 10px; 
    }

    /* Position Right Arrow */
    .nav-arrow:last-child { 
        right: 10px; 
    }
    
    /* Optional: Active state touch feedback */
    .nav-arrow:active {
        background: #fff;
        color: #000;
    }

    /* ROTATE VIDEO 90 DEGREES FOR MOBILE */
    .bg-video {
        /* We swap dimensions: Width becomes Height (vh), Height becomes Width (vw) */
        width: 100vh; 
        height: 100vw;
        
        /* Center it, Rotate 90deg, and Zoom in slightly to cover black bars */
        transform: translate(-50%, -50%) rotate(90deg) scale(1.4);
    }
}