/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fixed Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    position: relative; /* This is key */
    min-height: 60px;   /* Ensures enough height for the logo */
}

.nav-left { display: flex; justify-content: flex-start; }
.nav-center { display: flex; justify-content: center; }
.nav-right { display: flex; justify-content: flex-end; }

.nav-left {
    display: flex;
    align-items: center;
    z-index: 5;
}

.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* This centers it perfectly regardless of its size */
    display: flex;
    align-items: center;
    z-index: 10;
}

.nav-right { 
    flex: 1;                /* Takes up 1/3 of the space */
    display: flex; 
    justify-content: flex-end; 
}

/* Link styling */
.desktop-nav {
    display: none; /* Hidden on mobile */
    gap: 20px;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex; /* Shown on laptop */
    }
    .mobile-menu-btn {
        display: none;
    }
}

/* Make sure the logo image isn't too huge */
.nav-logo-img {
    height: 40px; 
    width: auto;
}

.logo {
    font-weight: bold;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    color: #000;
}

.logo:hover {
    color: #666;
}

.logo-image-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
    color: #000;
}

.nav-link:hover {
    color: #666;
}

.nav-link.active {
    font-weight: bold;
}

/* Mobile Menu */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: block;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px
    
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s; ease-in-out;
    transform-origin:center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This creates the 3-line look */
    width: 24px;
    height: 18px; /* Height provides the gap between lines */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block; /* Required for width and height to work */
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s ease-in-out;
    transform-origin: center; /* Ensures they rotate around their middle */
}

/* --- THE CRISSCROSS EFFECT --- */

/* 1. Move the top line down and rotate it */
.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

/* 2. Make the middle line disappear */
.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px); /* Optional: slides it left while fading */
}

/* 3. Move the bottom line up and rotate it */
.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.3s;
    color: #000;
    font-size: 1rem;
}

.mobile-nav-link:hover {
    background: #f9f9f9;
}

.mobile-nav-link.active {
    font-weight: bold;
    background: #f5f5f5;
}

/* Page Management */
.page {
    display: none;
    padding-top: 60px;
}

.page.active {
    display: block;
}

/* Parallax Hero Section */
.hero-wrapper {
    position: relative;
    height: 150vh;
    background: #ffffff;
    clip-path: inset(0 0 0 0);
}

.hero-container {
    position:-webkit-sticky;
    position: sticky;
    top:0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    will-change:transform, opacity;
}

.hero-title {
    font-size: clamp(2rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
    mix-blend-mode: normal;
    
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero-name {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em; /* Wide spacing is the key here */
    font-size: 0.7em; /* Make it a bit smaller because it's so wide */
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    margin-top: 1rem;
}

/* Media Nodes */
.media-node {
    position: absolute;
    width: 25vw;
    max-width: 350px; /* Prevents it from getting too big on laptops */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff; /* Sets background to white */
    will-change: transform;
    z-index: 1;
}

/* Laptop Positions */
.pos-top-left     { top: 20%; left: 10%; }
.pos-top-right    { top: 10%; left: auto; right: 10%; }
.pos-bottom-left  { top: 75%; left: 20%; }
.pos-bottom-right { top: 65%; left: auto; right: 10%; }

.media-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-node video {
    width: 100%; !important;
    height: 100%;!important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; !important; /* Laptop: Shows full video with white background */
    background-color: #ffffff; 
    display: block;
}

.media-node.behind {
    z-index: 1;
}

.media-node.in-front {
    z-index: 20;
}

.placeholder {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 0.875rem;
}

/* Scroll Instruction */
.scroll-instruction {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #000;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 30;
}

/* Content After Parallax */
.content-wrapper {
    position: relative;
    z-index: 100;
    background: #ffffff;
    margin-top: -60vh; 
    /* Ensures the shadow/edge looks clean */
    box-shadow: 0 -30px 50px rgba(255,255,255,1); 
    padding-top: 5vh;
}

/* Horizontal Gallery */
.horizontal-section {
    padding: 3rem 0;
    background: #ffffff;
}

.horizontal-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 1.5rem;
    scroll-behavior: smooth;
}

.horizontal-gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex-shrink: 0;
    width: 240px;
    height: 320px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-large {
    width: 320px;
    height: 320px;
}

.gallery-wide {
    width: 384px;
    height: 320px;
}

.gallery-tall {
    width: 208px;
    height: 320px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-hint {
    text-align: center;
    color: #999;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Masonry Grid */
.masonry-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.masonry-item {
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masonry-item.tall {
    grid-row: span 2;
    min-height: 400px;
}

.masonry-item.short {
    min-height: 180px;
}

.masonry-item.medium {
    min-height: 250px;
}

.masonry-item.wide {
    grid-column: span 2;
    min-height: 200px;
}

/* Films Page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
}

.films-grid {
    display: grid;
    gap: 3rem;
}

.film-card {
    border: 1px solid #e5e5e5;
}

.film-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.film-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.film-info {
    padding: 1.5rem;
}

.film-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.film-info p {
    color: #666;
}

/* About Page */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.about-grid {
    display: grid;
    gap: 3rem;
}

.about-photo-section {
    max-width: 400px;
    margin: 0 auto;
}

.about-photo {
    aspect-ratio: 1;
    background: #f5f5f5;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: #666;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #000;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-text p {
    color: #333;
    line-height: 1.8;
}

.contact-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.contact-info {
    color: #333;
    margin-bottom: 0.5rem;
}

.resume-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

.resume-btn:hover {
    background: #4a4a4a;
}

/* Footer */
.footer {
    border-top: 1px solid #e5e5e5;
    padding: 2rem 0;
    margin-top: 3rem;
    background: #ffffff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 2fr;
    }

    .about-photo-section {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .media-node {
        width: 42vw; /* Larger for mobile */
    }

    /* Precision Mobile Placement */
    .pos-top-left { 
        top: 12%; 
        left: 4%; 
    }
    .pos-top-right { 
        top: 5%; 
        left: auto;
        right: 4%; 
    }
    .pos-bottom-left { 
        top: 42%; 
        left: 4%; 
    }
    .pos-bottom-right { 
        top: 38%; 
        left: auto;
        right: 4%; 
    }

    /* Adjust title size for mobile */
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
}
/* New Positions for the 2 Videos */
.pos-middle-left  { top: 40%; left: 5%; }
.pos-middle-right { top: 30%; right: 5%; }

/* Phone Specific Adjustments */
@media (max-width: 767px) {
    .media-node {
        width: 45vw; /* Larger on mobile */
    }
    .media-node video {
        object-fit: cover; !important;
        object-position: center center;
    }
    
    .pos-middle-left { top: 25%; left: 4%; }
    .pos-middle-right { top: 60%; right: 4%; }
}

