@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --ink: #070408;       /* Neo-Tokyo Deep Indigo/Black */
  --ink2: #120914;      /* Cyber Dark Violet */
  --ink3: #1d0f21;      /* Latte Violet */
  --ink4: #28142e;      /* Creamy Dark Violet */
  --amber: #ff2a85;     /* Glowing warm Sakura pink caffeine light */
  --v: #ff2a85;         /* Sakura Violet / Pink */
  --cyan: #00f0ff;      /* Holographic screen cyber cyan */
  --lime: #39ff14;      /* High energy neon green */
  --text: #faf7f5;      /* Warm white paper */
  --text2: #d8c3d8;     /* Soft purple crema */
  --text3: #8a658a;     /* Tokyo lavender bean */
  --border: rgba(255, 42, 133, 0.15);
  --border2: rgba(255, 42, 133, 0.32);
  --glow: rgba(255, 42, 133, 0.08);
}

body.light-mode {
  --ink: #f7f6f2;       /* Manga Sketchbook paper */
  --ink2: #ecebe7;      /* Clean gray canvas */
  --ink3: #dfded9;      /* Screen tone shadow */
  --ink4: #121212;      /* Pure solid ink black */
  --amber: #e11d48;     /* Sakura red contrast */
  --v: #4f46e5;         /* Sketchbook blue */
  --cyan: #0891b2;      /* Technical cyan */
  --lime: #16a34a;      /* Sketch green */
  --text: #121212;      /* Ink black text */
  --text2: #3a3a3c;     /* Dark gray sketch pencil */
  --text3: #707073;     /* Light gray sketch pencil */
  --border: #121212;
  --border2: #121212;
  --glow: rgba(18, 18, 18, 0.05);
}

body {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--ink);
  background-image: 
    radial-gradient(circle at 62% 50%, rgba(251, 191, 36, 0.04) 0%, transparent 60%),
    linear-gradient(rgba(251, 191, 36, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  cursor: none;
  line-height: 1.6;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Custom Cursor Follower */
#cur {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.2s;
  mix-blend-mode: screen;
}

#cur-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: left 0.06s ease, top 0.06s ease, width 0.2s, height 0.2s, border-color 0.2s;
}

body:has(.hoverable:hover) #cur {
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1.5px solid var(--cyan);
  mix-blend-mode: normal;
}

body:has(.hoverable:hover) #cur-ring {
  width: 50px;
  height: 50px;
  opacity: 0;
}

/* Hide custom cursor and restore standard cursor on mobile/touch screens */
@media (hover: none) or (pointer: coarse) {
  #cur, #cur-ring {
    display: none !important;
  }
  html, body {
    cursor: auto !important;
  }
}

/* Screen Transitions */
.screen-sec {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.7, 0, 0.3, 1), visibility 1s;
  overflow: hidden;
}

.screen-sec.hidden {
  opacity: 0;
  transform: scale(1.15) translateY(-50px);
  visibility: hidden;
  pointer-events: none;
}

/* --- STAGE 1: OPENING EXPERIENCE --- */
#opening-sec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
}

#brain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
}

#brain-canvas:active {
  cursor: grabbing;
}

.opening-banner {
  position: absolute;
  left: 8%;
  z-index: 5;
  text-align: left;
  max-width: 500px;
  padding: 2rem;
  pointer-events: none;
  user-select: none;
  animation: fadeUp 1s ease forwards;
}

@media (max-width: 768px) {
  .opening-banner {
    position: relative;
    left: 0;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }
}

.ob-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.ob-title {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 2rem;
}

.ob-title span {
  display: block;
  background: linear-gradient(135deg, var(--text), var(--text2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ob-subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text2);
  margin-bottom: 3.5rem;
  font-weight: 300;
  max-width: 500px;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .ob-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.btn-enter {
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--amber), var(--text2));
  border: none;
  border-radius: 100px;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto; /* enable click */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-enter:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.45);
}

/* --- STAGE 2: MIND SPACE --- */
#universe-sec {
  background: transparent;
  overflow-y: auto; /* Allow scrolling the entire mind space */
  scrollbar-width: thin;
}

#universe-sec::-webkit-scrollbar {
  width: 4px;
}
#universe-sec::-webkit-scrollbar-track {
  background: transparent;
}
#universe-sec::-webkit-scrollbar-thumb {
  background: var(--ink4);
  border-radius: 2px;
}

