/* ==========================================================================
   Amlan Mallick — Interactive IDE Portfolio & Resume Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   SHARED TRANSITIONS & UTILITIES
   ========================================================================== */
:root {
    --tf: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --tm: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --ts: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --r: 14px;
    --nav-h: 72px;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

/* ==========================================================================
   THEME PALETTES
   ========================================================================== */

/* 1. VS Code Dark (Default) */
body[data-theme="vs-dark"] {
    --bg: #0d1117;
    --bg-w: rgba(30, 30, 30, 0.72);
    --bg-act: rgba(24, 24, 24, 0.65);
    --bg-side: rgba(37, 37, 38, 0.7);
    --bg-ed: rgba(30, 30, 30, 0.65);
    --bg-term: rgba(26, 26, 26, 0.7);
    --bg-sb: rgba(37, 37, 38, 0.72);
    --ac: #007acc;
    --ac-rgb: 0,122,204;
    --ac-glow: rgba(0,122,204,0.22);
    --ac-glow-s: rgba(0,122,204,0.5);
    --bdr: rgba(255,255,255,0.06);
    --bdr-h: rgba(255,255,255,0.14);
    --tx: #d4d4d4;
    --tx-m: #858585;
    --tx-w: #ffffff;
    --tx-hd: #8b5cf6;
    /* Syntax */
    --sy-kw: #569cd6;
    --sy-prop: #9cdcfe;
    --sy-str: #ce9178;
    --sy-num: #b5cea8;
    --sy-cmt: #6a9955;
    --sy-bkt: #ffd700;
    --sy-sel: #d7ba7d;
    --sy-h: #569cd6;
    --sy-it: #ce9178;
    --sy-bull: #e5c07b;
    --sy-var: #9cdcfe;
}

/* 2. One Dark Pro */
body[data-theme="one-dark"] {
    --bg: #1a1e24;
    --bg-w: rgba(40, 44, 52, 0.72);
    --bg-act: rgba(33, 37, 43, 0.65);
    --bg-side: rgba(33, 37, 43, 0.7);
    --bg-ed: rgba(40, 44, 52, 0.65);
    --bg-term: rgba(33, 37, 43, 0.7);
    --bg-sb: rgba(33, 37, 43, 0.72);
    --ac: #61afef;
    --ac-rgb: 97,175,239;
    --ac-glow: rgba(97,175,239,0.22);
    --ac-glow-s: rgba(97,175,239,0.5);
    --bdr: rgba(255,255,255,0.05);
    --bdr-h: rgba(255,255,255,0.12);
    --tx: #abb2bf;
    --tx-m: #5c6370;
    --tx-w: #ffffff;
    --tx-hd: #c678dd;
    --sy-kw: #c678dd;
    --sy-prop: #e06c75;
    --sy-str: #98c379;
    --sy-num: #d19a66;
    --sy-cmt: #5c6370;
    --sy-bkt: #abb2bf;
    --sy-sel: #61afef;
    --sy-h: #61afef;
    --sy-it: #e5c07b;
    --sy-bull: #e06c75;
    --sy-var: #abb2bf;
}

/* 3. Dracula */
body[data-theme="dracula"] {
    --bg: #1e1f29;
    --bg-w: rgba(40, 42, 54, 0.72);
    --bg-act: rgba(25, 26, 33, 0.65);
    --bg-side: rgba(25, 26, 33, 0.7);
    --bg-ed: rgba(40, 42, 54, 0.65);
    --bg-term: rgba(40, 42, 54, 0.7);
    --bg-sb: rgba(25, 26, 33, 0.72);
    --ac: #ff79c6;
    --ac-rgb: 255,121,198;
    --ac-glow: rgba(255,121,198,0.22);
    --ac-glow-s: rgba(255,121,198,0.5);
    --bdr: rgba(255,255,255,0.06);
    --bdr-h: rgba(255,255,255,0.15);
    --tx: #f8f8f2;
    --tx-m: #6272a4;
    --tx-w: #ffffff;
    --tx-hd: #bd93f9;
    --sy-kw: #ff79c6;
    --sy-prop: #50fa7b;
    --sy-str: #f1fa8c;
    --sy-num: #bd93f9;
    --sy-cmt: #6272a4;
    --sy-bkt: #f8f8f2;
    --sy-sel: #8be9fd;
    --sy-h: #8be9fd;
    --sy-it: #ffb86c;
    --sy-bull: #ff79c6;
    --sy-var: #f8f8f2;
}

/* 4. Synthwave '84 */
body[data-theme="synthwave"] {
    --bg: #181524;
    --bg-w: rgba(38, 35, 53, 0.72);
    --bg-act: rgba(36, 27, 47, 0.65);
    --bg-side: rgba(36, 27, 47, 0.7);
    --bg-ed: rgba(38, 35, 53, 0.65);
    --bg-term: rgba(38, 35, 53, 0.7);
    --bg-sb: rgba(36, 27, 47, 0.72);
    --ac: #ff7edb;
    --ac-rgb: 255,126,219;
    --ac-glow: rgba(255,126,219,0.3);
    --ac-glow-s: rgba(255,126,219,0.6);
    --bdr: rgba(255,126,219,0.1);
    --bdr-h: rgba(255,126,219,0.3);
    --tx: #b3b1ad;
    --tx-m: #848bb3;
    --tx-w: #ffffff;
    --tx-hd: #36f9f6;
    --sy-kw: #fede5d;
    --sy-prop: #36f9f6;
    --sy-str: #ff7edb;
    --sy-num: #f92aad;
    --sy-cmt: #848bb3;
    --sy-bkt: #36f9f6;
    --sy-sel: #fe4450;
    --sy-h: #36f9f6;
    --sy-it: #fede5d;
    --sy-bull: #ff7edb;
    --sy-var: #fede5d;
}

/* 5. Cyberpunk */
body[data-theme="cyberpunk"] {
    --bg: #030303;
    --bg-w: rgba(9, 9, 14, 0.72);
    --bg-act: rgba(5, 5, 8, 0.65);
    --bg-side: rgba(5, 5, 8, 0.7);
    --bg-ed: rgba(9, 9, 14, 0.65);
    --bg-term: rgba(5, 5, 8, 0.7);
    --bg-sb: rgba(5, 5, 8, 0.72);
    --ac: #00f0ff;
    --ac-rgb: 0,240,255;
    --ac-glow: rgba(0,240,255,0.25);
    --ac-glow-s: rgba(0,240,255,0.6);
    --bdr: rgba(252,239,26,0.15);
    --bdr-h: rgba(0,240,255,0.4);
    --tx: #ffffff;
    --tx-m: #5e6b7c;
    --tx-w: #ffffff;
    --tx-hd: #fcef1a;
    --sy-kw: #fcef1a;
    --sy-prop: #00f0ff;
    --sy-str: #ff0055;
    --sy-num: #00ff66;
    --sy-cmt: #5e6b7c;
    --sy-bkt: #ffffff;
    --sy-sel: #ff0055;
    --sy-h: #00f0ff;
    --sy-it: #fcef1a;
    --sy-bull: #00ff66;
    --sy-var: #ffffff;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--tx);
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--ts), color var(--tm);
}

