/* ==========================================================================
   VIJENDRA KUMAR VAISHYA · TERMINAL PORTFOLIO STYLES
   Classic, High-Craft Systems Engineering Terminal Website
   ========================================================================== */

:root {
  /* Default Cyan Theme */
  --bg-app: #070b14;
  --bg-window: rgba(11, 17, 30, 0.95);
  --border-window: rgba(56, 189, 248, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --titlebar-bg: #0e1526;
  --statusbar-bg: #090e1b;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --accent-alt: #10b981;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --user-color: #38bdf8;
  --host-color: #10b981;
  --dir-color: #a855f7;
  --prompt-sym: #f59e0b;

  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-window: 12px;
  --radius-sm: 6px;
  --radius-full: 9999px;
  --shadow-window: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.12);
}

/* Theme Variations */
[data-theme="matrix"] {
  --bg-app: #030805;
  --bg-window: rgba(5, 15, 8, 0.96);
  --border-window: rgba(34, 197, 94, 0.3);
  --titlebar-bg: #07170c;
  --statusbar-bg: #040d07;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.4);
  --accent-alt: #4ade80;
  --user-color: #4ade80;
  --host-color: #22c55e;
  --dir-color: #86efac;
  --prompt-sym: #bbf7d0;
  --shadow-window: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(34, 197, 94, 0.15);
}

[data-theme="dracula"] {
  --bg-app: #1e1f29;
  --bg-window: rgba(40, 42, 54, 0.96);
  --border-window: rgba(189, 147, 249, 0.3);
  --titlebar-bg: #21222c;
  --statusbar-bg: #191a21;
  --accent: #bd93f9;
  --accent-glow: rgba(189, 147, 249, 0.4);
  --accent-alt: #50fa7b;
  --user-color: #bd93f9;
  --host-color: #50fa7b;
  --dir-color: #ff79c6;
  --prompt-sym: #f1fa8c;
  --shadow-window: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(189, 147, 249, 0.15);
}

[data-theme="amber"] {
  --bg-app: #0c0803;
  --bg-window: rgba(22, 14, 5, 0.96);
  --border-window: rgba(245, 158, 11, 0.3);
  --titlebar-bg: #1a1006;
  --statusbar-bg: #100a04;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --accent-alt: #fbbf24;
  --user-color: #fbbf24;
  --host-color: #f59e0b;
  --dir-color: #d97706;
  --prompt-sym: #fde68a;
  --shadow-window: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.15);
}

[data-theme="mono"] {
  --bg-app: #080808;
  --bg-window: rgba(18, 18, 18, 0.97);
  --border-window: rgba(255, 255, 255, 0.2);
  --titlebar-bg: #141414;
  --statusbar-bg: #0d0d0d;
  --accent: #f8fafc;
  --accent-glow: rgba(255, 255, 255, 0.2);
  --accent-alt: #cbd5e1;
  --user-color: #f8fafc;
  --host-color: #94a3b8;
  --dir-color: #e2e8f0;
  --prompt-sym: #ffffff;
  --shadow-window: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.05);
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Matrix Canvas (Subtle ambient effect) */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

