/* ═══════════════════════════════════════════════════════════════
   FIKRET_OS v5.2.1 — amber phosphor terminal portfolio
   handcrafted · no frameworks · no templates
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:      #0b0a08;
  --bg-2:    #100e0a;
  --panel:   #14110c;
  --panel-2: #181410;
  --line:    #292419;
  --line-2:  #3a3322;

  --txt:     #e9e1cd;
  --dim:     #968c74;
  --faint:   #5d5644;

  --amber:   #ffb000;
  --amber-2: #ffd061;
  --amber-dk:#8a6200;
  --teal:    #5fb3a1;
  --red:     #e0644f;

  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --hum:  "Fraunces", Georgia, serif;

  --bar-h: 42px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 24px); }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
body.booting { overflow: hidden; }

::selection { background: var(--amber); color: #100c02; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 0; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--amber-dk); }

a { color: inherit; text-decoration: none; }
.hum { font-family: var(--hum); font-style: italic; font-weight: 400; }
.hl { color: var(--amber); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

kbd {
  font-family: var(--mono); font-size: .78em;
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 4px; padding: 1px 6px; color: var(--dim);
  background: var(--panel);
}

/* ───────────────────────── CRT overlay ───────────────────────── */
.crt {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,.16) 0px, rgba(0,0,0,.16) 1px,
      transparent 1px, transparent 3px),
    radial-gradient(ellipse at center,
      transparent 55%, rgba(5,3,0,.42) 100%);
  mix-blend-mode: multiply;
  opacity: .55;
}
body.no-crt .crt { display: none; }

/* ───────────────────────── boot sequence ─────────────────────── */
#boot {
  position: fixed; inset: 0; z-index: 10000;
  background: #070604;
  display: flex; flex-direction: column;
  justify-content: center; padding: 8vh 10vw;
  transition: opacity .6s ease;
  cursor: pointer;
}
#boot.done { opacity: 0; pointer-events: none; }
#boot-log {
  font-family: var(--mono); font-size: clamp(11px, 1.5vw, 14px);
  line-height: 1.9; color: var(--dim); white-space: pre-wrap;
}
#boot-log .ok   { color: var(--teal); }
#boot-log .warn { color: var(--red); }
#boot-log .amb  { color: var(--amber); }
.boot-skip {
  position: absolute; bottom: 28px; right: 32px;
  font-size: 11px; color: var(--faint);
  animation: blink-soft 1.6s infinite;
}
@keyframes blink-soft { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ───────────────────────── status bar ────────────────────────── */
#bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  min-height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: rgba(11,10,8,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.bar-left { display: flex; align-items: center; gap: 12px; white-space: nowrap; flex-shrink: 0; }
.bar-logo { color: var(--amber); font-weight: 700; letter-spacing: .04em; }
.bar-path { color: var(--faint); }

.bar-tabs {
  display: flex; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bar-tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 4px 10px; color: var(--dim); white-space: nowrap;
  border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.tab i { font-style: normal; color: var(--faint); margin-right: 1px; }
.tab:hover { color: var(--txt); }
.tab.active {
  color: var(--amber); background: rgba(255,176,0,.07);
  border-color: rgba(255,176,0,.25);
}
.tab.active i { color: var(--amber-dk); }

.bar-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; flex-shrink: 0; }
.kbd-chip {
  font-family: var(--mono); font-size: 11px; cursor: pointer;
  color: var(--dim); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 8px;
  transition: color .2s, border-color .2s;
}
.kbd-chip:hover { color: var(--amber); border-color: var(--amber-dk); }
.status-chip {
  display: flex; align-items: center; gap: 6px;
  color: var(--teal); font-size: 11px; letter-spacing: .06em;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(95,179,161,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(95,179,161,0); }
}
.bar-clock { color: var(--dim); font-variant-numeric: tabular-nums; }

#progress {
  position: fixed; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); left: 0; z-index: 8000;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--amber-dk), var(--amber));
  box-shadow: 0 0 8px rgba(255,176,0,.5);
}