body.custom-cursor-active {
    cursor: none; /* Custom cursor active on desktop */
}

input, textarea, select {
    cursor: text; /* Restore text cursor for form inputs */
}

body.custom-cursor-active button, 
body.custom-cursor-active a, 
body.custom-cursor-active [role="button"],
body.custom-cursor-active .file-item, 
body.custom-cursor-active .editor-tab, 
body.custom-cursor-active .activity-icon,
body.custom-cursor-active .term-cmd-btn, 
body.custom-cursor-active .tab-close, 
body.custom-cursor-active .mode-toggle-btn,
body.custom-cursor-active .social-icon, 
body.custom-cursor-active .highlight-box, 
body.custom-cursor-active .skill-card,
body.custom-cursor-active .timeline-item, 
body.custom-cursor-active .v-project-card, 
body.custom-cursor-active .nav-anchor {
    cursor: none; /* Keep custom cursor on interactive elements */
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-act); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ac); }

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 999999;
    pointer-events: none;
    transition: width 0.12s, height 0.12s, background-color 0.12s, border-color 0.12s;
}

.cursor-dot {
    width: 6px; height: 6px;
    background-color: var(--ac);
    box-shadow: 0 0 10px var(--ac);
}

.cursor-outline {
    width: 30px; height: 30px;
    border: 1.5px solid var(--ac);
    opacity: 0.6;
}

body.hovering .cursor-outline {
    width: 46px; height: 46px;
    background-color: rgba(var(--ac-rgb), 0.08);
    opacity: 1;
    box-shadow: 0 0 18px var(--ac-glow-s);
}

/* ==========================================================================
   BACKGROUND ORBS
   ========================================================================== */

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    animation: orb-drift 22s ease-in-out infinite alternate;
}
.orb-1 { width:500px; height:500px; background:radial-gradient(circle, var(--ac) 0%, transparent 70%); top:-8%; left:-8%; }
.orb-2 { width:500px; height:500px; background:radial-gradient(circle, #3b82f6 0%, transparent 70%); bottom:-8%; right:-8%; animation-delay:-6s; }
.orb-3 { width:350px; height:350px; background:radial-gradient(circle, var(--ac) 0%, transparent 70%); top:45%; left:35%; animation-delay:-11s; }

@keyframes orb-drift {
    0%   { transform: translateY(0) scale(1); }
    100% { transform: translateY(-60px) scale(1.15); }
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 4%;
    height: var(--nav-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(var(--bg, 0,0,0), 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bdr);
    transition: background var(--tm);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--tx-w);
    letter-spacing: -1px;
    flex-shrink: 0;
}
.logo span {
    color: var(--ac);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--ac-glow-s);
}

.profile-header-info {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.neon-glow {
    background: rgba(var(--ac-rgb), 0.12);
    border: 1px solid var(--ac);
    color: var(--ac);
    box-shadow: 0 0 10px var(--ac-glow);
}
.badge-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

/* Mode Toggle */
.mode-toggle-container {
    display: flex;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bdr);
    padding: 3px;
    border-radius: 100px;
    gap: 3px;
    flex-shrink: 0;
}
.mode-toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.45);
    padding: 0.38rem 1rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--tf);
    white-space: nowrap;
}
.mode-toggle-btn.active {
    background: var(--ac);
    color: var(--tx-w);
    box-shadow: 0 0 10px var(--ac-glow);
}
.mode-toggle-btn:hover:not(.active) {
    color: var(--tx-w);
}

/* Theme Selector */
.theme-controller {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--bdr);
    padding: 0.38rem 0.9rem;
    border-radius: 100px;
    flex-shrink: 0;
}
.theme-label {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--tx-m);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.theme-label i { color: var(--ac); }
.theme-select {
    background: transparent;
    border: none;
    color: var(--tx-w);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.theme-select option { background-color: var(--bg-w); color: var(--tx); }

/* Nav Hire Button */
.nav-hire-btn {
    background: var(--ac);
    border: 1px solid var(--ac);
    color: var(--tx-w);
    padding: 0.38rem 1.1rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.73rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--tf);
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--ac-glow);
}
.nav-hire-btn:hover {
    background: transparent;
    color: var(--ac);
    box-shadow: 0 0 14px var(--ac-glow-s);
}

/* Nav PDF Button */
.nav-pdf-btn {
    background: rgba(var(--ac-rgb), 0.12);
    border: 1px solid var(--ac);
    color: var(--ac);
    padding: 0.38rem 1rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.73rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--tf);
    flex-shrink: 0;
}
.nav-pdf-btn:hover {
    background: var(--ac);
    color: var(--tx-w);
    box-shadow: 0 0 14px var(--ac-glow-s);
}

/* ==========================================================================
   VIEW TOGGLE LOGIC
   ========================================================================== */

/* Visual mode */
body.visual-mode-active #view-visual  { display: block; }
body.visual-mode-active #view-ide     { display: none !important; }

/* IDE mode */
body.ide-mode-active #view-visual     { display: none !important; }
body.ide-mode-active #view-ide        { display: flex; }

/* Default hidden */
#view-visual, #view-ide { display: none; }

/* Fade-in animation on switch */
#view-visual, #view-ide {
    animation: fade-in var(--tm) forwards;
}
@keyframes fade-in {
    from { opacity:0; transform: translateY(10px) scale(0.99); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   VIEW A: VISUAL PORTFOLIO
   ========================================================================== */

.visual-portfolio-view {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 4%;
}

.visual-layout {
    display: flex;
    gap: 5%;
    align-items: flex-start;
}

/* Sticky Left Sidebar */
.visual-sidebar {
    width: 32%;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    max-height: calc(100vh - var(--nav-h) - 3rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.visual-sidebar::-webkit-scrollbar { display: none; }

.sidebar-sticky-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.visual-badge-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(var(--ac-rgb), 0.1);
    border: 1px solid var(--ac);
    color: var(--ac);
    box-shadow: 0 0 8px var(--ac-glow);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.sidebar-profile-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--tx-w);
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

.sidebar-profile-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--tx);
    margin-bottom: 1rem;
}

.sidebar-intro {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--tx-m);
}

/* Scrollspy Nav */
.visual-nav {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.nav-anchor {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--tf);
}

.nav-line {
    width: 28px;
    height: 1px;
    background: var(--tx-m);
    margin-right: 0.7rem;
    transition: width var(--tf), background var(--tf);
    flex-shrink: 0;
}
.nav-num {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--tx-m);
    margin-right: 0.35rem;
    transition: color var(--tf);
    font-family: var(--font-sans);
}
.nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tx-m);
    transition: color var(--tf), transform var(--tf);
}

