
:root {
    /* DEFAULT DARK PALETTE (Deep Forest) */
    --bg-dark: #0a110a;
    --bg-panel: #141f14;
    --primary-accent: #a3c968;
    --text-main: #f0f4f0;
    --text-muted: #8a9f8a;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(20, 31, 20, 0.6);
    --glass-blur: 20px;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}


[data-theme="light"] {
    /* LIGHT PALETTE (Mist & Earth) */
    --bg-dark: #f0f2f0;
    --bg-panel: #e6ebe6;
    --primary-accent: #4a6741;
    --text-main: #1a2e1a;
    --text-muted: #5c6b5c;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.3);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: auto;
    /* Default for mobile compatibility */
}

@media (min-width: 992px) {

    *,
    *::before,
    *::after {
        cursor: none;
        /* Custom cursor only on desktop */
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 992px) {

    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-accent);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 6vw;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Floating Navigation "Island" */
.nav-island-wrapper {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

.nav-island {
    pointer-events: auto;
    background: rgba(10, 17, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

[data-theme="light"] .nav-island {
    background: rgba(230, 235, 230, 0.8);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--primary-accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    transition: color 0.3s;
    position: relative;
    opacity: 0.7;
}

.nav-link:hover {
    color: var(--primary-accent);
    opacity: 1;
}

.nav-cta {
    background: var(--primary-accent);
    color: var(--bg-dark);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* Mobile Toggle & Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 102;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    text-transform: uppercase;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.spacer {
    height: 15vh;
}

/* Buttons */
.btn-glass {
    display: inline-block;
    padding: 20px 40px;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-accent);
    z-index: -1;
    transition: width 0.5s var(--ease-out-expo);
}

.btn-glass:hover {
    color: var(--bg-dark);
    border-color: var(--primary-accent);
}

.btn-glass:hover::before {
    width: 100%;
}

/* Locomotive Scroll Base */
html.has-scroll-smooth {
    overflow: hidden;
}

.has-scroll-smooth body {
    overflow: hidden;
}

[data-scroll-container] {
    min-height: 100vh;
    perspective: 1px;
}

/* ------------------------
   PAGE: HOME / HERO
   ------------------------ */
.hero-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%) contrast(1.2);
    z-index: -1;
}

.hero-big-text {
    text-align: center;
    z-index: 2;
}

.hero-big-text h1 {
    font-size: 9vw;
    line-height: 0.9;
    mix-blend-mode: overlay;
    opacity: 0.9;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 20px;
    color: var(--primary-accent);
}

/* ------------------------
   PAGE: INNER COMPONENTS
   ------------------------ */
.page-header-simple {
    padding: 200px 0 100px;
    text-align: center;
}

.page-header-simple h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid Layouts */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-creative {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.6s var(--ease-out-expo);
}

.card-creative:hover {
    transform: scale(0.98);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s;
}

.card-creative:hover .card-bg {
    transform: scale(1.1);
}

.card-glass-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer (Agency Style) */
.footer-agency {
    padding: 100px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-agency h2 {
    font-size: 10vw;
    opacity: 0.1;
    text-align: center;
    margin-bottom: 50px;
}

/* --- ULTIMATE MOBILE SIDE-SCROLL LOCK --- */

/* 1. Force the main scroll container to never exceed screen width */
[data-scroll-container],
.has-scroll-smooth body,
html.has-scroll-smooth {
    width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
}

/* 2. Global overflow reset for mobile */
@media (max-width: 768px) {
    html, body {
        width: 100vw;
        overflow-x: hidden !important;
        /* Fixes Safari's elastic bouncing scroll issue */
        position: relative;
    }

    /* Target every section to ensure nothing sticks out */
    section, div, header, footer {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Ensure your premium cards don't have invisible margins pushing the width */
    .premium-grid, .experience-grid {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ------------------------
   MOBILE RESPONSIVENESS
   ------------------------ */
@media (max-width: 900px) {
    .glass-grid {
        grid-template-columns: 1fr !important;
    }

    .nav-island {
        padding: 10px 20px;
        gap: 0;
        width: 92%;
        justify-content: space-between;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-island-wrapper {
        top: 20px;
    }

    .nav-cta {
        display: none;
    }

    h1 {
        font-size: 15vw;
    }

    .hero-big-text h1 {
        font-size: 18vw;
    }

    .hero-sub {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .glass-panel {
        padding: 25px !important;
    }

    .card-creative {
        height: 300px !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .glass-panel[style*="row-reverse"] {
        flex-direction: column !important;
    }

    .glass-panel[style*="display: flex"] {
        flex-direction: column !important;
    }

    .glass-panel>div {
        width: 100% !important;
        height: auto !important;
    }
}