:root {
    --bg: #0b0b0b;
    --text: #ffffff;
    --accent: #e1ff00; 
    --dim: #777;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- SPLIT LAYOUT --- */
.split-container {
    display: flex;
    min-height: 100vh;
}

.left-pane {
    width: 40%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Links at top, Name at bottom */
    border-right: 1px solid rgba(255,255,255,0.1);
    background: var(--bg);
    z-index: 10;
}

.right-pane {
    width: 60%;
    margin-left: 40%;
    padding: 60px;
}

/* --- LEFT SIDE NAVIGATION --- */
.logo {
    font-family: 'Syne';
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.nav-label {
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: 'Syne';
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: var(--dim);
    font-size: 0.75rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.nav-links a:hover {
    color: var(--text);
    padding-left: 10px;
}

.nav-spacer {
    flex-grow: 1;
    min-height: 20px; /* Pushes the contact and socials toward the bottom */
}

/* --- LEFT SIDE HERO AREA --- */
.hero-static h1 {
    font-family: 'Syne';
    font-size: clamp(2.5rem, 5vw, 6rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
}

.accent-title {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}

.accent-title {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default; /* Keeps the arrow pointer, or change to 'pointer' if you want it to look clickable */
}

.accent-title:hover {
    color: var(--accent);
    -webkit-text-stroke: 1px var(--accent);
    text-shadow: 0 0 20px rgba(225, 255, 0, 0.4); /* Subtle glow based on your --accent color */
}

.hero-info {
    margin-top: 20px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--dim);
}

.bottom-nav { margin-top: 30px; }

.back-to-top {
    font-family: 'Syne';
    font-size: 0.6rem;
    color: var(--dim);
    text-decoration: none;
    letter-spacing: 2px;
    opacity: 0.5;
    transition: 0.3s;
}

.back-to-top:hover { opacity: 1; color: var(--accent); }

/* --- RIGHT SIDE WORK --- */
.work-item { margin-bottom: 15vh; }

.video-aspect-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-aspect-box iframe {
    position: absolute;
    top:0; left:0; width: 100%; height: 100%;
}

.work-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

h3 { font-family: 'Syne'; font-size: 1rem; text-transform: uppercase; }
p { font-size: 0.7rem; color: var(--dim); }

.huge-link {
    font-family: 'Syne';
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: var(--text);
    text-decoration: none;
    transition: 0.3s;
}
.huge-link:hover { color: var(--accent); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .split-container { flex-direction: column; }
    .left-pane { position: relative; width: 100%; height: auto; padding: 40px 20px; }
    .right-pane { width: 100%; margin-left: 0; padding: 20px; }
    .nav-spacer { height: 20px; }
}

/* GRAIN */
.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9999;
    pointer-events: none;
    /* REDUCED OPACITY: 0.02 is very subtle, 0.03 is standard */
    opacity: 0.025; 
    /* UPDATED SVG: baseFrequency='0.85' makes the grain much smaller/finer */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain-flicker 0.15s steps(2) infinite;
}
@keyframes grain-flicker {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-1%, -1%); }
    50% { transform: translate(1%, 0.5%); }
    75% { transform: translate(-0.5%, 1%); }
    100% { transform: translate(0, 0); }
}

.scroll-top-wrap {
    padding: 10vh 0 5vh;
    text-align: right; /* Aligns it with the edge of your videos */
}

.back-to-top {
    font-family: 'Syne';
    font-size: 0.65rem;
    color: var(--dim);
    text-decoration: none;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: 0.3s ease;
}

.back-to-top:hover {
    opacity: 1;
    color: var(--accent);
}

/* --- SCROLL REVEAL ANIMATION --- */

/* 1. Set the initial state (invisible and slightly lower) */
.work-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. The 'Active' state when the item is in view */
.work-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* --- PROJECT HOVER EFFECTS --- */

/* When the user hovers over the work item... */
.work-item:hover .number {
    color: var(--text); /* Changes from accent color to pure white */
    text-shadow: 0 0 10px var(--accent); /* Adds a small neon glow */
    transform: scale(1.1); /* Slightly grows the number */
}

.work-item:hover h3 {
    color: var(--accent); /* Title turns your accent color */
    transition: 0.4s ease;
}

/* Ensure the number has a transition so it doesn't snap */
.number {
    display: inline-block; /* Allows transform/scale to work */
    transition: all 0.4s ease;
}

