/* ================================================================
   HA DUY HOANG — BESPOKE INDUSTRIAL DARK TECH PORTFOLIO
   Design System: Obsidian & Precision Engineering
   Aesthetics:
     - Pure Dark Obsidian Background (#050608)
     - Gunmetal Architectural Surfaces (#0B0E14, #0F131D)
     - Stark High-Contrast Typography (#F1F5F9, #94A3B8)
     - Cyber Cyan Accent (#00F0FF) & Tactical Amber (#F59E0B)
     - Chamfered Edges (clip-path) & Architectural Crosshairs (+)
     - Spotlight Pointer Lighting & 1px Structural Grids
================================================================ */

:root {
  /* Color Palette */
  --bg-obsidian:     #050608;
  --bg-card:         #0B0E14;
  --bg-card-hover:   #0F1420;
  --bg-elevated:     #131926;
  
  --accent-cyan:     #00F0FF;
  --accent-cyan-dim: rgba(0, 240, 255, 0.15);
  --accent-amber:    #F59E0B;
  --accent-emerald:  #10B981;

  --text-primary:    #F1F5F9;
  --text-secondary:  #94A3B8;
  --text-muted:      #64748B;
  --text-dim:        #334155;

  --border-structural: rgba(255, 255, 255, 0.08);
  --border-active:     rgba(0, 240, 255, 0.45);
  --border-highlight:  rgba(255, 255, 255, 0.18);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  /* Layout & Sizing */
  --max-width:     1240px;
  --nav-height:    72px;
  --radius-chamfer: 6px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-norm: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-obsidian);
}

body.industrial-theme {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-cyan);
  color: #000;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
}

/* Technical Grid & Ambient Noise */
.technical-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Interactive Procedural Canvas (60fps Skeletal Creature) */
#creature-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
}

/* Content Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* ============================================================
   ARCHITECTURAL INDUSTRIAL CARD SYSTEM
============================================================ */
.industrial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-structural);
  position: relative;
  transition: border-color var(--transition-norm), background var(--transition-norm), transform var(--transition-norm);
}

/* Corner Crosshair Markers (+) */
.card-crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--text-dim);
  pointer-events: none;
  user-select: none;
  transition: color var(--transition-fast);
  z-index: 4;
}
.ch-tl { top: -6px; left: -5px; }
.ch-tr { top: -6px; right: -5px; }
.ch-bl { bottom: -6px; left: -5px; }
.ch-br { bottom: -6px; right: -5px; }

.industrial-card:hover .card-crosshair {
  color: var(--accent-cyan);
}

/* Spotlight Physics on Hover */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--spot-y, -1000px);
  left: var(--spot-x, -1000px);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* Chamfered Button Shapes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-chamfer {
  clip-path: polygon(
    10px 0, 100% 0, 
    100% calc(100% - 10px), calc(100% - 10px) 100%, 
    0 100%, 0 10px
  );
}

.btn-primary {
  background: var(--accent-cyan);
  color: #050608;
  border: 1px solid var(--accent-cyan);
  font-weight: 700;
}
.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-structural);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.75rem;
}

/* ============================================================
   01. ARCHITECTURAL STICKY NAVBAR
============================================================ */
.arch-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-structural);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.arch-nav.scrolled {
  background: rgba(5, 6, 8, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}
.brand-bracket { color: var(--accent-cyan); }
.brand-monogram { color: #fff; }
.brand-name {
  margin-left: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-num {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link.active .nav-num, .nav-link:hover .nav-num {
  color: var(--accent-cyan);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
}
.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--accent-emerald); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* 15px Rounded Rectangle Language Switcher */
.lang-switch-box {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-structural);
  border-radius: 15px; /* STRICT 15px rounded rectangle */
  padding: 3px 4px;
  gap: 2px;
}
.lang-tab {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lang-tab:hover {
  color: var(--text-primary);
}
.lang-tab.active {
  background: var(--accent-cyan);
  color: #050608;
  font-weight: 700;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-structural);
  padding: 8px;
  cursor: pointer;
}
.toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast);
}

.mobile-drawer {
  display: none;
}

