/* ═════════════════════════════════════════════════════════
   COMPLETE STYLESHEET — Cleaned & Modernized
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --accent-soft: rgba(99, 102, 241, 0.07);
    --accent-softer: rgba(99, 102, 241, 0.04);
    --bg: #08080c;
    --surface: #111118;
    --card: #13131c;
    --card-hover: #181824;
    --border: #1e1e30;
    --border-hover: #363655;
    --fg: #eaeaf0;
    --fg-muted: #8888a0;
    --fg-dim: #55556a;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 12px 48px rgba(0,0,0,0.55);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ── Global Resets ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: var(--font-body);
    color: var(--fg);
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg);
    overflow-x: hidden;
}
html { min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }
h1, h2, h3, h4, h5, h6 { text-shadow: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
    background: linear-gradient(180deg, rgba(17,17,24,0.95) 0%, rgba(8,8,12,0.98) 100%);
    padding: 8px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    font-family: var(--font-display);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-image {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}
.nav-logo:hover .nav-logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

/* ── Nav Links & Icons ─────────────────────────────── */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    align-items: center;
}
.nav-links li { display: inline-block; }
.nav-links a {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-family: var(--font-display);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.04em;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-links a i {
    font-size: 0.75rem;
    color: var(--accent);
    transition: transform 0.3s ease, color 0.3s ease;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.08);
}
.nav-links a:hover i {
    color: var(--accent-light);
    transform: scale(1.15);
}