/* Sticky Header in Universe */
.uni-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 100;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 6, 4, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.uni-nav {
  display: flex;
  gap: 32px;
}

.uni-nav a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.uni-nav a:hover {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
}

@media (max-width: 768px) {
  .uni-nav {
    display: none; /* Hide nav links on mobile to prevent clutter */
  }
  .uni-header {
    padding: 0 1rem !important;
  }
  .uni-actions {
    gap: 12px !important;
  }
  .caffeine-status {
    display: none !important; /* Hide caffeine status to save space on mobile */
  }
  .btn-focus {
    padding: 8px 16px !important;
    font-size: 10px !important;
  }
  
  /* Mind Space interactive node adjustments for mobile */
  .mind-node.project {
    width: 160px !important;
    padding: 8px 12px !important;
  }
  .mind-node.project .np-desc {
    display: none !important; /* Hide descriptions to prevent card overlap and clutter */
  }
  .mind-node.project .np-click-tip {
    font-size: 7px !important;
    margin-top: 4px !important;
  }
  .mind-node.project .np-title {
    font-size: 13px !important;
    margin-top: 2px !important;
  }
  .mind-node.skill {
    width: 130px !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
  }
  .mind-node.thought,
  .mind-node.decor {
    display: none !important; /* Hide thoughts and decor chess/sports/anime badges on mobile */
  }
}

/* Theme Toggle Button styling */
.theme-toggle {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  outline: none;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.15) rotate(15deg);
}

.theme-toggle.active {
  transform: scale(0.9) rotate(360deg);
}

.uni-logo {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
}

.uni-logo span {
  color: var(--amber);
}

.uni-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Focus Mode Button */
.btn-focus {
  padding: 10px 24px;
  background: rgba(251, 191, 36, 0.08);
  border: 1.5px solid var(--border2);
  border-radius: 100px;
  color: var(--amber);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0);
  outline: none;
}

.btn-focus:hover {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  transform: translateY(-1px);
}

.btn-focus.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
}

/* Caffeine Overdrive indicator */
.caffeine-status {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.caffeine-status.active {
  color: var(--amber);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
  animation: pulse 2s infinite;
}

.caffeine-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* The Main Universe Coordinate Area */
.universe-content {
  position: relative;
  width: 100%;
  padding-top: 70px;
}

/* Isolated Top Fold for Floating Interactive Nodes */
.interactive-fold {
  position: relative;
  width: 100%;
  height: 82vh;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Interactive Floating Node Container */
.interactive-space {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Unified Node Style */
.mind-node {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(31, 21, 16, 0.5);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  transition: opacity 0.8s, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Hover effects for nodes */
.mind-node:hover {
  border-color: var(--active-color, var(--amber));
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px var(--active-color, var(--amber));
  transform: translateY(-4px) scale(1.03);
  z-index: 10;
}

/* Project Node Type */
.mind-node.project {
  width: 250px;
  cursor: pointer;
  --active-color: var(--cyan);
}

.np-num {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 1px;
}

.np-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 4px;
}

.np-desc {
  font-size: 11px;
  color: var(--text2);
  margin-top: 6px;
  line-height: 1.5;
  font-weight: 300;
}

.np-click-tip {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: var(--text3);
  text-align: right;
  margin-top: 8px;
  text-transform: uppercase;
}

/* Skill Node Type */
.mind-node.skill {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: default;
  --active-color: var(--v);
}

.ns-icon {
  font-size: 14px;
}

.ns-name {
  color: var(--v);
}

/* Thought Node Type */
.mind-node.thought {
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--text3);
  opacity: 0.5;
  pointer-events: none;
}

/* Connecting SVG lines under nodes */
#network-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

#network-svg.visible {
  opacity: 0.6;
}

.net-line {
  stroke-dasharray: 4,4;
  animation: dash 15s linear infinite;
}

/* --- CONTACT TERMINAL SECTION --- */
.terminal-space {
  padding: 80px 2rem 50px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
  position: relative;
}

/* --- STATIC SHOWCASE SECTIONS --- */
.static-section {
  padding: 80px 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.sec-header {
  margin-bottom: 40px;
  border-left: 2px solid var(--amber);
  padding-left: 1.2rem;
}

.sec-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sec-title {
  font-size: 30px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.static-card {
  background: rgba(19, 13, 10, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.static-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 15px rgba(34, 211, 238, 0.12);
  transform: translateY(-4px);
}

.sc-meta {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sc-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--cyan);
}

.sc-desc {
  font-size: 13px;
  color: var(--text2);
  margin-top: 10px;
  line-height: 1.5;
  font-weight: 300;
  flex-grow: 1;
}

.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.sc-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 20px;
}

.sc-arrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  margin-top: 20px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.static-card:hover .sc-arrow {
  color: var(--cyan);
}

/* --- Simplified Skills Grid Showcase --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skills-card {
  background: rgba(19, 13, 10, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills-card:hover {
  border-color: var(--v);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(167, 139, 250, 0.15);
  transform: translateY(-4px);
}

.sc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-card-icon {
  font-size: 20px;
}

.sc-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.sc-card-percent {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--v);
  font-weight: 700;
}

.sc-card-meter {
  width: 100%;
  height: 4px;
  background: rgba(167, 139, 250, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.sc-card-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--v), var(--cyan));
  border-radius: 2px;
}

.sc-card-desc {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.5;
  font-weight: 300;
}

.sc-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.sc-card-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 9.5px;
  background: rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.15);
  color: var(--v);
  padding: 3px 8px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.sc-card-tags span:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: var(--v);
}

/* --- Static Education Showcase --- */
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.education-card {
  background: rgba(19, 13, 10, 0.45);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.education-card:hover {
  border-color: var(--amber);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 191, 36, 0.12);
  transform: translateY(-2px);
}

.ed-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ed-icon {
  font-size: 32px;
}

.ed-title-block {
  flex: 1;
  min-width: 200px;
}

.ed-title-block h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.ed-institute {
  font-size: 13.5px;
  color: var(--amber);
  font-weight: 500;
}

.ed-period {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text3);
}

.ed-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
}

