/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #0a0a0a; /* Deep Cinematic Black */
    --text-color: #f0f0f0;
    --accent-color: #888;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { width: 100%; display: block; }

/* --- NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    
    /* FIX: Semi-transparent background for clear distinction */
    background: rgba(0, 0, 0, 0.85); 
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    border-bottom: 1px solid white;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger { 
    display: none; 
    cursor: pointer; 
    position: relative; /* Set stacking context */
}
.bar { display: block; width: 25px; height: 2px; margin: 5px auto; background-color: white; transition: var(--transition); }

/* --- HOME PAGE (HERO) --- */
.hero-container {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6; 
}

.hero-overlay {
    text-align: center;
    z-index: 2;
}

.hero-overlay h1 {
    font-size: 4rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-overlay p {
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- GENERIC PAGE PADDING --- */
.page-container {
    padding: 8rem 3rem 3rem 3rem; 
    max-width: 1600px;
    margin: 0 auto;
}

/* --- PROJECTS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover img { transform: scale(1.05); }
.project-card:hover .project-info { opacity: 1; }

.project-info h3 { text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
.project-info span { font-size: 0.8rem; letter-spacing: 1px; color: #ccc; }

/* --- STILLS MASONRY (CSS COLUMNS) --- */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: var(--transition);
}

.masonry-item:hover { opacity: 1; transform: translateY(-2px); }

/* --- CONTACT LAYOUT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.portrait img {
    filter: grayscale(100%);
    transition: var(--transition);
}
.portrait img:hover { filter: grayscale(0%); }

.bio h2 { font-size: 2rem; margin-bottom: 1.5rem; letter-spacing: 2px; }
.bio p { margin-bottom: 2rem; color: #ccc; max-width: 500px; }

.contact-links a {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.contact-links i { width: 30px; }

/* ---------------------------------- */
/* --- RESPONSIVENESS (MOBILE) --- */
/* ---------------------------------- */
@media (max-width: 768px) {
    header { padding: 1.5rem; }
    
    /* FIX: Ensures the hamburger is clickable by forcing fixed position and high z-index */
    .hamburger { 
        display: block; 
        z-index: 200; 
        position: fixed; /* Crucial for clickability over other fixed elements */
        right: 1.5rem; 
        top: 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        z-index: 150;
        mix-blend-mode: normal; 
    }

    .nav-links.active { left: 0; }
    
    /* Hamburger to X animation */
    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-overlay h1 { font-size: 2.5rem; }
    
    .projects-grid { grid-template-columns: 1fr; }
    
    .masonry-grid { column-count: 1; }
    
    .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .portrait { order: -1; } 
}
