/* =========================================================
   Vivekanand Kumar — Portfolio
   Dark-first, dependency-free, responsive design
   ========================================================= */

:root {
  --bg: #080b12;
  --bg-soft: #0d111b;
  --bg-card: rgba(18, 23, 36, 0.72);
  --bg-card-solid: #121725;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6fb;
  --text-soft: #b8c0d4;
  --text-muted: #7d879e;
  --accent: #7c5cff;
  --accent-2: #3ddbd9;
  --accent-3: #b8ff5c;
  --danger: #ff7b93;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-soft: #eef1f8;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-solid: #ffffff;
  --border: rgba(14, 20, 38, 0.1);
  --border-strong: rgba(14, 20, 38, 0.18);
  --text: #111726;
  --text-soft: #4c566d;
  --text-muted: #78839a;
  --shadow: 0 24px 70px rgba(35, 45, 80, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); overflow-x: clip; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }

::selection { background: rgba(124, 92, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Background effects ---------- */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.grid-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 78%);
  opacity: 0.42;
}

.orb { position: absolute; border-radius: 999px; filter: blur(90px); opacity: 0.2; }
.orb-one { width: 460px; height: 460px; top: -180px; left: -100px; background: var(--accent); }
.orb-two { width: 420px; height: 420px; top: 180px; right: -140px; background: var(--accent-2); opacity: 0.15; }
.orb-three { width: 520px; height: 520px; bottom: -260px; left: 38%; background: #ff5ca8; opacity: 0.08; }

.noise-layer {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

html[data-theme="light"] .orb { opacity: 0.12; }
html[data-theme="light"] .grid-layer { opacity: 0.25; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.3);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-family: "Sora", sans-serif; font-size: 14px; font-weight: 700; }
.brand-copy small { color: var(--text-muted); font-size: 11px; letter-spacing: 0.02em; }

.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.desktop-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.desktop-nav a.is-active { color: var(--text); }
.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-card);
  color: var(--text-soft);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
html[data-theme="light"] .icon-sun { display: block; }
html[data-theme="light"] .icon-moon { display: none; }

.menu-toggle { display: none; }
.menu-toggle span { width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 12px 24px 20px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 11px 12px; border-radius: 10px; color: var(--text-soft); font-weight: 500; }
.mobile-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9a6bff);
  color: #fff;
  box-shadow: 0 12px 34px rgba(124, 92, 255, 0.32);
}
.btn-primary:hover { box-shadow: 0 18px 44px rgba(124, 92, 255, 0.45); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); }
.btn-small { padding: 10px 14px; font-size: 12.5px; border-radius: 10px; }
.btn-full { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 82px) 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 14px var(--accent-3); }
.eyebrow .sep { color: var(--text-muted); }

h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; letter-spacing: -0.035em; line-height: 1.1; margin: 0; }

h1 {
  margin-top: 24px;
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--text-muted); }

.hero-lead {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 13px;
}
.availability strong { color: var(--text-soft); font-weight: 600; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); }
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--accent-3);
  border-radius: 50%;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }

.hero-socials { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.hero-socials a { color: var(--text-muted); font-size: 12.5px; transition: color .2s ease; }
.hero-socials a::before { content: "↗ "; color: var(--accent-2); }
.hero-socials a:hover { color: var(--text); }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; min-height: 430px; display: grid; align-items: center; }
.visual-glow {
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(circle at 50% 40%, rgba(124,92,255,.22), transparent 62%);
  filter: blur(20px);
}

