/* ==========================================================================
   PREMIUM DARK AURORA — NEXT-GEN TECH AESTHETIC
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    color-scheme: dark;
    --neutral-rgb: 255, 255, 255;
    --nav-rgb: 5, 5, 5;
    --panel-rgb: 0, 0, 0;
    --reticle-rgb: 255, 255, 255;
    --bg: #050505;
    --bg-card: rgba(0, 0, 0, 0.4);
    --bg-card-hover: rgba(0, 0, 0, 0.5);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-strong: rgba(255, 255, 255, 0.18);
    --text: #FFFFFF;
    --text-muted: #D1D1D6;
    --text-dim: #888888;
    --accent: #E0E0E0;
    --accent-glow: rgba(255, 255, 255, 0.08);
    --accent2: #888888;
    --accent2-glow: rgba(136, 136, 136, 0.08);
    --divider: rgba(255, 255, 255, 0.06);
    --status-online: #4ade80;
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-card: 32px;
    --radius-pill: 9999px;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 24px 72px rgba(0, 0, 0, 0.85);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --blur-glass: blur(24px);
    --nav-bg: rgba(var(--nav-rgb), 0.6);
    --surface-015: rgba(var(--neutral-rgb), 0.015);
    --surface-03: rgba(var(--neutral-rgb), 0.03);
    --surface-04: rgba(var(--neutral-rgb), 0.04);
    --surface-05: rgba(var(--neutral-rgb), 0.05);
    --surface-06: rgba(var(--neutral-rgb), 0.06);
    --surface-07: rgba(var(--neutral-rgb), 0.07);
    --surface-08: rgba(var(--neutral-rgb), 0.08);
    --surface-09: rgba(var(--neutral-rgb), 0.09);
    --surface-10: rgba(var(--neutral-rgb), 0.10);
    --surface-11: rgba(var(--neutral-rgb), 0.11);
    --surface-12: rgba(var(--neutral-rgb), 0.12);
    --surface-14: rgba(var(--neutral-rgb), 0.14);
    --surface-15: rgba(var(--neutral-rgb), 0.15);
    --surface-22: rgba(var(--neutral-rgb), 0.22);
    --surface-25: rgba(var(--neutral-rgb), 0.25);
    --surface-35: rgba(var(--neutral-rgb), 0.35);
    --panel-overlay: rgba(var(--panel-rgb), 0.45);
    --sidebar-overlay: rgba(var(--neutral-rgb), 0.015);
    --glitch-ghost: rgba(var(--neutral-rgb), 0.35);
    --loader-track: rgba(var(--neutral-rgb), 0.08);
    --loader-fill: rgba(var(--neutral-rgb), 0.7);
    --avatar-border: rgba(var(--neutral-rgb), 0.25);
    --avatar-glow: 0 0 20px rgba(var(--neutral-rgb), 0.15);
    --scanline-color: rgba(var(--neutral-rgb), 0.3);
    --icon-muted: rgba(var(--neutral-rgb), 0.75);
    --icon-strong: rgba(var(--neutral-rgb), 0.95);
    --scrollbar-thumb: rgba(var(--neutral-rgb), 0.08);
    --detail-bg: rgba(0, 0, 0, 0.2);
    --github-hover-border: rgba(var(--neutral-rgb), 0.2);
    --accent-soft: rgba(110, 231, 183, 0.08);
    --danger-soft: rgba(255, 0, 60, 0.05);
    --success-soft: rgba(0, 255, 65, 0.02);
}

html[data-theme="light"] {
    color-scheme: light;
    --neutral-rgb: 0, 0, 0;
    --nav-rgb: 247, 245, 240;
    --panel-rgb: 255, 255, 255;
    --reticle-rgb: 10, 10, 10;
    --bg: #f7f5f0;
    --bg-card: rgba(255, 255, 255, 0.56);
    --bg-card-hover: rgba(255, 255, 255, 0.72);
    --glass: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(0, 0, 0, 0.10);
    --glass-border-strong: rgba(0, 0, 0, 0.18);
    --text: #101010;
    --text-muted: #505050;
    --text-dim: #767676;
    --accent: #151515;
    --accent-glow: rgba(0, 0, 0, 0.06);
    --accent2: #5e5e5e;
    --accent2-glow: rgba(0, 0, 0, 0.05);
    --divider: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 8px 24px rgba(94, 75, 40, 0.08);
    --shadow-md: 0 18px 46px rgba(94, 75, 40, 0.12);
    --shadow-lg: 0 24px 72px rgba(94, 75, 40, 0.16);
    --shadow-card: 0 16px 44px rgba(94, 75, 40, 0.10), 0 4px 14px rgba(94, 75, 40, 0.08);
    --nav-bg: rgba(247, 245, 240, 0.84);
    --panel-overlay: rgba(255, 255, 255, 0.58);
    --sidebar-overlay: rgba(0, 0, 0, 0.03);
    --loader-fill: rgba(var(--neutral-rgb), 0.6);
    --avatar-glow: 0 0 20px rgba(0, 0, 0, 0.08);
    --scanline-color: rgba(var(--neutral-rgb), 0.18);
    --scrollbar-thumb: rgba(var(--neutral-rgb), 0.14);
    --detail-bg: rgba(0, 0, 0, 0.05);
    --accent-soft: rgba(0, 0, 0, 0.05);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }
html { scroll-behavior: smooth; }

a, button, input, textarea, select, label, [onclick], [tabindex] { cursor: none !important; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.7;
    cursor: none;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Language Visibility Logic */
