/* SARJAK.EXE — style.css
   Default theme is DOS. html[data-theme="neo"] overrides live at the bottom. */

:root {
  --bg:      #000080;   /* classic DOS blue */
  --bg-dark: #00005a;
  --text:    #ffffff;
  --dim:     #aaaaaa;
  --soft:    #c0c0d0;   /* body copy: a step below white so highlights stand out */
  --yellow:  #ffff55;
  --cyan:    #55ffff;
  --green:   #55ff55;
  --red:     #ff5555;
  --border:  #aaaaaa;
  --win-bg:  #000080;
  --ff: 'VT323', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--ff);
  font-size: 20px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 40px;
}

/* ── CANVAS BG (neo theme only) ── */
#bg {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
}

/* ── TOP MENU BAR ── */
#menubar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: var(--cyan);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px;
  font-size: 20px;
}

.menu-title {
  font-weight: bold;
  color: #000000;
  letter-spacing: 1px;
}

.menu-links {
  display: flex;
  gap: 4px;
}

.mlink {
  color: #000000;
  text-decoration: none;
  padding: 0 10px;
  position: relative;
}

.mlink::before {
  content: attr(data-key) " ";
  color: var(--bg-dark);
  font-weight: bold;
}

.mlink:hover,
.mlink.active {
  background: var(--bg);
  color: var(--yellow);
}

.mlink.active::before { color: var(--dim); }

.theme-btn {
  font: inherit;
  color: #000000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  margin-left: 6px;
  border-left: 1px solid rgba(0,0,0,0.4);
}

.theme-btn::before { content: "\25BA  "; }

.theme-btn:hover {
  background: var(--bg);
  color: var(--yellow);
}

/* ── MAIN ── */
main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── HERO ── */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 28px 0 8px;
}

.ascii-art {
  color: var(--yellow);
  font-size: 32px;
  line-height: 1.2;
  white-space: pre;
  text-align: left;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(255,255,85,0.4);
}

.hero-title {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  font-size: 48px;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 6px;
}

/* Out of flow, so the name itself is what gets centered. */
.cursor {
  position: absolute;
  left: 100%;
  top: 0;
  animation: blink 1s step-end infinite;
}

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

.hero-sub {
  font-size: 22px;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.hero-tagline {
  font-size: 21px;
  color: var(--dim);
  margin-bottom: 6px;
}

.hero-loc {
  font-size: 20px;
  color: var(--dim);
  margin-bottom: 20px;
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── DOS BUTTONS ── */
.dos-btn {
  font-family: var(--ff);
  font-size: 20px;
  color: #000000;
  background: var(--dim);
  text-decoration: none;
  padding: 2px 12px;
  border: 1px solid var(--text);
  transition: background 0.1s, color 0.1s;
}

.bkey::before { content: "["; }
.bkey::after  { content: "] "; }

.dos-btn:hover {
  background: var(--yellow);
  color: #000000;
  border-color: var(--yellow);
}

/* ── DOS WINDOW ── */
.dos-window {
  border: 1px solid var(--border);
  background: var(--win-bg);
  position: relative;
  padding-top: 4px;
}

.win-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--win-bg);
  color: var(--yellow);
  font-size: 20px;
  padding: 4px 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 1px;
}

.wlabel::before { content: "[ "; }
.wlabel::after  { content: " ]"; }

