/* --- 1. GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    font-family: 'Helvetica', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
 
/* --- 2. Shared Naivgation --- */
 
.gallery-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background-color: #ffffff; 
    z-index: 1000; 
}
 
.nav-name {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    letter-spacing: -1px;
}
 
.nav-links a {
    text-decoration: none;
    color: #000; /* Ensured pure black */
    margin-left: 30px;
    font-size: 1.4rem;
    font-weight: 700; /* Updated to match name's boldness */
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    opacity: 1; /* Removes any graying effect in the default state */
}
 
.nav-links a:hover {
    opacity: 0.5; /* Retains the visual feedback on hover */
}
 
/* --- 3. SPLASH PAGE (index.html) --- */
.splash-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Restore your background image here */
    background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.05)), 
                url('Splash_background.png') no-repeat center center;
    background-size: cover;
    text-align: center;
}
 
.splash-link {
    text-decoration: none;
    color: #000;
}
 
.splash-title {
    font-size: 5rem;
    font-weight: 700;
    /* Tight initial spacing */
    letter-spacing: 2px; 
    text-transform: none;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}
 
/* The hover effect on the name itself */
.splash-link:hover .splash-title {
    letter-spacing: 4px; /* The expansion as you hover */
    opacity: 0.6; /* Subtle fade to signal it's clickable */
}
 
/* Ensure it stacks correctly on mobile */
@media (max-width: 768px) {
    .splash-title {
        font-size: 3rem;
        letter-spacing: -2px;
    }
}
 
/* --- 4. FILM PAGE (gallery.html) --- */
.project-room {
    margin-top: 120px;
    margin-bottom: 100px;
    padding: 0 40px;
}
 
.video-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}
 
.work-display {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 2px;
}
 
.project-video {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
 
.video-link:hover .project-video {
    transform: scale(1.02);
}
 
.project-content {
    max-width: 1200px;
    margin: 4px auto 0;
    font-size: 0.95rem;
    font-weight: 300;
    color: #333;
}
 
.project-logline {
    margin-top: 3.2px;
    font-size: 1.1rem;
    font-weight: 380;
    color: #000;
}
 
/* --- 5. CV PAGE (work.html) --- */
.work-list-container {
    margin-top: 140px;
    padding: 0 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem; /* one step up from the inherited 1rem default; work-year/work-details pick this up automatically */
}
 
.work-section {
    margin-bottom: 60px;
}
 
.section-header {
    font-size: 1.125rem; /* matches .work-list-container's new size, since this rule doesn't inherit it */
    font-weight: 700;
    text-decoration: underline;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
 
.work-row {
    display: grid;
    grid-template-columns: 80px 1fr; 
    margin-bottom: 15px;
}
 
.work-year { font-weight: 400; color: #000; }
.work-details { font-weight: 400; color: #202020; }
.work-details strong { font-weight: 700; }
.work-details em { font-style: italic; }

/* Role color-coding, ordered by importance (Director = most important
   down to Production Assistant = least). Each color is written as
   hsl(hue, saturation%, lightness%):
     - hue picks the color family
     - saturation and lightness control how "loud" or "quiet" it reads
   Sound Designer and Sound Recordist echo Editor's and 1st AC's hues
   at lower saturation, tuned to match the brighter palette below.
   Camera Operator and Producer now sit on their own hue (red) rather
   than echoing Director/DP -- flagged in chat in case that wasn't
   intentional. Tweak any single number to retune that role alone. */
.role-director        { color: hsl(328, 100%, 50%); }  /* hot pink -- most important */
.role-dp               { color: hsl(100, 100%, 50%); }  /* highlighter green */
.role-editor            { color: hsl(48, 100%, 64%); }   /* gold */
.role-1st-ac            { color: hsl(275, 100%, 63%); }  /* purple */
.role-writer             { color: hsl(25, 100%, 56%); }  /* orange */
.role-colorist           { color: hsl(185, 73%, 47%); } /* teal */
.role-camera-operator    { color: hsl(0, 100%, 70%); } /* light red/coral */
.role-producer           { color: hsl(0, 51%, 30%); } /* dark maroon */
.role-sound-designer     { color: hsl(48, 55%, 52%); }  /* mustard, brightened to match the new gold */
.role-sound-recordist    { color: hsl(270, 50%, 70%); } /* lavender, brightened to match the new purple */
.role-production-assistant { color: hsl(210, 15%, 65%); } /* faded slate blue -- restored, still the floor */
 
/* --- 6. ABOUT PAGE (info.html) --- */
.about-container {
    margin-top: 150px;
    margin-bottom: 40px;
    display: flex;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    gap: 80px;
    height: calc(100vh - 190px); /* fits the pane below the fixed nav so it doesn't grow the page */
}
 
.about-image { flex: 0 0 40%; height: 100%; } /* 40% Width as requested, pinned to the pane height */
.about-text {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto; /* right column scrolls independently */
    padding-right: 16px; /* keeps text clear of the scrollbar */
}

/* Subtle, on-brand scrollbar for the right column */
.about-text {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.25) transparent;
}
.about-text::-webkit-scrollbar { width: 6px; }
.about-text::-webkit-scrollbar-track { background: transparent; }
.about-text::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.25);
    border-radius: 3px;
}
 
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills the pinned column height, cropping slightly rather than distorting */
    display: block;
    filter: grayscale(15%);
}
 
.bio-copy {
    margin-top: 0; /* was "auto" — that pushed the bio down to soak up leftover space in the pane */
}

.bio-extra {
    padding-top: 6px;
}
 
.about-video-link {
    display: block;
    cursor: pointer;
}

.video-links {
    margin-top: 8px;
    margin-bottom: 10px;
}
 
.about-video-frame {
    overflow: hidden;
    border-radius: 2px;
}
 
.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills the frame set by JS, cropping edges rather than stretching the footage */
    display: block;
}
 
.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    font-weight: 300;
}
 
.email-display {
    font-size: 1rem;
    margin-bottom: 5px;
}
 
.email-display strong {
    font-weight: 700; /* Bolding the word "email" */
}
 
.contact-info a {
    display: inline-block;
    margin-right: 25px;
    margin-top: 4px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: opacity 0.3s ease;
}
 
.contact-info a:hover {
    opacity: 0.5; /* Keeps the visual feedback since the underline is gone */
}
 
/* --- 7. RESPONSIVE DESIGN (Mobile) --- */
@media (max-width: 768px) {
    .gallery-nav { padding: 20px; }
    .nav-name { font-size: 1.4rem; }
    .nav-links a { margin-left: 15px; font-size: 0.9rem; }
 
    .about-container {
        flex-direction: column;
        margin-top: 100px;
        gap: 40px;
        padding: 0 20px;
        height: auto; /* let the stacked layout grow with the page instead of scrolling internally */
    }
    .about-image, .about-text {
        flex: 0 0 100%;
        height: auto;
        overflow-y: visible;
        padding-right: 0;
    }
    .about-image img { height: auto; object-fit: unset; } /* show the full portrait, uncropped, when stacked */
    
    .work-row { grid-template-columns: 60px 1fr; }
    .splash-title { font-size: 2.5rem; }
}