.ed-courses {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(251, 191, 36, 0.05);
  padding-top: 16px;
}

.ed-courses h5 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ed-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ed-course-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  background: rgba(251, 191, 36, 0.04);
  border: 1px solid rgba(251, 191, 36, 0.15);
  color: var(--amber);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.ed-course-tags span:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: var(--amber);
}

/* --- Theme Switcher Button --- */
.theme-toggle {
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--amber);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--border);
  box-shadow: 0 0 10px var(--border2);
  transform: scale(1.08) rotate(15deg);
}

.theme-toggle.active {
  transform: rotate(360deg);
}

/* --- PROFESSIONAL FOOTER SECTION --- */
.footer-sec {
  border-top: 1px solid var(--border);
  background: rgba(10, 6, 4, 0.5);
  backdrop-filter: blur(10px);
  padding: 70px 2rem 40px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.fg-brand h3 {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}

.fg-brand h3 span {
  color: var(--amber);
}

.fg-brand p {
  font-size: 12.5px;
  color: var(--text3);
  margin-top: 8px;
}

.fg-links h4 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.fg-links a {
  display: block;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.fg-links a:hover {
  color: var(--amber);
}

.footer-bottom {
  max-width: 1000px;
  margin: 50px auto 0;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  border-top: 1px solid rgba(251, 191, 36, 0.04);
  padding-top: 20px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.term-container {
  background: rgba(19, 13, 10, 0.85);
  backdrop-filter: blur(25px);
  border: 1.5px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  font-family: 'Space Mono', monospace;
}

.term-header {
  background: rgba(29, 21, 16, 0.9);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-body {
  padding: 1.5rem;
  height: 320px;
  overflow-y: auto;
  color: var(--text2);
  font-size: 13px;
  scrollbar-width: thin;
}

.term-body::-webkit-scrollbar {
  width: 4px;
}
.term-body::-webkit-scrollbar-thumb {
  background: var(--ink4);
}

.term-output {
  margin-bottom: 12px;
  line-height: 1.6;
}

.term-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-prompt {
  color: var(--amber);
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  outline: none;
}

.term-actions-bar {
  padding: 8px 1.5rem;
  background: rgba(10, 6, 4, 0.5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.term-act-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  outline: none;
}

.term-act-btn:hover {
  color: var(--amber);
}

/* --- CASE STUDY MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 4, 0.85);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: var(--ink2);
  border: 1.5px solid var(--border2);
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  scrollbar-width: thin;
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-container::-webkit-scrollbar {
  width: 4px;
}
.modal-container::-webkit-scrollbar-thumb {
  background: var(--ink4);
}

.modal-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mh-info h4 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mh-info h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-top: 4px;
}

.modal-close {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  outline: none;
}

.modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.modal-body {
  padding: 2rem;
}

.mb-section {
  margin-bottom: 2rem;
}

.mb-section:last-child {
  margin-bottom: 0;
}

.mb-section h3 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mb-section p {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
}

.mb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mb-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: 20px;
}

.mb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mb-metric-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.mb-metric-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}

.mb-metric-lbl {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
  font-family: 'Space Mono', monospace;
}

.mb-links {
  display: flex;
  gap: 16px;
  margin-top: 1rem;
}

.mb-link-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mb-link-btn.primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.mb-link-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.45);
}

.mb-link-btn.secondary {
  border: 1px solid var(--border2);
  color: var(--text);
  background: transparent;
}

.mb-link-btn.secondary:hover {
  border-color: var(--cyan);
}

/* --- DYNAMIC AI TWIN assistant overlay --- */
#ai-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ai-chat-box {
  width: 360px;
  background: rgba(19, 13, 10, 0.85);
  backdrop-filter: blur(25px);
  border: 1.5px solid var(--border2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
}

.ai-chat-box.open {
  display: flex;
}

.acb-header {
  padding: 14px 16px;
  background: rgba(29, 21, 16, 0.9);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.acb-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--text2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.acb-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  letter-spacing: 0.5px;
}

.acb-status {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  color: var(--lime);
  background: rgba(163, 230, 53, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(163, 230, 53, 0.15);
}

.acb-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
  outline: none;
}

.acb-close:hover {
  color: var(--text);
}

/* Chatbot Mode Selectors Removed */

.acb-msgs {
  height: 250px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}

.acb-msg {
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  animation: bubblePop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.acb-msg.bot {
  background: var(--ink3);
  color: var(--text);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
  border: 1px solid rgba(251, 191, 36, 0.05);
}

.acb-msg.user {
  background: rgba(251, 191, 36, 0.15);
  color: var(--text);
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.acb-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: var(--ink3);
  border-radius: 16px 16px 16px 4px;
  width: fit-content;
  border: 1px solid rgba(251, 191, 36, 0.05);
}

.acb-typing span {
  width: 6px;
  height: 6px;
  background: var(--text2);
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}

.acb-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.acb-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.acb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: rgba(10, 6, 4, 0.2);
}

.acb-q-btn {
  font-size: 10.5px;
  padding: 5px 12px;
  background: var(--ink4);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
}

.acb-q-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(251, 191, 36, 0.05);
}

.acb-input-row {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: rgba(29, 21, 16, 0.6);
}

.acb-input {
  flex: 1;
  background: var(--ink3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.acb-input:focus {
  border-color: var(--amber);
}

.acb-send {
  width: 32px;
  height: 32px;
  background: var(--amber);
  border: none;
  border-radius: 50%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.acb-send:hover {
  transform: scale(1.1);
}

.ai-fab {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--amber), var(--text2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
  font-size: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.ai-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.6);
}

.ai-fab-pulse {
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 50%;
  animation: fabPulse 2.5s infinite;
}

/* Achievements Alert Box */
#achievement-toast {
  position: fixed;
  top: -100px; /* Safe hidden position offscreen */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: rgba(19, 13, 10, 0.85); /* Deep dark espresso glass */
  backdrop-filter: blur(15px);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--amber); /* Cyber amber glowing left edge */
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 15px rgba(251, 191, 36, 0.12);
  transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#achievement-toast.visible {
  top: 24px; /* Slides down safely */
}

/* Sticky Footer Removed - Replaced by multi-column .footer-sec */

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes bubblePop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

/* Floating Decor Nodes */
.mind-node.decor {
  font-size: 20px;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 21, 16, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text2);
  opacity: 0.5;
  transition: opacity 0.5s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.mind-node.decor:hover {
  opacity: 1;
  transform: scale(1.2) translateY(-2px);
  border-color: var(--amber);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

body:has(.btn-focus.active) .mind-node.decor {
  opacity: 0.15; /* Faint backdrop field in focus mode */
  pointer-events: none; /* Do not block interaction in focus mode */
}

.nd-sym {
  display: inline-block;
  line-height: 1;
}

/* Distinct Project Card Sub-Layouts */
.sc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sc-badge {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.cv-badge {
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.3);
  color: var(--lime);
}

.genai-badge {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: var(--v);
}

.agent-badge {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
}

.secure-badge {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.productivity-badge {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--amber);
}

.sc-inline-metric {
  margin: 18px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sc-im-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(163, 230, 53, 0.25);
  font-family: 'Space Mono', monospace;
}

.sc-im-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text3);
  text-transform: uppercase;
}

.sc-flow-path {
  margin: 18px 0;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--cyan);
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(34, 211, 238, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.12);
  padding: 8px 12px;
  border-radius: 8px;
  width: fit-content;
}

.sc-flow-path span {
  font-weight: bold;
}

.sc-feature-list-mini {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text2);
}

.sc-feature-list-mini div {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Chatbot Complete Redesign Visual Additions */
.acb-wave-container {
  height: 36px;
  background: rgba(10, 6, 4, 0.45);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#chatbot-wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.acb-sound-btn {
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-right: 8px;
  outline: none;
  transition: color 0.2s, transform 0.15s;
}

.acb-sound-btn:hover {
  color: var(--amber);
  transform: scale(1.1);
}

/* Custom clean Chatbot border and glow */
.ai-chat-box {
  border-color: var(--border2) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 25px rgba(251, 191, 36, 0.15) !important;
  transition: all 0.4s ease;
}

/* Accordion details modal list styles */
.modal-feature-list li {
  font-family: inherit;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 6px;
}

/* --- Futuristic Neural Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #060403; /* Deep roasted espresso black */
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
  background-image: 
    radial-gradient(circle at center, rgba(251, 191, 36, 0.05) 0%, #060403 80%),
    linear-gradient(rgba(251, 191, 36, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.005) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
}

#preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  opacity: 0.45;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 450px;
  padding: 3rem;
  border-radius: 24px;
  background: rgba(19, 13, 10, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preloader-kanji {
  font-family: 'Hiragino Mincho ProN', 'MS Mincho', 'Playfair Display', serif;
  font-size: 96px;
  font-weight: 700;
  color: var(--amber);
  animation: kanjiPulse 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 15px var(--amber));
  margin-bottom: 0.5rem;
}

.preloader-hud-sub {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text3);
  text-transform: uppercase;
}

@keyframes kanjiPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
    filter: drop-shadow(0 0 8px var(--amber));
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 25px var(--amber));
  }
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.05);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  border-radius: 10px;
  box-shadow: 0 0 10px var(--amber);
  transition: width 0.1s linear;
}