.nav-anchor:hover .nav-line,
.nav-anchor.active .nav-line {
    width: 52px;
    background: var(--ac);
}
.nav-anchor:hover .nav-num,
.nav-anchor.active .nav-num { color: var(--ac); }
.nav-anchor:hover .nav-label,
.nav-anchor.active .nav-label { color: var(--tx-w); transform: translateX(4px); }

/* Sidebar Socials */
.sidebar-socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.sidebar-socials .social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    font-size: 0.73rem;
    color: var(--tx);
    text-decoration: none;
    transition: var(--tf);
}
.sidebar-socials .social-pill:hover {
    background: rgba(var(--ac-rgb), 0.07);
    border-color: var(--ac);
    color: var(--tx-w);
    transform: translateY(-2px);
}
.sidebar-socials .social-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx-m);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--tf);
}
.sidebar-socials .social-icon:hover {
    background: rgba(var(--ac-rgb), 0.07);
    border-color: var(--ac);
    color: var(--tx-w);
    transform: translateY(-2px);
}

/* Right Scrollable Content */
.visual-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 8rem;
}

.visual-section {
    scroll-margin-top: calc(var(--nav-h) + 1.5rem);
    margin-bottom: 7rem;
}

.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--tx-w);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bdr);
}

.section-intro-desc {
    font-size: 0.9rem;
    color: var(--tx-m);
    margin-bottom: 1.5rem;
}

/* About */
.about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}
.about-paragraphs p {
    font-size: 0.93rem;
    line-height: 1.72;
    color: var(--tx);
}
.about-paragraphs strong {
    color: var(--ac);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.highlight-box {
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--bdr);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: var(--tf);
}
.highlight-box:hover {
    border-color: var(--ac);
    background: rgba(var(--ac-rgb), 0.04);
    transform: translateY(-2px);
}
.hb-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--ac);
    display: block;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 12px var(--ac-glow);
}
.hb-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--tx-m);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.skill-card {
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--bdr);
    border-radius: 14px;
    padding: 1.4rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color var(--tm), box-shadow var(--tm), transform var(--tm);
}
.skill-card:hover {
    border-color: var(--ac);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 0 12px var(--ac-glow);
}
.sc-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}
.sc-icon {
    font-size: 1.25rem;
    color: var(--ac);
    text-shadow: 0 0 8px var(--ac-glow-s);
}
.sc-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx-w);
}
.sc-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.3rem;
}
.sc-bullets li {
    font-size: 0.83rem;
    color: var(--tx);
    position: relative;
    padding-left: 1.1rem;
}
.sc-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--ac);
    font-size: 0.85rem;
}

/* Timeline */
.visual-timeline {
    position: relative;
    padding-left: 1.6rem;
    margin-left: 0.4rem;
}
.visual-timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 1px;
    background: var(--bdr);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--bdr);
    border-radius: 14px;
    padding: 1.4rem;
    transition: var(--tm);
}
.timeline-item:hover {
    border-color: var(--ac);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 0 12px var(--ac-glow);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: calc(-1.6rem - 4px);
    top: 1.8rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--ac);
    box-shadow: 0 0 7px var(--ac);
    transition: var(--tf);
    z-index: 2;
}
.timeline-item:hover .timeline-dot {
    background: var(--ac);
    transform: scale(1.3);
}

.timeline-header { margin-bottom: 0.9rem; }
.time-duration {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--ac);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    margin-bottom: 0.25rem;
}
.time-role {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tx-w);
    margin-bottom: 0.15rem;
}
.time-company {
    font-size: 0.84rem;
    color: var(--tx-m);
}

.time-desc {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.time-desc li {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--tx);
    position: relative;
    padding-left: 1.1rem;
}
.time-desc li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--ac);
    font-size: 0.85rem;
}

/* Projects */
.visual-projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.v-project-card {
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--bdr);
    border-radius: 14px;
    padding: 1.6rem;
    transition: border-color var(--tm), box-shadow var(--tm), transform var(--tm);
    overflow: hidden;
}
.v-project-card:hover {
    border-color: var(--ac);
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 20px var(--ac-glow);
}
.vpc-cover {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid var(--bdr);
}
.vpc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tm);
}
.v-project-card:hover .vpc-cover img {
    transform: scale(1.06);
}
.vpc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}
.vpc-tag {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ac);
    background: rgba(var(--ac-rgb), 0.1);
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    border: 1px solid rgba(var(--ac-rgb), 0.2);
}
.vpc-links {
    display: flex;
    gap: 0.6rem;
}
.vpc-link {
    color: var(--tx-m);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--tf);
    display: inline-flex;
    align-items: center;
}
.vpc-link:hover { color: var(--ac); transform: scale(1.15); }

.v-project-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tx-w);
    margin-bottom: 0.55rem;
}
.v-project-card p {
    font-size: 0.88rem;
    line-height: 1.62;
    color: var(--tx);
    margin-bottom: 1.2rem;
}
.vpc-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.vpc-tech span {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 500;
    color: var(--tx-m);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--bdr);
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.skill-card, .timeline-item, .v-project-card, .highlight-box {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color var(--tm),
                background-color var(--tm),
                box-shadow var(--tm);
}
.skill-card.visible, .timeline-item.visible, .v-project-card.visible, .highlight-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   VIEW B: IDE WORKSPACE
   ========================================================================== */

.ide-container {
    padding: 0 4% 2rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    flex-direction: column;
}

.ide-window {
    background: var(--bg-w);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 24px 60px rgba(0,0,0,0.65),
        0 0 40px var(--ac-glow);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h) - 3rem);
    min-height: 550px;
    max-height: 860px;
    transition: box-shadow var(--ts), border-color var(--tf);
    position: relative;
}
.ide-window:hover {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 28px 70px rgba(0,0,0,0.75),
        0 0 50px var(--ac-glow-s);
    border-color: rgba(var(--ac-rgb), 0.35);
}