body.lang-vi .content-en { display: none; }
body.lang-en .content-vi { display: none; }

/* ==========================================================================
   AURORA BACKGROUND LAYER — 3 MASSIVE RADIAL GRADIENT ORBS
   ========================================================================== */
.aurora-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.aurora-orb.orb-1 {
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(210,210,230,0.08) 50%, transparent 70%);
    top: -250px; left: -200px;
    animation: orbDrift1 22s ease-in-out infinite alternate;
}

.aurora-orb.orb-2 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(180,190,210,0.07) 50%, transparent 70%);
    top: 15%; right: -150px;
    animation: orbDrift2 28s ease-in-out infinite alternate;
}

.aurora-orb.orb-3 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(200,220,210,0.06) 50%, transparent 70%);
    bottom: -120px; left: 25%;
    animation: orbDrift3 34s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(90px, 70px) scale(1.12); }
}
@keyframes orbDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-70px, 90px) scale(1.07); }
}
@keyframes orbDrift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -60px) scale(1.09); }
}

/* Aurora Ambient Lamp — follows mouse */
.aurora-lamp {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(220,220,240,0.07) 45%, transparent 70%);
    pointer-events: none;
    will-change: transform;
}

/* ==========================================================================
   MAGNETIC RETICLE CURSOR
   ========================================================================== */
#cursor-reticle {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    will-change: transform, left, top;
}

.reticle-dot {
    position: absolute;
    width: 5px; height: 5px;
    background: rgb(var(--reticle-rgb));
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(var(--reticle-rgb),0.9), 0 0 14px rgba(var(--reticle-rgb),0.5);
    transition: transform 0.18s ease;
}

.reticle-ring {
    position: absolute;
    width: 20px; height: 20px;
    border: 1.5px solid rgba(var(--reticle-rgb),0.85);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(var(--reticle-rgb),0.35), inset 0 0 4px rgba(var(--reticle-rgb),0.08);
    transition: width 0.2s cubic-bezier(0.4,0,0.2,1),
                height 0.2s cubic-bezier(0.4,0,0.2,1),
                opacity 0.2s ease;
}

#cursor-reticle.hovering .reticle-ring {
    width: 34px; height: 34px;
    border-color: rgba(var(--reticle-rgb),0.7);
    box-shadow: 0 0 14px rgba(var(--reticle-rgb),0.4);
}

#cursor-reticle.hovering .reticle-dot {
    animation: reticleDotPulse 0.55s ease-in-out infinite alternate;
}

@keyframes reticleDotPulse {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to   { transform: translate(-50%, -50%) scale(2); opacity: 0.6; }
}

/* ==========================================================================
   GLOBAL VISUAL EFFECTS
   ========================================================================== */
#cursor-glow { display: none; }
.crt-vignette { display: none; }

.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; pointer-events: none;
    opacity: 0;
}

/* Filmic grain texture overlay */
.grain-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
}

/* ==========================================================================
   BOOT LOADER — ULTRA-MINIMAL DARK AURORA
   ========================================================================== */
#boot-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#boot-loader.loaded-complete {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: loaderPulse 0.8s ease-out;
    padding: 48px 56px;
}

@keyframes loaderPulse {
    0%   { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.logo-container {
    position: relative;
    margin-bottom: 32px;
}

.terminal-logo {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    line-height: 1.5;
    color: var(--text);
    text-align: center;
    display: inline-block;
    position: relative;
    animation: logoAppear 0.6s ease-out;
    letter-spacing: 0.05em;
}

@keyframes logoAppear {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo-line {
    white-space: pre;
    position: relative;
    animation: lineTyping 0.5s ease-out forwards;
    opacity: 0;
    font-weight: normal;
    display: none;
}
.logo-line:nth-child(2) { display: block; }
.logo-line:nth-child(1),
.logo-line:nth-child(3) { display: none; }

@keyframes lineTyping { to { opacity: 1; } }

.logo-text {
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.35em;
    font-family: var(--font-sans);
    font-size: 2rem;
    display: inline-block;
}

.logo-dev {
    color: var(--text-muted);
    font-weight: 300;
    font-family: var(--font-sans);
    letter-spacing: 0.15em;
}

/* Loading Bar — hairline white */
.loading-bar-container {
    margin-top: 32px;
    padding: 0 10px;
}

.loading-bar {
    width: 100%;
    max-width: 220px;
    height: 1px;
    background: var(--loader-track);
    border: none;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: var(--radius-pill);
}

.loading-fill {
    height: 100%;
    background: var(--loader-fill);
    animation: loadingProgress 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 0%;
    border-radius: var(--radius-pill);
}

@keyframes loadingProgress {
    0%   { width: 0%; }
    100% { width: 100%; }
}

.loader-text { margin-top: 28px; }

#loader-status {
    display: block;
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-weight: 400;
    animation: statusFade 0.4s ease-in-out;
}

@keyframes statusFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LAYOUT & NAVIGATION — FLOATING GLASS PILL NAV
   ========================================================================== */
.system-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 64px);
    max-width: 1100px;
    background: var(--nav-bg);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    height: 56px;
}