.preloader-stats {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text2);
}

.stat-percent {
  color: var(--text);
  font-weight: 700;
  min-width: 45px;
  text-align: right;
}

.stat-divider {
  color: var(--text3);
}

.stat-status {
  text-align: left;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amber);
}

/* Preloader Animations */
@keyframes spin-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-counter-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes pulse-core {
  0% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.2));
  }
  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
  }
}

@keyframes glitch-anim {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

/* CV Download Button in Footer */
.btn-cv-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(251, 191, 36, 0.04);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--amber) !important;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-cv-download:hover {
  background: var(--amber);
  color: var(--ink) !important;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

/* Navigation Subtitle Katakana text */
.nav-sub {
  display: block;
  font-size: 8px;
  opacity: 0.6;
  letter-spacing: 1px;
  margin-top: 2px;
  font-weight: normal;
  text-transform: none;
}

/* --- JAPANESE & MANGA CHARACTER VISUAL ACCENTS --- */
/* Hanko traditional stamp accent */
.hanko-stamp {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: 'Hiragino Mincho ProN', 'MS Mincho', 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transform: rotate(7deg);
  opacity: 0.75;
  user-select: none;
  pointer-events: none;
  transition: transform 0.3s ease, border-color 0.4s ease, color 0.4s ease;
  z-index: 10;
}

body.light-mode .hanko-stamp {
  border-color: #ff0055 !important;
  color: #ff0055 !important;
}

.static-card:hover .hanko-stamp {
  transform: rotate(-5deg) scale(1.1);
  opacity: 0.95;
}

/* Katakana Manga Sound Badge */
.manga-sound-badge {
  font-family: 'MS Gothic', 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 900;
  color: var(--amber);
  border: 1.5px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-block;
  transform: rotate(-4deg);
  background: var(--ink2);
  vertical-align: middle;
  letter-spacing: 1px;
  box-shadow: 2px 2px 0px var(--border);
  transition: transform 0.2s ease, background 0.4s ease;
}

body.light-mode .manga-sound-badge {
  background: #f7f6f2 !important;
  border-color: #121212 !important;
  color: #ff0055 !important;
  box-shadow: 2px 2px 0px #121212 !important;
}

.manga-sound-badge:hover {
  transform: scale(1.1) rotate(2deg);
}

/* --- Manga Sketchbook Light Mode Specific Overrides --- */
body.light-mode {
  background-image: 
    radial-gradient(circle, rgba(18, 18, 18, 0.055) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(18, 18, 18, 0.055) 1.5px, transparent 1.5px) !important;
  background-size: 16px 16px !important;
  background-position: 0 0, 8px 8px !important;
}

body.light-mode .skills-card,
body.light-mode .education-card,
body.light-mode .static-card,
body.light-mode .term-container,
body.light-mode .ai-chat-box {
  border: 2.5px solid #121212 !important;
  box-shadow: 4px 4px 0px #121212 !important;
  background: #f7f6f2 !important;
}

body.light-mode .skills-card:hover,
body.light-mode .education-card:hover,
body.light-mode .static-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px #ff0055 !important;
}