/* ============================================================
   02. HERO SECTION — ASYMMETRIC SPLIT & RIG CONTROLLER
============================================================ */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.sys-spec-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.spec-divider { color: var(--text-muted); }
.spec-loc { color: var(--text-secondary); }

.hero-title {
  margin-bottom: 18px;
}
.hero-subline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.accent-dot { color: var(--accent-cyan); }

.hero-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #18202F; /* Deep charcoal navy (xanh than) */
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-cyan);
  border-radius: 4px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.role-icon { font-weight: 700; color: var(--accent-cyan); }
.role-text { color: #FFFFFF; font-weight: 600; }
.role-sub { color: #94A3B8; font-size: 0.78rem; }

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.hero-channels {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.channel-link:hover {
  color: var(--accent-cyan);
}

/* ================================================================
   3D TERRARIUM GLASS CHAMBER & VOLUMETRIC DEPTH SYSTEM
================================================================ */
.glass-chamber-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 480px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11, 14, 20, 0.85) 0%, rgba(5, 6, 8, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(0, 240, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform var(--transition-norm), border-color var(--transition-norm), box-shadow var(--transition-norm);
}

.glass-chamber-container:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 
    0 30px 70px -10px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(0, 240, 255, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
}

/* Glass Reflection Layer */
.chamber-reflection {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 60%);
  z-index: 5;
}

/* 3D Internal Background Canvas: Wireframe Globe & Falling Diagonal Tech Icons */
#chamber-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

/* Glass Bezel Inset Highlight */
.chamber-bezel {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 6;
}

/* Foreground Content Layer */
.chamber-foreground {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
}

/* Topbar inside Chamber */
.chamber-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

/* Compact Rig Switcher Box (15px rounded rectangle like language switcher) */
.rig-switch-box {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px; /* exactly 15px rounded rectangle */
  padding: 2px 3px;
  gap: 2px;
  backdrop-filter: blur(8px);
}

.rig-tab {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rig-tab:hover {
  color: #fff;
}

.rig-tab.active {
  background: var(--accent-cyan);
  color: #050608;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Portrait Stage & 5 Floating Language Badges */
.portrait-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 10px 0;
}

.portrait-container {
  position: relative;
  width: 190px;
  height: 235px;
  border-radius: 14px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  overflow: hidden;
  background: #020305;
  box-shadow: 
    0 14px 34px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(0, 240, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 4;
}

.glass-chamber-container:hover .portrait-container {
  transform: scale(1.02);
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(0, 240, 255, 0.25);
}

.developer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05) brightness(0.96);
}

.portrait-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 8px var(--accent-cyan);
  opacity: 0.6;
  animation: scan-vertical 4s linear infinite;
  pointer-events: none;
}

@keyframes scan-vertical {
  0% { top: 0; }
  100% { top: 100%; }
}

.portrait-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 12px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-emerald);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

/* Floating Language Badges (Positioned cleanly around portrait) */
.float-lang-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 14, 20, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 8px 24px -4px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(0, 240, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  z-index: 6;
  white-space: nowrap;
  animation: badge-bob 4s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.float-lang-badge:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px) scale(1.05);
}

/* 5 Distinct coordinates around photo frame */
.flb-java { top: 12px;   left: -8px;  animation-delay: 0s; }
.flb-c    { top: 12px;   right: -8px; animation-delay: -1.4s; }
.flb-html { top: 110px;  left: -22px; animation-delay: -2.1s; }
.flb-css  { bottom: 18px; left: -10px; animation-delay: -2.8s; }
.flb-sql  { bottom: 18px; right: -10px; animation-delay: -3.5s; }