.terminal-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(20,26,42,.96), rgba(10,13,22,.94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg);
}
html[data-theme="light"] .terminal-card { background: linear-gradient(160deg, #fff, #f3f5fb); }

.terminal-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b8a; }
.dots i:nth-child(2) { background: #ffc857; }
.dots i:nth-child(3) { background: #61e294; }
.terminal-title { font-family: "JetBrains Mono", monospace; color: var(--text-muted); font-size: 11px; }
.terminal-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-3); font-family: "JetBrains Mono", monospace; font-size: 10px; }
.terminal-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.terminal-body { padding: 22px 22px 26px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; line-height: 2; color: var(--text-soft); }
.terminal-body p { margin: 0; white-space: nowrap; }
.terminal-body .prompt { color: var(--accent-2); }
.terminal-body .cmd { color: var(--text); font-weight: 600; }
.terminal-body .dim { color: var(--text-muted); }
.terminal-body .ok { color: var(--accent-3); }
.typed-line { margin-top: 6px !important; color: var(--text); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--accent-2); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card-solid) 86%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-soft);
  animation: float 5s ease-in-out infinite;
}
.floating-chip span { color: var(--accent-2); font-size: 9px; }
.chip-ai { top: 2%; left: -3%; }
.chip-api { top: 25%; right: -6%; animation-delay: -1.3s; }
.chip-web { bottom: 25%; left: -8%; animation-delay: -2.6s; }
.chip-cv { bottom: 4%; right: 1%; animation-delay: -3.9s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.now-card {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -34px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-card-solid) 92%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.now-icon { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: rgba(61,219,217,.12); color: var(--accent-2); font-size: 18px; }
.now-card > div { display: grid; gap: 1px; min-width: 0; }
.now-label { font-family: "JetBrains Mono", monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.now-card strong { font-size: 13px; }
.now-card small { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 86px;
}
.hero-stats > div {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}
.hero-stats strong { display: block; font-family: "Sora", sans-serif; font-size: 28px; font-weight: 700; line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; color: var(--text-muted); font-size: 11.5px; }

/* ---------- Marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
  margin-top: 60px;
}
.marquee {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding: 18px 0;
  animation: marquee 34s linear infinite;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.marquee i { color: var(--accent-2); font-style: normal; font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-wrap:hover .marquee { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-soft) 72%, transparent) 18%, color-mix(in srgb, var(--bg-soft) 72%, transparent) 82%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { margin-bottom: 48px; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-head.split > p { max-width: 330px; margin: 0 0 6px; color: var(--text-muted); font-size: 14px; }
.section-no {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .16em;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.about-copy .lead { margin-top: 0; color: var(--text); font-size: 1.08rem; line-height: 1.85; }
.about-copy p { color: var(--text-soft); line-height: 1.85; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.about-values > div { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.about-values span { display: block; margin-bottom: 12px; color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 10px; }
.about-values strong { display: block; font-size: 13px; }
.about-values small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 11.5px; line-height: 1.5; }

.about-panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--text-muted); }
.panel-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-3); }
.panel-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.profile-list { margin: 0; padding: 8px 18px; }
.profile-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.profile-list > div:last-child { border-bottom: 0; }
.profile-list dt { color: var(--text-muted); font-size: 12px; }
.profile-list dd { margin: 0; font-size: 12.5px; font-weight: 500; }
.panel-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); background: rgba(255,255,255,.02); color: var(--text-muted); font-size: 10.5px; }

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.stack-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.stack-card-wide { grid-column: 1 / -1; }
.stack-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px; background: rgba(124,92,255,.13); color: var(--accent); font-size: 16px; }
.stack-card h3 { font-size: 16px; font-weight: 600; }
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.skill-list li {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--text-soft);
  font-size: 11.5px;
}

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }

.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card.is-hidden { display: none; }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.project-ecosystem { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.project-ecosystem .project-visual { min-height: 100%; border-bottom: 0; border-right: 1px solid var(--border); }

.project-visual { position: relative; min-height: 270px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.project-featured .project-visual { min-height: 100%; border-bottom: 0; border-right: 1px solid var(--border); }
.project-visual img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease);
}
.project-card:hover .project-visual img { transform: scale(1.035); }
.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,11,18,.42), transparent 55%);
  pointer-events: none;
}
.visual-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(8,11,18,.74);
  backdrop-filter: blur(8px);
  color: #b8ff5c;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.visual-atlas { background: radial-gradient(circle at 25% 20%, rgba(124,92,255,.28), transparent 55%), linear-gradient(145deg, #12182a, #080b13); padding: 34px; display: grid; place-items: center; }
.visual-lens { background: radial-gradient(circle at 70% 30%, rgba(61,219,217,.18), transparent 55%), linear-gradient(145deg, #0e1a20, #080b13); display: grid; place-items: center; }
.visual-bench { background: radial-gradient(circle at 30% 70%, rgba(184,255,92,.13), transparent 55%), linear-gradient(145deg, #131a18, #080b13); display: grid; place-items: center; }
.visual-wakit { background: radial-gradient(circle at 65% 25%, rgba(255,92,168,.16), transparent 55%), linear-gradient(145deg, #1a1420, #080b13); display: grid; place-items: center; }
html[data-theme="light"] .visual-atlas,
html[data-theme="light"] .visual-lens,
html[data-theme="light"] .visual-bench,
html[data-theme="light"] .visual-wakit { background: linear-gradient(145deg, #eef1fb, #dfe5f5); }

.visual-ui { width: 100%; max-width: 440px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(8,11,19,.78); box-shadow: 0 24px 60px rgba(0,0,0,.4); overflow: hidden; }
.ui-bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ui-bar span { width: 6px; height: 6px; border-radius: 50%; background: #ff6b8a; }
.ui-bar span:nth-child(2) { background: #ffc857; }
.ui-bar span:nth-child(3) { background: #61e294; }
.ui-bar i { margin-left: 8px; color: #7d879e; font-family: "JetBrains Mono", monospace; font-size: 9px; font-style: normal; }
.ui-left { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ui-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #3ddbd9); color: #fff; font-size: 9px; font-weight: 700; }
.ui-left div { display: grid; }
.ui-left b { color: #f4f6fb; font-size: 10px; }
.ui-left small { color: #7d879e; font-size: 8px; }
.ui-rec { margin-left: auto; color: #ff7b93; font-family: "JetBrains Mono", monospace; font-size: 8px; }
.ui-code { padding: 14px; color: #b8c0d4; font-family: "JetBrains Mono", monospace; font-size: 9px; line-height: 1.9; }
.ui-code span { margin-right: 10px; color: #4c566d; }
.ui-code em { color: #3ddbd9; font-style: normal; }
.ui-score { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.06); color: #7d879e; font-size: 9px; }
.ui-score b { margin-left: auto; color: #b8ff5c; }
.ui-score span { width: 80px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.09); }
.ui-score span i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7c5cff, #b8ff5c); }

.vision-frame { position: relative; width: 78%; aspect-ratio: 16 / 10; border: 1px solid rgba(61,219,217,.25); border-radius: 12px; background: linear-gradient(135deg, rgba(10,25,30,.85), rgba(8,11,19,.85)); }
.vision-frame::before { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(61,219,217,.18); border-radius: 40% 45% 42% 48%; }
.scan-line { position: absolute; left: 8%; right: 8%; top: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); box-shadow: 0 0 14px var(--accent-2); animation: scan 3.6s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 12%; } 50% { top: 86%; } }
.detect-box { position: absolute; border: 1.5px solid var(--accent-2); border-radius: 4px; }
.detect-box i { position: absolute; top: -15px; left: -1px; padding: 1px 5px; background: var(--accent-2); color: #071014; font-family: "JetBrains Mono", monospace; font-size: 7px; font-style: normal; }
.box-a { inset: 22% 48% 20% 22%; }
.box-b { inset: 45% 18% 32% 58%; border-color: var(--danger); }
.box-b i { background: var(--danger); color: #fff; }
.vision-hud { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; justify-content: space-between; color: #7d879e; font-family: "JetBrains Mono", monospace; font-size: 8px; }
.vision-hud b { color: var(--accent-3); }

.bench-grid { position: relative; display: grid; grid-template-columns: repeat(3, 62px); gap: 9px; }
.bench-grid span { display: grid; place-items: center; height: 62px; border: 1px solid rgba(184,255,92,.18); border-radius: 11px; background: rgba(8,11,19,.6); color: #7d879e; font-family: "JetBrains Mono", monospace; font-size: 9px; }
.bench-grid .bench-center { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 44px rgba(124,92,255,.45); color: #fff; font-family: "Sora", sans-serif; font-size: 24px; font-weight: 700; }
.bench-center small { display: block; margin-top: -6px; font-family: "JetBrains Mono", monospace; font-size: 8px; font-weight: 400; letter-spacing: .1em; }

.phone-mock { position: relative; width: 190px; height: 295px; padding: 48px 18px 18px; border: 6px solid rgba(255,255,255,.12); border-radius: 30px; background: linear-gradient(160deg, rgba(20,15,28,.9), rgba(8,11,19,.9)); box-shadow: 0 26px 60px rgba(0,0,0,.42); }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 58px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.09); }
.chat-bubble { width: fit-content; max-width: 100%; margin-bottom: 8px; padding: 9px 12px; border-radius: 13px 13px 13px 3px; background: rgba(124,92,255,.25); color: #e7e9f5; font-size: 10px; }
.chat-bubble.right { margin-left: auto; border-radius: 13px 13px 3px 13px; background: rgba(61,219,217,.2); }
.phone-actions { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 5px; }
.phone-actions span { padding: 5px 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: #7d879e; font-size: 8px; }

.project-body { display: flex; flex-direction: column; padding: 28px; }
.project-featured .project-body { justify-content: center; }
.project-meta { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.tag { padding: 4px 9px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-soft); }
.tag-live { border-color: rgba(184,255,92,.35); background: rgba(184,255,92,.08); color: var(--accent-3); }
.project-body h3 { margin-top: 16px; font-size: 22px; font-weight: 600; }
.project-body > p { margin: 12px 0 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.75; }
.project-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.project-points li { position: relative; padding-left: 18px; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.project-points li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }
.tech-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tech-row span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.02); color: var(--text-soft); font-family: "JetBrains Mono", monospace; font-size: 9.5px; }
.project-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.project-links a { color: var(--text); font-size: 12px; font-weight: 600; transition: color .2s ease; }
.project-links a span { color: var(--accent-2); }
.project-links a:hover { color: var(--accent-2); }
.project-ecosystem .project-body { flex-direction: row; align-items: center; gap: 30px; flex-wrap: wrap; }
.project-ecosystem .project-body > p { flex: 1 1 400px; margin: 0; }
.project-ecosystem .project-meta { flex-basis: 100%; }
.project-ecosystem .project-body h3 { margin-top: 0; }
.project-ecosystem .project-links { margin: 0; padding: 0; border: 0; }

/* ---------- Journey ---------- */
.journey-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 20px; left: 6px; width: 1px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.timeline-item { position: relative; padding: 0 0 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -30px; top: 6px; width: 13px; height: 13px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-date { color: var(--accent-2); font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.timeline-item h3 { margin-top: 10px; font-size: 19px; font-weight: 600; }
.timeline-place { margin: 7px 0 0; color: var(--text); font-size: 13px; font-weight: 500; }
.timeline-item p { color: var(--text-soft); font-size: 13px; line-height: 1.8; }
.timeline-item ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 13px; line-height: 1.8; }
.timeline-item li::marker { color: var(--accent); }

.journey-aside { display: grid; gap: 16px; align-content: start; }
.quote-card { position: relative; padding: 28px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: linear-gradient(150deg, rgba(124,92,255,.14), rgba(61,219,217,.05)); overflow: hidden; }
.quote-mark { position: absolute; top: -18px; right: 18px; color: rgba(124,92,255,.25); font-family: "Sora", sans-serif; font-size: 110px; line-height: 1; }
.quote-card p { position: relative; margin: 0; color: var(--text); font-family: "Sora", sans-serif; font-size: 15px; line-height: 1.75; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.quote-author > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 11px; font-weight: 700; }
.quote-author div { display: grid; }
.quote-author strong { font-size: 12px; }
.quote-author small { color: var(--text-muted); font-size: 10.5px; }
.mini-card { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.mini-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: rgba(61,219,217,.1); color: var(--accent-2); }
.mini-card strong { font-size: 13px; }
.mini-card p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-section { padding-bottom: 130px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-copy > p { max-width: 480px; margin: 22px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.8; }
.contact-list { margin-top: 36px; display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.contact-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: rgba(124,92,255,.12); color: var(--accent); font-size: 14px; }
.contact-item div { display: grid; min-width: 0; }
.contact-item small { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.contact-item strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 500; white-space: nowrap; }
.copy-btn, .contact-item > a, .contact-note { margin-left: auto; color: var(--accent-2); font-size: 11.5px; font-weight: 600; }
.copy-btn { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; }
.copy-btn:hover { border-color: var(--accent-2); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; }
.contact-socials a { color: var(--text-soft); font-size: 12px; }
.contact-socials a:hover { color: var(--accent-2); }

.contact-form { padding: 30px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow); }
.form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-family: "Sora", sans-serif; font-size: 15px; font-weight: 600; }
.form-head i { flex: 1; height: 1px; background: var(--border); }
.contact-form label { display: grid; gap: 8px; margin-bottom: 16px; }
.contact-form label > span { color: var(--text-soft); font-size: 11.5px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  font-size: 13px;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(124,92,255,.05); }
.form-note { margin: 14px 0 0; color: var(--text-muted); font-size: 10.5px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; background: color-mix(in srgb, var(--bg-soft) 60%, transparent); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.site-footer p { margin: 0; color: var(--text-muted); font-size: 11.5px; }
.footer-inner > a { color: var(--text-soft); font-size: 11.5px; }
.footer-inner > a:hover { color: var(--accent-2); }

/* ---------- Utilities ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-card-solid);
  color: var(--text-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--text); border-color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  padding: 11px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--bg-card-solid);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 12.5px;
  transform: translate(-50%, 18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { gap: 36px; }
  .floating-chip { display: none; }
  .about-grid, .journey-grid, .contact-grid { gap: 36px; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-card-wide { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .desktop-nav, .header-resume { display: none; }
  .menu-toggle { display: grid; align-content: center; gap: 4px; }
  .hero { padding-top: calc(var(--header-h) + 58px); }
  .hero-grid, .about-grid, .journey-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .terminal-card { transform: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 72px; }
  .section { padding: 88px 0; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .project-featured, .project-ecosystem { grid-template-columns: 1fr; }
  .project-featured .project-visual, .project-ecosystem .project-visual { border-right: 0; border-bottom: 1px solid var(--border); }
  .journey-aside { grid-template-columns: 1fr 1fr; }
  .quote-card { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .brand-copy small { display: none; }
  h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .hero-socials { gap: 8px 14px; }
  .terminal-body { padding: 18px 15px 22px; font-size: 9.5px; }
  .terminal-body p { white-space: normal; }
  .now-card { left: 0; right: 0; bottom: -28px; }
  .about-values { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-featured, .project-ecosystem { grid-column: auto; }
  .journey-aside { grid-template-columns: 1fr; }
  .quote-card { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .profile-list > div { grid-template-columns: 84px 1fr; gap: 10px; }
  .panel-foot { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .page-bg, .site-header, .marquee-wrap, .to-top, .toast, .hero-visual, .filters, .contact-form, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1; transform: none; }
  .section { padding: 24px 0; break-inside: avoid; }
  .project-card { box-shadow: none; border: 1px solid #ccc; }
}