/* The Main Terminal Window */
.terminal-window {
  width: 100%;
  max-width: 1160px;
  min-height: 88vh;
  max-height: 94vh;
  background: var(--bg-window);
  border: 1px solid var(--border-window);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-window.is-maximized {
  max-width: 98vw;
  min-height: 96vh;
  max-height: 96vh;
}

/* Titlebar */
.terminal-titlebar {
  background: var(--titlebar-bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  gap: 12px;
  flex-shrink: 0;
}

.titlebar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.control-btn:hover {
  transform: scale(1.15);
}

.control-btn.close { background-color: #ff5f56; border: 1px solid #e0443e; }
.control-btn.minimize { background-color: #ffbd2e; border: 1px solid #dea123; }
.control-btn.maximize { background-color: #27c93f; border: 1px solid #1aab29; }

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.titlebar-left::-webkit-scrollbar {
  display: none;
}

.terminal-tabs-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.term-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.term-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.term-tab.active {
  background: var(--bg-window);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.tab-icon {
  font-size: 0.76rem;
}

.titlebar-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.titlebar-icon-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.titlebar-icon-btn.active {
  color: var(--accent-alt);
  border-color: rgba(16, 185, 129, 0.4);
}

.quick-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #050a14;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

.quick-cv-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Quick Commands Toolbar */
.quick-toolbar {
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border-subtle);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
  flex-shrink: 0;
}

.quick-toolbar::-webkit-scrollbar {
  height: 3px;
}
.quick-toolbar::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}

.toolbar-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
  margin-right: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  flex-shrink: 0;
}

.cmd-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.cmd-pill::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 100%; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transition: left 0.4s ease, right 0.4s ease;
}

.cmd-pill:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.cmd-pill:hover::before {
  left: 100%; right: -100%;
}

.cmd-pill:active {
  transform: translateY(0px);
  box-shadow: none;
}

.cmd-pill.pill-alt {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.cmd-pill.pill-alt:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--accent-amber);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* Terminal Body & Scroll Area */
.terminal-body {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--border-window);
}

/* Output History Elements */
.term-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: termFade 0.15s ease;
}

@keyframes termFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.term-executed-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.term-cmd-text {
  color: var(--text-main);
}

/* Terminal Command Prompt Line */
.command-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.prompt-prefix {
  display: inline-flex;
  align-items: center;
  user-select: none;
  font-weight: 600;
}

.p-user { color: var(--user-color); }
.p-at { color: var(--text-dim); }
.p-host { color: var(--host-color); }
.p-colon { color: var(--text-dim); }
.p-dir { color: var(--dir-color); font-weight: 700; }
.p-sym { color: var(--prompt-sym); margin-left: 4px; }

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

#terminal-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-main);
  caret-color: var(--accent);
  position: relative;
  z-index: 2;
}

.ghost-hint {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.22);
  white-space: pre;
  user-select: none;
  z-index: 1;
  letter-spacing: inherit;
}

/* Blinking custom cursor */
.custom-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: middle;
  animation: blink-cursor 1.1s step-end infinite;
  border-radius: 1px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.prompt-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.prompt-clear-btn.visible {
  opacity: 0.7;
}

.prompt-clear-btn:hover {
  opacity: 1;
  color: var(--accent-red);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
  vertical-align: middle;
}

.copy-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 8px var(--accent-glow);
}

.copy-btn:active, .copy-btn.copied {
  transform: scale(0.95);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-alt);
  border-color: rgba(16, 185, 129, 0.4);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--accent-alt);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-alt);
  box-shadow: 0 0 6px var(--accent-alt);
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.interactive-action-btn {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-window);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.interactive-action-btn:hover {
  background: var(--accent);
  color: #050a14;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Terminal Outputs Styling */
.term-output {
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 2px;
}

.ascii-banner {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.25;
  white-space: pre;
  user-select: none;
  margin-bottom: 10px;
  text-shadow: 0 0 10px var(--accent-glow);
}

.welcome-lead {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.welcome-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.welcome-tip {
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent);
  padding: 6px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 8px;
}

.term-strong {
  color: var(--accent);
  font-weight: 700;
}

.term-cmd-inline {
  color: var(--accent-alt);
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.15s ease;
}

.term-cmd-inline:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #fff;
}

/* Neofetch Layout */
.neofetch-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(56,189,248,0.03) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 22px 28px;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}

.neofetch-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.neofetch-avatar-wrap {
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.neofetch-avatar {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent);
  box-shadow: 0 0 28px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.5);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neofetch-avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px var(--accent-glow), 0 12px 40px rgba(0,0,0,0.6);
}

