/* =========================================
   1. VARIABLES & THEME (Avant-Garde Kinetic)
   ========================================= */
:root {
    /* Color Palette - Deep Black & Metallic */
    --color-bg: #050505;
    --color-text: #E0E0E0;
    --color-accent: #FFFFFF;
    --color-muted: #666666;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography - Futuristic & Technical */
    --font-heading: 'Syncopate', sans-serif;
    /* Wide, Kinetic */
    --font-body: 'Space Grotesk', sans-serif;
    /* Technical, Clean */
    --font-mono: 'Space Mono', monospace;
    /* Code-like details */

    /* Spacing & Grid */
    --padding-page: 5vw;
    --grid-gap: 2rem;

    /* Easing */
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* =========================================
   2. GLOBAL RESET & BASE
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom Cursor enabled */

    /* iOS Tap Highlight Removal & Default Style Reset */
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}


html {
    /* Prevent text inflation on rotation */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    /* Use dvh for mobile browsers */
    min-height: 100vh;
    min-height: 100dvh;
    /* iOS Safe Area */
    padding-top: env(safe-area-inset-top);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    position: relative;
    /* strictly contain */
    -webkit-font-smoothing: antialiased;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900;
    /* Behind cursor/nav but above content */
    opacity: 0.04;
    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='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* =========================================
   3. CUSTOM CURSOR
   ========================================= */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: exclusion;
}

.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: exclusion;
}

.cursor-hover {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 1);
    mix-blend-mode: difference;
    border-color: transparent;
}

/* =========================================
   5. NAVIGATION (Floating)
   ========================================= */
.nav-bar {
    position: fixed;
    top: 3rem;
    right: 3rem;
    z-index: 1000;
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    /* iOS Fix */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--padding-page);
    position: relative;
    will-change: transform;
    /* Optimizer */
}

/* Background Abstract Shape for Motion */
.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.85;
    /* Tighter */
    font-size: 11vw;
    color: var(--color-text);
    margin-left: -0.8vw;
    /* Optical alignment */
    opacity: 0;
    /* Intiially Hidden for JS Reveal */
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 1vw;
    /* Prevent cut-off */
}

.hero-title .word {
    display: inline-block;
    transform-origin: left bottom;
}

.hero-subtitle {
    font-family: var(--font-mono);
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 400px;
    line-height: 1.6;
    opacity: 0;
    /* Intiially Hidden for JS Reveal */
}

/* =========================================
   6a. ABOUT & PROCESS SECTIONS
   ========================================= */
.about-section {
    padding: 10rem var(--padding-page);
    border-bottom: 1px solid var(--color-border);
}

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

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    width: 75%;
    /* Resize 0.75x */
    margin: 0 auto;
    /* Center */
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    /* Start fully grayscale */
    transition: filter 0.5s;
}

.about-image-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    -webkit-mask-image: radial-gradient(circle 0px at 0 0, black 0%, transparent 100%);
    mask-image: radial-gradient(circle 0px at 0 0, black 0%, transparent 100%);
    /* Hidden by default */
    pointer-events: none;
    /* Let events pass to wrapper */
    /* No transition for mask to prevent lag */
}

/* Mobile/Touch Devices: Scroll to Color */
@media (hover: none),
(max-width: 1024px) {
    .about-image-color {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .about-image-color.color-visible {
        opacity: 1;
    }
}

/* Remove old hover */
/* .about-image:hover { filter: grayscale(0%); } */

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.about-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Process Section */
.process-section {
    padding: 10rem var(--padding-page);
    border-bottom: 1px solid var(--color-border);
}

.section-intro {
    margin-bottom: 6rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.process-step {
    border-left: 1px solid var(--color-border);
    padding-left: 2rem;
    position: relative;
}

.step-number {
    font-family: var(--font-mono);
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.step-list li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.step-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.step-output {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-muted);
    padding-top: 1rem;
    border-top: 1px dashed #333;
}

/* Tools Section */
.tools-section {
    margin-top: 8rem;
}

.tools-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tool-tag {
    border: 1px solid var(--color-border);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.tool-tag:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   7. WORK LIST (Magnetic)
   ========================================= */
.work-section {
    padding: 15rem var(--padding-page);
}

.work-list {
    display: flex;
    flex-direction: column;
}

.work-item {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: baseline;
    transition: opacity 0.5s;
    text-decoration: none;
    color: inherit;
    will-change: transform;
}

.work-item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.work-list:hover .work-item {
    opacity: 0.3;
}

/* Dim others */
.work-list .work-item:hover {
    opacity: 1;
    z-index: 2;
}

/* Highlight current */

.work-index {
    font-family: var(--font-mono);
    color: var(--color-muted);
    font-size: 0.9rem;
}

.work-name {
    font-family: var(--font-heading);
    font-size: 5vw;
    text-transform: uppercase;
    color: var(--color-text);
    transition: transform 0.5s var(--ease-expo);
}

.work-item:hover .work-name {
    transform: translateX(20px);
}

.work-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-muted);
    text-align: right;
}

/* =========================================
   8. MARQUEE
   ========================================= */
.marquee-container {
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
    background: var(--color-bg);
}

.marquee-text {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 6vw;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-muted);
    will-change: transform;
    display: inline-block;
}