.video-aspect-box iframe {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover .video-aspect-box iframe {
    transform: scale(1.03); /* Very subtle zoom-in */
}

.left-pane {
    animation: fade-in-left 1.2s ease forwards;
}

.hero-static {
    position: relative;
    z-index: 10000; /* Lifts the text above the grain so it's clickable/hoverable */
}

@keyframes fade-in-left {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* DESKTOP: Hide the button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 900px) {
    .logo-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-toggle {
        display: block; /* Show button on mobile */
    }

    .line {
        display: block;
        width: 20px;
        height: 1px;
        background-color: var(--text);
        margin: 5px 0;
    }

    /* Collapse the menu by default on mobile */
    .nav-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    /* Expand when the 'active' class is added via JavaScript */
    .nav-links.active {
        max-height: 400px;
        margin-top: 20px;
    }
}

/* --- ABOUT PAGE SPECIFICS --- */
.about-content {
    max-width: 800px;
}

.about-section {
    margin-bottom: 100px;
}

.section-label {
    font-family: 'Syne';
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.bio-text {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.exp-item {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.exp-item h3 {
    font-size: 1.2rem;
    margin: 5px 0;
}

.year {
    font-size: 0.7rem;
    color: var(--dim);
    font-family: 'Syne';
}

.caps-list {
    list-style: none;
}

.caps-list li {
    font-family: 'Syne';
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.active-link {
    color: var(--text) !important;
    border-left: 1px solid var(--accent);
    padding-left: 10px;
}

/* --- PROFILE PHOTO --- */
.profile-wrap {
    margin-bottom: 80px;
}

.photo-frame {
    position: relative;
    width: 100%;
    max-width: 600px; /* Adjust based on how large you want the headshot */
    aspect-ratio: 4 / 5; /* Classic cinematic framing */
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures your face doesn't stretch */
    filter: grayscale(20%) contrast(110%); /* Subtle filmic grade */
    transition: transform 1.2s ease;
}

.photo-frame:hover .profile-img {
    transform: scale(1.05); /* Very slow, subtle zoom on hover */
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4));
    pointer-events: none;
}

.photo-caption {
    font-family: 'Syne';
    font-size: 0.6rem;
    color: var(--dim);
    margin-top: 15px;
    letter-spacing: 2px;
}

/* --- GLOBAL NAVIGATION LOCK --- */

.sidebar-top {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Update the wrapper to allow two lines of text */
.logo-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Aligns toggle button to the top of the logo */
    height: auto; 
    margin-bottom: 40px;
}

/* Optional: Make the subtitle light up when you hover over the logo area */
.logo-container:hover .logo-subtitle {
    color: var(--accent);
}

.logo {
    font-family: 'Syne';
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1; /* Removes extra vertical space */
    margin-bottom: 2px; /* Small, controlled gap */
    color: var(--text);
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem; /* Slightly smaller for better contrast */
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
    margin-top: 0; /* Ensures it sits as close as possible */
}

.logo-container {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px; /* This is the master control for the gap between the two lines */
}

/* Page-specific active states */
body#work-page .work-link,
body#about-page .about-link {
    color: var(--text);
    border-left: 1px solid var(--accent);
    padding-left: 10px;
}

/* Ensure all nav items have the same base properties */
.nav-item {
    transition: all 0.3s ease;
    border-left: 1px solid transparent; /* Prevents shifting when border appears */
}

/* --- ACTIVE PAGE HIGHLIGHT --- */

/* 1. Reset standard state for navigation items */
.nav-item {
    color: var(--dim);
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Highlight 'Work' when on the Work page */
body#work-page .work-link {
    color: var(--text);
    border-left: 2px solid var(--accent);
    padding-left: 12px;
    pointer-events: none; /* Disables clicking the link for the page you're already on */
}

/* 3. Highlight 'About' when on the About page */
body#about-page .about-link {
    color: var(--text);
    border-left: 2px solid var(--accent);
    padding-left: 12px;
    pointer-events: none;
}

/* Keep project jumps subtle so they don't compete with the main menu */
.project-jumps a {
    opacity: 0.6;
    padding-left: 14px; /* Align them under the 'Work' text */
}

.project-jumps a:hover {
    opacity: 1;
    color: var(--accent);
}

.social-wrapper {
    display: flex;
    gap: 20px; /* Spacing between IG and YT */
    margin-top: 25px; /* Space above the social row */
}

/* Adjusting the social-link to work in a row */
.social-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: var(--dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

.social-link .arrow {
    font-size: 0.6rem;
    margin-left: 4px;
    opacity: 0.5;
}

/* Mobile Tweak: Ensure they have room at the bottom of the pull-down menu */
@media (max-width: 900px) {
    .social-wrapper {
        margin-top: 35px;
        padding-bottom: 30px; 
    }
}