/* Title Bar — professional macOS feel */
.ide-title-bar {
    background: var(--bg-act);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--bdr);
    flex-shrink: 0;
    user-select: none;
    gap: 0.6rem;
}
.window-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    position: relative;
    transition: filter 0.15s ease;
}
.control-btn.close    { background: #ff5f57; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2); }
.control-btn.minimize { background: #febc2e; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2); }
.control-btn.maximize { background: #28c840; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2); }
.window-controls:hover .close::before {
    content: '×';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #4c0000;
    font-weight: bold;
}
.window-controls:hover .control-btn.minimize::before {
    content: '–';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #5f3e00;
    font-weight: bold;
}
.window-controls:hover .control-btn.maximize::before {
    content: '+';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #004d00;
    font-weight: bold;
}
.window-controls:hover .close    { filter: brightness(0.85); }
.window-controls:hover .minimize { filter: brightness(0.85); }
.window-controls:hover .maximize { filter: brightness(0.85); }

.ide-menu-items {
    display: flex;
    gap: 0;
    align-items: center;
    flex-shrink: 0;
}
.menu-item-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tx-m);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.menu-item-text:hover {
    background: rgba(255,255,255,0.06);
    color: var(--tx-w);
}

.title-bar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    overflow: hidden;
}

.ide-title {
    font-size: 0.72rem;
    color: var(--tx-m);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
    flex-shrink: 1;
    min-width: 0;
}
.window-actions { display: flex; gap: 5px; flex-shrink: 0; }
.win-action-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--bdr);
    color: var(--tx-m);
    padding: 0.2rem 0.65rem;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--tf);
    letter-spacing: 0.01em;
}
.win-action-btn:hover {
    background: var(--ac);
    color: var(--tx-w);
    border-color: var(--ac);
    box-shadow: 0 0 10px var(--ac-glow);
    transform: translateY(-1px);
}

/* IDE Body Row */
.ide-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Activity Bar — refined professional look */
.ide-activity-bar {
    background: var(--bg-act);
    width: 50px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-right: 1px solid var(--bdr);
    gap: 0;
}
.activity-top, .activity-bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    align-items: center;
}
.activity-icon {
    width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: rgba(255,255,255,0.35);
    font-size: 1.15rem;
    transition: color 0.12s ease, background 0.12s ease;
    border-left: 3px solid transparent;
}
.activity-icon:hover {
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.04);
}
.activity-icon.active {
    color: var(--tx-w);
    border-left-color: var(--ac);
    background: rgba(var(--ac-rgb), 0.07);
}
.git-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #1976d2;
    color: #fff;
    font-size: 0.52rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    line-height: 1;
}

/* Pulse glow animation for newly installed extension icon */
@keyframes pulse-glow {
    0%   { filter: drop-shadow(0 0 0px var(--ac-glow-s)); }
    50%  { filter: drop-shadow(0 0 8px var(--ac-glow-s)); }
    100% { filter: drop-shadow(0 0 0px var(--ac-glow-s)); }
}

/* File Explorer Sidebar — polished, professional */
.ide-sidebar {
    background: var(--bg-side);
    width: 230px;
    flex-shrink: 0;
    border-right: 1px solid var(--bdr);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.63rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--bdr);
    font-family: var(--font-sans);
    text-transform: uppercase;
}
.sidebar-sections-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.sidebar-section { margin-top: 0.4rem; }
.section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.1s;
}
.section-title:hover { color: var(--tx-m); }
.section-title i { font-size: 0.55rem; transition: transform var(--tf); }

.open-editors-list, .tree-files {
    display: flex;
    flex-direction: column;
}
.open-editor-item, .file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem 0.3rem 1.5rem;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.45);
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.tree-files .file-item {
    padding-left: 2.2rem;
}
.open-editor-item:hover, .file-item:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
}
.open-editor-item.active, .file-item.active {
    background: rgba(var(--ac-rgb), 0.08);
    color: var(--tx-w);
}
.open-editor-item.active::before, .file-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--ac);
    border-radius: 0 2px 2px 0;
}
.open-editor-item i, .file-item i { font-size: 0.82rem; flex-shrink: 0; }

.tree-folder {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1rem 0.3rem 1.2rem;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.45);
}
.tree-folder i { font-size: 0.55rem; }

/* Central Editor Container */
.ide-editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Editor Tabs — refined, professional */
.editor-tabs-bar {
    display: flex;
    background: var(--bg-act);
    border-bottom: 1px solid var(--bdr);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
    height: 35px;
    align-items: stretch;
}
.editor-tabs-bar::-webkit-scrollbar { display: none; }

.editor-tab {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.8rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.38);
    border-right: 1px solid var(--bdr);
    border-top: 2px solid transparent;
    white-space: nowrap;
    transition: background 0.1s, color 0.1s, border-top-color 0.1s;
    position: relative;
    flex-shrink: 0;
    height: 100%;
    letter-spacing: 0.01em;
    background: var(--bg-act);
}
.editor-tab:hover {
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.7);
}
.editor-tab.active {
    background: var(--bg-ed);
    color: var(--tx-w);
    border-top-color: var(--ac);
    box-shadow: inset 0 -1px 0 var(--bg-ed);
}
.editor-tab i { font-size: 0.78rem; opacity: 0.85; }
.tab-close {
    opacity: 0;
    font-size: 0.55rem;
    padding: 2px;
    border-radius: 3px;
    transition: opacity 0.1s ease, color 0.1s ease;
    display: flex;
    align-items: center;
    margin-left: 0.2rem;
}
.editor-tab:hover .tab-close,
.editor-tab.active .tab-close {
    opacity: 0.6;
    color: var(--tx-m);
}
.tab-close:hover {
    opacity: 1 !important;
    background: rgba(255,255,255,0.1);
    color: var(--tx-w) !important;
}

/* Custom Scrollbar Styles for IDE Components */
.ide-container ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.ide-container ::-webkit-scrollbar-track {
    background: transparent;
}
.ide-container ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 5px;
}
.ide-container ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.ide-container ::-webkit-scrollbar-corner {
    background: transparent;
}

/* Code Editor Workspace */
.editor-workspace {
    flex: 1;
    overflow: hidden;
    background: var(--bg-ed);
    display: flex;
    flex-direction: column;
}
.code-view-pane {
    flex: 1;
    overflow-y: auto;
    padding: 0.6rem 0;
}
.file-content { display: none; }
.file-content.active { display: block; }

/* Code Lines */
.code-line {
    display: flex;
    align-items: baseline;
    padding: 0 1.2rem 0 0;
    min-height: 22px;
    font-family: var(--font-mono);
    font-size: 0.79rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
.line-num {
    min-width: 38px;
    text-align: right;
    color: var(--tx-m);
    margin-right: 1.2rem;
    font-size: 0.73rem;
    user-select: none;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Syntax highlight classes */
.syn-keyword  { color: var(--sy-kw); font-weight: 600; }
.syn-property { color: var(--sy-prop); }
.syn-string   { color: var(--sy-str); }
.syn-num, .syn-number { color: var(--sy-num); }
.syn-comment  { color: var(--sy-cmt); font-style: italic; }
.syn-bracket  { color: var(--sy-bkt); }
.syn-selector { color: var(--sy-sel); }
.syn-md-h     { color: var(--sy-h); font-weight: 600; }
.syn-md-italic{ color: var(--sy-it); font-style: italic; }
.syn-bullet   { color: var(--sy-bull); margin-right: 0.4rem; }
.syn-variable { color: var(--sy-var); }

/* Hover line highlight */
.code-line:hover {
    background: rgba(255,255,255,0.03);
    border-radius: 3px;
}

/* ==========================================================================
   TERMINAL PANEL
   ========================================================================== */

.ide-terminal-panel {
    background: var(--bg-term);
    border-top: 1px solid var(--bdr);
    display: flex;
    flex-direction: column;
    height: 200px;
    flex-shrink: 0;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bdr);
    padding: 0 0.8rem;
    height: 32px;
    flex-shrink: 0;
}
.terminal-tabs {
    display: flex;
    gap: 0;
    height: 100%;
    align-items: center;
}
.terminal-tab {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--tx-m);
    padding: 0 0.9rem;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
    transition: color var(--tf);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.terminal-tab.active {
    color: var(--tx-w);
    border-bottom-color: var(--ac);
}
.terminal-tab:hover { color: var(--tx); }

.terminal-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--tx-m);
    font-size: 0.85rem;
}
.terminal-controls i { transition: color var(--tf); }
.terminal-controls i:hover { color: var(--tx); }