/* ── Bracket Hover Effect ──────────────────────────── */
.cl-effect-1 a::before,
.cl-effect-1 a::after {
    display: inline-block;
    opacity: 0;
    color: var(--accent-light);
    font-weight: 400;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    pointer-events: none;
}
.cl-effect-1 a::before {
    content: '[';
    margin-right: 4px;
    transform: translateX(10px);
}
.cl-effect-1 a::after {
    content: ']';
    margin-left: 4px;
    transform: translateX(-10px);
}
.cl-effect-1 a:hover::before,
.cl-effect-1 a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ── Mobile Hamburger Button ─────────────────────────── */
.nav-toggle {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}
.nav-toggle:hover,
.nav-toggle:focus {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    outline: none;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #eaeaf0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(0) rotate(-45deg); }


/* ── Mobile Layout ─────────────────────────────────── */
@media (max-width: 768px) {
    .navbar { 
        padding: 8px 16px;
    }
    
    .nav-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-toggle { 
        display: flex !important;
        order: 3;
        margin-left: auto;
    }

    .navbar .nav-links {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        order: 4;
        gap: 2px !important;
        padding: 8px !important;
        margin-top: 8px !important;
        background: rgba(17, 17, 24, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(99, 102, 241, 0.15) !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 40px rgba(0,0,0,0.6) !important;
        animation: mobileMenuSlide 0.3s ease forwards;
    }

    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar .nav-links.nav-open {
        display: flex !important;
    }

    .navbar .nav-links li {
        display: block !important;
        width: 100%;
    }

    .navbar .nav-links a {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 16px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.08em !important;
        border-radius: 10px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        transition: all 0.2s ease !important;
    }

    .navbar .nav-links a:hover,
    .navbar .nav-links a:active {
        background: rgba(99, 102, 241, 0.15) !important;
        border-color: rgba(99, 102, 241, 0.2) !important;
        color: #fff !important;
    }

    /* Disable bracket effect on mobile */
    .cl-effect-1 a::before,
    .cl-effect-1 a::after {
        display: none !important;
    }

    /* Subtle separators */
    .navbar .nav-links li:not(:last-child) a {
        border-bottom: 1px solid rgba(99, 102, 241, 0.08) !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .navbar .nav-links li:not(:first-child) a {
        border-radius: 0 0 10px 10px !important;
    }

    .navbar .nav-links li:not(:first-child):not(:last-child) a {
        border-radius: 0 !important;
    }

    #main-footer { 
        min-width: 100% !important; 
        width: 100% !important; 
    }
}

@media only screen and (max-width: 600px) {
    .navbar { 
        padding: 6px 12px;
    }
    
    .nav-logo-image { 
        max-height: 32px; 
    }
    
    .navbar .nav-links {
        padding: 6px !important;
        margin-top: 6px !important;
    }

    .navbar .nav-links a {
        font-size: 0.9rem !important;
        padding: 12px 14px !important;
    }
}

@media only screen and (max-width: 380px) {
    .navbar .nav-links a {
        font-size: 0.85rem !important;
        padding: 11px 12px !important;
        letter-spacing: 0.05em !important;
    }
}


/* ── Page Structure ────────────────────────────────────── */
.port-page,
.about-page,
.index-container,
.game-collection,
.contact-page {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 60vh;
}

/* Kill shared stylesheet interference on scoped pages */
.port-page .title-image,
.port-page .favorite-projects,
.port-page .section-title,
.port-page .projects-container,
.port-page .project-card,
.port-page .project-image,
.port-page .project-title,
.port-page .project-description,
.port-page .project-link,
.about-page .header,
.about-page .about-text,
.about-page .skills-section,
.about-page .skill,
.about-page .skill-image,
.contact-page .container,
.contact-page .row,
.contact-page .col-12,
.contact-page .mb-3,
.contact-page .my-5,
.contact-page .text-center,
.contact-page .form-label,
.contact-page .form-control,
.contact-page .form-check,
.contact-page .form-check-input,
.contact-page .form-check-label,
.contact-page .btn,
.contact-page .btn-primary {
    all: unset;
    display: block;
    box-sizing: border-box;
}

/* ── Global Shared Overrides ─────────────────────────────── */
body:has(.port-page) .navbar,
body:has(.index-container) .navbar,
body:has(.contact-page) .navbar,
body:has(.game-collection) .navbar,
body:has(.about-page) .navbar {
    display: block;
}
body:has(.port-page) #main-footer,
body:has(.index-container) #main-footer,
body:has(.contact-page) #main-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid #1e1e30 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html, body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ── About Page Overrides ─────────────────────────────── */
.about-page .header {
    text-align: center;
    padding: 30px 20px;
    color: #fff;
    background: linear-gradient(180deg, rgb(40 40 40 / 90%), rgb(20 20 20 / 90%));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    max-width: 800px;
}
.about-page .header h1 {
    font-family: var(--font-display);
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}
.about-page .header p {
    font-size: 1.3em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}
.about-text {
    max-width: 700px;
    margin: 30px auto;
    padding: 25px;
    background: linear-gradient(180deg, rgb(50 50 50 / 85%), rgb(20 20 20 / 85%));
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    border-bottom: 5px solid #4a90e2;
    color: #fff;
}
.about-text h2 {
    font-family: var(--font-display);
    font-size: 2.8em;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    text-align: center;
}
.about-text p {
    font-size: 1.15em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}
.skills-section {
    background: linear-gradient(180deg, rgb(30 30 30 / 90%), rgb(10 10 10 / 90%));
    padding: 50px 20px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.3);
}
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.skill {
    flex: 1 1 200px;
    max-width: 280px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid transparent;
}
.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 5px solid var(--accent);
}
.skill-image img {
    width: 90px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.skill h3 {
    font-family: var(--font-display);
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.skill p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

@media only screen and (max-width: 800px) {
    .about-page .header { padding: 20px 15px; margin: 15px auto; max-width: 90%; }
    .about-page .header h1 { font-size: 2.5em; }
    .about-page .header p { font-size: 1.1em; padding: 0 10px; }
    .about-text { max-width: 90%; margin: 20px auto; padding: 20px; }
    .about-text h2 { font-size: 2.2em; }
    .about-text p { font-size: 1em; line-height: 1.6; }
    .skills-section { padding: 40px 15px; }
    .skills { gap: 20px; }
    .skill { max-width: 260px; padding: 15px; }
    .skill-image img { width: 80px; }
    .skill h3 { font-size: 1.4em; }
    .skill p { font-size: 0.95em; line-height: 1.4; }
}
@media only screen and (max-width: 576px) {
    .about-page .header h1 { font-size: 2em; }
    .about-page .header p { font-size: 1em; }
    .about-text h2 { font-size: 1.8em; }
    .about-text p { font-size: 0.95em; }
    .skills { gap: 15px; }
    .skill { max-width: 250px; padding: 12px; margin: 20px auto; }
    .skill-image img { width: 70px; }
    .skill h3 { font-size: 1.3em; }
    .skill p { font-size: 0.9em; }
}

/* ── Footer ──────────────────────────────────────────── */
#main-footer {
    padding: 14px 20px;
    color: var(--fg-muted);
    text-align: center;
    position: relative;
    width: 100%;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* ── Responsive Fixes ──────────────────────────────────── */
@media only screen and (max-width: 800px) {
    .title-image { max-width: 80%; }
}
@media only screen and (max-width: 576px) {
    .section-title { font-size: 2em; }
}

/* ── Theme Customizer Panel ──────────────────────────── */
#theme-customizer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-body); /* Changed from --rp-font-body */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.theme-actions {
    display: flex;
    align-items: center;
    background: var(--surface); /* Changed from --rp-surface */
    border: 1px solid var(--border); /* Changed from --rp-border */
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.theme-divider-v {
    width: 1px;
    height: 20px;
    background: var(--border); /* Changed from --rp-border */
    margin: 0 2px;
}

#theme-mode-btn,
#theme-custom-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--fg-muted); /* Changed from --rp-fg-muted */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#theme-mode-btn:hover,
#theme-custom-btn:hover {
    color: var(--accent); /* Changed from --rp-accent */
    background: var(--accent-soft); /* Changed from --rp-accent-soft */
}

#theme-custom-btn.active {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 12px var(--accent-glow);
}