body.light-mode .btn-enter,
body.light-mode .btn-focus {
  border: 2.5px solid #121212 !important;
  box-shadow: 4px 4px 0px #121212 !important;
  background: #ff0055 !important;
  color: #f7f6f2 !important;
}

body.light-mode .btn-enter:hover,
body.light-mode .btn-focus:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 5px 5px 0px #121212 !important;
}

body.light-mode #cur-ring {
  border-color: #121212 !important;
}

body.light-mode #cur {
  background: #ff0055 !important;
}

/* Light Mode Header & Nav links visibility fix */
body.light-mode .uni-header {
  background: rgba(247, 246, 242, 0.9) !important;
  border-bottom: 2.5px solid #121212 !important;
}

body.light-mode .uni-nav a {
  color: #121212 !important;
  text-shadow: none !important;
}

body.light-mode .uni-nav a:hover {
  color: #ff0055 !important;
  text-shadow: none !important;
}

body.light-mode .caffeine-status {
  color: #3a3a3c !important;
}

/* Light Mode Mind space floating nodes visibility fix */
body.light-mode .mind-node:not(.thought) {
  background: #f7f6f2 !important;
  border: 2px solid #121212 !important;
  box-shadow: 3px 3px 0px #121212 !important;
  color: #121212 !important;
}

