/* --- Reset & Global --- */
@font-face {
    font-family: 'Cubao_Free_Wide';
    src: url('font/Cubao_Free_Wide.otf') format('opentype'),

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-x: hidden;
}

h1, h2, h3 {
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* --- Services Text Section (Innerhalb von About) --- */
.services-text-wrapper {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    
    display: grid;
    grid-template-columns: 1fr 1fr;
    
    /* WICHTIG: Hier trennen wir die Abstände */
    column-gap: 80px; /* Großer Abstand zwischen den zwei Text-Spalten */
    row-gap: 30px;    /* Kleinerer Abstand zwischen Überschrift und Text */
}

.service-col h3 {

    color: #fff; /* Rote Akzentfarbe für die Überschrift */
    font-size: 1.1rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.service-col p {
    font-size: 1rem;
    line-height: 1.8; /* Gute Lesbarkeit */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}
/* Damit die Überschrift über beide Spalten geht */
.services-headline {
    grid-column: 1 / -1; 
    margin-bottom: 0; /* Kein zusätzlicher Rand mehr nötig */
}

/* Fettgedruckte Wörter im Fließtext */
.service-col strong {
    font-weight: 600; /* Deutlich fetter als der normale Text (300) */
    color: white; /* Optional: Macht das Wort strahlend weiß */
}

/* --- Mobile Anpassung für den neuen Bereich --- */
@media (max-width: 768px) {
    .services-text-wrapper {
        grid-template-columns: 1fr; /* Untereinander auf dem Handy */
        gap: 50px;
        margin-top: 50px;
        padding-top: 40px;
    }
    
    .service-col h3 {
        font-size: 1.5rem;
    }
}

/* --- Listen-Design (Tabellen-Optik) --- */
.service-list {
    list-style: none; /* Keine Standard-Bulletpoints */
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 15px 0; /* Platz oben und unten */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Feine Trennlinie */
    
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.5;
    
    display: flex;
    flex-direction: column; /* Handy-freundlich */
}

/* Optional: Eine Linie ganz oben hinzufügen für kompletten Tabellen-Look */
.service-list li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Stil für den fettgedruckten Teil (den "Titel" der Zeile) */
.service-list strong {
    color: white;
    font-weight: 600;
    margin-bottom: 2px;
    display: block; /* Macht den Titel zur eigenen Zeile im Punkt */
}

/* Anpassung für Desktop: Titel und Text nebeneinander? */
@media (min-width: 768px) {
    .service-list strong {
        display: inline; /* Auf großen Screens in einer Zeile */
        margin-bottom: 0;
        margin-right: 5px;
    }
}
/* --- Shared "Ripped Paper" Style --- */
/* This defines the look of the paper scraps */
.paper-style {
    /* Paper Color (Off-White/Warm) */
    background: #fdfbf7; 
    
    /* "Ink" Color for text */
    color: #1a1a1a; 
    
    /* Create the organic "Hand-Cut" shape */
    /* This makes the edges slightly uneven like cut paper */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    
    /* Add a drop shadow to lift it off the page */
    box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
    
    /* Slightly rotate it to look pasted on */
    transform: rotate(-1deg);
    
    /* Remove old borders */
    backdrop-filter: none;
    border: none;
}

/* --- Fixed Logo (Top Left) --- */
.fixed-logo {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 1000;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 10px 20px; 
    height: 80px; 
    width: auto;
    

}

.fixed-logo img {
    height: 100%;
    width: auto; 
    display: block;
}

/* --- Navigation Bar (Top Right) --- */
nav {
    position: fixed; 
    top: 30px;
    right: 40px;
    z-index: 1000; 
}

/* Apply Paper Style to the Container */
.nav-links {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    
    /* Apply Paper Look */
    /* UPDATED: RGBA color for transparency (0.8 = 80% opacity) */
    background: rgba(253, 251, 247, 0.8); 
    
    /* Optional: Blurs the image behind the paper slightly for better text reading */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.2);

    
    transition: transform 0.3s ease;
}

/* Hover effect on the whole paper strip */
.nav-links:hover {
    transform: rotate(0deg) scale(1.02); /* Straighten up when touching */
}

/* Link Styling */
.nav-item {
    color: #1a1a1a; /* Always Black Ink */
    margin-left: 10px; 
    font-weight: 600; /* Bold Ink Look */
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; 
    
    /* Scribble Borders */
    border: 2px solid transparent; 
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transition: all 0.3s ease;
}

.nav-item:first-child {
    margin-left: 0;
}

/* --- Scribble Lines (The "Pencil" marks) --- */
.nav-item::before, .nav-item::after {
    content: '';
    position: absolute;
    border: 1px solid #1a1a1a; /* Pencil Color */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.nav-item::before {
    top: -3px; left: -4px; right: -4px; bottom: -2px;
    border-radius: 40% 60% 40% 60% / 55% 45% 55% 45%;
    transform: rotate(-3deg);
}

.nav-item::after {
    top: -5px; left: -2px; right: -2px; bottom: -5px;
    border-radius: 60% 40% 60% 40% / 45% 55% 45% 55%;
    transform: rotate(2deg);
}

/* Hover / Active States */
.nav-item:hover, .nav-item.active {
    border-color: #1a1a1a; 
}

.nav-item:hover::before, .nav-item.active::before,
.nav-item:hover::after, .nav-item.active::after {
    opacity: 1; 
}

/* --- REMOVE Dark Mode (Paper is always white) --- */
/* We delete the specific color override because the paper stays white */
.nav-links.dark-mode {
    background: #fdfbf7; /* Keep Paper Color */
}
.nav-links.dark-mode .nav-item {
    color: #1a1a1a; /* Keep Ink Color */
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    /* Reset styles for the fullscreen overlay */
    .nav-links {
        background: #2b2323; /* Dark background for full screen menu */
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        transform: none;
    }
    
    /* Fix Mobile Text Color */
    .nav-item {
        color: white !important; 
    }
    
    .fixed-logo {
        top: 20px;
        left: 20px;
        height: 50px;
        padding: 5px 15px;
    }
    
    nav {
        top: 20px; 
        right: 20px;
    }
    

}




/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* BACKGROUND IMAGE HANDLING */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    /* DEFAULT (DESKTOP) IMAGE */
    background-image: url('img/websitebg1.webp?q=80&w=2574&auto=format&fit=crop');
}

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: relative;
    padding-top: 100px;
}