.neofetch-role-tag {
  font-size: 0.68rem;
  color: var(--accent-alt);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.neofetch-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.neofetch-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.neofetch-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.neofetch-row {
  display: flex;
  gap: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.neofetch-row:hover .neofetch-val {
  color: var(--text-main);
}

.neofetch-label {
  width: 110px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  opacity: 0.9;
}

.neofetch-val {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.neofetch-val strong {
  color: var(--text-main);
}

/* Command Help Table */
.help-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 6px 0;
}

.help-cmd {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.help-cmd:hover {
  text-decoration: underline;
}

.help-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Systems & Benchmark Output */
.benchmark-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 8px 0;
}

.bench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.bench-title {
  font-weight: 700;
  color: var(--text-main);
}

.bench-badge {
  font-size: 0.72rem;
  color: var(--accent-alt);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.bench-bar-row {
  margin-bottom: 10px;
}

.bench-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.bench-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.bench-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, white));
  border-radius: 5px;
  box-shadow: 0 0 14px var(--accent-glow);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bench-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  border-radius: 5px;
}

.bench-bar-fill.fill-green {
  background: linear-gradient(90deg, var(--accent-alt), color-mix(in srgb, var(--accent-alt) 60%, white));
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* Card Lists (Research / Projects / Education) */
.term-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
}

.term-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  transition: border-color 0.2s ease, border-left-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.term-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  border-left-color: var(--accent);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), -4px 0 12px var(--accent-glow);
}

.term-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 6px;
}