/* ───────────────────────── hero ──────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 40px) 0 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255,176,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,176,0,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center; width: 100%;
}

.prompt-line { color: var(--dim); font-size: 14px; margin-bottom: 18px; }
.p-user { color: var(--teal); }
.p-sep, .p-sym { color: var(--faint); }
.p-path { color: var(--amber); }
.p-sym { margin: 0 8px 0 4px; }

.hero-name {
  font-size: clamp(52px, 9vw, 118px);
  line-height: .92; letter-spacing: -.02em;
  margin: 0 0 26px; position: relative;
}
.hero-first {
  display: block; font-weight: 800; color: var(--txt);
  text-shadow: 0 0 36px rgba(255,176,0,.12);
}
.hero-last {
  display: block; color: var(--amber);
  font-weight: 600; font-size: .92em;
  margin-left: .35em; margin-top: -.08em;
  text-shadow: 0 0 50px rgba(255,176,0,.35);
}

.hero-role { font-size: clamp(16px, 2.2vw, 22px); color: var(--txt); margin-bottom: 22px; min-height: 1.6em; }
.caret { color: var(--amber); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-sub { color: var(--dim); max-width: 56ch; margin-bottom: 34px; font-size: clamp(15px, 1.8vw, 20px); }
.hero-sub b { color: var(--txt); font-weight: 700; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.btn {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  padding: 12px 22px; border: 1px solid; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, color .2s;
  position: relative;
}
.btn-amber {
  background: var(--amber); color: #181000; border-color: var(--amber);
  box-shadow: 4px 4px 0 rgba(255,176,0,.25);
}
.btn-amber:hover {
  transform: translate(-2px,-2px);
  box-shadow: 7px 7px 0 rgba(255,176,0,.3);
}
.btn-ghost { background: transparent; color: var(--amber); border-color: var(--amber-dk); }
.btn-ghost:hover { background: rgba(255,176,0,.08); border-color: var(--amber); }

.hero-hint { font-size: 12px; color: var(--faint); }

.hero-donut { text-align: center; user-select: none; }
#donut {
  font-family: var(--mono);
  font-size: clamp(7px, 1vw, 11px);
  line-height: 1.05; letter-spacing: .02em;
  color: var(--amber);
  text-shadow: 0 0 14px rgba(255,176,0,.35);
  opacity: .85;
  display: inline-block;
}
.donut-cap { font-size: 11px; color: var(--faint); margin-top: 12px; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--faint); font-size: 11px; letter-spacing: .3em;
}
.scroll-arrow { animation: drop 1.6s ease-in-out infinite; color: var(--amber-dk); }
@keyframes drop { 0%,100% { transform: translateY(0); opacity:.4; } 50% { transform: translateY(6px); opacity:1; } }

/* ───────────────────────── sections shared ───────────────────── */
.sec { padding: 110px 0; position: relative; }
.sec:nth-of-type(even) { background: var(--bg-2); }
.sec + .sec { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: 56px; position: relative; }
.sec-num {
  position: absolute; right: 0; top: -54px;
  font-size: clamp(90px, 14vw, 170px); font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  line-height: 1; z-index: 0; pointer-events: none; user-select: none;
}
.sec-head h2 {
  font-size: clamp(22px, 3.4vw, 34px); font-weight: 700;
  letter-spacing: -.01em; position: relative; z-index: 1;
}
.sec-note { color: var(--faint); font-size: 13px; margin-top: 8px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* hero load stagger */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
body.booted .rv { opacity: 1; transform: none; }
body.booted .rv:nth-child(1) { transition-delay: .05s; }
body.booted .rv:nth-child(2) { transition-delay: .15s; }
body.booted .rv:nth-child(3) { transition-delay: .3s; }
body.booted .rv:nth-child(4) { transition-delay: .45s; }
body.booted .rv:nth-child(5) { transition-delay: .6s; }
body.booted .rv:nth-child(6) { transition-delay: .75s; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span {
  font-size: 11px; color: var(--dim);
  border: 1px solid var(--line-2); padding: 2px 9px; border-radius: 99px;
  transition: color .2s, border-color .2s;
}
.chips span:hover { color: var(--amber); border-color: var(--amber-dk); }

/* ───────────────────────── about / readme ────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

.md h3 { font-size: 19px; margin: 30px 0 12px; font-weight: 700; }
.md h3:first-child { margin-top: 0; }
.md-h { color: var(--amber); margin-right: 8px; }
.md p { color: var(--dim); margin-bottom: 8px; }
.md strong { color: var(--txt); }
.md blockquote {
  margin-top: 30px; padding: 18px 24px;
  border-left: 3px solid var(--amber);
  background: rgba(255,176,0,.05);
  color: var(--amber-2); font-size: 19px; line-height: 1.5;
}

.id-card {
  background: var(--panel); border: 1px solid var(--line);
  padding: 20px 22px; font-size: 13px;
  position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 24px);
}
.id-top, .id-bot { color: var(--faint); font-size: 12px; white-space: pre; overflow: hidden; }
.id-card dl { padding: 12px 4px; display: grid; gap: 9px; }
.id-card dl > div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; }
.id-card dt { color: var(--faint); }
.id-card dt::after { content: ":"; }
.id-card dd { color: var(--teal); word-break: break-word; }
.id-card dd a { border-bottom: 1px dashed var(--line-2); transition: color .2s, border-color .2s; }
.id-card dd a:hover { color: var(--amber); border-color: var(--amber); }

/* htop monitor */
.monitor {
  margin-top: 64px; background: var(--panel); border: 1px solid var(--line);
  padding: 22px 26px;
}
.mon-title { color: var(--faint); font-size: 12px; margin-bottom: 16px; letter-spacing: .08em; }
.mon-row {
  display: grid; grid-template-columns: 48px 1fr 150px;
  gap: 16px; align-items: center; margin-bottom: 12px; font-size: 13px;
}
.mon-row:last-child { margin-bottom: 0; }
.mon-key { color: var(--dim); font-weight: 700; }
.mon-bar {
  height: 14px; background: var(--bg);
  border: 1px solid var(--line-2); position: relative; overflow: hidden;
}
.mon-bar span {
  position: absolute; inset: 0; width: 0%;
  background: repeating-linear-gradient(90deg,
    var(--amber) 0 5px, transparent 5px 8px);
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}
.mon-bar[data-color="teal"] span {
  background: repeating-linear-gradient(90deg,
    var(--teal) 0 5px, transparent 5px 8px);
}
.mon-val { color: var(--txt); text-align: right; font-variant-numeric: tabular-nums; }

/* ───────────────────────── marquee ───────────────────────────── */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel); overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 13px; letter-spacing: .25em; color: var(--faint); padding-right: 8px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────────────────── git log ───────────────────────────── */
.git { list-style: none; position: relative; margin-left: 10px; }
.git::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--amber), var(--line-2) 85%, transparent);
}
.git-item { position: relative; padding: 0 0 52px 44px; }
.git-item:last-child { padding-bottom: 0; }