.term-clear-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--bdr);
    color: var(--tx-m);
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--tf);
}
.term-clear-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--tx-w);
    border-color: var(--ac);
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    overflow: hidden;
}
.terminal-body-static {
    flex: 1;
    padding: 0.8rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    overflow-y: auto;
    color: var(--tx-m);
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0.3rem;
}

.term-text-muted   { color: var(--tx-m); }
.term-text-normal  { color: var(--tx); }
.term-text-white   { color: var(--tx-w); }
.term-highlight    { color: var(--ac); font-weight: 600; text-shadow: 0 0 6px var(--ac-glow); }

.term-welcome-box {
    margin: 0.6rem 0;
    border: 1px dashed var(--bdr);
    padding: 0.7rem;
    border-radius: 7px;
    background: rgba(255,255,255,0.01);
}

.term-clickable-commands {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.term-cmd-btn {
    background: rgba(var(--ac-rgb), 0.1);
    border: 1px solid rgba(var(--ac-rgb), 0.25);
    color: var(--ac);
    padding: 0.28rem 0.7rem;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--tf);
}
.term-cmd-btn:hover {
    background: var(--ac);
    color: var(--tx-w);
    box-shadow: 0 0 10px var(--ac-glow-s);
    transform: translateY(-1px);
}

/* Terminal Input */
.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.terminal-prompt {
    color: #4caf50;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
#terminal-textbox {
    background: transparent;
    border: none;
    outline: none;
    color: var(--tx-w);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    flex: 1;
    padding: 1px 0;
    cursor: text;
}
.terminal-input-cursor {
    width: 7px; height: 14px;
    background: var(--ac);
    display: inline-block;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    from, to { background: transparent; }
    50% { background: var(--ac); }
}