.term-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.term-card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.term-card-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.term-card-tag {
  font-size: 0.72rem;
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.term-card-inst {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.term-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.term-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.term-metric-pill {
  color: var(--accent-alt);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.term-tag {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Skills Category Grid */
.skills-term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 8px 0;
}

.skills-category-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.skills-category-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skills-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pill {
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
}

.skill-pill.starred {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.08);
}

/* Status Bar */
.terminal-statusbar {
  background: var(--statusbar-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 5px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  user-select: none;
  flex-shrink: 0;
  gap: 12px;
  letter-spacing: 0.02em;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-mode {
  background: var(--accent);
  color: #050a14;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
}

.status-branch {
  color: var(--accent-alt);
  font-weight: 700;
}

.status-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 85px;
  text-align: right;
}

.status-node {
  color: var(--accent);
  font-weight: 600;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Specialized Terminal Feature Windows (htop, nvtop, disasm, roofline)
   -------------------------------------------------------------------------- */
.htop-box, .nvtop-box, .disasm-box, .roofline-box, .compile-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 8px 0;
  font-family: var(--font-mono);
  overflow-x: auto;
}

.htop-header, .nvtop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.htop-meters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin-bottom: 14px;
}

.meter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.meter-label {
  width: 50px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.meter-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.meter-bar-fill.fill-green {
  background: var(--accent-alt);
}

.meter-bar-fill.fill-amber {
  background: var(--accent-amber);
}

.meter-val {
  font-size: 0.75rem;
  color: var(--text-main);
  width: 46px;
  text-align: right;
  flex-shrink: 0;
}

.process-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 8px;
}

.process-table th {
  text-align: left;
  color: var(--accent);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px 8px;
  font-weight: 600;
}

.process-table td {
  padding: 4px 8px;
  color: var(--text-muted);
}

.process-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.proc-highlight {
  color: var(--accent-alt) !important;
  font-weight: 700;
}

/* Disassembly & Assembly Syntax */
.asm-code-block {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.asm-label {
  color: var(--accent-purple);
  font-weight: 700;
}

.asm-inst {
  color: var(--accent);
  font-weight: 700;
}

.asm-reg {
  color: var(--accent-alt);
}

.asm-imm {
  color: var(--accent-amber);
}

.asm-comment {
  color: #64748b;
  font-style: italic;
}

/* Roofline Model Visualizer */
.roofline-chart {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 10px 0;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre;
  color: var(--accent);
}

/* Live Compiler Stream */
.compile-log-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.compile-tag {
  color: var(--accent);
  font-weight: 700;
}

.compile-ok {
  color: var(--accent-alt);
  font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .terminal-window {
    max-width: 100%;
  }

  .neofetch-avatar {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .terminal-section {
    padding: 40px 12px;
  }

  .terminal-window {
    min-height: 480px;
    height: 520px;
    border-radius: 8px;
  }

  .terminal-body {
    padding: 14px 16px;
  }

  .neofetch-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 16px;
    gap: 20px;
  }

  .neofetch-avatar {
    width: 130px;
    height: 130px;
  }

  .neofetch-details {
    width: 100%;
  }

  .neofetch-row {
    flex-direction: row;
    gap: 8px;
  }

  .neofetch-label {
    width: 90px;
  }

  .help-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .status-node, .status-encoding {
    display: none;
  }

  .ascii-banner {
    font-size: 8px;
  }

  .term-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ==========================================================================
   SCANLINES — Subtle CRT texture overlay
   ========================================================================== */
.scanlines {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.025) 3px,
    rgba(0, 0, 0, 0.025) 4px
  );
  opacity: 0.6;
}

/* ==========================================================================
   AMBIENT GLOW — Terminal window pulsing border glow
   ========================================================================== */
@keyframes ambient-glow {
  0%, 100% { box-shadow: var(--shadow-window); }
  50%       { box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 60px var(--accent-glow); }
}

.terminal-window {
  animation: ambient-glow 6s ease-in-out infinite;
}

.terminal-window.is-maximized {
  animation: none;
}

/* ==========================================================================
   COMMAND PALETTE (Ctrl+P)
   ========================================================================== */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.cmd-palette-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cmd-palette {
  width: 100%;
  max-width: 580px;
  background: rgba(10, 16, 30, 0.98);
  border: 1px solid var(--border-window);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-overlay.open .cmd-palette {
  transform: translateY(0);
}

.cmd-palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-palette-icon {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}

.cmd-palette-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-main);
  caret-color: var(--accent);
}

.cmd-palette-search input::placeholder {
  color: var(--text-dim);
}

.kbd-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.cmd-palette-list {
  list-style: none;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.cmd-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.cmd-palette-item:hover,
.cmd-palette-item.active {
  background: rgba(56, 189, 248, 0.1);
}

.cmd-palette-item.active {
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.palette-cmd-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 120px;
  flex-shrink: 0;
}

.palette-cmd-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palette-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.cmd-palette-footer kbd {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.65rem;
}

.palette-shortcut-hint {
  margin-left: auto;
  opacity: 0.45;
  font-size: 0.65rem;
}

/* ==========================================================================
   GIT LOG — Career timeline command
   ========================================================================== */
.git-log-box {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-purple);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 8px 0;
}

.git-log-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.76rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 4px;
}

.git-commit-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
  line-height: 1.5;
}

.git-commit-row:last-child {
  border-bottom: none;
}

.git-graph {
  color: var(--accent-alt);
  flex-shrink: 0;
  font-size: 0.78rem;
}

.git-hash {
  color: var(--accent-amber);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 62px;
}

