:root {
    /* Jung von Matt Inspired Palette */
    --bg-color: #FFFFFF;
    --text-color: #000000;
    /* Strict Black */
    --text-secondary: #000000;
    /* Keep bold/dark */

    /* High-Energy Red (JvM Standard) */
    --accent-color: #E2001A;

    --nav-bg: rgba(255, 255, 255, 0.98);
    /* crisper */
    --section-bg: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    /* Faster, sharper */
    --font-main: 'Inter', sans-serif;
    /* Keep Inter, leverage weights */

    --whatsapp-green: #25D366;
    --whatsapp-bg: #FFFFFF;
    --whatsapp-bubble-in: #F0F0F0;
    --whatsapp-bubble-out: #DCF8C6;
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* GLOBAL TYPOGRAPHY REFACOR */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    /* Black */
    letter-spacing: -0.02em;
    /* Tight blocking */
    text-transform: uppercase;
    color: var(--text-color);
    line-height: 0.95;
    /* Compact */
}

/* OUTLINE UTILITY */
.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
}

p,
li,
a {
    font-weight: 500;
    /* Bolder base text */
    font-size: 16px;
}

/* Adjust line height specifically for body text blocks */
p {
    line-height: 1.6;
    max-width: 75ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3%;
    /* Creating more tension */
    background: var(--bg-color);
    /* Solid White */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    /* Bold Divider */
}

.logo {
    font-size: 1.5rem;
    /* Larger */
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-color);
    text-transform: uppercase;
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Mobile Burger */
.burger {
    display: none;
    cursor: pointer;
    z-index: 2000;
    position: relative;
}

.burger div {
    width: 25px;
    height: 3px;
    /* Bolder lines */
    background-color: #000;
    margin: 5px;
    transition: var(--transition);
}

/* Standard Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #FFFFFF;
    border: none;
    border-radius: 0;
    /* Sharp Edges for JvM Style */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: #000;
    color: #fff;
    transform: none;
    /* No soft scaling */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    /* Left side */
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: var(--transition);
}

transform: scale(1.1);
}

/* Logic: Hide WhatsApp when Menu is Open (Prevent Overlap) */
body.menu-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

/* Sections */
section {
    position: relative;
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-color);
    /* White Hero */
    padding: 0 5%;
}