.main-logo {
    margin-top: auto; 
    margin-bottom: 20px;
    font-family: 'Cubao_Free_Wide' ;
    line-height: 0.85;
}

.main-logo h1 {
    font-size: 8vw; 
    color: white;
    letter-spacing: -2px;
}

.red-m {
    color: #ff3333;
}

.showreel-cta {
    position: absolute;
    bottom: 50px;
    right: 50px;
    text-align: right;
}

/* --- Hand-Drawn Scribble Button (Rounder Version) --- */
.scribble-circle {
    position: relative;
    display: inline-block;
    padding: 25px 35px;
    
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 1;
    
    border: 2px solid rgba(255, 255, 255, 0.95);
    
    /* Apply Main Animation: 4 seconds, infinite loop */
    animation: wobble-main 4s ease-in-out infinite; 
    
    transition: color 0.3s ease, border-color 0.3s ease;
}

.scribble-circle::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    
    border: 2px solid rgba(255, 255, 255, 0.85);
    
    /* Apply Before Animation: Slightly slower (5s) so it doesn't sync with the main one */
    animation: wobble-before 5s ease-in-out infinite;
    
    z-index: -1;
    transition: border-color 0.3s ease;
}

.scribble-circle::after {
    content: '';
    position: absolute;
    top: -2px; left: -3px; right: -3px; bottom: -2px;
    
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    /* Apply After Animation: Faster (3.5s) for more chaos */
    animation: wobble-after 3.5s ease-in-out infinite;
    
    z-index: -1;
    transition: border-color 0.3s ease;
}

/* Hover Effects: Pause animation or speed it up? 
   Here we keep it running but change color */
.scribble-circle:hover {
    color: #ff3333;
    border-color: #ff3333;
    cursor: pointer;
}

.scribble-circle:hover::before,
.scribble-circle:hover::after {
    border-color: #ff3333;
}

/* Hover Effects */
.scribble-circle:hover {
    color: #ff3333;
    border-color: #ff3333;
    transform: scale(1.05);
}

.scribble-circle:hover::before {
    border-color: #ff3333;
    transform: rotate(4deg) scale(1.02);
}

.scribble-circle:hover::after {
    border-color: #ff3333;
    transform: rotate(-3deg) scale(1.05);
}
/* --- About Section --- */
#about {
    background-color: #2b2323; 
    padding: 100px 0;
    scroll-margin-top: 50px; 
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    line-height: 1.1;
}

.vision-block, .service-block {
    margin-bottom: 40px;
}

/* --- Hand-Drawn Oval Badge (Matches Showreel CTA) --- */
.oval-badge {
    position: relative;
    display: inline-block;
    padding: 12px 30px; /* Increased padding for the sketch effect */
    margin-bottom: 25px; /* Spacing from content below */
    
    /* Typography */
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600; 
    letter-spacing: 1px;
    z-index: 1;
    
    /* LOOP 1: Main Shape */
    border: 2px solid rgba(255, 255, 255, 0.9);
    /* Percentages adapt to width, creating an organic oval */
    border-radius: 55% 45% 60% 40% / 80% 60% 70% 50%;
    
    transition: all 0.3s ease;
}