.git-ref {
  color: var(--accent-purple);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.git-date {
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 65px;
  font-size: 0.76rem;
}

.git-msg {
  color: var(--text-main);
  flex: 1;
  min-width: 200px;
}

.git-detail {
  width: 100%;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ==========================================================================
   PING — Animated packet output
   ========================================================================== */
.ping-box {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 8px 0;
  line-height: 1.9;
}

.ping-packet {
  opacity: 0;
  animation: ping-appear 0.15s ease forwards;
  color: var(--text-muted);
}

@keyframes ping-appear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ping-stats {
  opacity: 0;
  animation: ping-appear 0.3s ease forwards;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   WHOAMI / IDENTITY CARD
   ========================================================================== */
.whoami-box {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-alt);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin: 8px 0;
  line-height: 2;
}

/* ==========================================================================
   VIM EASTER EGG MODAL
   ========================================================================== */
.vim-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 8888;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: termFade 0.15s ease;
}

.vim-modal {
  width: min(720px, 95vw);
  height: min(500px, 85vh);
  background: #0d1117;
  border: 1px solid var(--border-window);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.vim-header {
  background: var(--titlebar-bg);
  padding: 5px 14px;
  color: var(--text-dim);
  font-size: 0.72rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
}

.vim-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  color: #c9d1d9;
  line-height: 1.8;
  counter-reset: vim-line;
}

.vim-line {
  display: flex;
  gap: 16px;
  counter-increment: vim-line;
}

.vim-line::before {
  content: counter(vim-line);
  color: #4a5568;
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.78rem;
  user-select: none;
}

.vim-statusbar {
  background: var(--accent);
  color: #050a14;
  font-weight: 700;
  padding: 3px 14px;
  font-size: 0.76rem;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   BOOT SEQUENCE TYPEWRITER
   ========================================================================== */
@keyframes boot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.boot-typing-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: boot-blink 0.9s step-end infinite;
  margin-left: 1px;
}

/* ==========================================================================
   TIMELINE Command
   ========================================================================== */
.timeline-box {
  position: relative;
  padding: 8px 0 8px 28px;
  margin: 8px 0;
}

.timeline-box::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  border: 2px solid var(--bg-window);
}

.timeline-year {
  font-size: 0.7rem;
  color: var(--accent-amber);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   INPUT FOCUS — Glowing accent on active prompt
   ========================================================================== */
.command-line:focus-within .prompt-prefix {
  text-shadow: 0 0 8px var(--accent-glow);
}

#terminal-input:focus {
  caret-color: var(--accent);
}

/* ==========================================================================
   WELCOME TIP — Improved styling
   ========================================================================== */
.welcome-tip {
  animation: tip-glow 3s ease-in-out infinite;
}

@keyframes tip-glow {
  0%, 100% { border-left-color: var(--accent); }
  50%       { border-left-color: var(--accent-alt); }
}

/* ==========================================================================
   THEME PALETTE VARIABLES (WEB PORTFOLIO & CLI SYNC)
   ========================================================================== */
[data-theme="classic-dark"] {
  --bg-app: #080c16;
  --gui-bg: #080c16;
  --bg-window: rgba(12, 18, 32, 0.98);
  --titlebar-bg: #0f172a;
  --statusbar-bg: #0a0f1d;
  --border-window: rgba(56, 189, 248, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.05);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #38bdf8;
  --accent-subtle: rgba(56, 189, 248, 0.12);
  --accent-alt: #10b981;
  --user-color: #38bdf8;
  --host-color: #34d399;
  --dir-color: #c084fc;
  --prompt-sym: #f59e0b;
  --nav-bg: rgba(8, 12, 22, 0.85);
  --hero-title-color: #ffffff;
  --shadow-window: 0 24px 64px rgba(0, 0, 0, 0.75);
}