@keyframes badge-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Technical Coordinate Ticker */
.hero-tech-ticker {
  margin-top: 40px;
  border-top: 1px solid var(--border-structural);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.ticker-label { color: var(--text-dim); }

/* ============================================================
   SECTIONS COMMON HEADER
============================================================ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}
.section-badge-wrapper {
  margin-bottom: 48px;
}
.section-step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-subtext {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-top: 12px;
}

/* ============================================================
   03. ABOUT ME & 2x2 BENTO TRAITS GRID
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.about-bio-col {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.narrative-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.narrative-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}
.narrative-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.interests-container {
  border-top: 1px solid var(--border-structural);
  padding-top: 20px;
  margin-top: 20px;
}
.interests-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.i-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-structural);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.bento-traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bento-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.bento-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.bento-icon {
  color: var(--accent-cyan);
  margin-bottom: 16px;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.bento-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   04. TECHNICAL SKILLS SPEC-SHEET MATRIX
============================================================ */
.spec-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.spec-category {
  padding: 28px;
}
.spec-wide {
  grid-column: 1 / -1;
}

.spec-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-structural);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.spec-cat-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}
.spec-cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-fast);
}
.spec-item:hover {
  border-color: var(--border-highlight);
}
.spec-item-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.spec-item-info {
  display: flex;
  flex-direction: column;
}
.spec-name {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.spec-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.spec-items-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.spec-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-structural);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.spec-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.spec-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.comp-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-structural);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
}
.badge-prefix { color: var(--accent-cyan); margin-right: 6px; font-weight: 700; }

/* ============================================================
   05. FEATURED PROJECTS CASE STUDIES
============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  display: flex;
  flex-direction: column;
}

.project-blueprint-thumb {
  height: 180px;
  background: #030406;
  border-bottom: 1px solid var(--border-structural);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.project-index {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

/* Wireframe Visuals */
.blueprint-wireframe {
  width: 78%;
  height: 70%;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.02);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.wf-header {
  height: 14px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}
.wf-header span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.4);
}
.wf-body {
  flex: 1;
  display: flex;
  padding: 6px;
  gap: 6px;
}
.wf-sidebar {
  width: 25%;
  background: rgba(0, 240, 255, 0.06);
  border: 1px dashed rgba(0, 240, 255, 0.2);
}
.wf-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wf-row {
  height: 8px;
  background: rgba(0, 240, 255, 0.08);
}

.wf-console {
  padding: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-ik-vis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}
.ik-joint {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.ik-bone {
  width: 28px;
  height: 2px;
  background: rgba(0, 240, 255, 0.5);
}

.project-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 2px 8px;
}
.project-cs-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 12px 0 16px;
}
.project-cs-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.3;
  text-transform: uppercase;
}
.project-cs-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 8px;
  margin-bottom: 12px;
}
.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* ============================================================
   06. EDUCATION & TIMELINE JOURNEY
============================================================ */
.timeline-container {
  padding: 40px;
}
.timeline-item {
  display: flex;
  gap: 32px;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.t-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-cyan);
  background: var(--bg-obsidian);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.t-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-cyan), transparent);
  margin-top: 10px;
}

.t-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.t-institute {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.t-major {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.t-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 820px;
  margin-bottom: 24px;
}

.t-modules {
  border-top: 1px solid var(--border-structural);
  padding-top: 18px;
}
.t-module-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.t-module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.m-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-structural);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
}

/* ============================================================
   07. CAREER GOALS
============================================================ */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.goal-card {
  padding: 32px 24px;
}
.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.goal-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}
.goal-header svg {
  color: var(--text-muted);
}
.goal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.goal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   08. CONTACT & TRANSMISSION BANNER
============================================================ */
.contact-section {
  position: relative;
  z-index: auto !important;
}

.contact-section .container {
  position: relative;
  z-index: auto !important;
}

.contact-card {
  position: relative;
  z-index: auto !important;
  transform: none !important;
  padding: 60px 48px;
  text-align: center;
}

.contact-card .contact-header,
.contact-card .contact-email-box,
.contact-card .contact-links-grid,
.contact-card .contact-tagline-footer {
  position: relative;
  z-index: 10 !important;
}

.contact-header {
  margin-bottom: 36px;
  text-shadow: 0 2px 14px rgba(5, 6, 8, 0.95);
}