/* LOOP 2: Second sketched line */
.oval-badge::before {
    content: '';
    position: absolute;
    /* Slightly offset to look messy */
    top: -3px; left: -4px; right: -3px; bottom: -2px;
    
    border: 1px solid rgba(255, 255, 255, 0.7);
    /* Different curves prevents them from looking identical */
    border-radius: 45% 55% 40% 60% / 70% 80% 50% 60%;
    
    transform: rotate(-1deg); /* Slight tilt */
    z-index: -1;
    transition: all 0.3s ease;
}

/* LOOP 3: Third sketched line (Thinner) */
.oval-badge::after {
    content: '';
    position: absolute;
    top: -5px; left: -2px; right: -5px; bottom: -4px;
    
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 60% 40% 55% 45% / 60% 50% 80% 40%;
    
    transform: rotate(1.5deg); /* Tilt opposite way */
    z-index: -1;
    transition: all 0.3s ease;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 400px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay-text {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: right;
}

.image-overlay-text h3 {
    font-size: 1.8rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- Projects Section (Carousel) --- */
#projects {
    background-color: #2b2323;
    padding: 0 0 80px 0;
    scroll-margin-top: 100px;
    overflow: hidden; 
}

.section-header {
    margin-bottom: 30px;
}

.carousel-relative-group {
    position: relative;
    /* Allow arrows to sit outside */
    margin: 0 -20px; 
    padding: 0 20px;
}

.carousel-wrapper {
    overflow-x: auto;
    /* IMPORTANT: We handle smooth scroll in JS now to allow instant looping */
    scroll-behavior: auto; 
    scroll-snap-type: x mandatory;
    
    /* Hide Scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 30px; 
    width: max-content;
}

.project-card {
    /* 350px width per card */
    flex: 0 0 350px; 
    scroll-snap-align: start;
    position: relative;
}

/* Image Styling */
.project-card .img-wrapper {
    /* UPDATED: Height increased to 600px */
    height: 600px; 
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card .caption {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.8);
}

.project-card .caption strong {
    color: white;
    font-size: 1.1rem;
}

/* --- Carousel Arrows --- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: white;
    color: #2b2323;
}

.carousel-arrow.prev { left: 0px; }
.carousel-arrow.next { right: 0px; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .project-card {
        flex: 0 0 85vw; /* Almost full width on mobile */
    }
    .project-card .img-wrapper {
        height: 700px; /* Slightly smaller on mobile fits better */
    }

}

/* --- Contact / Footer --- */
#contact {
    position: relative;
    height: 80vh; 
    color: white;
}

.footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.footer-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 20px;
}

.contact-badge {
    align-self: flex-start;
    margin-bottom: 50px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: auto; 
}

.footer-message h2 {
    font-size: 2rem;
    max-width: 400px;
    font-weight: 400;
}

.footer-details {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 10px;
    font-size: 1.1rem;
}

/* --- Footer Logo Image --- */
.footer-logo {
    width: 100%;
    text-align: center; /* Centers the image */
    margin-top: 50px;
    margin-bottom: 20px;
}