/* ── SECTION SPRITES ── */
.win-art {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  text-align: left;
  flex-shrink: 0;
  color: var(--cyan);
  font-variant-ligatures: none;
}
.ascii-art { font-variant-ligatures: none; }
.win-art .ac { color: var(--yellow); }
.win-art .tw { color: #ffffff; animation: twinkle 2.4s steps(1) infinite; }
.win-art .tw2 { animation-delay: 1.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  40%      { opacity: 0.25; }
  70%      { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .win-art .tw, .cursor { animation: none; }
}
.wkey::after       { content: ": "; }

.win-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── HIGHLIGHTS ── */
.hl-yellow { color: var(--yellow); }
.hl-cyan   { color: var(--cyan);   }
.hl-green  { color: var(--green);  }

/* Key phrases: brighter than the surrounding copy. VT323 has no bold, so
   DOS relies on colour alone; neo adds weight. */
.win-body p,
.win-body .job-bullets,
.win-body .ai-desc { color: var(--soft); }

strong.hl { color: #ffffff; font-weight: inherit; }

/* ── ABOUT TABLE ── */
.dos-table {
  border: 1px solid var(--border);
  overflow: hidden;
}

.dt-row {
  display: flex;
  border-bottom: 1px solid rgba(170,170,170,0.3);
  font-size: 20px;
}

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

.dt-k {
  color: var(--cyan);
  padding: 4px 14px;
  min-width: 130px;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid rgba(170,170,170,0.3);
}

.dt-v {
  padding: 4px 14px;
  color: var(--text);
}

/* ── PROJECTS ── */
.project {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proj-hdr {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.proj-num  { font-size: 22px; }
.proj-name { font-size: 26px; color: var(--yellow); }
.proj-tag  {
  font-size: 16px;
  color: #000;
  background: var(--dim);
  padding: 0 6px;
  margin-left: auto;
}

.proj-desc  { color: var(--dim); font-size: 20px; }
.proj-stack { color: var(--cyan); font-size: 18px; }

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

.dos-link {
  color: var(--green);
  text-decoration: none;
  font-size: 20px;
}

.dos-link:hover { color: var(--yellow); }

.divider {
  border-top: 1px solid rgba(170,170,170,0.3);
  margin: 4px 0;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-group {
  border: 1px solid rgba(170,170,170,0.3);
  padding: 12px;
}

.sg-title {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(170,170,170,0.3);
  padding-bottom: 4px;
}

.sg-list {
  list-style: none;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sg-list li::before {
  content: '> ';
  color: var(--dim);
}

/* ── CONTACT ── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.citem {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
  padding: 4px 0;
  font-size: 20px;
  border-bottom: 1px solid rgba(170,170,170,0.15);
}

.citem:hover .ci-val { color: var(--yellow); }

.ci-key {
  min-width: 100px;
  font-size: 18px;
  letter-spacing: 1px;
}

.ci-val { color: var(--text); }

/* ── BOTTOM STATUS BAR ── */
#statusbar {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--cyan);
  color: #000000;
  display: flex;
  justify-content: space-between;
  padding: 2px 12px;
  font-size: 19px;
  z-index: 100;
}

/* ── EXPERIENCE ── */
.job {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.job-hdr {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.job-co   { font-size: 24px; }
.job-role { font-size: 20px; color: var(--text); }
.job-dur  { font-size: 18px; color: var(--dim); margin-left: auto; }
.job-meta { font-size: 18px; color: var(--dim); }

.job-bullets {
  list-style: none;
  font-size: 19px;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-left: 4px;
}

.job-bullets li {
  padding-left: 2ch;
  text-indent: -2ch;
}

.job-bullets li::before {
  content: '> ';
  color: var(--border);
}

/* ── AI SECTION ── */
.hero-loc {
  font-size: 20px;
  color: var(--dim);
  margin-bottom: 20px;
}

.ai-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-item {
  border-left: 2px solid var(--cyan);
  padding: 10px 16px;
  background: rgba(0,0,0,0.2);
}

.ai-hdr {
  font-size: 20px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.ai-desc {
  color: var(--dim);
  font-size: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  #hero { gap: 16px; }
  .ascii-art { font-size: 28px; text-align: left; }
  #menubar { font-size: 17px; padding: 2px 8px; }
  .menu-title { display: none; }
  .menu-links { width: 100%; justify-content: space-between; gap: 0; }
  .mlink { padding: 0 4px; }
  #statusbar { font-size: 16px; }
  .sb-left { display: none; }
  .hero-title { font-size: 38px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-links .mlink::before { display: none; }
  .theme-btn { padding: 0 4px; margin-left: 0; }
  .theme-btn::before { content: none; }
}


/* ═══════════════════════════════════════════════════
   NEO THEME — glass panels, gradient type, warp field
   ═══════════════════════════════════════════════════ */
html[data-theme="neo"] {
  --bg-dark: #05060f;
  --text:    #e8ebff;
  --dim:     #8e96bd;
  --yellow:  #c4b5fd;
  --cyan:    #67e8f9;
  --green:   #6ee7b7;
  --border:  rgba(255,255,255,0.08);
  --win-bg:  rgba(13,16,36,0.55);
  --line:    rgba(255,255,255,0.07);
  --ff:      'Space Grotesk', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
  --soft:    #b9bfdd;
}

html[data-theme="neo"] strong.hl { color: #ffffff; font-weight: 600; }
html[data-theme="neo"] .hl-cyan  { font-weight: 500; }

html[data-theme="neo"] body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(124,58,237,0.20), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34,211,238,0.12), transparent 60%),
    var(--bg-dark);
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 48px;
}

html[data-theme="neo"] #bg         { display: block; }
html[data-theme="neo"] .scanlines  { display: none; }

/* menu bar */
html[data-theme="neo"] #menubar {
  background: rgba(8,10,24,0.6);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 10px 24px;
  font-size: 14px;
}
html[data-theme="neo"] .menu-title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.25em;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="neo"] .menu-links { gap: 2px; align-items: center; }
html[data-theme="neo"] .mlink {
  color: var(--dim);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: color .2s, background .2s, box-shadow .2s;
}
html[data-theme="neo"] .mlink::before { content: none; }
html[data-theme="neo"] .mlink:hover,
html[data-theme="neo"] .mlink.active {
  color: #fff;
  background: rgba(103,232,249,0.10);
  box-shadow: inset 0 0 0 1px rgba(103,232,249,0.35);
}
html[data-theme="neo"] .theme-btn {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  margin-left: 10px;
  border: 1px solid rgba(196,181,253,0.4);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,58,237,0.25), rgba(34,211,238,0.15));
}
html[data-theme="neo"] .theme-btn::before { content: "\25C2  "; }
html[data-theme="neo"] .theme-btn:hover { box-shadow: 0 0 20px rgba(196,181,253,0.35); }

/* layout */
html[data-theme="neo"] main { padding-top: 84px; gap: 28px; }

/* hero */
html[data-theme="neo"] #hero { padding-top: 40px; gap: 26px; }
html[data-theme="neo"] .ascii-art {
  font-family: var(--mono);
  font-size: 26px;
  line-height: 1.2;
  background: linear-gradient(180deg, #fde68a 0%, #f0abfc 55%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(196,181,253,0.35));
}
html[data-theme="neo"] .hero-title {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
  background: linear-gradient(100deg, #ffffff 10%, #c4b5fd 55%, #67e8f9 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="neo"] .cursor {
  -webkit-text-fill-color: var(--cyan);
  font-weight: 400;
}
html[data-theme="neo"] .hero-sub {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}
html[data-theme="neo"] .hero-tagline,
html[data-theme="neo"] .hero-loc { font-size: 16px; margin-bottom: 2px; }
html[data-theme="neo"] .hero-nav { margin-top: 22px; gap: 10px; }

html[data-theme="neo"] .dos-btn {
  font-family: var(--ff);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 9px 18px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
html[data-theme="neo"] .dos-btn:hover {
  background: rgba(103,232,249,0.08);
  border-color: rgba(103,232,249,0.6);
  color: #fff;
  box-shadow: 0 0 24px rgba(103,232,249,0.25);
  transform: translateY(-1px);
}
html[data-theme="neo"] .bkey {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid rgba(103,232,249,0.4);
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: 10px;
}
html[data-theme="neo"] .bkey::before,
html[data-theme="neo"] .bkey::after { content: none; }

/* panels */
html[data-theme="neo"] .dos-window {
  background: var(--win-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding-top: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
html[data-theme="neo"] .dos-window::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--yellow), transparent);
  opacity: 0.7;
}
html[data-theme="neo"] .win-title {
  background: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--text);
}
html[data-theme="neo"] .wlabel::before,
html[data-theme="neo"] .wlabel::after,
html[data-theme="neo"] .wkey::after { content: none; }
html[data-theme="neo"] .win-art {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.15;
  color: #aab1d6;
}
html[data-theme="neo"] .win-art .ac { color: var(--cyan); }
html[data-theme="neo"] .win-art .tw { color: #fde68a; }
html[data-theme="neo"] .wkey { color: var(--cyan); margin-right: 14px; }
html[data-theme="neo"] .win-body { padding: 24px 28px 28px; gap: 18px; }

/* about table */
html[data-theme="neo"] .dos-table { border: 1px solid var(--line); border-radius: 12px; }
html[data-theme="neo"] .dt-row { font-size: 15px; border-bottom-color: var(--line); }
html[data-theme="neo"] .dt-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  background: rgba(255,255,255,0.02);
  border-right-color: var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
}
html[data-theme="neo"] .dt-v { padding: 10px 16px; }

/* experience */
html[data-theme="neo"] .divider { border-top-color: var(--line); margin: 8px 0; }
html[data-theme="neo"] .job-co   { font-size: 20px; font-weight: 600; }
html[data-theme="neo"] .job-role { font-size: 15px; color: var(--dim); }
html[data-theme="neo"] .job-dur  { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
html[data-theme="neo"] .job-meta { font-size: 13px; }
html[data-theme="neo"] .job-bullets { font-size: 15px; gap: 6px; }
html[data-theme="neo"] .job-bullets li { padding-left: 1.2em; text-indent: -1.2em; }
html[data-theme="neo"] .job-bullets li::before { content: '\25B9'; display: inline-block; width: 1.2em; text-indent: 0; color: var(--cyan); }

/* ai */
html[data-theme="neo"] .ai-items { gap: 12px; }
html[data-theme="neo"] .ai-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  padding: 16px 18px;
}
html[data-theme="neo"] .ai-hdr  { font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; margin-bottom: 6px; }
html[data-theme="neo"] .ai-desc { font-size: 15px; }

/* skills */
html[data-theme="neo"] .skill-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  padding: 16px;
}
html[data-theme="neo"] .sg-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  border-bottom: none;
  margin-bottom: 12px;
  padding-bottom: 0;
}
html[data-theme="neo"] .sg-list { flex-direction: row; flex-wrap: wrap; gap: 6px; font-size: 13px; }
html[data-theme="neo"] .sg-list li {
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
html[data-theme="neo"] .sg-list li::before { content: none; }

/* contact */
html[data-theme="neo"] .citem { font-size: 15px; padding: 12px 0; border-bottom-color: var(--line); }
html[data-theme="neo"] .ci-key { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; }
html[data-theme="neo"] .citem:hover .ci-val { color: var(--cyan); }

/* status bar */
html[data-theme="neo"] #statusbar {
  background: rgba(8,10,24,0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 8px 24px;
}

@media (max-width: 600px) {
  html[data-theme="neo"] #menubar { padding: 8px 6px; font-size: 12px; }
  html[data-theme="neo"] .mlink { padding: 4px 5px; letter-spacing: 0.02em; }
  html[data-theme="neo"] .theme-btn { padding: 4px 8px; margin-left: 4px; font-size: 11px; letter-spacing: 0.05em; }
  html[data-theme="neo"] .theme-btn::before { content: none; }
  html[data-theme="neo"] main { padding-top: 64px; }
  html[data-theme="neo"] .hero-title { font-size: 40px; }
  html[data-theme="neo"] .ascii-art { font-size: 22px; }
  html[data-theme="neo"] .win-body { padding: 20px; }
  html[data-theme="neo"] .win-title { padding: 10px 20px; }
  html[data-theme="neo"] #statusbar { padding: 8px 14px; }
}

/* Section title bars share one height, sized for the 4-line sprites. */
.win-title { min-height: 73px; }
html[data-theme="neo"] .win-title { min-height: 80px; }
@media (max-width: 600px) {
  html[data-theme="neo"] .win-title { min-height: 76px; }
}