.contact-tagline-footer {
  text-shadow: 0 2px 10px rgba(5, 6, 8, 0.95);
}
.contact-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 12px 0 16px;
}
.accent-text { color: var(--accent-cyan); }
.contact-cta-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.contact-email-box {
  display: inline-flex;
  align-items: center;
  background: #020305; border: 1px solid var(--border-structural); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 0 1px 1px var(--border-structural); padding: 6px 8px 6px 18px;
  gap: 16px;
  margin: 0 auto 40px;
}
.email-display {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.email-prefix { color: var(--text-muted); font-size: 0.75rem; }
.email-val { color: var(--text-primary); font-weight: 600; }

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 40px;
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0b0e14; border: 1px solid var(--border-structural); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); padding: 16px 20px;
  text-decoration: none;
  text-align: left;
  transition: all var(--transition-fast);
}
.contact-link-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}
.link-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.link-text {
  display: flex;
  flex-direction: column;
}
.link-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.link-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-tagline-footer {
  border-top: 1px solid var(--border-structural);
  padding-top: 24px;
}
.tagline-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.tagline-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
============================================================ */
.arch-footer {
  border-top: 1px solid var(--border-structural);
  padding: 30px 0;
  position: relative;
  z-index: 10;
  background: var(--bg-obsidian);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-dot { color: var(--text-dim); }
.footer-brand { color: var(--text-primary); font-weight: 600; }
.footer-engine { color: var(--accent-cyan); }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-msg {
  background: #0B0E14;
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-icon { color: var(--accent-cyan); }
@keyframes toast-in {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Scroll Reveal */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #creature-canvas { opacity: 0.25; }
  .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
/* Project Status & Coming Soon Badges */
.project-coming-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--accent-cyan); letter-spacing: 0.06em; margin-bottom: 8px; }
.badge-dot.pulse { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); animation: pulse-dot 1.8s infinite; }
.badge-dot.active-dot { background: var(--accent-emerald); box-shadow: 0 0 8px rgba(16, 185, 129, 0.7); }
.project-status-active { color: var(--accent-emerald) !important; }