.node {
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--amber);
  z-index: 1; transition: box-shadow .3s, background .3s;
}
.node.head { background: var(--amber); box-shadow: 0 0 0 5px rgba(255,176,0,.15), 0 0 22px rgba(255,176,0,.5); }
.node.side { border-color: var(--teal); left: -18px; }
.node.init { border-color: var(--faint); border-style: dashed; }
.git-item:hover .node { box-shadow: 0 0 0 5px rgba(255,176,0,.12); }
.git-item[data-branch="side"]:hover .node { box-shadow: 0 0 0 5px rgba(95,179,161,.14); }

/* curved connector for the side branch */
.git-item[data-branch="side"]::before {
  content: ""; position: absolute; left: -10px; top: -26px;
  width: 18px; height: 40px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  border-bottom-left-radius: 14px;
  opacity: .6;
}

.git-meta { font-size: 12.5px; color: var(--faint); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.hash { color: var(--amber); font-weight: 700; }
.refs { color: var(--teal); }
.refs.teal { color: var(--teal); }
.git-date { color: var(--dim); }

.git-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.git-body h3 em { font-style: normal; color: var(--amber-2); }
.git-body > p { color: var(--dim); max-width: 70ch; }

/* ───────────────────────── stack ─────────────────────────────── */
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }

.pkg {
  background: var(--panel); border: 1px solid var(--line);
  padding: 26px 28px; overflow-x: auto;
  box-shadow: 8px 8px 0 rgba(255,176,0,.05);
}
.pkg pre { font-size: 13.5px; line-height: 1.75; }
.c-key { color: var(--amber); }
.c-str { color: var(--teal); }
.c-pun { color: var(--faint); }

.stack-cats { display: grid; gap: 14px; }
.cat {
  border: 1px solid var(--line); background: var(--bg);
  padding: 16px 20px; transition: border-color .25s, transform .2s;
}
.cat:hover { border-color: var(--amber-dk); transform: translateX(4px); }
.cat h4 { font-size: 13px; color: var(--amber); letter-spacing: .08em; margin-bottom: 4px; }

/* ───────────────────────── deploys (docker ps) ───────────────── */
.deploy-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.ctr {
  display: block; background: var(--panel); border: 1px solid var(--line);
  padding: 22px 24px 18px; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .25s, box-shadow .25s;
}
.ctr::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 180px at var(--mx,50%) var(--my,0%), rgba(255,176,0,.07), transparent 70%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.ctr:hover { transform: translateY(-5px); border-color: var(--amber-dk); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.ctr:hover::after { opacity: 1; }

.ctr-top { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); margin-bottom: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.run  { background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 2.4s infinite; }
.dot.teal { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.ctr-id { letter-spacing: .04em; }
.ctr-status { margin-left: auto; color: var(--teal); }
.ctr-blog .ctr-status { color: var(--amber); }

.ctr h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.ctr-tag { color: var(--faint); font-weight: 400; font-size: .75em; }
.ctr p { color: var(--dim); font-size: 13.5px; }
.ctr p b { color: var(--txt); }

.ctr-go {
  display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 700;
  color: var(--amber); opacity: 0; transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.ctr:hover .ctr-go { opacity: 1; transform: none; }

/* ───────────────────────── changelog ─────────────────────────── */
.changelog { list-style: none; display: grid; gap: 0; }
.rel {
  display: grid; grid-template-columns: 150px 1fr; gap: 34px;
  padding: 30px 0; border-bottom: 1px dashed var(--line);
  position: relative;
}
.rel:last-child { border-bottom: none; }
.rel-ver { text-align: right; }
.ver {
  font-weight: 800; font-size: 22px; color: var(--dim);
  transition: color .25s;
}
.ver.latest { color: var(--amber); text-shadow: 0 0 24px rgba(255,176,0,.35); }
.rel:hover .ver { color: var(--amber-2); }
.rel-tag {
  display: block; font-size: 10px; letter-spacing: .2em; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 3px;
  padding: 1px 6px; margin-top: 6px; margin-left: auto; width: fit-content;
}
.rel-body h3 { font-size: 18px; margin-bottom: 6px; }
.rel-body h3 .hum { color: var(--dim); font-size: .9em; }
.rel-body p { color: var(--dim); max-width: 64ch; }

/* ───────────────────────── blog (medium feed) ────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  padding: 22px 24px 18px;
  transition: transform .2s ease, border-color .25s, box-shadow .25s;
  animation: b-in .5s ease both;
}
@keyframes b-in { from { opacity: 0; transform: translateY(14px); } }
.blog-card:hover {
  transform: translateY(-5px); border-color: var(--amber-dk);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  min-width: 0;
}
.blog-card * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.b-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--faint); margin-bottom: 10px;
}
.b-cat { color: var(--teal); }
.blog-card h3 { font-size: 17px; font-weight: 700; color: var(--txt); margin-bottom: 8px; line-height: 1.4; }
.b-ex { color: var(--dim); font-size: 13.5px; }
.blog-card .ctr-go { margin-top: auto; padding-top: 16px; }
.blog-card:hover .ctr-go { opacity: 1; transform: none; }

/* skeleton while the feed loads */
.bsk { pointer-events: none; }
.bsk-line {
  height: 12px; background: var(--line); margin: 10px 0;
  animation: bsk-pulse 1.2s ease-in-out infinite;
}
.w40 { width: 40%; } .w60 { width: 60%; } .w75 { width: 75%; } .w90 { width: 90%; }
@keyframes bsk-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

.blog-err {
  grid-column: 1 / -1;
  border: 1px dashed var(--red); padding: 22px 26px;
  font-size: 13.5px; color: var(--dim);
}
.blog-err .err-k { color: var(--red); font-weight: 700; }
.blog-err a { color: var(--amber); border-bottom: 1px dashed var(--amber-dk); }
.blog-err a:hover { border-bottom-style: solid; }
.blog-err p + p { margin-top: 8px; }

.blog-foot { margin-top: 30px; }

/* ───────────────────────── contact ───────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }

.term {
  background: #0d0b08; border: 1px solid var(--line-2);
  box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,176,0,.06);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  background: var(--panel-2); padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.tb-dot { width: 11px; height: 11px; border-radius: 50%; }
.tb-dot.r { background: #e0644f; } .tb-dot.y { background: var(--amber); } .tb-dot.g { background: var(--teal); }
.term-title { margin-left: 10px; font-size: 12px; color: var(--faint); }

.term-screen {
  padding: 18px 20px; min-height: 330px; max-height: 430px;
  overflow-y: auto; font-size: 13.5px; cursor: text; outline: none;
}
#term-out { white-space: pre-wrap; word-break: break-word; }
#term-out .t-dim { color: var(--dim); }
#term-out .t-amb { color: var(--amber); }
#term-out .t-teal { color: var(--teal); }
#term-out .t-red { color: var(--red); }
#term-out a { color: var(--teal); border-bottom: 1px dashed var(--teal); }
#term-out a:hover { color: var(--amber); border-color: var(--amber); }

.term-line { display: flex; align-items: center; gap: 0; margin-top: 4px; }
#term-in {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--txt); font-family: var(--mono); font-size: 13.5px;
  caret-color: var(--amber); margin-left: 2px;
}

.contact-links { display: grid; gap: 12px; }
.cl-note { color: var(--dim); font-size: 17px; margin-bottom: 6px; }
.cl {
  display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center;
  border: 1px solid var(--line); background: var(--panel);
  padding: 14px 18px; transition: border-color .25s, transform .2s, background .25s;
}
.cl:hover { border-color: var(--amber-dk); transform: translateX(5px); background: var(--panel-2); }
.cl-k { color: var(--faint); font-size: 12px; letter-spacing: .08em; display: flex;}
.cl-k::before { content: "▸ "; color: var(--amber); }
.cl-v { color: var(--txt); font-size: 13.5px; word-break: break-all; }
.cl-loc { color: var(--faint); font-size: 12.5px; margin-top: 8px; }

/* ───────────────────────── footer ────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot {
  padding: 36px 28px; display: flex; flex-wrap: wrap; gap: 12px 30px;
  align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--faint);
}
.foot-mid { color: var(--dim); }
.foot .hum { color: var(--amber-2); }

/* ───────────────────────── command palette ───────────────────── */
.palette {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(5,4,2,.72); backdrop-filter: blur(4px);
  display: flex; justify-content: center; padding-top: 14vh;
}
.palette[hidden] { display: none; }
.palette-box {
  width: min(560px, 92vw); height: fit-content;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(255,176,0,.08);
  animation: pal-in .18s ease;
}
@keyframes pal-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.palette-head {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.palette-head .p-sym { color: var(--amber); }
#palette-in {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--txt); font-family: var(--mono); font-size: 15px;
  caret-color: var(--amber);
}
#palette-in::placeholder { color: var(--faint); }
#palette-list { list-style: none; max-height: 300px; overflow-y: auto; padding: 6px; }
#palette-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; cursor: pointer; color: var(--dim);
  border: 1px solid transparent; font-size: 13.5px;
}
#palette-list li .pk { color: var(--faint); font-size: 11px; }
#palette-list li.sel, #palette-list li:hover {
  color: var(--txt); background: rgba(255,176,0,.07);
  border-color: rgba(255,176,0,.2);
}
#palette-list li.sel .pi, #palette-list li:hover .pi { color: var(--amber); }
.pi { color: var(--faint); margin-right: 10px; }
.palette-foot {
  border-top: 1px solid var(--line); padding: 9px 16px;
  font-size: 11px; color: var(--faint);
}

/* easter egg flash */
@keyframes hired {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: inset 0 0 180px rgba(255,176,0,.25); }
}
body.hired main { animation: hired 1.2s ease; }