body.light-mode .mind-node:not(.thought):hover {
  border-color: #ff0055 !important;
  box-shadow: 5px 5px 0px #ff0055 !important;
  transform: translateY(-4px) scale(1.03) !important;
}

body.light-mode .mind-node.project .np-title {
  color: #0891b2 !important;
}

body.light-mode .mind-node.project .np-desc {
  color: #3a3a3c !important;
}

body.light-mode .mind-node.project .np-num {
  color: #707073 !important;
}

body.light-mode .mind-node.skill .ns-name {
  color: #4f46e5 !important;
}

/* Light Mode project card details fix */
body.light-mode .sc-im-val {
  color: #121212 !important;
  text-shadow: none !important;
}

body.light-mode .sc-flow-path {
  background: #ecebe7 !important;
  border: 1.5px solid #121212 !important;
  color: #121212 !important;
  border-radius: 4px !important;
  box-shadow: 2px 2px 0px #121212 !important;
}

body.light-mode .sc-badge {
  background: #ecebe7 !important;
  border: 1.5px solid #121212 !important;
  color: #121212 !important;
  border-radius: 4px !important;
}

body.light-mode .sc-tags span {
  background: #ecebe7 !important;
  border: 1.5px solid #121212 !important;
  color: #121212 !important;
  border-radius: 4px !important;
}

body.light-mode .sc-arrow {
  color: #121212 !important;
  font-weight: bold;
}

