:root {
    --text-color: #f0f0f0;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: #000000;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

/* --- CUSTOM CURSOR --- */
.cursor-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    /* Above lightbox */
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    /* Smooth follow via CSS if GSAP fails, but GSAP overwrites usually */
    mix-blend-mode: difference;
}

.cursor-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    /* Above lightbox */
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-outer.active {
    /* Scale handled by GSAP */
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

.cursor-text {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10001;
    /* Match cursor z-index */
    color: var(--text-color);
    font-size: 0.75rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    transform: translate(20px, 20px);
    /* Offset from the cursor dot */
    opacity: 0;
    /* Hidden by default */
    mix-blend-mode: difference;
    transition: opacity 0.3s ease;
}

/* --- STATIC BACKGROUND WITH GRAIN --- */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #000000;
}

/* Grain Overlay */
.gradient-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Noise Data URI - Optimized Tiled Noise */
    /* We use a smaller pattern and repeat it, which is much faster than full-screen generation */
    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='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    /* Tiling behavior */
    opacity: 0.12;
    pointer-events: none;
    mix-blend-mode: normal;
    /* Removed CSS filter: grayscale(100%) for performance (handled in SVG) */
}


/* --- SECTIONS --- */
.section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Typography */
/* Typography - Keeping existing classes for other sections if needed, but adding Hero specifics */
.main-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-style: italic;
    opacity: 0.9;
    color: var(--text-color);
}

/* --- HERO SECTION STYLES --- */
.hero-section {
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Hero Header */
.hero-header {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 100;
    /* Ensure it stays on top of video/content */
}

.hero-header>* {
    pointer-events: auto;
}

.icon-plus,
.icon-phone {
    font-size: 1.5rem;
    opacity: 0.8;
    color: var(--text-color);
}

.hero-nav {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    /* Glass effect */
    padding: 12px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.hero-nav a:hover {
    opacity: 1;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 50%;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 6rem;
    line-height: 1.1;
    font-weight: 400;
    margin: 0;
    background: linear-gradient(to bottom, #ffffff, #aaaaaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.95;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Helps on varying backgrounds */
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-top: -10px;
}

.hero-cta {
    margin-top: 2rem;
    background-color: var(--text-color);
    color: #000;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hero Footer */
.hero-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0.5;
    text-transform: uppercase;
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.narrative-text {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-align: center;
    padding: 20px;
    color: var(--text-color);
}

.small-width {
    max-width: 600px;
    margin: 0 auto;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }

    .narrative-text {
        font-size: 1.8rem;
    }
}

/* --- GALLERY REVEAL (Restored) --- */
.gallery-reveal {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gallery-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gallery-item {
    position: absolute;
    width: 300px;
    height: 400px;
    opacity: 0;
    /* Hidden initially */
    transform: scale(0.8);
    transition: opacity 0.5s ease;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    /* Match the vibe */
    transition: filter 0.5s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%) contrast(1);
}

/* Random-ish positions for organic feel */
.item-1 {
    top: 10%;
    left: 5%;
    width: 25vw;
    height: 35vh;
}

.item-2 {
    top: 20%;
    right: 10%;
    width: 20vw;
    height: 30vh;
    z-index: 2;
}

.item-3 {
    bottom: 15%;
    left: 15%;
    width: 22vw;
    height: 28vh;
    z-index: 3;
}

.item-4 {
    bottom: 5%;
    right: 20%;
    width: 28vw;
    height: 40vh;
}

.item-5 {
    top: 40%;
    left: 40%;
    width: 18vw;
    height: 25vh;
    z-index: 1;
}

.item-6 {
    top: 5%;
    left: 60%;
    width: 15vw;
    height: 20vh;
    opacity: 0;
}

/* Extra small one */

.gallery-cta {
    z-index: 100;
    opacity: 0;
    margin-top: 20px;
}

.explore-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(5px);
}

.explore-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}



/* --- WRAPPED HORIZONTAL LAYOUT --- */
.horizontal-outer {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin-top: -10vh;
    /* Overlap slightly */
}

.horizontal-inner {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    width: max-content;
    /* Will contain both sections side by side */
    will-change: transform;
}

/* Panel 1: Tunnel Reveal (3D) */
.gallery-reveal {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    overflow: hidden;
    background-color: transparent;
    /* Allow global grain to show through */
}

.tunnel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1000px;
    /* The camera lens */
    transform-style: preserve-3d;
}