/* ───────────────────────── persona switch ────────────────────── */
#persona-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 8500;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .08em;
  color: var(--amber); background: var(--panel);
  border: 1px solid var(--amber-dk); border-radius: 4px;
  padding: 8px 13px;
  transition: transform .2s ease, background .2s, border-color .2s;
}
#persona-switch:hover {
  transform: translateY(-2px);
  background: rgba(255,176,0,.1); border-color: var(--amber);
}

/* ───────────────────────── responsive ────────────────────────── */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-donut { order: -1; opacity: .8; }
  #donut { font-size: 6.5px; }
  .about-grid, .stack-grid, .contact-grid { grid-template-columns: 1fr; }
  .id-card { position: static; }
  .bar-path { display: none; }
}
@media (max-width: 720px) {
  #bar { gap: 8px; padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .bar-tabs .tab i { display: none; }
  .tab { padding: 4px 7px; font-size: 11px; }
  .status-chip { display: none; }
  .sec { padding: 72px 0; }
  .sec-num { font-size: 80px; top: -40px; }
  .rel { grid-template-columns: 86px 1fr; gap: 18px; }
  .ver { font-size: 16px; }
  .hero-name { font-size: clamp(44px, 13vw, 72px); }
  .hero-donut { display: none; }
  .hero-scroll { display: none; }
  .hero-hint { font-size: 11px; line-height: 1.5; }
  .hero-hint kbd { display: none; }
  .mon-row { grid-template-columns: 40px 1fr 90px; gap: 8px; font-size: 12px; }
  .mon-val { font-size: 11px; }
  .foot { justify-content: center; text-align: center; }
  .deploy-grid { grid-template-columns: 1fr; }
  #boot { padding: 6vh 5vw; }
  .boot-skip { bottom: 16px; right: 16px; }
  .git-item { padding-left: 36px; }
  .git-item[data-branch="side"]::before { display: none; }
  .node.side { left: 0; }
  .cl { grid-template-columns: 72px 1fr; gap: 10px; padding: 12px 14px; }
  #persona-switch {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
    font-size: 10px; padding: 6px 10px;
  }
}
@media (max-width: 480px) {
  .bar-clock { display: none; }
  .bar-left .bar-logo { font-size: 11px; }
  .wrap { padding: 0 16px; }
  .hero-sub { font-size: 14px; }
  .btn { font-size: 13px; padding: 10px 16px; }
  .pkg { padding: 18px 16px; }
  .pkg pre { font-size: 12px; }
  .md blockquote { font-size: 16px; padding: 14px 16px; }
  .sec-head h2 { font-size: 20px; }
}