body.light-mode .static-card:hover .sc-arrow {
  color: #ff0055 !important;
}

/* Light Mode terminal inner sections fix */
body.light-mode .term-header {
  background: #ecebe7 !important;
  border-bottom: 2px solid #121212 !important;
}

body.light-mode .term-actions-bar {
  background: #ecebe7 !important;
  border-top: 2px solid #121212 !important;
}

body.light-mode .term-act-btn {
  color: #121212 !important;
  font-weight: bold;
}

body.light-mode .term-act-btn:hover {
  color: #ff0055 !important;
}

/* Light Mode chatbot inner components fix */
body.light-mode .acb-header {
  background: #ecebe7 !important;
  border-bottom: 2px solid #121212 !important;
  color: #121212 !important;
}

body.light-mode .acb-wave-container {
  background: #ecebe7 !important;
  border-bottom: 2px solid #121212 !important;
}

body.light-mode .acb-msg.bot {
  background: #dfded9 !important;
  border: 1.5px solid #121212 !important;
  color: #121212 !important;
  border-radius: 12px 12px 12px 4px !important;
}

body.light-mode .acb-msg.user {
  background: #ff0055 !important;
  border: 1.5px solid #121212 !important;
  color: #f7f6f2 !important;
  border-radius: 12px 12px 4px 12px !important;
}

body.light-mode .acb-quick {
  background: #ecebe7 !important;
  border-top: 2px solid #121212 !important;
}

body.light-mode .acb-q-btn {
  background: #f7f6f2 !important;
  border: 1.5px solid #121212 !important;
  color: #121212 !important;
  border-radius: 4px !important;
  box-shadow: 1.5px 1.5px 0px #121212 !important;
}

body.light-mode .acb-q-btn:hover {
  background: #ff0055 !important;
  color: #f7f6f2 !important;
}

body.light-mode .acb-input-row {
  border-top: 2px solid #121212 !important;
  background: #f7f6f2 !important;
}

body.light-mode .acb-input {
  color: #121212 !important;
  background: transparent !important;
}

body.light-mode .acb-send {
  background: #ff0055 !important;
  border: 1.5px solid #121212 !important;
  color: #f7f6f2 !important;
  box-shadow: 1.5px 1.5px 0px #121212 !important;
}

body.light-mode .ai-fab {
  background: #ff0055 !important;
  border: 2.5px solid #121212 !important;
  box-shadow: 3px 3px 0px #121212 !important;
  color: #f7f6f2 !important;
}

body.light-mode .ai-fab:hover {
  transform: scale(1.05) translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0px #121212 !important;
}

/* Light Mode case study modal detail panel fix */
body.light-mode .modal-overlay {
  background: rgba(18, 18, 18, 0.45) !important;
}

body.light-mode .modal-container {
  background: #f7f6f2 !important;
  border: 2.5px solid #121212 !important;
  box-shadow: 6px 6px 0px #121212 !important;
  color: #121212 !important;
}

body.light-mode .modal-header {
  border-bottom: 2px solid #121212 !important;
}

body.light-mode .modal-close {
  background: #ecebe7 !important;
  border: 2px solid #121212 !important;
  color: #121212 !important;
}

body.light-mode .modal-close:hover {
  background: #ff0055 !important;
  color: #f7f6f2 !important;
}

body.light-mode .mb-tag {
  background: #ecebe7 !important;
  border: 1.5px solid #121212 !important;
  color: #121212 !important;
  border-radius: 4px !important;
}

body.light-mode .mb-metric-card {
  background: #f7f6f2 !important;
  border: 2px solid #121212 !important;
  box-shadow: 3px 3px 0px #121212 !important;
}

body.light-mode .mb-metric-val {
  color: #ff0055 !important;
}

body.light-mode .mb-link-btn.primary {
  background: #ff0055 !important;
  border: 2px solid #121212 !important;
  color: #f7f6f2 !important;
  box-shadow: 3px 3px 0px #121212 !important;
}

body.light-mode .mb-link-btn.primary:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0px #121212 !important;
}

body.light-mode .mb-link-btn.secondary {
  background: #ecebe7 !important;
  border: 2px solid #121212 !important;
  color: #121212 !important;
  box-shadow: 3px 3px 0px #121212 !important;
}

body.light-mode .mb-link-btn.secondary:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0px #121212 !important;
}