.hero-content h1 {
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    color: #000;
    background: none;
    -webkit-text-fill-color: initial;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: #000;
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Infinite Client Banner */
.client-banner {
    padding: 2rem 0;
    background: var(--bg-color);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 2px solid #000;
}

.banner-track {
    display: inline-block;
    animation: scroll-banner 30s linear infinite;
}

.client-logo {
    display: inline-block;
    height: 40px;
    margin: 0 3rem;
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
    /* Maintain clean look */
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll-banner {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Artistic Portfolio Scatter Section */
.portfolio-scatter-section {
    height: 100vh;
    width: 100%;
    background: #FFFFFF;
    /* Strict White */
    position: relative;
    overflow: hidden;
    border-top: 2px solid #000;
}

.scatter-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 50;
    pointer-events: none;
    width: 100%;
}

.portfolio-overlay-text h2 {
    font-family: var(--font-main);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 0px;
    color: var(--text-color);
    background: none;
    -webkit-text-fill-color: initial;
    opacity: 1;
    pointer-events: none;
}

.portfolio-overlay-text p {
    font-size: 1.5rem;
    color: var(--accent-color);
    /* Red Accent */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    pointer-events: none;
    opacity: 1;
    margin-top: 1rem;
    display: block;
    width: 100%;
    margin: 1rem auto 0;
    text-align: center;
    max-width: 100%;
}

.scatter-item {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* No transitions here on the source item to avoid layout shifts */
    z-index: 10;
}

.scatter-item img,
.scatter-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Clone Classes */
.portfolio-overlay-item {
    position: fixed;
    /* Must be fixed to pop out */
    border-radius: 20px;
    overflow: hidden;
    z-index: 1000;
    /* High z-index */
    pointer-events: none;
    /* CRITICAL: Allows mouse to pass through to the listener below */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-overlay-item img,
.portfolio-overlay-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay-item.expanded {
    width: 66vw !important;
    height: 66vh !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}


/* Services Header */
.services-intro {
    padding: 8rem 5% 2rem;
    text-align: center;
}

.services-intro h2 {
    font-size: 3rem;
}

/* Scroll Fade Effect Class */
.scroll-reveal {
    opacity: 0.2;
    transition: opacity 0.1s ease-out;
}

/* Split Layout */
.split-section {
    display: flex;
    min-height: 90vh;
    border-bottom: 2px solid #000;
}

.split-content {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-number {
    font-size: 4rem;
    color: var(--accent-color);
    /* Swiss Red */
    font-weight: 700;
    margin-bottom: 1rem;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.split-content ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.split-content li {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* About Section (New Phase 3) */
.about-section {
    display: flex;
    min-height: 80vh;
    background: #F9F9F9;
    padding-top: 120px;
    /* Fix for navbar overlap */
    border-bottom: 2px solid #000;
    /* Matching navbar border */
}

.about-text {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Force visibility override */
    opacity: 1 !important;
    transform: none !important;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    /* Juicy Red */
}

.about-text p {
    font-size: 1.2rem;
    color: #000000 !important;
    /* Deep Black */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 1 !important;
    /* Stronger presence */
}

.about-img {
    flex: 1;
    background-size: cover;
    background-position: center;
}

/* WhatsApp Chat Contact Form */
.contact-section {
    background: #F5F5F5;
    /* Higher contrast background */
    padding: 8rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.whatsapp-chat-container {
    width: 100%;
    max-width: 500px;
    background: #000000;
    /* Strict Black for strong presence */
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-blend-mode: normal;
    /* No washing out */
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    /* Stronger Shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle highlight border */
    opacity: 1 !important;
}

/* Chat Bubbles (Inputs) */
.chat-bubble {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 85%;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.msg-incoming {
    align-self: flex-start;
    background: var(--whatsapp-bubble-in);
    color: #333;
    border-top-left-radius: 0;
}

.msg-outgoing {
    align-self: flex-end;
    background: var(--whatsapp-bubble-out);
    color: #000;
    border-top-right-radius: 0;
    width: 100%;
}

.chat-input-field {
    width: 100%;
    background: transparent;
    border: none;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.chat-input-field::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.send-btn-container {
    align-self: flex-end;
    margin-top: 1rem;
}

.wa-send-btn {
    background: var(--whatsapp-green);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-send-btn:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 4rem 5%;
    background: #F9F9F9;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 2px solid #000;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .split-section {
        flex-direction: column;
    }

    .split-section.reverse {
        flex-direction: column;
    }

    .about-section {
        flex-direction: column-reverse;
    }

    .about-img {
        min-height: 40vh;
    }

    .split-content,
    .about-text {
        padding: 3rem 5%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    /* --- MOBILE MENU OVERHAUL (JvM Style) --- */

    /* 1. Burger Button Logic */
    .burger {
        display: block;
        z-index: 2002;
        /* Above Overlay */
        position: relative;
    }

    /* Burger Color Change on Open */
    body.menu-open .burger div {
        background-color: #FFFFFF;
        /* White on Black */
    }

    /* Burger Animation to X */
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* 2. Logo Logic */
    .logo {
        position: relative;
        z-index: 2002;
        /* Above Overlay */
        transition: color 0.3s ease;
    }

    body.menu-open .logo {
        color: #FFFFFF;
        /* White on Black */
    }

    /* 3. Full Screen Overlay */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background: #000000;
        /* Solid Black */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Center Content */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1);
        /* Sharp Easing */
        z-index: 2001;
        /* Above Navbar background, below Logo/Burger */
        padding: 0;
        border-left: none;
    }

    /* 4. Active State */
    .nav-links.active {
        transform: translateX(0);
    }

    /* 5. Main Links Typography */
    .nav-links li {
        opacity: 0;
        /* Handled by JS Animation */
        margin: 0.5rem 0;
        /* Reduced from 1rem */
    }

    .nav-links a {
        font-size: clamp(2rem, 8vw, 3.5rem);
        /* Adjusted for better fit on small screens */
        font-weight: 700;
        text-transform: uppercase;
        color: #FFFFFF;
        line-height: 1.1;
        letter-spacing: -0.02em;
        display: block;
        text-align: center;
        transition: color 0.3s;
        -webkit-tap-highlight-color: transparent;
        /* Remove blue preview box */
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: var(--accent-color);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        /* Thin underline */
        text-underline-offset: 8px;
        /* Slight offset for aesthetics */
        opacity: 1;
    }

    /* 6. Secondary Footer Links */
    .nav-footer {
        position: absolute;
        bottom: 3rem;
        left: 5%;
        /* Align with page padding */
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
        opacity: 0;
    }

    .nav-links.active .nav-footer {
        animation: navLinkFade 0.5s ease forwards 0.8s;
        /* Delayed fade in */
    }

    .nav-footer a {
        font-size: 0.9rem;
        font-weight: 400;
        color: #888888;
        /* Grey */
        text-transform: none;
        letter-spacing: normal;
        margin: 0;
        text-align: left;
    }

    .nav-footer a:hover {
        color: #FFFFFF;
        text-decoration: underline;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .scatter-item {
        width: 150px !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .contact-section {
        padding: 4rem 5%;
    }

    .contact-section h2 {
        font-size: 2rem;
    }

    .whatsapp-chat-container {
        width: 100%;
        /* Keep 100% of container but rely on parent padding */
        max-width: 90%;
        /* Visually narrower than full screen width if parent allows */
        margin: 0 auto;
        padding: 1.5rem 1rem;
        /* Shorter by reducing vertical padding */
    }
}

/* Services Grid (Hub Page) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 5% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    /* Subtler border */
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    /* Ensure card link behavior */
    /* New Soft Shadow */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    border-color: #DDD;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.service-card .card-number {
    display: block;
    font-size: 2rem;
    color: var(--accent-color);
    /* High Energy Red */
    font-weight: 700;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    z-index: 2;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    z-index: 2;
}

.service-card .card-link {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 500;
    z-index: 2;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
        min-height: 300px;
    }
}

/* =========================================
   NEW GRID LAYOUT SYSTEM (REFACTOR PHASE 16 & 17)
   ========================================= */

/* Main Grid Container for Split Sections */
.split-grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--bg-color);
}

/* Text Column */
.text-column {
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    z-index: 2;
}

.text-column .section-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    /* Swiss Red */
    margin-bottom: 1rem;
    display: block;
}

.text-column h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-column ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.text-column li {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Media Column (Right Side) */
.media-column {
    position: relative;
    height: 100%;
    /* Fill the grid cell height */
    width: 100%;
    display: flex;
    justify-content: center;
    /* Horizontally center */
    align-items: center;
    /* Vertically center (CRITICAL) */
    background: transparent;
    /* STRICTLY TRANSPARENT */
}

/* Media Gallery Container */
.clean-gallery {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    /* Centers items in the single grid cell */
    position: relative;
}

/* Gallery Items (Stacked on top of each other) */
.gallery-item {
    grid-area: 1 / 1;
    /* stack all items in same cell */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-item.active {
    opacity: 1;
    pointer-events: all;
    z-index: 2;
}

/* Clean Video Player */
/* Clean Video Player */
.player-wrapper {
    position: relative;
    width: fit-content !important;
    height: fit-content !important;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth expansion */
    z-index: 10;
}

/* Expanded State (Lightbox) */
.player-wrapper.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw !important;
    /* Approx 2/3 of screen */
    height: auto !important;
    max-height: 90vh;
    /* Keep within viewport */
    z-index: 1000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    /* Softer shadow */
    cursor: default;
}

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.7);
    /* Light Mode Button */
    backdrop-filter: blur(4px);
    border: none;
    color: #000;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 25;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.player-wrapper:hover .fullscreen-btn,
.player-wrapper.expanded .fullscreen-btn {
    opacity: 1;
}

/* Backdrop */
#fullscreen-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    /* White Backdrop */
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#fullscreen-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.clean-player {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain !important;
    display: block;
    background: transparent;
    border-radius: 20px;
}

/* Custom Controls (Minimal Overlay) */
.player-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

/* Old: .custom-video-container.playing .player-overlay { opacity: 0; } - Removed for JS control */

.player-overlay.overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-item.playing .player-overlay {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Progress Bar */
.clean-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    /* Darker track for light mode */
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .clean-progress-container,
.gallery-item.playing .clean-progress-container {
    opacity: 1;
}

.clean-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* Navigation Arrows (Hugging the edges of media column) */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #000;
    /* Make sure arrows are visible on white */
    font-size: 2rem;
    padding: 2rem;
    cursor: pointer;
    z-index: 30;
    transition: transform 0.2s;
    opacity: 0.5;
}

.gallery-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    color: var(--accent-color);
}

.nav-prev {
    left: 0;
}

.nav-next {
    right: 0;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .split-grid-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        /* Text then Media */
        min-height: auto;
    }

    .text-column {
        padding: 4rem 5% 2rem;
    }

    .text-column h2 {
        font-size: 1.8rem;
        /* Smaller font to prevent cutoff */
        word-wrap: break-word;
        /* Ensure wrapping */
        hyphens: auto;
        /* Hyphenate long words like Eventvideografie */
    }

    .text-column .section-number {
        font-size: 3rem;
        /* Scale down number */
    }

    .media-column {
        height: 50vh;
        /* Fixed height for mobile media area */
        background: transparent;
    }

    /* --- Fullscreen Stage Architecture --- */

    /* The Stage Container (Centers everything on screen) */
    .fullscreen-stage {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10000;
        /* Above everything */
        width: 75vw;
        /* Stage width - Video fills this */
        max-height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        /* Let clicks pass through empty areas to backdrop */
    }

    /* Make content interactive */
    .fullscreen-stage * {
        pointer-events: auto;
    }

    /* Video Wrapper inside Stage */
    .fullscreen-stage .player-wrapper {
        width: fit-content !important;
        /* Shrink to video size */
        height: auto !important;
        max-width: 90vw;
        max-height: 85vh;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        background: transparent;
        /* Ensure no bg causing visual gap */
    }

    /* Arrows inside Stage (now children of wrapper) */
    .fullscreen-stage .gallery-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10001;
        /* Above video */
        width: 60px;
        height: 60px;
        font-size: 2rem;
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        opacity: 1;
        /* Always visible */
    }

    .fullscreen-stage .gallery-nav-btn:hover {
        background: var(--accent-color);
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

    .fullscreen-stage .nav-prev {
        left: -30px;
        /* Slight overlap or overhang */
    }

    .fullscreen-stage .nav-next {
        right: -30px;
    }

    /* Timeline in Fullscreen */
    .fullscreen-stage .clean-progress-container {
        height: 10px;
        /* Thicker */
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }

    /* Mobile Adjustments for Stage */
    @media (max-width: 768px) {
        .fullscreen-stage {
            width: 100vw;
        }

        .fullscreen-stage .player-wrapper {
            width: 100vw !important;
            border-radius: 0;
        }

        .fullscreen-stage .nav-prev {
            left: 10px;
            background: rgba(255, 255, 255, 0.5);
        }

        .fullscreen-stage .nav-next {
            right: 10px;
            background: rgba(255, 255, 255, 0.5);
        }
    }
}

/* =========================================
   JVM STYLE REDESIGN (CLEAN SLATE)
   ========================================= */

.jvm-feed {
    width: 100%;
    margin-top: 80px;
    background: #000;
    /* Hide system cursor exactly within this container */
    cursor: none !important;
}

/* Individual Case Section */
.jvm-case {
    display: block;
    position: relative;
    width: 100%;
    height: 90vh;
    /* nearly full screen */
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    /* Remove default link behaviors */
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;

    /* Inherit cursor: none from parent */
    cursor: inherit;
}

.jvm-case:focus,
.jvm-case:active {
    outline: none;
    background: transparent;
}

/* Ensure children don't trap events or show cursor */
.jvm-case * {
    pointer-events: none;
}

.jvm-case video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: brightness(0.9);
    transition: transform 0.7s ease, opacity 0.4s ease;
}