/* ================================================================
   THEME SWITCHER BUTTON (Matches 15px rounded rectangle)
================================================================ */
.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 34px;
  height: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-structural);
  border-radius: 15px; /* STRICT 15px rounded rectangle */
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}
.theme-switch-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}
.theme-icon {
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
:root:not([data-theme="light"]) .theme-icon--moon {
  display: none;
}
:root:not([data-theme="light"]) .theme-icon--sun {
  display: block;
}
[data-theme="light"] .theme-icon--sun {
  display: none;
}
[data-theme="light"] .theme-icon--moon {
  display: block;
}

.mobile-theme-btn {
  width: auto;
  height: 38px;
  padding: 0 16px;
  border-radius: 15px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ================================================================
   LIGHT MODE THEME: WARM NOTEBOOK PAPER AESTHETIC
   - Warm eye-friendly paper base (#F4F0EA) - avoids glare
   - Warm ivory card layers (#FAF8F5 / #FFFFFF)
   - Deep drafting ink typography (#18202F / #475569)
   - Technical teal/indigo accent (#0284C7 / #00838F)
================================================================ */
[data-theme="light"] {
  --bg-obsidian:     #F4F0EA; /* Warm drafting notebook paper */
  --bg-card:         #FAF8F5; /* Warm ivory spec card */
  --bg-card-hover:   #FFFFFF; /* Pure clean card focus */
  --bg-elevated:     #FFFFFF; /* Modals / elevated layers */

  --accent-cyan:     #0284C7; /* Technical cobalt teal (contrast 4.8:1) */
  --accent-cyan-dim: rgba(2, 132, 199, 0.12);
  --accent-amber:    #D97706;
  --accent-emerald:  #059669;

  --text-primary:    #18202F; /* Deep fountain ink (contrast 12.8:1) */
  --text-secondary:  #475569; /* Pencil slate */
  --text-muted:      #64748B; /* Drafting pencil */
  --text-dim:        #94A3B8; /* Subtle grid / crosshairs */

  --border-structural: rgba(24, 32, 47, 0.12); /* 1px drafting lines */
  --border-active:     rgba(2, 132, 199, 0.55);
  --border-highlight:  rgba(24, 32, 47, 0.22);
}

html[data-theme="light"] {
  color-scheme: light;
  background-color: var(--bg-obsidian);
}

[data-theme="light"] body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
}

[data-theme="light"] .technical-grid-bg,
[data-theme="light"] .cyber-grid-bg {
  background-image: 
    linear-gradient(rgba(24, 32, 47, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 47, 0.085) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
  background-position: -1px -1px !important;
  opacity: 1 !important;
}

[data-theme="light"] .noise-overlay {
  opacity: 0.02;
  filter: invert(1);
}



[data-theme="light"] .theme-switch-btn,
[data-theme="light"] .lang-switch-box,
[data-theme="light"] .rig-switch-box {
  background: rgba(24, 32, 47, 0.04);
  border-color: rgba(24, 32, 47, 0.12);
}

[data-theme="light"] .theme-switch-btn:hover {
  background: rgba(24, 32, 47, 0.08);
}

[data-theme="light"] .lang-tab.active,
[data-theme="light"] .rig-tab.active {
  background: var(--accent-cyan);
  color: #FFFFFF;
}

[data-theme="light"] .status-indicator {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
}

[data-theme="light"] .btn-primary {
  background: #18202F;
  color: #FAF8F5;
}
[data-theme="light"] .btn-primary:hover {
  background: var(--accent-cyan);
  color: #FFFFFF;
}

[data-theme="light"] .btn-ghost {
  border-color: var(--border-structural);
  color: var(--text-primary);
}
[data-theme="light"] .btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.06);
}

[data-theme="light"] .channel-link {
  background: rgba(24, 32, 47, 0.03);
  border-color: var(--border-structural);
  color: var(--text-secondary);
}
[data-theme="light"] .channel-link:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

[data-theme="light"] .glass-chamber-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 240, 234, 0.5) 100%);
  border-color: rgba(24, 32, 47, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .chamber-reflection {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 60%);
}
[data-theme="light"] .float-lang-badge {
  background: #FFFFFF;
  color: #18202F;
  border-color: rgba(24, 32, 47, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .portrait-container {
  border-color: rgba(24, 32, 47, 0.15);
  background: #F0ECE4;
}

[data-theme="light"] .industrial-card {
  background: var(--bg-card);
  border-color: var(--border-structural);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .industrial-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .project-blueprint-thumb {
  background: #EFEBE3;
  border-bottom-color: var(--border-structural);
}
[data-theme="light"] .blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(2, 132, 199, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.09) 1px, transparent 1px);
}
[data-theme="light"] .wf-main,
[data-theme="light"] .wf-sidebar {
  background: rgba(24, 32, 47, 0.04);
}
[data-theme="light"] .wf-row {
  background: rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .contact-card {
  background: #FAF8F5;
  border-color: var(--border-structural);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .contact-cta-title {
  color: #18202F;
}
[data-theme="light"] .contact-header,
[data-theme="light"] .contact-tagline-footer {
  text-shadow: none;
}
[data-theme="light"] .contact-email-box {
  background: #FFFFFF;
  border-color: var(--border-structural);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .email-val {
  color: #18202F;
}
[data-theme="light"] .contact-link-item {
  background: #FFFFFF;
  border-color: var(--border-structural);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .contact-link-item:hover {
  background: #F4F0EA;
  border-color: var(--accent-cyan);
}
[data-theme="light"] .link-val {
  color: #18202F;
}

[data-theme="light"] .mobile-drawer {
  background: rgba(244, 240, 234, 0.98);
  border-bottom-color: var(--border-structural);
}
[data-theme="light"] .mobile-link {
  border-bottom-color: rgba(24, 32, 47, 0.08);
  color: #18202F;
}
[data-theme="light"] .toast-msg {
  background: #FFFFFF !important;
  border-color: #0284C7 !important;
  color: #18202F !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* ================================================================
   LIGHT MODE: HIGH-CONTRAST DRAFTING INK MASTER TYPOGRAPHY
   Crisp, rich, bold dark typography on light ivory notebook surfaces
================================================================ */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .hero-name,
[data-theme="light"] .section-title,
[data-theme="light"] .narrative-heading,
[data-theme="light"] .bento-title,
[data-theme="light"] .spec-cat-title,
[data-theme="light"] .spec-name,
[data-theme="light"] .project-cs-title,
[data-theme="light"] .t-institute,
[data-theme="light"] .goal-title,
[data-theme="light"] .contact-cta-title,
[data-theme="light"] .email-val,
[data-theme="light"] .link-val,
[data-theme="light"] .tagline-quote {
  color: #18202F !important;
}

/* Secondary Ink (Pencil Slate) for Paragraphs & Descriptions */
[data-theme="light"] .hero-bio,
[data-theme="light"] .section-subtext,
[data-theme="light"] .narrative-body p,
[data-theme="light"] .bento-desc,
[data-theme="light"] .spec-desc,
[data-theme="light"] .t-major,
[data-theme="light"] .t-desc,
[data-theme="light"] .project-cs-desc,
[data-theme="light"] .goal-desc,
[data-theme="light"] .contact-cta-sub {
  color: #475569 !important;
}
[data-theme="light"] .project-status-active {
  color: #047857 !important;
}
/* Muted Meta & Labels */
[data-theme="light"] .hero-subline,
[data-theme="light"] .spec-loc,
[data-theme="light"] .interests-title,
[data-theme="light"] .t-module-label,
[data-theme="light"] .email-prefix,
[data-theme="light"] .link-label,
[data-theme="light"] .tagline-sub,
[data-theme="light"] .hero-tech-ticker,
[data-theme="light"] .footer-role,
[data-theme="light"] .footer-copy {
  color: #64748B !important;
}

/* Technical Cyan/Teal Accents in Light Mode */
[data-theme="light"] .section-step,
[data-theme="light"] .narrative-sub,
[data-theme="light"] .bento-num,
[data-theme="light"] .bento-icon,
[data-theme="light"] .spec-cat-id,
[data-theme="light"] .project-index,
[data-theme="light"] .project-coming-badge,
[data-theme="light"] .t-period,
[data-theme="light"] .goal-index,
[data-theme="light"] .footer-engine,
[data-theme="light"] .ticker-label,
[data-theme="light"] .accent-dot,
[data-theme="light"] .accent-text {
  color: #0284C7 !important;
}

/* Section 02 Bento Traits Cards & Section 03 Spec Sheet Enhancements */
[data-theme="light"] .bento-card {
  background: #FAF8F5 !important;
  border: 1px solid rgba(24, 32, 47, 0.14) !important;
  box-shadow: 0 2px 10px rgba(24, 32, 47, 0.04) !important;
}
[data-theme="light"] .bento-card:hover {
  background: #FFFFFF !important;
  border-color: #0284C7 !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .spec-item {
  background: #FFFFFF !important;
  border: 1px solid rgba(24, 32, 47, 0.12) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .spec-item:hover {
  border-color: #0284C7 !important;
  background: #FAF8F5 !important;
}

[data-theme="light"] .spec-chip,
[data-theme="light"] .comp-badge,
[data-theme="light"] .i-tag,
[data-theme="light"] .m-tag {
  background: #FFFFFF !important;
  border: 1px solid rgba(24, 32, 47, 0.14) !important;
  color: #18202F !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}
[data-theme="light"] .spec-chip:hover {
  border-color: #0284C7 !important;
  color: #0284C7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
}
[data-theme="light"] .badge-prefix {
  color: #0284C7 !important;
  font-weight: 700;
}

[data-theme="light"] .card-crosshair {
  color: rgba(24, 32, 47, 0.22) !important;
}

/* Timeline & Goals Cards in Light Mode */
[data-theme="light"] .t-dot {
  background: #FFFFFF !important;
  border-color: #0284C7 !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.35) !important;
}
[data-theme="light"] .t-line {
  background: linear-gradient(180deg, #0284C7, transparent) !important;
}
[data-theme="light"] .goal-header svg {
  color: #64748B !important;
}

/* Footer in Light Mode */
[data-theme="light"] .arch-footer {
  background: #EDE8E0 !important;
  border-top-color: rgba(24, 32, 47, 0.12) !important;
}
[data-theme="light"] .footer-brand {
  color: #18202F !important;
}

[data-theme="light"] .channel-link {
  color: #475569 !important;
}
[data-theme="light"] .channel-link:hover {
  color: #0284C7 !important;
}

/* Light Mode Hero Role Badge - Deep Charcoal Navy (Xanh Than) */
[data-theme="light"] .hero-role-badge {
  background: #18202F !important; /* Xanh than exactly as requested */
  border: 1px solid rgba(2, 132, 199, 0.45) !important;
  box-shadow: 0 4px 16px rgba(24, 32, 47, 0.16) !important;
}
[data-theme="light"] .role-icon {
  color: #38BDF8 !important; /* Bright cyan */
}
[data-theme="light"] .role-text {
  color: #FFFFFF !important; /* Stark crisp white text */
}
[data-theme="light"] .role-sub {
  color: #94A3B8 !important; /* Soft slate */
}

/* ================================================================
   LIGHT MODE: NAVBAR XANH THAN (DARK CHARCOAL NAVY) & WHITE TEXT
   Matches the exact background of the Explore Projects button
================================================================ */
[data-theme="light"] #nav-header,
[data-theme="light"] .arch-nav {
  background: rgba(24, 32, 47, 0.96) !important; /* Xanh than giống màu ở khám phá dự án */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] #nav-header.scrolled,
[data-theme="light"] .arch-nav.scrolled {
  background: rgba(24, 32, 47, 0.99) !important;
  border-bottom-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.32);
}

/* White Typography on Navbar in Light Mode */
[data-theme="light"] .arch-nav .nav-link,
[data-theme="light"] #nav-header .nav-link {
  color: #FFFFFF !important; /* TRẮNG SÁNG RÕ NÉT */
  font-weight: 600 !important;
}

[data-theme="light"] .arch-nav .nav-link:hover,
[data-theme="light"] .arch-nav .nav-link.active,
[data-theme="light"] #nav-header .nav-link:hover,
[data-theme="light"] #nav-header .nav-link.active {
  color: #00F0FF !important; /* CYAN NỔI BẬT KHI ACTIVE */
}

[data-theme="light"] .arch-nav .nav-num,
[data-theme="light"] #nav-header .nav-num {
  color: #38BDF8 !important; /* Cyan cho số thứ tự 01. 02. */
  font-weight: 700 !important;
}

[data-theme="light"] .arch-nav .nav-brand,
[data-theme="light"] #nav-header .nav-brand {
  color: #FFFFFF !important;
}

[data-theme="light"] .arch-nav .brand-monogram,
[data-theme="light"] #nav-header .brand-monogram {
  color: #FFFFFF !important; /* TRẮNG SÁNG */
  font-weight: 700;
}

[data-theme="light"] .arch-nav .brand-name,
[data-theme="light"] #nav-header .brand-name {
  color: #E2E8F0 !important; /* Trắng sáng */
}

[data-theme="light"] .arch-nav .brand-bracket,
[data-theme="light"] #nav-header .brand-bracket {
  color: #00F0FF !important; /* Cyan dạ quang */
}

/* Controls on the Navbar */
[data-theme="light"] .arch-nav .theme-switch-btn,
[data-theme="light"] .arch-nav .lang-switch-box,
[data-theme="light"] #nav-header .theme-switch-btn,
[data-theme="light"] #nav-header .lang-switch-box {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .arch-nav .theme-switch-btn:hover,
[data-theme="light"] #nav-header .theme-switch-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #00F0FF !important;
  border-color: #00F0FF !important;
}

[data-theme="light"] .arch-nav .lang-tab,
[data-theme="light"] #nav-header .lang-tab {
  color: #E2E8F0 !important;
}

[data-theme="light"] .arch-nav .lang-tab.active,
[data-theme="light"] #nav-header .lang-tab.active {
  background: #00F0FF !important;
  color: #050608 !important;
  font-weight: 700;
}

