/* --- RESET & VARIABLES --- */
:root {
    /* DARK MODE PALETTE */
    --bg-color: #0b0b0b;      /* Deep Charcoal/Black */
    --text-main: #f5f5f7;     /* Off-White for readability */
    --text-light: #a1a1a6;    /* Soft Gray for secondary text */
    --accent: #2997ff;        /* Apple Blue (Lighter for dark backgrounds) */
    --padding-x: 8%;
    --font-main: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    position: relative;
    overflow-x: hidden;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img, video { display: block; width: 100%; height: auto; }

/* --- 1. ELEGANT NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    padding: 0 6%;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    z-index: 2001;
    transition: 0.4s ease;
    
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%) !important;
    box-shadow: none !important;
}

.nav .links {
    margin-left: auto;
    display: flex;
    gap: 50px;
}

.menu-btn {
    display: none; 
}

/* NAV BAR SCROLL EFFECT (Dark Glass) */
.nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: -1;
    opacity: 0;
    animation: nav-bg-fade linear both;
    animation-timeline: scroll();
    animation-range: 0 500px; 
}

@keyframes nav-bg-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.nav .icon {
    display: flex;
    align-items: center;
    height: 100%; 
}

.nav .icon a,
.nav .links a {
    color: rgba(255, 255, 255, 0.9); 
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease; 
}

.nav .links a:hover,
.nav .icon a:hover {
    opacity: 1 !important; 
    color: var(--accent); 
    transform: translateY(-2px); 
}

.nav .icon a {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav .links a {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh; 
    width: 100%;
    padding: 0 var(--padding-x);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 500px; 
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: -1;
}

.headline {
    font-size: clamp(1.8rem, 6vw, 6rem); 
    font-weight: 800;
    letter-spacing: 0.1em; 
    text-transform: uppercase;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow-wrap: break-word; 
    word-break: break-word;
}

.intro-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.hero-caption {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    line-height: 1.8;
    letter-spacing: 1px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-primary {
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: white;
    color: black;
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-text {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    transition: 0.3s;
}

.btn-text:hover {
    color: white;
    border-bottom: 1px solid white;
    padding-right: 10px;
}

.scroll-down { bottom: 50px; }
.scroll-down span { width: 30px; height: 30px; border-width: 1px; opacity: 0.6; }

/* --- SECTIONS COMMON --- */
.section-padding { padding: 120px var(--padding-x); }

.section-header { margin-bottom: 80px; text-align: center; }

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main); 
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* --- PROJECTS --- */
.project-strip {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 150px;
}

.project-strip.reverse { flex-direction: row-reverse; }

.project-media {
    flex: 1.5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-media:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(41, 151, 255, 0.15); 
}

.project-info { flex: 1; }

.category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent); 
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-link {
    font-weight: 700;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 5px;
    color: var(--text-main);
}

.btn-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* --- CINEMATICS SECTION --- */
#cinematics {
    position: relative;
    background: radial-gradient(circle at center, #161616 0%, var(--bg-color) 100%);
}

.cinematic-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--bg-color); 
    padding: 120px var(--padding-x) 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 50px;
    color: var(--text-main);
}

.big-mail-link {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 100px;
    color: var(--text-main);
}

.arrow-icon {
    width: 40px;
    transition: transform 0.3s;
    filter: invert(1); 
}
.big-mail-link:hover .arrow-icon { transform: translateX(10px); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333; 
    padding-top: 40px;
}

.links-col a {
    margin-right: 30px;
    font-weight: 500;
    color: var(--text-main);
}
.links-col a:hover { color: var(--accent); }

.faded { color: #555; font-size: 0.9rem; }

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    touch-action: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu a {
    font-size: 2.5rem;
    font-weight: 200;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

.mobile-menu.active a { opacity: 1; transform: translateY(0); }
.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu a:hover {
    color: var(--accent);
    letter-spacing: 8px;
}

body.no-scroll { overflow: hidden; }

/* --- RESPONSIVE MOBILE MEDIA QUERIES --- */
@media (max-width: 900px) {
    /* 1. Nav & Menu */
    .nav .links { display: none; }
    
    .menu-btn { 
        display: flex;         
        align-items: center;      
        justify-content: center;   
        width: 40px;           
        cursor: pointer;
        margin: 0; 
    }

    /* Burger Icon Styles */
    .menu-btn .burger {
        width: 24px; height: 2px; background-color: white; position: relative; transition: all 0.3s ease;
    }
    .menu-btn .burger::before, .menu-btn .burger::after {
        content: ''; position: absolute; width: 24px; height: 2px; background-color: white; left: 0; transition: all 0.3s ease;
    }
    .menu-btn .burger::before { transform: translateY(-7px); }
    .menu-btn .burger::after  { transform: translateY(7px); }
    .menu-btn.open .burger { background: transparent !important; }
    .menu-btn.open .burger::before { transform: rotate(45deg); background: white; }
    .menu-btn.open .burger::after { transform: rotate(-45deg); background: white; }
    
    /* 2. Hero Adjustments */
    .hero-caption { padding: 0 20px; }
    
    /* 3. WORK & CINEMATICS SECTIONS - MOBILE LAYOUT */
    .section-padding {
        padding: 80px 20px; /* Reduced vertical padding */
    }

    /* Stack content vertically */
    .project-strip, 
    .project-strip.reverse {
        flex-direction: column; /* Force Stack */
        gap: 30px; /* Space between image and text */
        margin-bottom: 80px; /* Reduce spacing between projects */
    }

    /* Ensure media is full width */
    .project-media {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9; /* Maintain cinematic ratio */
        flex: none; /* Remove flex sizing */
    }

    /* Adjust text alignment */
    .project-info {
        width: 100%;
        flex: none;
        text-align: left; /* Easier to read on mobile */
    }

    /* Reduce Header sizes for mobile */
    .project-info h3 {
        font-size: 1.8rem; /* Smaller than desktop */
    }
    
    /* Footer Stack */
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
    }
}