.contact-grid > * {
  min-width: 0;
}

.blog > * {
  min-width: 0;
}

.cat-medium {
  display: block;
}

/* ───────────────────────── reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .rv { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}




/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #4e4e4e; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #0a090f; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #0078ff; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #ffffff;  /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #0078ff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/*--------------------------------------------------------------
# Experience Section
--------------------------------------------------------------*/
.experience-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), transparent 60%)
  );
  border-radius: 3px;
}

.experience-card {
  position: relative;
  padding-left: 72px;
  margin-bottom: 48px;
}

.experience-card:last-child {
  margin-bottom: 0;
}

.experience-marker {
  position: absolute;
  left: 0;
  top: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 3px solid var(--exp-color, var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--exp-color, var(--accent-color));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 85%);
  z-index: 2;
  animation: exp-marker-pulse 3s ease-in-out infinite;
}

@keyframes exp-marker-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 85%);
  }
  50% {
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 92%);
  }
}

.experience-card-body {
  background: var(--surface-color);
  border-radius: 16px;
  padding: 28px 32px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-left: 4px solid var(--exp-color, var(--accent-color));
  box-shadow: 0 8px 30px color-mix(in srgb, var(--default-color), transparent 92%);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.experience-card:hover .experience-card-body {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 82%);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.experience-period {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--exp-color, var(--accent-color));
  margin-bottom: 6px;
}