/* Log line types */
.term-log-line { margin-bottom: 1px; }
.term-log-success { color: #4caf50; }
.term-log-error   { color: #f44336; }
.term-log-info    { color: #00bcd4; }

/* ==========================================================================
   STATUS BAR
   ========================================================================== */

.ide-status-bar {
    background: var(--bg-act);
    height: 24px;
    border-top: 1px solid var(--bdr);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.7rem;
    font-size: 0.67rem;
    color: var(--tx-w);
    flex-shrink: 0;
    user-select: none;
}
.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.15rem;
}
.git-branch {
    background: rgba(255,255,255,0.03);
    padding: 0 0.45rem;
    border-radius: 3px;
}
.git-branch:hover { background: rgba(255,255,255,0.07); }
.text-success { color: #4caf50; }

/* ==========================================================================
   PRINT / PDF RESUME
   ========================================================================== */

.printable-resume { display: none; }

@media print {
    @page { size: A4 portrait; margin: 8mm 10mm; }

    * {
        transition: none !important;
        animation: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transform: none !important;
        cursor: default !important;
    }

    .cursor-dot, .cursor-outline, .orb,
    .top-nav, .ide-container, .visual-portfolio-view { display: none !important; }

    body, html {
        background: #fff !important;
        color: #1f2937 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
    }

    .printable-resume {
        display: block !important;
        padding: 8mm 12mm !important;
        color: #1f2937 !important;
        background: #fff !important;
        font-size: 9.5px !important;
        line-height: 1.4 !important;
        width: 100% !important;
    }

    .print-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        border-bottom: 2px solid #3b82f6 !important;
        padding-bottom: 5px !important;
        margin-bottom: 10px !important;
    }
    .print-header-main h1 {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #111827 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 2px !important;
    }
    .print-header-main h2 {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #4b5563 !important;
    }
    .print-header-contact {
        text-align: right !important;
        font-size: 8px !important;
        color: #4b5563 !important;
        line-height: 1.55 !important;
    }
    .print-header-contact div {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 3px !important;
    }
    .print-header-contact i { color: #3b82f6 !important; }

    .print-grid {
        display: grid !important;
        grid-template-columns: 1.85fr 1fr !important;
        gap: 7mm !important;
    }

    .print-section { margin-bottom: 9px !important; }
    .print-section-title {
        font-size: 10px !important;
        font-weight: 800 !important;
        color: #111827 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding-bottom: 2px !important;
        margin-bottom: 5px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    .print-section-title i { color: #3b82f6 !important; font-size: 9px !important; }

    .print-summary { font-size: 8.5px !important; line-height: 1.45 !important; color: #374151 !important; }

    .print-entry { margin-bottom: 7px !important; }
    .print-entry:last-child { margin-bottom: 0 !important; }
    .print-entry.compact { margin-bottom: 4px !important; }

    .entry-header { display: flex !important; justify-content: space-between !important; align-items: baseline !important; margin-bottom: 1px !important; }
    .entry-title { font-size: 9.5px !important; font-weight: 700 !important; color: #111827 !important; }
    .entry-title-small { font-size: 8.5px !important; font-weight: 700 !important; color: #111827 !important; }
    .entry-date { font-size: 8px !important; font-weight: 600 !important; color: #3b82f6 !important; white-space: nowrap !important; }
    .entry-subtitle { font-size: 8.5px !important; font-weight: 600 !important; color: #4b5563 !important; margin-bottom: 2px !important; }
    .entry-meta { font-size: 8px !important; color: #4b5563 !important; }
    .text-italic { font-style: italic !important; }

    .entry-bullets { padding-left: 10px !important; margin-bottom: 2px !important; }
    .entry-bullets li { font-size: 8.5px !important; color: #374151 !important; margin-bottom: 2px !important; line-height: 1.35 !important; }
    .entry-description { font-size: 8px !important; color: #4b5563 !important; line-height: 1.3 !important; }

    .skill-category { margin-bottom: 4px !important; }
    .skill-label { font-size: 8.5px !important; font-weight: 700 !important; color: #111827 !important; margin-bottom: 1px !important; }
    .skill-desc { font-size: 7.5px !important; color: #4b5563 !important; line-height: 1.3 !important; }

    .print-award-item { margin-bottom: 4px !important; }
    .award-header { font-size: 8.5px !important; font-weight: 700 !important; color: #111827 !important; }
    .award-org { font-size: 7.5px !important; color: #4b5563 !important; }

    .print-lang-row { font-size: 8px !important; margin-bottom: 2px !important; }
    .lang-val { color: #4b5563 !important; }
}

/* ==========================================================================
   RESPONSIVE — FULL MOBILE SUPPORT
   ========================================================================== */

/* ---- 1100px: Tablet Landscape ---- */
@media (max-width: 1100px) {
    .top-nav { gap: 0.5rem; padding: 0.7rem 3%; }
    .profile-header-info { display: none; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .sidebar-profile-header h1 { font-size: 2.6rem; }
    .vpc-cover { height: 160px; }
}

/* ---- 900px: Tablet Portrait ---- */
@media (max-width: 900px) {
    /* Layout collapses to single column */
    .visual-layout { flex-direction: column; gap: 0; }

    .visual-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        overflow: visible;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--bdr);
        margin-bottom: 2rem;
    }
    .sidebar-sticky-wrapper { gap: 1.2rem; }
    .visual-nav { display: none; } /* Hide scroll nav on mobile */

    .visual-content { padding-bottom: 3rem; }
    .visual-section { margin-bottom: 3.5rem; scroll-margin-top: calc(var(--nav-h) + 0.5rem); }

    /* Sidebar socials wrap nicely */
    .sidebar-socials { flex-wrap: wrap; gap: 0.4rem; }

    /* About highlights — 3 col stays on tablet, 1 col on mobile */
    .about-highlights { grid-template-columns: repeat(3, 1fr); }

    /* Skills stay 2-col on tablet */
    .skills-grid { grid-template-columns: 1fr 1fr; }

    /* Project covers shorter on tablet */
    .vpc-cover { height: 150px; }

    /* Timeline adjust */
    .visual-timeline { padding-left: 1.2rem; }

    /* IDE — hide file explorer sidebar on tablet */
    .ide-sidebar { display: none; }
    .ide-container { padding: 0 3% 2rem; }
    .ide-window { height: calc(100vh - var(--nav-h) - 2rem); }
}

/* ---- 680px: Mobile Large ---- */
@media (max-width: 680px) {
    body { font-size: 14px; cursor: auto; }
    :root { --nav-h: auto; }

    /* Cursor disabled on touch */
    .cursor-dot, .cursor-outline { display: none; }

    /* Nav becomes 2-row flex */
    .top-nav {
        padding: 0.6rem 4%;
        flex-wrap: wrap;
        height: auto;
        gap: 0.5rem;
        position: sticky;
        top: 0;
    }
    .logo { font-size: 1.5rem; }
    .profile-header-info { display: none; }
    .mode-toggle-container {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .mode-toggle-btn { flex: 1; justify-content: center; font-size: 0.7rem; padding: 0.4rem 0.5rem; }
    .theme-controller { order: 4; width: auto; flex: 1; }
    .theme-label { display: none; }
    .nav-pdf-btn {
        order: 2;
        padding: 0.38rem 0.75rem;
        font-size: 0.68rem;
    }

    /* Portfolio view */
    .visual-portfolio-view { padding: 1.2rem 4%; }
    .visual-section { margin-bottom: 3rem; }
    .sidebar-profile-header h1 { font-size: 2.4rem; letter-spacing: -1px; }
    .sidebar-profile-header h2 { font-size: 1rem; }
    .section-heading { font-size: 1.35rem; }

    /* About highlights — single column */
    .about-highlights { grid-template-columns: 1fr; gap: 0.6rem; }
    .hb-num { font-size: 1.7rem; }

    /* Skills — single column */
    .skills-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .skill-card { padding: 1.1rem; }

    /* Timeline */
    .visual-timeline { padding-left: 1rem; margin-left: 0; }
    .timeline-item { padding: 1.1rem; }
    .time-role { font-size: 1rem; }

    /* Project cards */
    .v-project-card { padding: 1.1rem; }
    .vpc-cover { height: 140px; border-radius: 6px; }
    .v-project-card h4 { font-size: 1.05rem; }
    .v-project-card p { font-size: 0.83rem; }

    /* IDE */
    .ide-activity-bar { display: none; }
    .ide-sidebar { display: none; }
    .ide-window {
        height: calc(100svh - 110px);
        min-height: 420px;
        border-radius: 8px;
    }
    .ide-terminal-panel { height: 160px; }
    .code-line { font-size: 0.72rem; }

    /* Orbs smaller on mobile */
    .orb-1, .orb-2 { width: 280px; height: 280px; }
    .orb-3 { width: 200px; height: 200px; }
}

/* ---- 480px: Mobile Small ---- */
@media (max-width: 480px) {
    .visual-portfolio-view { padding: 1rem 3.5%; }
    .sidebar-profile-header h1 { font-size: 2rem; }
    .logo { font-size: 1.3rem; }

    /* Nav: stack mode buttons full width */
    .top-nav { padding: 0.5rem 3.5%; }
    .mode-toggle-btn { padding: 0.35rem 0.4rem; font-size: 0.65rem; }
    .theme-select { font-size: 0.7rem; max-width: 80px; }

    /* Project images even shorter */
    .vpc-cover { height: 120px; }
    .v-project-card { padding: 0.9rem; }
    .vpc-tech span { font-size: 0.6rem; }

    /* Timeline compact */
    .timeline-item { padding: 0.9rem; margin-bottom: 1.2rem; }
    .time-duration { font-size: 0.65rem; }
    .time-role { font-size: 0.92rem; }
    .time-company { font-size: 0.75rem; }
    .time-desc li { font-size: 0.78rem; }

    /* Skills compact */
    .skill-card { padding: 0.9rem; }
    .sc-header h4 { font-size: 0.88rem; }
    .sc-bullets li { font-size: 0.76rem; }

    /* Highlight boxes */
    .highlight-box { padding: 0.9rem; }
    .hb-num { font-size: 1.5rem; }
    .hb-lbl { font-size: 0.6rem; }

    /* Section headings */
    .section-heading { font-size: 1.15rem; gap: 0.6rem; }
    .section-heading::after { display: none; }

    /* IDE on tiny screens */
    .ide-title { display: none; }
    .win-action-btn span { display: none; }
    .ide-window { border-radius: 6px; }
    .ide-terminal-panel { height: 140px; }
    .code-line { font-size: 0.65rem; min-height: 18px; }
    .line-num { min-width: 24px; margin-right: 0.6rem; }
    .term-cmd-btn { font-size: 0.65rem; padding: 0.22rem 0.5rem; }
}

/* ==========================================================================
   ADVANCED INTERACTIVE IDE ADDITIONAL STYLES
   ========================================================================== */

/* Lock absolute children inside IDE Window */
.ide-window {
    position: relative;
}

/* Ensure win-action-btn links style like buttons */
a.win-action-btn {
    text-decoration: none !important;
    color: var(--tx) !important;
}
a.win-action-btn:hover {
    color: var(--tx-w) !important;
}

/* Sidebar panes active/inactive toggle */
.sidebar-pane {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.sidebar-pane.active {
    display: flex;
}

/* Breadcrumbs Navigation */
.editor-breadcrumbs {
    background: var(--bg-act);
    padding: 0.35rem 1.2rem;
    border-bottom: 1px solid var(--bdr);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--tx-m);
    user-select: none;
    font-family: var(--font-sans);
    flex-shrink: 0;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.breadcrumb-sep {
    color: rgba(255,255,255,0.12);
    font-size: 0.65rem;
}
#breadcrumb-active-file {
    color: var(--tx-w);
    font-weight: 500;
}

/* Search results search highlighting */
.code-line.search-focus {
    background: rgba(var(--ac-rgb), 0.16) !important;
    border-left: 2px solid var(--ac);
    box-shadow: inset 3px 0 0 var(--ac);
    transition: background-color 0.2s ease;
}

/* Search results sidebar item */
.search-result-item {
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--bdr);
    font-size: 0.72rem;
    color: var(--tx-m);
    cursor: none;
    transition: var(--tf);
}
.search-result-item:hover {
    background: rgba(var(--ac-rgb), 0.08);
    border-color: var(--ac);
    color: var(--tx-w);
}
.search-result-file {
    font-weight: 700;
    color: var(--tx-w);
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.search-result-line {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--tx-m);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Toast Notifications Container */
.ide-notifications {
    position: absolute;
    bottom: 35px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 10000;
    pointer-events: none;
}
.toast-notification {
    background: rgba(var(--bg-w), 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bdr);
    border-left: 3px solid var(--ac);
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 12px var(--ac-glow);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    pointer-events: auto;
    animation: slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.toast-content {
    flex: 1;
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--tx-w);
}
.toast-close {
    color: var(--tx-m);
    cursor: pointer;
    font-size: 0.65rem;
    transition: var(--tf);
}
.toast-close:hover {
    color: var(--tx-w);
}

@keyframes slide-in {
    from { transform: translateX(115%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Debug console prompt */
.debug-input-line input {
    transition: color 0.15s ease;
}
.debug-input-line input:focus {
    color: var(--tx-w);
}

/* =========================================================================
   PDF VIEWER (IDE Resume.pdf tab)
   ========================================================================= */
#content-resume {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
}
#content-resume.active {
    display: flex;
}
.pdf-viewer-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 1rem;
    background: var(--bg-sb);
    border-bottom: 1px solid var(--bdr);
    flex-shrink: 0;
    gap: 0.8rem;
}
.pdf-toolbar-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--tx-m);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdf-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.pdf-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--tx-m);
    background: var(--bg-act);
    border: 1px solid var(--bdr);
    border-radius: 4px;
    padding: 0.28rem 0.65rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--tf);
}
.pdf-tool-btn:hover {
    background: var(--ac);
    color: #fff;
    border-color: var(--ac);
    box-shadow: 0 0 8px var(--ac-glow-s);
    transform: translateY(-1px);
}
.pdf-embed-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #525659;
}
.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =========================================================================
   BYTE-SNAKE ARCADE GAME STYLES (IDE game.js tab)
   ========================================================================= */
#content-game {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
}
#content-game.active {
    display: flex;
}

.game-viewer-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 0.8rem;
    box-sizing: border-box;
    gap: 0.8rem;
    -webkit-overflow-scrolling: touch;
}

.game-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--ac-rgb), 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    flex-shrink: 0;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gd-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.gd-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.gd-score-badge {
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.2);
    color: var(--ac);
    text-shadow: 0 0 4px var(--ac-glow-s);
}

.gd-highscore-badge {
    background: rgba(255, 179, 0, 0.08);
    border: 1px solid rgba(255, 179, 0, 0.2);
    color: #ffb300;
}

.gd-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mode-select-pill {
    display: inline-flex;
    background: var(--bg-act);
    border: 1px solid var(--bdr);
    border-radius: 20px;
    padding: 2px;
    align-items: center;
    position: relative;
}

.mode-pill-btn {
    background: transparent;
    border: none;
    outline: none;
    border-radius: 18px;
    padding: 0.2rem 0.55rem;
    color: var(--tx-m);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.mode-pill-btn.active {
    background: var(--ac);
    color: #0b0f19;
    box-shadow: 0 0 6px var(--ac-glow-s);
}

.mode-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: 0.4rem;
    margin-right: 0.4rem;
    display: inline-block;
}

.mode-indicator.online {
    background: #34c759;
    box-shadow: 0 0 6px #34c759;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.gd-ctrl-btn {
    background: var(--bg-act);
    border: 1px solid var(--bdr);
    border-radius: 50%;
    color: var(--tx-m);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--tf);
}

.gd-ctrl-btn:hover {
    color: #fff;
    border-color: var(--ac);
    box-shadow: 0 0 6px var(--ac-glow-s);
}

/* Arcade Responsive Layout */
.game-arcade-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    flex: 1;
    min-height: 0;
}

@media (min-width: 768px) {
    .game-arcade-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.arcade-screen-container {
    position: relative;
    background: #05070a;
    border: 2px solid rgba(var(--ac-rgb), 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1/1;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.95), 
        0 8px 30px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(var(--ac-rgb), 0.15);
    transition: border-color var(--tf), box-shadow var(--tf);
}

.arcade-screen-container:hover {
    border-color: var(--ac);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.95), 
        0 12px 36px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(var(--ac-rgb), 0.3);
}

#game-canvas {
    width: 100%;
    height: 100%;
    background: transparent;
    display: block;
    image-rendering: pixelated;
    z-index: 2;
}

.screen-glare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
    z-index: 5;
}

/* CRT scanline effects for retro vibe */
.arcade-screen-container::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 4;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

/* Game Start Overlay */
.game-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 10, 15, 0.95);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

.hud-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-pulse-icon {
    font-size: 2.2rem;
    color: var(--ac);
    animation: icon-pulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 8px var(--ac-glow-s));
}

@keyframes icon-pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 4px var(--ac-glow-s)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 12px var(--ac-glow)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--ac-glow-s)); }
}