.footer-logo img {
    /* Responsive Sizing */
    width: 100%; 
    max-width: 400px; /* Limits size on big screens so it's not overwhelming */
    height: auto;     /* Maintains aspect ratio */
    
    display: inline-block;
    
    /* Optional: Blend it slightly with the sky background */
    opacity: 0.9; 
    
    /* Optional: If your logo is black, invert it to white using CSS filter */
    /* filter: invert(1) brightness(100); */ 
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .footer-logo img {
        max-width: 90%; /* Allow it to be wider on small screens */
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    /* MOBILE BACKGROUND SWAP */
    .hero-bg {
        /* Vertical image for mobile phones */
        background-image: url('img/wunderdernatur.webp?q=80&w=1000&auto=format&fit=crop');
    }

    /* Adjust Layout for Mobile */
    .fixed-logo {
        top: 20px;
        left: 20px;
        font-size: 1rem;
        padding: 10px 15px;
    }

    nav {
        top: 20px;
        right: 20px;
    }
    
    .nav-links {
        padding: 10px 15px;
    }

    .nav-links a {
        margin-left: 10px;
        font-size: 0.8rem;
    }

    .main-logo h1 {
        font-size: 18vw;
    }
    
    .showreel-cta {
        bottom: 20px;
        right: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 2;
    }

    .project-grid {
        grid-template-columns: 1fr; 
    }
    
    .project-card .img-wrapper {
        height: 300px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-details {
        text-align: left;
    }
    
    .footer-logo h1 {
        font-size: 12vw;
    }
}



/* These keyframes morph the shape (border-radius) and rotation slightly */

@keyframes wobble-main {
    0% { border-radius: 51% 49% 48% 52% / 62% 44% 56% 38%; transform: rotate(0deg); }
    33% { border-radius: 45% 55% 52% 48% / 50% 60% 40% 60%; transform: rotate(1deg); }
    66% { border-radius: 55% 45% 45% 55% / 60% 40% 60% 40%; transform: rotate(-1deg); }
    100% { border-radius: 51% 49% 48% 52% / 62% 44% 56% 38%; transform: rotate(0deg); }
}

@keyframes wobble-before {
    0% { border-radius: 40% 60% 55% 45% / 40% 55% 45% 60%; transform: rotate(-3deg); }
    50% { border-radius: 55% 45% 50% 50% / 55% 45% 60% 40%; transform: rotate(-1deg); }
    100% { border-radius: 40% 60% 55% 45% / 40% 55% 45% 60%; transform: rotate(-3deg); }
}

@keyframes wobble-after {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(2deg); }
    50% { border-radius: 50% 50% 40% 60% / 50% 50% 60% 40%; transform: rotate(4deg); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(2deg); }
}

/* --- Fullscreen Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 35, 35, 0.95); /* Dark brown background, slightly transparent */
    z-index: 2000; /* On top of everything */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    pointer-events: none; /* Click through when hidden */
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
/* --- Base Modal Content (Used by Project Carousel) --- */
.modal-content {
    max-width: 800px;
    width: 90%;
    padding: 40px;
    text-align: center;
    color: white;
    
    /* Center it vertically/horizontally */
    position: relative; 
    margin: 0 auto;
    
    /* Default: No scroll, fits content size, transparent background */
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

/* --- Legal Mode (Only for Footer Text) --- */
/* This class is added via JavaScript when clicking the footer link */
.modal-content.legal-mode {
    /* Limit height and enable scroll */
    max-height: 85vh; 
    overflow-y: auto;
    
    /* Add background box styling */
    background: #2b2323; 
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Scrollbar Styles (Only visible in Legal Mode) --- */
.modal-content.legal-mode::-webkit-scrollbar {
    width: 8px;
}

.modal-content.legal-mode::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 4px;
}

.modal-content.legal-mode::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3); 
    border-radius: 4px;
}
.modal-overlay.open .modal-content {
    transform: translateY(0);
}

#modal-title {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

#modal-text {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Close Button (Big X) */
.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.close-modal:hover {
    color: #ff3333;
    transform: scale(1.1) rotate(90deg);
}

/* Cursor pointer for images */
.clickable-image {
    cursor: pointer;
}

/* Style for links inside the modal text */
#modal-text a {
    color: #ff3333; /* Red accent color */
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

#modal-text a:hover {
    color: white; /* Turn white on hover */
}

/* --- Hamburger Icon Styles (Desktop: Hidden) --- */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    padding: 10px;
    z-index: 2000; /* Above everything */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #000; /* Default Black */
}

/* --- MOBILE STYLES (Max Width 768px) --- */
@media (max-width: 768px) {

    /* 1. HIDE SHOWREEL CTA */
    .showreel-cta {
        display: none;
    }

    /* 2. INCREASE CAROUSEL IMAGE HEIGHT */
    .project-card .img-wrapper {
        height: 600px; /* Increased from 450px to 600px */
    }
    
    .project-card {
        flex: 0 0 90vw; /* Make card almost full width on mobile */
    }

    /* 3. HAMBURGER MENU SETUP */
    .hamburger {
        display: block; /* Show icon */
        position: fixed;
        top: 25px;
        right: 20px;
    }

    /* Transform the Link Container into a Fullscreen Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        left: 100%; /* Start off-screen to the right */
        width: 100%;
        height: 100vh;
        background-color: #2b2323; /* Dark Brand Color */
        
        flex-direction: column; /* Stack links vertically */
        justify-content: center;
        align-items: center;
        gap: 40px; /* Space between links */
        
        transition: 0.3s ease-in-out;
        z-index: 1500;
    }

    /* When class 'active' is added via JS, slide it in */
    .nav-links.mobile-open {
        left: 0;
    }

    /* Reset Link Styles for Mobile */
    .nav-item {
        margin-left: 0;
        font-size: 1.5rem; /* Bigger text */
        color: white !important; /* Force white text on dark background */
    }

    /* Make the scribbles white on mobile */
    .nav-item::before, 
    .nav-item::after {
        border-color: white;
    }
    
    .nav-item:hover, .nav-item.active {
        border-color: white;
    }

    /* --- Hamburger Animation (Turn to X) --- */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: white; /* Turn white when menu is open */
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: white;
    }
    
    /* Ensure Hamburger is visible against dark sections when closed */
    nav.dark-mode-mobile .bar {
        background-color: white;
    }
}