.experience-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--heading-color);
}

.experience-company {
  margin: 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.experience-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--exp-color, var(--accent-color));
  color: #fff;
  animation: exp-badge-glow 2.5s ease-in-out infinite;
}

.experience-badge-alt {
  background: color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 15%);
  color: var(--exp-color, var(--accent-color));
  border: 1px solid color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 50%);
  animation: none;
}

@keyframes exp-badge-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.experience-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 94%);
  border: 1px dashed color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 70%);
}

.exp-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  transition: transform 0.3s ease;
}

.exp-flow-node i {
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.exp-flow-highlight {
  border-color: var(--exp-color, var(--accent-color));
  background: color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 88%);
}

.exp-flow-highlight i {
  color: var(--exp-color, var(--accent-color));
}

.experience-card:hover .exp-flow-highlight {
  transform: scale(1.05);
}

.exp-flow-arrow {
  position: relative;
  width: 28px;
  height: 2px;
  background: color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 40%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-flow-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--exp-color, var(--accent-color));
}

.exp-flow-arrow.bidirectional {
  width: auto;
  height: auto;
  background: none;
}

.exp-flow-arrow.bidirectional::after {
  display: none;
}

.exp-flow-icon {
  font-size: 16px;
  color: var(--exp-color, var(--accent-color));
  animation: exp-flow-sway 1.8s ease-in-out infinite;
}

.exp-flow-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--exp-color, var(--accent-color));
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: exp-dot-travel 2s ease-in-out infinite;
}

@keyframes exp-dot-travel {
  0% { left: 0; opacity: 1; }
  80% { left: calc(100% - 8px); opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@keyframes exp-flow-sway {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
}

.experience-story {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.experience-tags span {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 88%);
  color: var(--exp-color, var(--accent-color));
  border: 1px solid color-mix(in srgb, var(--exp-color, var(--accent-color)), transparent 65%);
  transition: transform 0.25s ease, background 0.25s ease;
}

.experience-card:hover .experience-tags span {
  transform: translateY(-2px);
}

.experience-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--exp-color, var(--accent-color));
}

.experience-link i {
  transition: transform 0.25s ease;
}

.experience-link:hover i {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .experience-marker,
  .experience-badge,
  .exp-flow-dot,
  .exp-flow-icon {
    animation: none;
  }

  .experience-card:hover .experience-card-body,
  .experience-card:hover .exp-flow-highlight,
  .experience-card:hover .experience-tags span {
    transform: none;
  }
}

@media (max-width: 768px) {
  .experience-timeline::before {
    left: 20px;
  }

  .experience-card {
    padding-left: 56px;
  }

  .experience-marker {
    width: 44px;
    height: 44px;
    font-size: 18px;
    top: 20px;
  }

  .experience-card-body {
    padding: 20px;
  }

  .experience-flow {
    justify-content: center;
  }

  .exp-flow-node {
    min-width: 64px;
    padding: 8px 6px;
    font-size: 10px;
  }

  .experience-header {
    flex-direction: column;
  }
}