.logo {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text);
    padding: 0 20px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 8px;
}

.system-status {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 7px;
}

.system-status::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--status-online);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: blink 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

.cmd-btn {
    background: var(--surface-05);
    color: var(--text);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    letter-spacing: 0.05em;
}
.cmd-btn:hover {
    background: var(--surface-12);
    border-color: var(--surface-22);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 16px var(--surface-10);
}

.cmd-btn.theme-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cmd-btn.theme-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.terminal-container {
    position: relative;
    z-index: 4;
    max-width: 960px;
    margin: 0 auto;
    padding: 130px 32px 100px;
}

.console-block {
    margin-bottom: 80px;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 48px;
    box-shadow: var(--shadow-card);
    will-change: transform, opacity;
}

/* Remove old hacker divider — sections now float as cards */
.console-block + .console-block {
    border-top: none;
}

.console-block.hero {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}

.cmd-line {
    display: inline-block;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
    font-family: var(--font-sans);
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    text-transform: uppercase;
    background: var(--surface-05);
    border: 1px solid var(--glass-border);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
}

.system-footer {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 52px 32px;
    border-top: 1px solid var(--divider);
    font-size: 0.8rem;
    color: var(--text-dim);
    background: transparent;
    letter-spacing: 0.03em;
}

/* Scroll Reveal — staggered fade-in-up */
.hidden-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.show-section { opacity: 1; transform: translateY(0); }

/* Stagger delay for consecutive hidden sections */
.hidden-section:nth-child(2) { transition-delay: 0.05s; }
.hidden-section:nth-child(3) { transition-delay: 0.1s; }
.hidden-section:nth-child(4) { transition-delay: 0.15s; }
.hidden-section:nth-child(5) { transition-delay: 0.2s; }
.hidden-section:nth-child(6) { transition-delay: 0.25s; }

/* ==========================================================================
   TYPOGRAPHY — MASSIVE, BOLD, TIGHTLY TRACKED
   ========================================================================== */
h1 {
    font-size: clamp(2.8rem, 8vw, 6rem);
    position: relative;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.0;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

/* Glitch Effect */
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
}
.glitch-text:hover::before {
    animation: glitch 0.3s cubic-bezier(.25,.46,.45,.94) both infinite;
    color: var(--glitch-ghost);
    z-index: -1;
    opacity: 1;
}

@keyframes glitch {
    0%   { transform: translate(0); }
    20%  { transform: translate(-2px, 2px); }
    40%  { transform: translate(-2px, -2px); }
    60%  { transform: translate(2px, 2px); }
    80%  { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Slogan & Cursor */
.slogan-box {
    font-size: 1.08rem;
    min-height: 1.6em;
    color: var(--text-muted);
    margin: 18px 0 28px;
    display: flex;
    align-items: center;
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 300;
}
#slogan-text { white-space: pre-wrap; }

.cursor {
    display: inline-block;
    color: var(--text-muted);
    animation: blink 1s step-end infinite;
    margin-left: 3px;
    font-weight: 300;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.sub-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ==========================================================================
   HERO SECTION — CINEMATIC, AIRY, FLOATING
   ========================================================================== */
.hero {
    padding-top: 30px;
    padding-bottom: 30px;
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 680px;
}

.hero-avatar-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar-frame {
    width: 190px; height: 190px;
    border: 1px solid var(--avatar-border);
    padding: 4px;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-md), var(--avatar-glow);
    backdrop-filter: var(--blur-glass);
}

.avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: none;
    mix-blend-mode: normal;
    border-radius: 20px;
}

.avatar-scanline {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--scanline-color);
    animation: scanFace 4s linear infinite;
    opacity: 0;
}

.avatar-caption {
    margin-top: 8px;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.12em;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
}

@keyframes scanFace {
    0%   { top: 0%; opacity: 0; }
    10%  { opacity: 0.25; }
    90%  { opacity: 0.25; }
    100% { top: 100%; opacity: 0; }
}

@media (max-width: 768px) {
    .system-nav { width: calc(100% - 32px); }
    .hero-layout { flex-direction: row; align-items: flex-start; gap: 20px; }
    .avatar-frame { width: 80px; height: 80px; }
    h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
    .terminal-container { padding: 110px 20px 80px; }
    .nav-controls { gap: 10px; }
}

@media (max-width: 560px) {
    .system-status { display: none; }
    .cmd-btn { padding: 8px 16px; }
    .cmd-btn.theme-toggle { padding: 0; }
}

/* ==========================================================================
   STANDARD COMPONENTS — SKILLS
   ========================================================================== */