[data-theme="light"] .arch-nav .status-indicator,
[data-theme="light"] #nav-header .status-indicator {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #34D399 !important;
}
[data-theme="light"] .arch-nav .status-text,
[data-theme="light"] #nav-header .status-text {
  color: #34D399 !important;
}

[data-theme="light"] .arch-nav .nav-toggle,
[data-theme="light"] #nav-header .nav-toggle {
  border-color: rgba(255, 255, 255, 0.25) !important;
}
[data-theme="light"] .arch-nav .nav-toggle .toggle-bar,
[data-theme="light"] #nav-header .nav-toggle .toggle-bar {
  background: #FFFFFF !important;
}


/* ================================================================
   ANTI-COPY & SOURCE INTEGRITY PROTECTION
================================================================ */
body {
  -webkit-user-select: none;
  user-select: none;
}

img, canvas, svg {
  -webkit-user-drag: none;
  user-drag: none;
}


/* ================================================================
   10. HDH AI VIRTUAL ASSISTANT (CHATBOT WIDGET)
================================================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: var(--font-sans);
}

/* Floating Trigger Button */
.chat-toggle-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 240, 255, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.chat-toggle-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 240, 255, 0.45);
}

.chat-toggle-btn:active {
  transform: scale(0.96);
}

.chat-btn-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  opacity: 0.6;
  animation: chat-pulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes chat-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.chat-icon--close {
  display: none;
}