#theme-panel {
    background: var(--surface); /* Changed from --rp-surface */
    border: 1px solid var(--border); /* Changed from --rp-border */
    border-radius: var(--radius);
    padding: 20px;
    width: 240px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: bottom right;
}

#theme-panel.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none;
}

#theme-panel h3 {
    font-family: var(--font-display); /* Changed from --rp-font-display */
    font-size: 0.85rem;
    color: var(--fg); /* Changed from --rp-fg */
    margin: 0 0 16px 0;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.theme-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-group label {
    font-size: 0.8rem;
    color: var(--fg-muted); /* Changed from --rp-fg-muted */
}

.control-group input[type="color"] {
    -webkit-appearance: none;
    border: 2px solid var(--border); /* Changed from --rp-border */
    border-radius: 8px;
    width: 36px;
    height: 28px;
    cursor: pointer;
    background: transparent;
    padding: 2px;
}

.control-group input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.control-group input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }

.reset-btn {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border); /* Changed from --rp-border */
    border-radius: var(--radius-xs);
    color: var(--fg-muted); /* Changed from --rp-fg-muted */
    font-family: var(--font-display); /* Changed from --rp-font-display */
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.reset-btn:hover {
    background: rgba(255, 80, 80, 0.1);
    border-color: rgba(255, 80, 80, 0.3);
    color: #ff5050;
}

/* ── Back to Top Button ──────────────────────── */
#back-to-top-btn {
    display: none; /* Hidden on Desktop */
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#back-to-top-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 12px var(--accent-glow);
}

/* ── Smooth Page Transitions ──────────────────────── */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg, #08080c);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-transition-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

/* ── Text Scramble Effect ─────────────────────────── */
.scramble-char {
    color: var(--accent) !important;
    opacity: 0.7;
    transition: none !important;
}

/* ── Magnetic Buttons ─────────────────────────────── */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ── Hacker Terminal Easter Egg ────────────────────── */
#hacker-terminal {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

#terminal-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: #00ff41;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
}
#terminal-toggle:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

#terminal-window {
    width: 340px;
    height: 280px;
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(0, 255, 65, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#terminal-window.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

#terminal-header {
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
#terminal-header span {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--fg-dim);
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#terminal-output {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #00ff41;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
#terminal-output::-webkit-scrollbar { width: 4px; }
#terminal-output::-webkit-scrollbar-track { background: transparent; }
#terminal-output::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.terminal-line { margin-bottom: 4px; }
.terminal-line.error { color: #ff5555; }
.terminal-line.system { color: var(--fg-dim); font-style: italic; }

#terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--border);
    gap: 8px;
}
#terminal-input-line span {
    color: #00ff41;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
}
#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff41;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    caret-color: #00ff41;
}


/* ═══════════════════════════════════════════════════════
   MOBILE OVERRIDES — ALL COMBINED HERE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* 1. Hide the "Like what you see? 🤭" CTA section */
    .rp-footer-cta { 
        display: none !important; 
    }

    /* 2. Hide the Hacker Terminal */
    #hacker-terminal { 
        display: none !important; 
    }

    /* 3. Show the Back to Top Button in bottom right */
    #back-to-top-btn { 
        display: flex !important; 
    }

    /* 4. THEME CUSTOMIZER MOBILE OVERRIDES */
    /* This forces it out of 'fixed' positioning so it acts like a normal menu item */
    #theme-customizer {
        position: static !important;
        width: 100% !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 8px;
        padding: 0 !important;
    }

    /* Make the pill look like a clean nav segment */
    .navbar .nav-links .theme-actions {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 10px;
        margin: 0 auto;
        box-shadow: none;
        justify-content: center;
        gap: 16px;
    }

    /* Make the color panel open cleanly inside the menu */
    #theme-panel {
        width: 100% !important;
        margin-bottom: 10px;
        transform-origin: top center;
    }
    
    /* Use display:none instead of transform for smoother menu opening */
    #theme-panel.hidden {
        display: none !important; 
    }
}