.brutal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.skill-box {
    padding: 32px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface-04);
    backdrop-filter: var(--blur-glass);
    box-shadow: var(--shadow-sm);
}

.skill-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--surface-03), transparent);
    transition: 0.5s;
}
.skill-box:hover::before { left: 100%; }

.skill-box:hover {
    background: var(--surface-06);
    border-color: var(--glass-border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-box.highlight {
    border: 1px solid var(--surface-11);
}

.code-num {
    font-size: 0.64rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.7;
    font-family: var(--font-sans);
    color: var(--text-muted);
    letter-spacing: 0.12em;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   ACHIEVEMENTS SHOWCASE
   ========================================================================== */
.achievements-showcase {
    display: grid;
    gap: 22px;
}

.achievement-lead {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--glass-border-strong);
    border-radius: calc(var(--radius-card) + 4px);
    padding: 34px;
    background:
        linear-gradient(135deg, var(--surface-10), transparent 55%),
        radial-gradient(circle at top right, var(--surface-14), transparent 32%),
        linear-gradient(160deg, var(--surface-08), var(--surface-03));
    box-shadow: var(--shadow-card);
}

.achievement-lead::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, transparent 49.6%, var(--divider) 50%, transparent 50.4%, transparent),
        linear-gradient(var(--divider) 1px, transparent 1px);
    background-size: 100% 100%, 100% 40px;
    opacity: 0.22;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
    pointer-events: none;
}

.achievement-lead::after {
    content: '';
    position: absolute;
    top: -90px;
    right: -110px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--surface-15) 0%, transparent 68%);
    filter: blur(10px);
    opacity: 0.9;
}

.achievement-kicker,
.achievement-label,
.achievement-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: var(--surface-05);
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.achievement-card-chip {
    background: var(--surface-03);
    color: var(--text-dim);
    font-size: 0.64rem;
    font-weight: 600;
}

.achievement-lead-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 320px);
    gap: 24px;
    align-items: stretch;
    margin-top: 18px;
}

.achievement-lead-copy {
    display: grid;
    align-content: start;
    gap: 18px;
}

.achievement-lead h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.05;
    margin: 0;
    max-width: 12ch;
}

.achievement-lead p {
    max-width: 58ch;
    color: var(--text-muted);
    font-size: 0.98rem;
    margin: 0;
}

.achievement-sidecar {
    display: grid;
    gap: 14px;
}

.achievement-meter {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 176px;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--surface-08), var(--surface-04));
    text-align: left;
    box-shadow: inset 0 0 0 1px var(--surface-03);
}

.achievement-meter::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border-strong), transparent);
}

.achievement-meter-value {
    display: block;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0;
}

.achievement-meter .content-vi,
.achievement-meter .content-en {
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    max-width: 12ch;
}

.achievement-stat-list {
    display: grid;
    gap: 12px;
}

.achievement-stat {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--surface-04);
}

.achievement-stat-label {
    color: var(--text-dim);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.achievement-stat strong {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 600;
}

.achievement-tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.achievement-tags span {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface-04);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.achievement-spotlight {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 360px);
    gap: 18px;
    padding: 28px;
    border-radius: calc(var(--radius-card) + 4px);
    border: 1px solid var(--glass-border-strong);
    background:
        linear-gradient(145deg, var(--surface-09), transparent 52%),
        linear-gradient(180deg, var(--surface-07), rgba(var(--panel-rgb), 0.24));
    box-shadow: var(--shadow-card);
}

.achievement-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, var(--surface-12), transparent 34%),
        linear-gradient(135deg, transparent 42%, var(--surface-04));
    opacity: 0.82;
    pointer-events: none;
}

.achievement-spotlight > * {
    position: relative;
    z-index: 1;
}

.achievement-spotlight-copy {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 18px;
}

.achievement-spotlight-heading {
    display: grid;
    gap: 12px;
}

.achievement-spotlight h2 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    line-height: 1.04;
}

.achievement-spotlight p {
    margin: 0;
    max-width: 56ch;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.72;
}

.achievement-spotlight .achievement-tags {
    margin-top: 0;
}

.achievement-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.achievement-fact {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: var(--surface-05);
}

.achievement-fact-value {
    display: block;
    color: var(--text);
    font-size: clamp(1.2rem, 2.7vw, 1.75rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.achievement-fact .content-vi,
.achievement-fact .content-en {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.achievement-proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.achievement-spotlight-proof {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px;
    border-radius: calc(var(--radius-card) - 4px);
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--surface-06), rgba(var(--panel-rgb), 0.18));
    box-shadow: inset 0 0 0 1px var(--surface-03);
}

.achievement-spotlight-proof img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-card) - 14px);
    border: 1px solid var(--glass-border);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.achievement-proof-caption {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.achievement-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    gap: 18px;
    align-content: start;
    min-height: 280px;
    padding: 28px;
    border-radius: calc(var(--radius-card) - 4px);
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--surface-07), rgba(var(--panel-rgb), 0.26));
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.achievement-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, var(--surface-09), transparent 32%),
        linear-gradient(180deg, transparent, rgba(var(--panel-rgb), 0.18));
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.achievement-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -55% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--surface-10) 0%, transparent 72%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