.hud-content h3 {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0.6rem 0 0.2rem;
    letter-spacing: 1px;
}

.hud-subtitle {
    font-size: 0.72rem;
    color: var(--tx-m);
    margin-bottom: 1.2rem;
    max-width: 250px;
}

.hud-action-btn {
    background: var(--ac);
    color: #0b0f19;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    outline: none;
    border-radius: 4px;
    padding: 0.45rem 1.2rem;
    cursor: pointer;
    transition: var(--tf);
    box-shadow: 0 0 10px var(--ac-glow-s);
}

.hud-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--ac-glow);
}

.hud-controls-hint {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--tx-m);
}

.hud-controls-hint kbd {
    background: var(--bg-act);
    border: 1px solid var(--bdr);
    border-radius: 3px;
    padding: 1px 4px;
    margin: 0 1px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

/* Leaderboard Pane */
.arcade-leaderboard-pane {
    background: var(--bg-sb);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bdr);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--bdr);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--tx-m);
    letter-spacing: 0.5px;
}

.lb-status-text {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.25);
    color: #ff3b30;
    text-transform: uppercase;
}

.lb-status-text.connected {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.25);
    color: #34c759;
}

.lb-list-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.lb-table th {
    text-align: left;
    padding: 0.4rem;
    color: var(--tx-m);
    font-size: 0.62rem;
    font-weight: 700;
    border-bottom: 1px solid var(--bdr);
    text-transform: uppercase;
}