.tunnel-track {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    /* We will animate 'z' or 'transform' via GSAP to move forward */
}

.tunnel-item {
    position: absolute;
    width: 45vw;
    height: 30vw;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Positioning items in 3D Space (Scatter pattern) */
/* XY positions are offsets from center, Z is depth (negative is further away) */

.t-1 {
    transform: translate3d(-80%, -60%, 0px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Capybara ©Jeanne Chadeyras.jpg");
}

.t-1 {
    transform: translate3d(-80%, -60%, 0px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Coatis ©Jeanne Chadeyras.JPG");
}

.t-1 {
    transform: translate3d(-80%, -60%, 0px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Capybara ©Jeanne Chadeyras.JPG");
}

.t-2 {
    transform: translate3d(60%, 40%, -400px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Coatis ©Jeanne Chadeyras.JPG");
}

.t-3 {
    transform: translate3d(-70%, 50%, -800px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Guanaco ©Jeanne Chadeyras.JPG");
}

.t-4 {
    transform: translate3d(50%, -50%, -1200px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Jaguars 5 ©Jeanne Chadeyras.jpg");
}

.t-5 {
    transform: translate3d(-30%, -20%, -1600px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Jaguars 6 ©Jeanne Chadeyras.jpg");
}

.t-6 {
    transform: translate3d(40%, 10%, -2000px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Jaugars 3 ©Jeanne Chadeyras.JPG");
}

.t-7 {
    transform: translate3d(-60%, 60%, -2400px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Jaugars 4 ©Jeanne Chadeyras.JPG");
}

.t-8 {
    transform: translate3d(70%, -40%, -2800px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Jaugars ©Jeanne Chadeyras.JPG");
}

/* New items for density */
.t-9 {
    transform: translate3d(-50%, -70%, -3200px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Manchots 2 ©Jeanne Chadeyras.JPG");
}

.t-10 {
    transform: translate3d(80%, 20%, -3400px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Manchots ©Jeanne Chadeyras.jpg");
}

.t-11 {
    transform: translate3d(-20%, 50%, -3600px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Nandou ©Jeanne Chadeyras.JPG");
}

.t-12 {
    transform: translate3d(40%, -60%, -3800px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Perroquet 10 ©Jeanne Chadeyras.JPG");
}

.t-13 {
    transform: translate3d(-70%, -30%, -4000px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Perroquet 2 ©Jeanne Chadeyras.jpg");
}

.t-14 {
    transform: translate3d(60%, 60%, -4200px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Perroquet 3 ©Jeanne Chadeyras.jpg");
}

.t-15 {
    transform: translate3d(-40%, 40%, -4400px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Perroquet 7 ©Jeanne Chadeyras.JPG");
}

.t-16 {
    transform: translate3d(30%, -50%, -4600px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Perroquet 8 ©Jeanne Chadeyras.JPG");
}

.t-17 {
    transform: translate3d(-80%, 10%, -4800px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Perroquet 9 ©Jeanne Chadeyras.JPG");
}

.t-18 {
    transform: translate3d(70%, -20%, -5000px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - Perroquet ©Jeanne Chadeyras.jpg");
}

.t-19 {
    transform: translate3d(-30%, 70%, -5200px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - mouton 2 ©Jeanne Chadeyras.JPG");
}

.t-20 {
    transform: translate3d(50%, -80%, -5400px);
    background-image: url("assets/Photos/Photos tunnel/Parrot World - mouton 3 ©Jeanne Chadeyras.JPG");
}

/* --- HORIZONTAL GALLERY UI --- */

/* The UI Overlay (Fixed on top of scroll) */
.h-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    padding: 40px;
    box-sizing: border-box;
    opacity: 0;
    /* Hidden during tunnel phase */
}

.h-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.h-big-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-family: var(--font-serif);
    font-size: 4rem;
    /* Big like "OUR TEAM" */
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    mix-blend-mode: difference;
}

.h-services {
    position: absolute;
    bottom: 40px;
    right: 40px;
    text-align: right;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* The Strip */
.gallery-horizontal {
    width: auto;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    /* Vertically center the strip */
    margin: 0;
    padding-left: 20vw;
    /* Start with some space */
    background: transparent;
    position: relative;
    z-index: 5;
}

.gallery-track {
    display: flex;
    gap: 2px;
    /* Very tight gap or no gap like film strip? Ref shows small gap or squares */
    align-items: center;
}

.gallery-item-h {
    position: relative;
    width: 300px;
    /* Fixed width for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    opacity: 0.5;
    /* Fade out non-active */
    transform-origin: center center;
}

.img-wrapper {
    width: 250px;
    height: 250px;
    /* Square by default */
    overflow: hidden;
    margin: 10px 0;
    transition: all 0.5s ease;
}

.gallery-item-h img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

/* Text elements - initially hidden or subtle */
.item-id,
.item-cat {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 5px 0;
}

/* GALLERY INTRO TEXT */
.gallery-intro-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    /* Slightly offset for fade-in animation */
    width: 80vw;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center horizontally */
    text-align: center;
    /* Center text */
    color: var(--text-color);
    opacity: 0;
    /* Hidden initially, controlled by GSAP */
    z-index: 20;
    pointer-events: none;
    /* Let clicks pass through to gallery if needed */
}

.gallery-intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
    max-width: 600px;
}

/* HOVER / ACTIVE STATE */
.gallery-item-h:hover {
    opacity: 1;
    transform: scale(1.1);
    z-index: 10;
}

.gallery-item-h:hover .img-wrapper {
    height: 350px;
    /* Stretch to portrait on hover */
    width: 250px;
}

/* GALLERY CTA ITEM (Discover more) */
.gallery-cta-item {
    opacity: 1;
    /* Always visible */
    transform: none !important;
}

.gallery-cta-item:hover {
    transform: scale(1.05) !important;
}

.cta-circle-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.circle-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: transparent;
}

.cta-circle-link:hover .circle-btn {
    background: #ffffff;
    color: #000000;
    transform: scale(1.1);
}

.cta-text {
    opacity: 0.7;
    margin-top: 40px;
    /* Increased space */
    transition: opacity 0.3s ease;
}

.cta-circle-link:hover .cta-text {
    opacity: 1;
}

.gallery-item-h:hover img {
    filter: grayscale(0%);
}

.gallery-item-h:hover .item-id,
.gallery-item-h:hover .item-cat {
    opacity: 1;
}

/* The Big Initial Item - REMOVED */
/* All items are now uniform until hover */

/* --- ABOUT ME SECTION --- */
.about-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5vw;
    background-color: transparent;
    /* Or black if needed */
    position: relative;
    z-index: 5;
}

.about-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    /* Responsive wrap */
}

.about-photo {
    width: 400px;
    /* Fixed width base */
    height: 500px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    /* Slight radius */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-photo:hover {
    filter: grayscale(0%);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex: 1;
    min-width: 300px;
    color: var(--text-color);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

.about-content h3 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.1;
    text-transform: uppercase;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
    max-width: 600px;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-photo {
        width: 80vw;
        height: 80vw;
        max-width: 400px;
        max-height: 500px;
    }

    .about-content h3 {
        font-size: 2.5rem;
    }
}

/* --- PHOTOGRAPHY INTRO SECTION --- */
.photo-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 100px 10vw 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-intro-img {
    flex: 0 0 400px;
    /* Fixed width for image container */
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.photo-intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-intro-text {
    flex: 1;
    color: var(--text-color);
}

.photo-intro-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 30px;
    font-style: italic;
}

.photo-intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

@media (max-width: 900px) {
    .photo-intro {
        flex-direction: column;
        padding: 100px 5vw 40px;
    }

    .photo-intro-img {
        width: 100%;
        flex: auto;
        height: 60vh;
        max-height: 500px;
    }
}

/* --- MASONRY GALLERY (Photography Page) --- */
.photo-gallery-section {
    padding: 50px 5vw 100px;
    background-color: transparent;
    min-height: 100vh;
}

.photo-gallery {
    column-count: 3;
    /* Desktop: 3 columns */
    column-gap: 20px;
}

.photo-item {
    background-color: #333;
    /* Placeholder gray */
    border-radius: 12px;
    /* Rounded corners */
    margin-bottom: 20px;
    /* Vertical gap */
    width: 100%;
    break-inside: avoid;
    /* Prevent split */
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.photo-item:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
}

/* Simulated Aspect Ratios (Removed - Images now dictate their own height) */

@media (max-width: 900px) {
    .photo-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .photo-gallery {
        column-count: 2;
        column-gap: 10px;
        /* Reduce gap on small screens */
    }
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    width: 80%;
    height: 80%;
    background-color: #444;
    /* Placeholder for image */
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: transform 0.3s ease;
}

/* --- VIDEO PAGE --- */

.video-hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #6a0dad;
    /* Purple Placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    /* Behind nav */
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

.video-content-section {
    padding: 40px 10vw 100px;
    background-color: transparent;
    min-height: 100vh;
    /* margin-top: 100vh; REMOVED */
    position: relative;
    z-index: 1;
    /* Above hero if needed */
}

.video-split-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-text-column {
    flex: 1;
    color: var(--text-color);
    padding-top: 50px;
    /* Align visually with video top */
}

.video-text-column h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.2;
}

.video-text-column p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

.video-vertical-column {
    flex: 0 0 350px;
    /* Width for vertical video */
}

.video-vertical-placeholder {
    width: 100%;
    height: 600px;
    /* Vertical ratio */
    background-color: #6a0dad;
    /* Purple Placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(106, 13, 173, 0.3);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

@media (max-width: 900px) {
    .video-hero-placeholder {
        width: 95vw;
        height: 50vh;
    }

    .video-split-layout {
        flex-direction: column;
    }

    .video-vertical-column {
        width: 100%;
        margin-top: 40px;
    }

    .video-vertical-placeholder {
        height: 80vh;
        /* Full screen height on mobile */
    }
}

/* --- PHONE GALLERY SECTION --- */
.phone-gallery-section {
    padding: 100px 5vw;
    background-color: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Keep thumbnails contained */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 60px;
    font-style: italic;
    color: var(--text-color);
    z-index: 2;
}

.phone-gallery-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Thumbnails (Grid) */
.video-thumbnails-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    /* Wider to cover more space */
    height: 140%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for 8 larger items */
    gap: 40px;
    z-index: 0;
    opacity: 0.6;
}

.video-thumb {
    width: 100%;
    height: 300px;
    /* Taller items */
    background-color: #6a0dad;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: grayscale(100%) brightness(0.6);
    position: relative;
    /* Needed for absolute positioning of pseudo-element */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Ensure inner video stays inside borders */
}

/* Push 6th thumbnail to the far right on desktop (columns 2 & 3 empty for phone) */
@media (min-width: 769px) {
    .video-thumb:nth-child(6) {
        grid-column: 4;
    }
}

/* Inner video background for thumbnails */
.thumb-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    /* Ignore clicks so thumb triggers */
}

/* Play Icon Overlay (Hidden by default) */
.video-thumb::after {
    content: "▶";
    position: absolute;
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.5);
    z-index: 2;
}

.video-thumb:hover {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
    box-shadow: 0 0 20px rgba(106, 13, 173, 0.5);
    z-index: 1;
}

/* Show Play Icon on Hover */
.video-thumb:hover::after {
    opacity: 0.8;
    transform: scale(1);
}

/* Central Phone Mockup */
.phone-mockup {
    position: relative;
    width: 320px;
    /* iPhone width approx */
    height: 650px;
    background-color: #1a1a1a;
    /* Phone Frame */
    border-radius: 40px;
    border: 8px solid #333;
    /* Outer bezel */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 10;
    /* Top layer */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Notch line (optional sim) */
.phone-mockup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.phone-video-placeholder {
    width: 100%;
    height: 100%;
    background-color: #6a0dad;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: opacity 0.3s ease;
}

.play-icon {
    font-size: 3rem;
    margin-top: 10px;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .video-thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* 1. CURSOR */
    .cursor-inner,
    .cursor-outer {
        display: none !important;
        /* Touch devices don't need custom cursor */
    }

    body {
        cursor: auto;
    }

    /* 2. TYPOGRAPHY & SPACING */
    .main-title {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .h-big-title {
        font-size: 2.5rem;
        bottom: 20px;
        left: 20px;
    }

    .h-header {
        top: 20px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        gap: 5px;
    }

    .h-services {
        bottom: 20px;
        right: 20px;
        font-size: 0.6rem;
    }

    /* 3. NAVIGATION (Hamburger Menu) */
    .hero-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        flex-direction: row;
        /* Keep elements inline */
        justify-content: space-between;
        align-items: center;
        gap: 0;
        z-index: 1000;
        background: transparent;
    }

    /* Hamburger Button */
    .mobile-nav-toggle {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 2rem;
        /* Make it slightly bigger */
        color: var(--text-color);
        cursor: pointer;
        z-index: 1002;
        /* Above the open nav */
        pointer-events: auto;
    }

    /* Hide standard nav, turn into fullscreen overlay */
    .hero-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        /* Slightly more opaque */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        font-size: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1001;
        /* Must be below 1002 toggle */
    }

    /* Active state for generic showing */
    .hero-nav.nav-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Reposition icons if needed */
    .icon-plus {
        z-index: 1001;
    }

    .icon-phone {
        display: none;
        /* Hide phone on mobile or move to menu */
    }

    /* 4. INDEX: HORIZONTAL GALLERY (Keep horizontal as requested) */
    .gallery-intro-text {
        width: 90vw;
    }

    /* Fix text overflow on mobile */
    .gallery-intro-text h2 {
        font-size: 1.5rem !important;
        /* Much smaller title */
        margin-bottom: 15px !important;
    }

    .gallery-intro-text p {
        font-size: 0.75rem !important;
        /* Much smaller text */
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .gallery-item-h {
        flex: 0 0 80vw;
        /* Make items take most of screen width */
    }

    /* 5. PHOTOGRAPHY: MASONRY */
    .masonry-grid {
        column-count: 2;
        /* 2 columns on mobile */
        column-gap: 15px;
        padding: 15px;
    }

    .photo-item {
        margin-bottom: 15px;
    }

    .photo-intro {
        flex-direction: column;
        padding: 20px;
        margin-top: 100px;
    }

    .photo-intro-img {
        width: 100%;
        height: 300px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .photo-intro-text {
        width: 100%;
    }

    .video-hero {
        width: 100% !important;
        border-radius: 10px !important;
        max-height: 40vh !important;
    }

    .video-content-section {
        padding: 60px 20px;
        /* Add more vertical padding */
        height: auto;
    }

    .video-split-layout {
        flex-direction: column;
        gap: 40px;
        /* Add gap between text and vertical video placeholder */
    }

    .video-text-column,
    .video-vertical-column {
        width: 100%;
        padding-right: 0;
        /* Remove desktop right padding */
    }

    .video-vertical-column {
        height: 60vh;
        margin-top: 0;
        /* Handled by gap */
    }

    /* PHONE GALLERY FIXES */
    .phone-gallery-section {
        height: auto;
        padding: 60px 20px;
    }

    .phone-gallery-container {
        display: flex;
        flex-direction: column-reverse;
        /* Put the phone on top of the grid */
        height: auto;
        /* CRITICAL: Override 80vh desktop height */
        min-height: auto;
        /* Stack vertically instead of relying on absolute grid */
        align-items: center;
        gap: 30px;
        width: 100%;
        overflow: visible;
        /* Prevent clipping */
        padding-bottom: 50px;
    }

    .video-thumbnails-grid {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        /* Crucial to fix the offset */
        width: 100%;
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        opacity: 1;
        /* Always visible on mobile, no hover reveal needed */
        margin-top: 20px;
        z-index: 10;
        pointer-events: auto;
    }

    .video-thumb {
        height: 200px;
        pointer-events: auto;
    }

    .phone-mockup {
        position: relative;
        display: block;
        width: 100%;
        max-width: 300px;
        height: 600px !important;
        /* Force height */
        flex-shrink: 0;
        /* Prevent the flex container from crushing it */
        margin: 0 auto;
        /* Corrected center margin offset */
        left: auto;
        top: auto;
        transform: none;
        z-index: 50;
        /* Ensure it stays above grid and background */
    }

    .phone-screen {
        height: 100%;
        /* Force height */
        width: 100%;
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
        /* 1 column on very small screens */
    }

    .video-thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}