[data-theme="classic-light"] {
  --bg-app: #fbfbfd;
  --gui-bg: #fbfbfd;
  --bg-window: #ffffff;
  --titlebar-bg: #f2f2f7;
  --statusbar-bg: #e5e5ea;
  --border-window: rgba(0, 0, 0, 0.12);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-hover: rgba(0, 0, 0, 0.02);
  --text-main: #1d1d1f;
  --text-muted: #515154;
  --text-dim: #86868b;
  --accent: #0071e3;
  --accent-subtle: rgba(0, 113, 227, 0.08);
  --accent-alt: #1b873a;
  --user-color: #0071e3;
  --host-color: #1b873a;
  --dir-color: #7b2cbf;
  --prompt-sym: #b45309;
  --nav-bg: rgba(251, 251, 253, 0.88);
  --hero-title-color: #1d1d1f;
  --shadow-window: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="midnight-navy"] {
  --bg-app: #080c19;
  --gui-bg: #080c19;
  --bg-window: rgba(14, 21, 38, 0.98);
  --titlebar-bg: #141e34;
  --statusbar-bg: #0b111e;
  --border-window: rgba(129, 140, 248, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(30, 41, 59, 0.5);
  --card-border: rgba(99, 102, 241, 0.2);
  --card-hover: rgba(49, 65, 96, 0.5);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #818cf8;
  --accent-subtle: rgba(129, 140, 248, 0.15);
  --accent-alt: #34d399;
  --user-color: #818cf8;
  --host-color: #34d399;
  --dir-color: #c084fc;
  --prompt-sym: #fbbf24;
  --nav-bg: rgba(8, 12, 25, 0.88);
  --hero-title-color: #ffffff;
  --shadow-window: 0 24px 64px rgba(0, 0, 0, 0.8);
}

[data-theme="emerald-dark"] {
  --bg-app: #030a06;
  --gui-bg: #030a06;
  --bg-window: rgba(6, 20, 11, 0.98);
  --titlebar-bg: #0a2414;
  --statusbar-bg: #030c06;
  --border-window: rgba(16, 185, 129, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(16, 36, 23, 0.5);
  --card-border: rgba(52, 211, 153, 0.2);
  --card-hover: rgba(24, 56, 35, 0.5);
  --text-main: #f0fdf4;
  --text-muted: #a7f3d0;
  --text-dim: #6ee7b7;
  --accent: #10b981;
  --accent-subtle: rgba(16, 185, 129, 0.15);
  --accent-alt: #34d399;
  --user-color: #34d399;
  --host-color: #10b981;
  --dir-color: #6ee7b7;
  --prompt-sym: #a7f3d0;
  --nav-bg: rgba(3, 10, 6, 0.88);
  --hero-title-color: #ffffff;
  --shadow-window: 0 24px 64px rgba(0, 0, 0, 0.85);
}

/* --------------------------------------------------------------------------
   DIRECT ONE-CLICK THEME CHIPS
   -------------------------------------------------------------------------- */
.theme-chips-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

[data-theme="classic-light"] .theme-chips-group {
  background: rgba(0, 0, 0, 0.04);
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.theme-chip:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="classic-light"] .theme-chip:hover {
  background: rgba(0, 0, 0, 0.06);
}

.theme-chip.active {
  background: var(--card-bg);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
}

.swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.swatch-slate   { background: #38bdf8; }
.swatch-paper   { background: #0284c7; }
.swatch-navy    { background: #818cf8; }
.swatch-emerald { background: #10b981; }


/* --------------------------------------------------------------------------
   VIEW MODE SWITCHER CONTROLS
   -------------------------------------------------------------------------- */
/* Terminal Section Layout (Embedded in Web View) */
.terminal-section {
  padding: 72px 0;
}

.terminal-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.terminal-window {
  width: 100%;
  height: 600px;
  min-height: 520px;
  max-height: 680px;
  background: var(--bg-window);
  border: 1px solid var(--border-window);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Fullscreen Terminal View Mode (When [⚡ Terminal] is toggled) */
html.view-mode-terminal {
  overflow: hidden;
}

html.view-mode-terminal #gui-portfolio > section:not(#terminal) {
  display: none !important;
}

html.view-mode-terminal .site-footer {
  display: none !important;
}

html.view-mode-terminal .terminal-section {
  position: fixed !important;
  top: 58px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  z-index: 500 !important;
  background: var(--bg-app) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html.view-mode-terminal .terminal-section .section-header {
  display: none !important;
}

html.view-mode-terminal .terminal-section .section-container {
  max-width: 1160px;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
}

html.view-mode-terminal .terminal-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

html.view-mode-terminal .terminal-window {
  height: 100% !important;
  max-height: calc(100vh - 90px) !important;
}

/* Ambient Subtle Layer */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background: 
    radial-gradient(circle at 15% 15%, var(--accent-subtle) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, var(--accent-subtle) 0%, transparent 45%);
}

/* --------------------------------------------------------------------------
   SIMPLE & CLASSY NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 58px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 2px 6px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-cv:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.view-switch-capsule {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

[data-theme="classic-light"] .view-switch-capsule {
  background: rgba(0, 0, 0, 0.04);
}

.view-pill-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-pill-btn.active {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}


/* --------------------------------------------------------------------------
   CLEAN & CLASSY WEB PORTFOLIO LAYOUT
   -------------------------------------------------------------------------- */
.gui-content {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  color: var(--text-main);
  padding-top: 58px;
  background-color: var(--bg-app);
}

.section {
  padding: 64px 24px;
}

.section-container {
  max-width: 980px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-family: 'Outfit', var(--font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.section-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--card-border);
}


/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 72px 24px 48px;
}

.hero-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-inst-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-family: var(--font-mono);
}

.hero-lab {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-heading {
  font-family: 'Outfit', var(--font-sans);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-bio {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 860px;
  margin-bottom: 36px;
}

.hero-bio strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Metric Strip */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 36px;
}

.metric-item {
  text-align: left;
  border-right: 1px solid var(--card-border);
  padding-right: 14px;
}

.metric-item:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-num {
  font-family: 'Outfit', var(--font-sans);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.metric-unit {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
}

.metric-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.metric-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--accent);
  color: #070b14;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.18s ease;
}

[data-theme="classic-light"] .btn-primary {
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.btn-terminal-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-terminal-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* --------------------------------------------------------------------------
   ENTRY CARDS (RESEARCH & SYSTEMS)
   -------------------------------------------------------------------------- */
.entries-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.entry-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease;
}

.entry-card:hover {
  border-color: rgba(120, 120, 120, 0.3);
}

.entry-header {
  margin-bottom: 12px;
}

.entry-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.entry-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
}

.badge-accepted { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-review   { background: rgba(168, 85, 247, 0.14); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.badge-ongoing  { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }
.badge-preprint { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-sys      { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-ml       { background: rgba(99, 102, 241, 0.14); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.25); }
.badge-platform { background: rgba(236, 72, 153, 0.14); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }

.entry-title {
  font-family: 'Outfit', var(--font-sans);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.entry-authors {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.entry-authors strong {
  color: var(--text-main);
}

.entry-bullets {
  margin: 10px 0 16px 18px;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.entry-bullets li {
  margin-bottom: 6px;
}

.entry-bullets strong {
  color: var(--text-main);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--accent);
}

.entry-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   BENCHMARK RUNNER CARD
   -------------------------------------------------------------------------- */
.benchmark-container {
  margin: 18px 0;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

[data-theme="classic-light"] .benchmark-container {
  background: rgba(0, 0, 0, 0.03);
}

.bench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.bench-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bench-trigger-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.bench-trigger-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.bench-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bench-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bench-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.bench-row.accent-row .bench-info {
  color: var(--accent);
}

.track {
  width: 100%;
  height: 8px;
  background: var(--card-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-highlight {
  background: var(--accent-alt);
}


/* --------------------------------------------------------------------------
   COURSEWORK GRID
   -------------------------------------------------------------------------- */
.coursework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 20px;
}

.course-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.course-proj-title {
  font-family: 'Outfit', var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.course-inst {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.course-bullets {
  margin: 0 0 0 16px;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.course-bullets li {
  margin-bottom: 6px;
}

.course-bullets strong {
  color: var(--text-main);
}

.completed-courses-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

.bar-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-right: 4px;
}

.course-pill {
  font-size: 0.75rem;
  padding: 3px 9px;
  background: var(--accent-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   EDUCATION TIMELINE
   -------------------------------------------------------------------------- */
.timeline-wrap {
  position: relative;
  padding-left: 24px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--card-border);
}

.timeline-row {
  position: relative;
  margin-bottom: 24px;
}

.timeline-bullet {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-app);
}

.timeline-body {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 18px 20px;
}

.timeline-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.timeline-institution {
  font-family: 'Outfit', var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-main);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.timeline-degree {
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-degree strong {
  color: var(--text-main);
}

.timeline-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-note strong {
  color: var(--text-main);
}


/* --------------------------------------------------------------------------
   SKILLS & EXTRAS
   -------------------------------------------------------------------------- */
.skills-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 18px;
}

.skill-cat-title {
  font-family: 'Outfit', var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(125, 125, 125, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

.chip-bold {
  color: var(--text-main);
  font-weight: 500;
}

.extra-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.extra-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 20px;
}

.extra-title {
  font-family: 'Outfit', var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.extra-list {
  margin: 0 0 0 16px;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.extra-list li {
  margin-bottom: 8px;
}

.extra-list strong {
  color: var(--text-main);
}


/* --------------------------------------------------------------------------
   CONTACT SECTION & FOOTER
   -------------------------------------------------------------------------- */
.contact-section {
  padding-bottom: 48px;
}

.contact-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 36px 32px;
  margin-bottom: 40px;
}

.contact-heading {
  font-family: 'Outfit', var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.contact-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  max-width: fit-content;
}

[data-theme="classic-light"] .channel-card {
  background: rgba(0, 0, 0, 0.03);
}

.channel-icon {
  font-size: 1.1rem;
}

.channel-info {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.channel-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-copy-email {
  padding: 4px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-email:hover {
  background: var(--accent-subtle);
}

.channel-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-btn {
  padding: 6px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.link-btn:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

.office-note {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-main);
}


/* --------------------------------------------------------------------------
   HIGH-CONTRAST LIGHT THEME TERMINAL STYLES (PAPER THEME)
   -------------------------------------------------------------------------- */
[data-theme="classic-light"] .terminal-window {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="classic-light"] .terminal-titlebar {
  background: #f1f5f9;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="classic-light"] .terminal-statusbar {
  background: #e2e8f0;
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

[data-theme="classic-light"] .quick-toolbar {
  background: #f8fafc;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="classic-light"] .toolbar-label {
  color: #64748b;
}

[data-theme="classic-light"] .cmd-pill {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="classic-light"] .cmd-pill:hover {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  border-color: var(--accent);
}

[data-theme="classic-light"] .term-tab {
  color: #64748b;
}

[data-theme="classic-light"] .term-tab.active {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="classic-light"] .term-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

[data-theme="classic-light"] .term-card-title {
  color: #0f172a;
}

[data-theme="classic-light"] .term-card-desc {
  color: #475569;
}

[data-theme="classic-light"] .neofetch-details {
  color: #1e293b;
}

[data-theme="classic-light"] .neofetch-header {
  color: #0f172a;
}

[data-theme="classic-light"] .neofetch-label {
  color: #64748b;
}

[data-theme="classic-light"] .neofetch-val {
  color: #0f172a;
}

[data-theme="classic-light"] .ascii-banner {
  color: #0284c7;
}

[data-theme="classic-light"] .ghost-hint {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="classic-light"] .term-cmd-inline {
  background: rgba(0, 113, 227, 0.08);
  color: #0284c7;
  border-color: rgba(0, 113, 227, 0.2);
}

[data-theme="classic-light"] .status-mode,
[data-theme="classic-light"] .status-branch,
[data-theme="classic-light"] .status-node,
[data-theme="classic-light"] .status-cmds,
[data-theme="classic-light"] .status-encoding,
[data-theme="classic-light"] .status-type,
[data-theme="classic-light"] .status-time,
[data-theme="classic-light"] .status-hint {
  color: #475569;
}


/* --------------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 860px) {
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .extra-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand-tag {
    display: none;
  }
  .theme-chip span:not(.swatch) {
    display: none;
  }
  .theme-chip {
    padding: 3px 5px;
  }
  .btn-cv {
    display: none;
  }
}
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary, .btn-terminal-switch {
    width: 100%;
    justify-content: center;
  }
}