.lb-table td {
    padding: 0.38rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--tx-w);
}

.lb-row-hacker {
    color: var(--ac);
    font-weight: 700;
}

.lb-row-you {
    background: rgba(0, 255, 204, 0.04);
}

.lb-row-you td {
    color: #fff;
    font-weight: 700;
}

/* Touch Responsive Virtual Controller Pad (Visible on mobile/touch screens) */
.game-mobile-controller {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .game-mobile-controller {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .game-mobile-controller {
        display: flex;
    }
}

.dpad-center {
    position: relative;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bdr);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 0.4rem;
}

.dpad-btn {
    position: absolute;
    background: var(--bg-sb);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx-w);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
    touch-action: manipulation;
}

.dpad-btn:active {
    background: var(--ac);
    color: #0b0f19;
    border-color: var(--ac);
    box-shadow: 0 0 10px var(--ac-glow-s);
    transform: scale(0.92);
}

.dpad-up {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.dpad-down {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.dpad-left {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.dpad-right {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.dpad-core {
    width: 30px;
    height: 30px;
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.mobile-instructions {
    font-size: 0.6rem;
    color: var(--tx-m);
    text-align: center;
    margin: 0;
    font-family: var(--font-mono);
}

/* =========================================================================
   N8N INTERACTIVE AUTOMATION HIRE MODAL STYLES
   ========================================================================= */
.automation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 9, 13, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1.2rem;
    box-sizing: border-box;
    animation: modal-fade-in 0.3s forwards;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.automation-modal-content {
    width: 100%;
    max-width: 820px;
    background: var(--bg-sb);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.8),
        0 0 35px var(--ac-glow);
    animation: modal-slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-sizing: border-box;
}

@keyframes modal-slide-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
    .automation-modal-content {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--tx-m);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--tf);
    z-index: 10;
}
.modal-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Left Brand Column */
.modal-left-brand {
    background: linear-gradient(135deg, rgba(var(--ac-rgb), 0.08) 0%, rgba(10, 14, 23, 0.98) 100%);
    border-right: 1px solid var(--bdr);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .modal-left-brand {
        border-right: none;
        border-bottom: 1px solid var(--bdr);
        padding: 1.5rem;
    }
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

/* Right Workspace Column */
.modal-right-workspace {
    padding: 2.2rem;
    background: rgba(14, 18, 29, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .modal-right-workspace {
        padding: 1.5rem;
    }
}

/* Form Styling */
.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.modal-form-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--tx-m);
    text-transform: uppercase;
}

.modal-form-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bdr);
    border-radius: 6px;
    padding: 0.65rem 0.8rem;
    color: var(--tx-w);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    outline: none;
    transition: var(--tf);
}

.modal-form-input:focus {
    border-color: var(--ac);
    background: rgba(var(--ac-rgb), 0.03);
    box-shadow: 0 0 8px var(--ac-glow-s);
}

.modal-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 500px) {
    .modal-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

textarea.modal-form-input {
    resize: none;
}

.modal-submit-btn {
    width: 100%;
    background: var(--ac);
    color: #0b0f19;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    outline: none;
    border-radius: 6px;
    padding: 0.7rem;
    cursor: pointer;
    box-shadow: 0 0 10px var(--ac-glow-s);
    transition: var(--tf);
    margin-top: 0.4rem;
}

.modal-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 16px var(--ac-glow);
}

/* Service Card Interactive Picker */
.service-card {
    border: 1px solid var(--bdr) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    transition: var(--tf) !important;
}

.service-card:hover {
    border-color: var(--bdr-h) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    transform: translateY(-1px);
}

.service-card.active {
    border-color: var(--ac) !important;
    background: rgba(var(--ac-rgb), 0.05) !important;
    box-shadow: 0 0 12px var(--ac-glow-s);
}

.service-card.active .sc-checkbox {
    border-color: var(--ac) !important;
    background: var(--ac) !important;
}

.service-card.active .sc-checkbox i {
    display: block !important;
    color: #0b0f19 !important;
}

/* Budget Selector Pills */
.budget-pill {
    border: 1px solid var(--bdr) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    transition: var(--tf) !important;
}

.budget-pill:hover {
    border-color: var(--bdr-h) !important;
    color: var(--tx-w) !important;
}

.budget-pill.active {
    border-color: var(--ac) !important;
    background: var(--ac) !important;
    color: #0b0f19 !important;
    font-weight: 700;
    box-shadow: 0 0 10px var(--ac-glow-s);
}

/* Success Card overlay */
.success-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: success-appear 0.4s ease-out forwards;
}

@keyframes success-appear {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(var(--ac-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 15px rgba(var(--ac-rgb), 0.1);
}

.success-checkmark {
    font-size: 1.8rem;
    color: var(--ac);
    animation: check-scale 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    filter: drop-shadow(0 0 6px var(--ac-glow-s));
}

@keyframes check-scale {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.modal-reset-btn {
    background: var(--bg-act);
    border: 1px solid var(--bdr);
    color: var(--tx-w);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 0.45rem 1.2rem;
    cursor: pointer;
    transition: var(--tf);
}

.modal-reset-btn:hover {
    border-color: var(--ac);
    color: var(--ac);
    box-shadow: 0 0 8px var(--ac-glow-s);
}

/* Extension Installer Details View */
#game-extension-installer {
    animation: fade-in 0.3s ease-out forwards;
}

#game-arcade-wrapper {
    animation: fade-in 0.4s ease-out forwards;
}

.ext-installer-header {
    margin-bottom: 1rem;
}

/* Installer button state changes */
.win-action-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Local Scoreboard styling updates */
.arcade-leaderboard-pane {
    background: rgba(0, 0, 0, 0.15) !important;
    border-left: 1px solid var(--bdr);
}