/* Hover State */
.jvm-case:hover video {
    transform: scale(1.05);
    opacity: 1;
    filter: brightness(1);
}

/* Case Info Overlay */
.jvm-case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 5%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 10;
}

.case-info .case-cat {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.case-info h2 {
    font-size: 3rem;
    color: white;
    margin: 0;
    line-height: 1.1;
}

/* 
   CUSTOM CURSOR (Robust Fixed Implementation)
*/
.jvm-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;

    /* Styling */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #000;
    border-radius: 50%;

    /* Layout */
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 99999999;
    pointer-events: none;
    /* Never capture mouse */

    /* Hidden by default */
    opacity: 0;
    transform: scale(0);

    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Visible State (Toggled by JS) */
.jvm-cursor.visible {
    opacity: 1;
    transform: scale(1);
}

/* Mobile: Disable Everything */
@media (max-width: 768px) {
    .jvm-feed {
        cursor: auto !important;
    }

    .jvm-case {
        height: 60vh;
        cursor: pointer;
    }

    .jvm-case-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    }

    .case-info h2 {
        font-size: 2rem;
    }

    .jvm-cursor {
        display: none !important;
    }
}

/* Keyframes for Mobile Menu Fade In */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- MOBILE FIXES FOR LEGAL PAGES (Impressum & Privacy) --- */
@media (max-width: 768px) {
    .page-header {
        padding-top: 120px !important;
        /* Adjust for mobile navbar height */
        margin-bottom: 2rem !important;
    }

    .page-header h1 {
        font-size: 2.5rem !important;
        /* Reduce huge title size */
        word-wrap: break-word;
        /* Prevent overflow */
    }

    .content-section {
        padding: 0 1.5rem !important;
        /* Add breathing room on sides */
        width: 100% !important;
        box-sizing: border-box;
    }

    .content-section h2 {
        font-size: 1.5rem !important;
        /* Smaller section headings */
        margin-top: 2rem !important;
    }

    .content-section h3 {
        font-size: 1.3rem !important;
    }

    .content-section p {
        font-size: 1rem !important;
        /* Readable body text */
        line-height: 1.5 !important;
    }
}

/* --- MOBILE OPTIMIZATION PROMPT (Main Site Overrides) --- */
@media (max-width: 768px) {

    /* 1. Global Safety */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* 2. About Section: Stack Image Top */
    /* Only apply if not already handled by 968px, or override firmly */
    .about-section {
        flex-direction: column-reverse !important;
        /* Image Top */
        height: auto !important;
        padding-top: 100px;
    }

    .about-img {
        width: 100%;
        min-height: 400px;
        height: 50vh;
    }

    .about-text {
        padding: 3rem 20px !important;
        /* Safety Padding */
        text-align: center;
        width: 100%;
    }

    .about-text h2 {
        font-size: 2.5rem !important;
        /* Scale down */
    }

    /* Contact Mobile Spacing */
    .contact-section {
        padding-top: 140px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

}