.achievement-card > * {
    position: relative;
    z-index: 1;
}

.achievement-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-strong);
    box-shadow: var(--shadow-md);
}

.achievement-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.achievement-card-featured {
    grid-column: span 7;
    min-height: 320px;
    background: linear-gradient(180deg, var(--surface-09), rgba(var(--panel-rgb), 0.2));
}

.achievement-card-accent {
    grid-column: span 5;
    background:
        radial-gradient(circle at top left, var(--surface-12), transparent 35%),
        linear-gradient(180deg, var(--surface-08), rgba(var(--panel-rgb), 0.25));
}

.achievement-card-wide {
    grid-column: 1 / -1;
    min-height: 220px;
}

.achievement-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.achievement-symbol {
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: clamp(3.4rem, 10vw, 5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: var(--text);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.achievement-card-copy {
    display: grid;
    gap: 12px;
    padding-top: 24px;
}

.achievement-card h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2.3vw, 1.5rem);
    line-height: 1.12;
    max-width: 15ch;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
    max-width: 48ch;
}

.achievement-points {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.achievement-card-featured .achievement-points,
.achievement-card-wide .achievement-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-points li {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--surface-05);
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.achievement-line {
    width: 96px;
    height: 2px;
    margin-top: 6px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--text), transparent);
    opacity: 0.75;
}

@media (max-width: 900px) {
    .achievement-spotlight {
        grid-template-columns: 1fr;
    }

    .achievement-lead-head {
        grid-template-columns: 1fr;
    }

    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card-featured,
    .achievement-card-accent,
    .achievement-card-wide {
        grid-column: auto;
        min-height: 0;
    }

    .achievement-card-featured .achievement-points,
    .achievement-card-wide .achievement-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .achievement-spotlight {
        padding: 22px;
    }

    .achievement-spotlight-proof {
        padding: 12px;
    }

    .achievement-lead {
        padding: 24px;
    }

    .achievement-meter {
        min-height: 0;
    }

    .achievement-card {
        padding: 22px;
    }

    .achievement-symbol {
        top: 18px;
        right: 18px;
        font-size: 3.2rem;
    }
}

.launch-btn.award-inline-btn {
    display: inline-block;
    width: fit-content;
    margin-top: 0;
}

/* ==========================================================================
   PROJECT AWARDS
   ========================================================================== */
.award-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 420px);
    gap: 18px;
    align-items: stretch;
}

.award-summary,
.award-proof {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--glass-border-strong);
    box-shadow: var(--shadow-card);
}

.award-summary {
    padding: 30px;
    background:
        linear-gradient(145deg, var(--surface-09), transparent 55%),
        linear-gradient(180deg, var(--surface-07), rgba(var(--panel-rgb), 0.24));
}

.award-summary::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, var(--surface-12), transparent 34%),
        linear-gradient(135deg, transparent 40%, var(--surface-04));
    opacity: 0.85;
    pointer-events: none;
}

.award-summary > * {
    position: relative;
    z-index: 1;
}

.award-summary h2 {
    margin: 18px 0 12px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.award-summary p {
    margin: 0;
    color: var(--text-muted);
    max-width: 56ch;
}

.award-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.award-metric {
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--surface-05);
}

.award-metric strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.award-metric span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.award-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.award-proof {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
    background: linear-gradient(180deg, var(--surface-06), rgba(var(--panel-rgb), 0.22));
}

.award-proof img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-card) - 10px);
    border: 1px solid var(--glass-border);
    background: var(--surface-03);
    box-shadow: var(--shadow-sm);
}

.award-proof-caption {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .award-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .award-summary {
        padding: 24px;
    }

    .award-metrics {
        grid-template-columns: 1fr;
    }

    .award-proof {
        padding: 14px;
    }
}

/* ==========================================================================
   PRODUCT PREVIEW SLIDESHOW
   ========================================================================== */
.product-preview-shell {
    display: grid;
    gap: 18px;
}

.product-preview-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "prev frame next";
    gap: 14px;
    align-items: center;
}

.product-preview-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--surface-08), rgba(var(--panel-rgb), 0.24));
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    line-height: 1;
    transition: var(--transition);
    backdrop-filter: var(--blur-glass);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
}

.product-preview-nav:hover {
    color: var(--accent);
    border-color: var(--glass-border-strong);
    background: linear-gradient(180deg, var(--surface-12), rgba(var(--panel-rgb), 0.32));
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--surface-10), var(--shadow-sm);
}

.product-preview-nav:focus-visible,
.product-preview-shell:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.product-preview-nav-prev {
    grid-area: prev;
}

.product-preview-nav-next {
    grid-area: next;
}

.product-preview-frame {
    grid-area: frame;
    position: relative;
    min-width: 0;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, var(--surface-07), rgba(var(--panel-rgb), 0.34)),
        var(--bg-card);
    box-shadow: var(--shadow-card);
}

.product-preview-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(var(--neutral-rgb), 0.04), transparent 24%),
        repeating-linear-gradient(180deg, transparent 0 17px, rgba(var(--neutral-rgb), 0.02) 17px 18px);
    opacity: 0.8;
    pointer-events: none;
}