/* =========================================
   9. INQUIRY FORM (Focus Mode)
   ========================================= */
.inquiry-section {
    padding: 15rem var(--padding-page) 5rem;
    min-height: 100vh;
    min-height: 100dvh;
    /* iOS Fix */
}

.inquiry-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    margin-bottom: 6rem;
    text-transform: uppercase;
    line-height: 0.9;
}

.form-group {
    margin-bottom: 4rem;
    position: relative;
    max-width: 800px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 1.5rem 0;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 2rem;
    transition: border-color 0.5s;
    border-radius: 0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-label {
    position: absolute;
    top: 1.5rem;
    left: 0;
    font-family: var(--font-mono);
    color: var(--color-muted);
    pointer-events: none;
    transition: 0.5s var(--ease-expo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label,
.form-textarea:focus+.form-label,
.form-textarea:not(:placeholder-shown)+.form-label {
    top: -1.5rem;
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-text);
    padding: 2rem 3rem;
    /* Slightly reduced padding to fit two */
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: all 0.4s;
    flex: 1;
    /* Both take equal space */
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
}

.submit-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.cv-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0;
    transition: color 0.3s;
    align-self: flex-start;
    /* Left align */
    border-bottom: 1px solid transparent;
}

.cv-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Footer logic */
.footer-row {
    display: flex;
    justify-content: space-between;
    padding-top: 10rem;
    font-family: var(--font-mono);
    color: var(--color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 11vw;
        /* Reduced from 15vw/11vw to fit */
        word-break: break-word;
        /* Prevent overflow */
        max-width: 100%;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .work-name {
        font-size: 10vw;
    }

    /* Mobile Navigation - Floating Bottom Bar */
    .nav-bar {
        position: fixed;
        top: auto;
        bottom: 2rem;
        /* Safe Area for iOS Home Indicator */
        bottom: calc(2rem + env(safe-area-inset-bottom));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 2rem;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 2rem;
        z-index: 9999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

        /* Prevent width issues */
        max-width: 90vw;
        width: auto;
    }

    .nav-link {
        font-size: 0.85rem;
        padding-bottom: 0;
        opacity: 0.8;
    }

    .nav-link:hover {
        opacity: 1;
    }

    /* Adjust Sections for Mobile */
    .about-section,
    .process-section,
    .work-section,
    .inquiry-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .inquiry-title {
        font-size: 15vw;
    }

    /* Disable "Dim Others" on Mobile to prevent sticky hover */
    .work-list:hover .work-item {
        opacity: 1;
    }

    .work-item:hover {
        opacity: 1;
    }
}

/* Fix for Hover on Touch Devices */
@media (hover: none) {
    .work-list:hover .work-item {
        opacity: 1;
    }

    .cursor-dot,
    .cursor-circle {
        display: none;
        /* Hide custom cursor on touch */
    }

    * {
        cursor: auto !important;
        /* Restore default cursor */
    }
}

/* =========================================
   PASSWORD MODAL
   ========================================= */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.password-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.password-modal.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.modal-desc {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.whatsapp-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    /* Slight round */
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    background: #20BD5A;
}

/* =========================================
   CASE STUDY STYLES
   ========================================= */

/* Back Button */
/* Back Button */
.back-nav,
.back-nav:visited {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    color: var(--color-muted) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.back-nav:hover {
    color: var(--color-text);
}

/* Hero */
.case-hero {
    padding: 15rem var(--padding-page) 5rem;
    border-bottom: 1px solid var(--color-border);
}

.case-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 4rem;
}

.case-meta {
    display: flex;
    gap: 4rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item .label {
    color: var(--color-muted);
    text-transform: uppercase;
}

/* Content */
.case-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.case-section {
    margin-bottom: 8rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.body-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
}

/* Case Study Images */
.case-image-container {
    margin: 4rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.case-image {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

/* Highlight Box */
.highlight-box {
    border-left: 2px solid var(--color-accent);
    padding-left: 2rem;
    margin: 3rem 0;
}

.highlight-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text);
}

/* Lists */
.clean-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.clean-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    display: flex;
    gap: 1rem;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    text-align: center;
    border: 1px solid #222;
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    color: var(--color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    word-break: break-all;
    /* Prevent overflow */
    font-size: 2.5rem;
    /* Slightly smaller to fit "ABSORBED" */
}

.stat-desc {
    font-size: 0.9rem;
    color: #888;
}

/* View Project Button (Index) */
.view-project-btn {
    background: transparent;
    border: 1px solid var(--color-muted);
    color: var(--color-text);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    /* Push to right */
    opacity: 0;
    transform: translateX(-10px);
}

.work-item:hover .view-project-btn {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--color-accent);
}

/* Case Footer Navigation */
.case-footer-nav {
    display: flex;
    justify-content: center;
    padding: 6rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.back-link:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .case-title {
        font-size: 12vw;
    }

    .case-meta {
        flex-direction: column;
        gap: 2rem;
    }

    .view-project-btn {
        opacity: 1;
        /* Always visible on mobile */
        transform: none;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Restore pointer for new div work-items */
.work-item {
    cursor: pointer;
}

/* Next Project Link */
.next-proj {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3vw;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.next-proj:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    letter-spacing: 0.05em;
}

/* Ensure Footer centers it */
.case-footer {
    padding: 10rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* =========================================
   12. ADMIN DASHBOARD & LOGIN
   ========================================= */
.admin-dashboard {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: #0a0a0a;
    border: 1px solid var(--color-accent);
    padding: 2rem;
    z-index: 10000;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    cursor: auto !important;
    /* Ensure default cursor is visible */
}

/* Ensure password modal also has default cursor */
.password-modal .modal-content {
    cursor: auto !important;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.dashboard-header h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin: 0;
}

.dashboard-header button {
    background: #333;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    cursor: pointer;
}

.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section h4 {
    font-family: var(--font-mono);
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row input {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    padding: 0.8rem;
    color: #fff;
    font-family: var(--font-mono);
}

.input-row button {
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    padding: 0 1.5rem;
    font-family: var(--font-heading);
    cursor: pointer;
}

/* Project Toggle List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #222;
    padding: 0.5rem;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #111;
}

.project-row span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.project-row button {
    background: none;
    border: 1px solid #333;
    padding: 0.2rem 0.5rem;
    color: #aaa;
    font-size: 0.7rem;
    cursor: pointer;
}

.project-row.locked button {
    border-color: red;
    color: red;
}

.project-row.unlocked button {
    border-color: green;
    color: green;
}

.close-dash {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid #333;
    color: #666;
    cursor: pointer;
}

/* =========================================
   13. FOOTER
   ========================================= */
.site-footer {
    padding: 2rem var(--padding-page);
    border-top: 1px solid var(--color-border);
    margin-top: 5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-login-link {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.admin-login-link:hover {
    color: var(--color-text);
}

/* =========================================
   14. RESPONSIVE DASHBOARD
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 6rem;
        /* Space for bottom nav */
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-dashboard {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
    }

    .dashboard-header h3 {
        font-size: 1.2rem;
    }

    .input-row {
        flex-direction: column;
    }

    .input-row button {
        width: 100%;
        padding: 1rem;
    }

    .project-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-row button {
        align-self: flex-end;
    }
}

/* =========================================
   13. SOUND PERMISSION MODAL
   ========================================= */
.sound-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    /* Highest priority */
    display: none;
    /* Hidden by default, toggled by JS */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    cursor: auto !important;
    /* Force System Cursor */
}

.sound-modal-content {
    background: #0a0a0a;
    border: 1px solid var(--color-accent);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(212, 59, 33, 0.2);
    animation: modalFadeIn 0.8s ease-out;
    cursor: auto !important;
    /* Force System Cursor */
}

.sound-modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.sound-modal-desc {
    font-family: var(--font-mono);
    color: #888;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.sound-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.sound-btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer !important;
    /* Force Pointer */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 1px;
}

/* Option 1: Yes (Highlighted) */
.sound-btn.yes {
    background: var(--color-accent);
    color: var(--color-bg);
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(212, 59, 33, 0.4);
}

.sound-btn.yes:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 59, 33, 0.6);
}

/* Option 2: No (Low emphasis) */
.sound-btn.no {
    background: transparent;
    color: #666;
    border: 1px solid #333;
}

.sound-btn.no:hover {
    border-color: #666;
    color: var(--color-text);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   15. MOBILE 3D CANVAS
   ========================================= */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
    /* Visible for all */
}

/* Encode readability globally */
.hero-title,
.hero-subtitle {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    /* Mobile specific adjustments if needed */
}