.chat-toggle-btn.open .chat-icon--open {
  display: none;
}

.chat-toggle-btn.open .chat-icon--close {
  display: block;
}

.chat-badge-indicator {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-card);
}

/* Chat Dialog Window */
.chat-window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.12);
  transform: translateY(16px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform var(--transition-norm), opacity var(--transition-norm), visibility var(--transition-norm);
  z-index: 99999;
}

.chat-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-structural);
  background: rgba(5, 6, 8, 0.65);
}

.chat-header-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  border-radius: 4px;
}

.chat-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.chat-title-group {
  display: flex;
  flex-direction: column;
}

.chat-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.chat-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.chat-action-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Quick Prompt Chips */
.chat-chips-container {
  padding: 8px 12px;
  background: rgba(5, 6, 8, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-chips-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.chat-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chat-chips-scroll::-webkit-scrollbar {
  display: none;
}

.chat-chip {
  flex-shrink: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-structural);
  color: var(--text-secondary);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chat-chip:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Messages Stream */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.chat-msg {
  max-width: 86%;
  padding: 10px 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  border-radius: 4px;
  word-break: break-word;
  animation: chat-msg-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-structural);
  color: var(--text-primary);
  border-top-left-radius: 1px;
}

.chat-msg--bot a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.chat-msg .math-formula {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  background: rgba(0, 240, 255, 0.08);
  border-left: 2px solid var(--accent-cyan, #00f0ff);
  padding: 6px 12px;
  margin: 6px 0;
  border-radius: 4px;
  font-size: 0.88rem;
  overflow-x: auto;
  color: var(--text-primary);
  line-height: 1.4;
}

.chat-msg code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--accent-cyan);
}