.product-preview-media,
.product-preview-image,
.product-preview-video {
    position: relative;
    z-index: 1;
}

.product-preview-media {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.product-preview-media [hidden] {
    display: none !important;
}

.product-preview-image,
.product-preview-video {
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius-md) - 6px);
    background: var(--bg-card);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: opacity 0.24s ease, transform 0.32s ease, filter 0.24s ease;
}

.product-preview-image {
    object-fit: cover;
}

.product-preview-video {
    border: 0;
}

.product-preview-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
}

.product-preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(var(--neutral-rgb), 0.08);
    transition: var(--transition);
}

.product-preview-dot:hover,
.product-preview-dot:focus-visible {
    transform: scale(1.12);
    border-color: var(--accent-2);
}

.product-preview-dot.is-active {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

.product-preview-caption {
    display: grid;
    gap: 0;
    padding: 18px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, var(--surface-06), rgba(var(--panel-rgb), 0.22)),
        var(--bg-card);
    transition: opacity 0.24s ease, transform 0.32s ease, filter 0.24s ease;
}

.product-preview-caption-copy {
    color: var(--text-muted);
    line-height: 1.7;
}

.product-preview-shell.is-transitioning .product-preview-image,
.product-preview-shell.is-transitioning .product-preview-video,
.product-preview-shell.is-transitioning .product-preview-caption {
    opacity: 0.45;
    transform: translateY(4px) scale(0.992);
    filter: saturate(0.88);
}

@media (max-width: 720px) {
    .product-preview-stage {
        grid-template-columns: repeat(2, auto);
        grid-template-areas:
            "frame frame"
            "prev next";
        justify-content: center;
    }

    .product-preview-frame {
        padding: 14px;
    }

    .product-preview-nav {
        width: 56px;
        height: 56px;
    }

    .product-preview-dots {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-preview-nav,
    .product-preview-image,
    .product-preview-video,
    .product-preview-dot,
    .product-preview-caption {
        transition: none;
    }
}

/* ==========================================================================
   PROJECT CARDS
   ========================================================================== */
.project-brutal-card {
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    box-shadow: var(--shadow-card);
}

.project-brutal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--glass-border-strong);
}

.project-header {
    background: var(--surface-05);
    color: var(--text);
    padding: 14px 24px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.84rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-body { display: flex; flex-wrap: wrap; }

.project-img-wrapper {
    flex: 1 1 400px;
    border-right: 1px solid var(--glass-border);
    transition: var(--transition);
}
.project-img-wrapper:hover { filter: brightness(1.06); }
.project-img-wrapper img { width: 100%; height: auto; display: block; }

.project-desc { flex: 1 1 300px; padding: 32px; }

.launch-btn {
    display: block;
    text-align: center;
    padding: 12px 28px;
    background: var(--surface-06);
    color: var(--text);
    text-decoration: none;
    margin-top: 24px;
    font-weight: 500;
    font-size: 0.84rem;
    transition: var(--transition);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    border: 1px solid var(--glass-border);
    letter-spacing: 0.05em;
}
.launch-btn:hover {
    background: var(--surface-14);
    border-color: var(--glass-border-strong);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 20px var(--surface-12), var(--shadow-sm);
}

@media (max-width: 768px) {
    .project-img-wrapper { border-right: none; border-bottom: 1px solid var(--glass-border); }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-terminal {
    border: 1px solid var(--glass-border);
    padding: 36px;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.contact-row { margin-bottom: 16px; display: flex; gap: 20px; align-items: center; }

.label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 80px;
    letter-spacing: 0.08em;
    font-family: var(--font-sans);
    text-transform: uppercase;
}

.value {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.contact-row:hover .value { color: var(--text-muted); }

/* ==========================================================================
   FILE EXPLORER — MINIMALIST GLASS TWO-PANE LAYOUT
   ========================================================================== */
.explorer-panel {
    display: flex;
    height: 460px;
    border-radius: var(--radius-lg);
    background: var(--panel-overlay);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--surface-10);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--surface-03);
    overflow: hidden;
    margin-top: 12px;
    will-change: transform, opacity;
}

/* Left sidebar — narrow category navigation */
.explorer-sidebar {
    width: 140px;
    border-right: 1px solid var(--surface-07);
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    background: var(--sidebar-overlay);
}

.explorer-sidebar-title {
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0 8px 12px;
}

.explorer-cat {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 9px;
    user-select: none;
}

.explorer-cat:hover {
    background: var(--surface-06);
    color: var(--text);
}

.explorer-cat.active {
    background: var(--surface-09);
    color: var(--text);
}

.explorer-cat svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.explorer-cat.active svg,
.explorer-cat:hover svg {
    opacity: 1;
}

/* Right pane — spacious project grid */
.file-grid {
    flex-grow: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    grid-auto-rows: 120px;
    gap: 12px;
    overflow-y: auto;
}

/* Icons */
.icon-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.icon-container-featured {
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at top left, rgba(255, 211, 96, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 210, 100, 0.04), transparent 55%);
}

.icon-container:hover {
    border-color: var(--surface-14);
    background: var(--surface-06);
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--surface-10), var(--shadow-sm);
}

.icon-container-featured:hover {
    border-color: rgba(255, 215, 120, 0.4);
    box-shadow: 0 0 24px rgba(255, 208, 92, 0.14), var(--shadow-sm);
}

.icon-img {
    width: 36px; height: 36px;
    margin-bottom: 8px;
    user-select: none;
    transition: transform 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    color: var(--icon-muted);
}

.icon-container-featured .icon-img {
    color: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .icon-container-featured .icon-img {
    color: rgba(0, 0, 0, 0.88);
}

.icon-img svg { width: 100%; height: 100%; }
.icon-container:hover .icon-img { transform: scale(1.1); color: var(--icon-strong); }
.icon-container-featured:hover .icon-img { color: rgba(255, 255, 255, 0.98); }

html[data-theme="light"] .icon-container-featured:hover .icon-img {
    color: rgba(0, 0, 0, 0.96);
}

.icon-label {
    font-size: 0.72rem;
    word-break: break-word;
    line-height: 1.3;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.icon-container:hover .icon-label { color: var(--text); }

.icon-tag {
    font-size: 0.54rem;
    color: var(--text-dim);
    margin-top: 5px;
    background: var(--surface-04);
    border: 1px solid var(--glass-border);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.06em;
}

.icon-ribbon {
    position: absolute;
    top: 10px;
    left: -35px;
    z-index: 3;
    width: 124px;
    padding: 5px 0 6px;
    border-top: 1px solid rgba(255, 239, 188, 0.5);
    border-bottom: 1px solid rgba(128, 82, 12, 0.45);
    background: linear-gradient(135deg, #ffd969 0%, #f0b838 38%, #ba7d18 100%);
    color: #2c1b00;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(201, 149, 38, 0.28);
    text-shadow: 0 1px 0 rgba(255, 244, 209, 0.45);
    pointer-events: none;
    transform: rotate(-45deg);
    transform-origin: center;
}

.icon-ribbon::before,
.icon-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    width: 0;
    height: 0;
    border-top: 7px solid #8e5e14;
}

.icon-ribbon::before {
    left: 0;
    border-right: 7px solid transparent;
}

.icon-ribbon::after {
    right: 0;
    border-left: 7px solid transparent;
}

/* Explorer status bar */
.explorer-status {
    margin-top: 10px;
    font-size: 0.63rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    padding: 0 4px;
}

/* Scrollbar */
.file-grid::-webkit-scrollbar { width: 5px; }
.file-grid::-webkit-scrollbar-track { background: transparent; }
.file-grid::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: var(--radius-pill); }

@media (max-width: 600px) {
    .explorer-panel { height: 400px; }
    .explorer-sidebar { width: 110px; }
    .file-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

/* ==========================================================================
   REPORT & GRADES PAGE
   ========================================================================== */
/* Prevent double-nested card styling inside containers */
.report-container .console-block,
.project-brutal-card .console-block {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    margin-bottom: 30px;
}

.report-container {
    border: 1px solid var(--glass-border);
    padding: 16px;
    font-family: var(--font-sans);
    margin-bottom: 40px;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.report-header {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    border-bottom: 1px solid var(--glass-border-strong);
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.report-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    padding: 10px 8px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
    position: relative;
    border-radius: var(--radius-sm);
}

.report-row:hover { background: var(--surface-04); padding-left: 14px; }
.report-row.active { background: var(--surface-06); color: var(--text); }

.text-highlight { color: var(--text); font-weight: bold; }

.detail-row {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease-out, background 0.3s;
    background: var(--detail-bg);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 18px 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.d-item {
    border-left: 2px solid var(--glass-border-strong);
    padding-left: 10px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.d-item.highlight {
    color: var(--text);
    border-left: 2px solid var(--text-muted);
    font-weight: 600;
}

.expand-icon {
    display: inline-block;
    width: 20px;
    margin-right: 5px;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}
.report-row.active .expand-icon { transform: rotate(90deg); }

.note-box {
    border: 1px solid var(--glass-border);
    padding: 24px;
    color: var(--text);
    min-height: 100px;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
    .report-header, .report-row { grid-template-columns: 1fr 1fr; font-size: 0.8rem; }
    .report-header .col:nth-child(3), .report-row .col:nth-child(3) { display: none; }
}

/* ==========================================================================
   ZALO APP PAGE
   ========================================================================== */
.log-container {
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.log-header {
    display: grid;
    grid-template-columns: 120px 100px 1fr;
    background: var(--surface-05);
    color: var(--text);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--glass-border);
    letter-spacing: 0.06em;
}

.log-entry {
    display: grid;
    grid-template-columns: 120px 100px 1fr;
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.log-entry:hover { background: var(--surface-03); }

.log-ver { color: var(--text-muted); font-weight: 600; }
.tag-new {
    background: var(--surface-07);
    color: var(--text);
    padding: 3px 10px;
    font-size: 0.7rem;
    margin-right: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
}

@media (max-width: 600px) {
    .log-header { display: none; }
    .log-entry { grid-template-columns: 1fr; gap: 5px; padding: 15px; }
    .log-date { opacity: 0.7; font-size: 0.75rem; }
}

/* ==========================================================================
   SPECIAL FEATURES — GOD MODE, MATRIX, STATS
   ========================================================================== */
.sys-info-bar {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.separator { margin: 0 10px; opacity: 0.3; }
.status-blink { animation: blink 1s step-end infinite; }

/* Matrix Background Canvas */
#matrix-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0; transition: opacity 1s ease; pointer-events: none;
}

/* ==========================================================================
   GOD MODE — INVERTED EDITORIAL PALETTE
   ========================================================================== */
body.god-mode {
    --bg: #F7F5F0;
    --bg-card: rgba(0, 0, 0, 0.04);
    --bg-card-hover: rgba(0, 0, 0, 0.07);
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.10);
    --glass-border-strong: rgba(0, 0, 0, 0.18);
    --text: #0A0A0A;
    --text-muted: #666666;
    --text-dim: #999999;
    --accent: #1A1A1A;
    --accent-glow: rgba(0, 0, 0, 0.08);
    --accent2: #555555;
    --accent2-glow: rgba(0, 0, 0, 0.06);
    --divider: rgba(0, 0, 0, 0.08);
}

body.god-mode .aurora-bg { display: none; }

body.god-mode .system-nav {
    background: rgba(247, 245, 240, 0.85);
    border-color: rgba(0, 0, 0, 0.10);
}

body.god-mode .explorer-panel {
    background: rgba(240, 240, 240, 0.9);
    border-color: rgba(0, 0, 0, 0.10);
}

body.god-mode .explorer-sidebar {
    background: rgba(0, 0, 0, 0.02);
    border-right-color: rgba(0, 0, 0, 0.08);
}

body.god-mode .terminal-container { animation: godPulse 0.6s ease-out both; }
@keyframes godPulse {
    0%   { opacity: 0.8; transform: scale(0.98); }
    50%  { opacity: 1; transform: scale(1.01); }
    100% { opacity: 1; transform: scale(1); }
}

/* Reveal Matrix Rain (very subtle) */
body.god-mode #matrix-bg { opacity: 0.03; }

/* Reveal secret section */
.god-only-section { display: none; }
body.god-mode .god-only-section {
    display: block;
    animation: hudReveal 0.6s ease forwards;
}

@keyframes hudReveal {
    0%   { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   SOCIAL HUB PAGE (pages/comm_link.html)
   ========================================================================== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.social-node {
    position: relative;
    border: 1px solid var(--glass-border);
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-node:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--glass-border-strong);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.node-icon { font-size: 2.8rem; opacity: 0.9; }
.node-id   { text-align: right; font-size: 0.7rem; opacity: 0.5; font-family: var(--font-mono); }

.node-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.node-handle { font-size: 0.9rem; color: var(--text-muted); }

.node-stats {
    margin-top: auto;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--text-dim);
}

.ping-val { animation: blink 2s infinite; }

/* Platform accent colours on hover */
.social-node.yt:hover { border-color: rgba(255, 0, 0, 0.35); }
.social-node.tt:hover { border-color: rgba(0, 242, 234, 0.35); }
.social-node.fb:hover { border-color: rgba(24, 119, 242, 0.35); }
.social-node.gh:hover { border-color: var(--github-hover-border); }

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--text);
    text-decoration: none;
    background: var(--surface-06);
    border: 1px solid var(--glass-border);
    padding: 12px 28px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}
.back-link:hover {
    background: var(--surface-12);
    border-color: var(--glass-border-strong);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 16px var(--surface-10);
}

/* ==========================================================================
   PROJECT PLACEHOLDER STYLES
   ========================================================================== */
.status-dot.warning {
    background-color: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
    animation: blink 0.5s infinite;
}

.launch-btn.disabled-btn {
    background: var(--surface-03);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
    border-radius: var(--radius-pill);
}
.launch-btn.disabled-btn:hover {
    background: var(--surface-03);
    color: var(--text-dim);
    box-shadow: none;
    transform: none;
}

html[data-theme="light"] .aurora-orb.orb-1 {
    background: radial-gradient(circle, rgba(255,255,255,0.65) 0%, rgba(255,247,230,0.32) 50%, transparent 72%);
}

html[data-theme="light"] .aurora-orb.orb-2 {
    background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(248,240,220,0.28) 50%, transparent 72%);
}

html[data-theme="light"] .aurora-orb.orb-3 {
    background: radial-gradient(circle, rgba(255,255,255,0.48) 0%, rgba(240,230,210,0.24) 50%, transparent 72%);
}

html[data-theme="light"] .aurora-lamp {
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.18) 45%, transparent 70%);
}

.project-brutal-card.wip-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-2px);
}

@keyframes pulse {
    0%   { opacity: 0.6; }
    50%  { opacity: 1; }
    100% { opacity: 0.6; }
}

/* fadeIn — used by file explorer JS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