[data-theme="light"] .chat-msg .math-formula {
  background: rgba(2, 132, 199, 0.08);
  border-left-color: #0284c7;
}

[data-theme="light"] .chat-msg code {
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
}

.chat-msg--user {
  align-self: flex-end;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #FFFFFF;
  border-top-right-radius: 1px;
}

/* Typing Indicator */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}

.chat-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: typing-blink 1.2s infinite ease-in-out;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-blink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* Input Form */
.chat-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-structural);
  background: rgba(5, 6, 8, 0.7);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-structural);
  color: var(--text-primary);
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--accent-cyan);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan);
  color: #050608;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.chat-send-btn:hover {
  background: #38BDF8;
  transform: translateY(-1px);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ================================================================
   CHATBOT LIGHT MODE THEME OVERRIDES
================================================================ */
[data-theme="light"] .chat-toggle-btn {
  background: #18202F;
  border-color: #0284C7;
  color: #00F0FF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .chat-window {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 0 25px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .chat-header {
  background: #18202F;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .chat-title {
  color: #FFFFFF !important;
}

[data-theme="light"] .chat-subtitle {
  color: #38BDF8 !important;
}

[data-theme="light"] .chat-action-btn {
  color: #94A3B8;
}

[data-theme="light"] .chat-action-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .chat-chips-container {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
}

[data-theme="light"] .chat-chip {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}

[data-theme="light"] .chat-chip:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284C7;
  color: #0284C7;
}

[data-theme="light"] .chat-msg--bot {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #1E293B;
}

[data-theme="light"] .chat-msg--bot a {
  color: #0284C7;
}

[data-theme="light"] .chat-msg--user {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.45);
  color: #0F172A;
}

[data-theme="light"] .chat-input-form {
  background: #F8FAFC;
  border-top-color: #E2E8F0;
}

[data-theme="light"] .chat-input {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .chat-send-btn {
  background: #0284C7;
  color: #FFFFFF;
}

[data-theme="light"] .chat-send-btn:hover {
  background: #0369A1;
}
