:root {
  color-scheme: dark;
  --bg: #121212;
  --sidebar: #1a1a1a;
  --panel: #1e1e1e;
  --text: #e8e8e8;
  --muted: #a8a8a8;
  --line: #383838;
  --accent: #f2f2f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.65 Poppins, Arial, sans-serif; }
a { color: inherit; }
.app-bar {
  position: sticky; z-index: 4; top: 0; height: 64px; display: flex; align-items: stretch;
  padding: 0; border-bottom: 1px solid var(--line); background: var(--sidebar);
}
.app-title { display: flex; align-items: center; width: 190px; padding: 0 46px; border-right: 1px solid var(--line); font: 600 18px monospace; text-decoration: none; }
.app-title span { margin-right: 7px; }
.app-title i { width: 11px; height: 18px; margin-left: 8px; background: currentColor; animation: blink 1s steps(2) infinite; }
.tab-nav { display: flex; height: 100%; }
.tab-nav a { display: flex; align-items: center; padding: 0 26px; border-right: 1px solid var(--line); color: var(--text); font: 14px monospace; text-decoration: none; }
.tab-nav a:hover { background: #2a2a2a; }
.sidebar nav a:hover, .terminal-action:hover { color: #fff; }
.page-shell { display: flex; max-width: 1480px; margin: auto; }
.sidebar {
  position: sticky; top: 64px; width: 270px; height: calc(100vh - 64px); flex-shrink: 0; overflow-y: auto;
  padding: 24px 0; border-right: 1px solid var(--line); background: var(--sidebar);
}
.profile { margin-bottom: 16px; padding: 0 20px 16px; border-bottom: 1px dashed var(--line); color: var(--muted); font: 12px/1.55 monospace; }
.profile img { display: block; width: 48px; height: 48px; margin-bottom: 8px; border: 1px solid var(--line); object-fit: cover; object-position: center 35%; }
.profile p { margin: 0; }
.profile .profile-name { color: var(--text); font-weight: 700; }
.profile p + p { margin-top: 4px; }
.profile-socials { display: flex; gap: 18px; margin-top: 14px; }
.profile-socials a { color: var(--text); line-height: 0; }
.profile-socials a:hover { color: var(--muted); }
.profile-socials svg { width: 23px; height: 23px; fill: currentColor; }
.sidebar-block { margin: 0 0 24px; padding: 0 20px; }
.sidebar-label { margin: 0 0 8px; color: var(--muted); font: 11px Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a { padding: 6px 8px; color: var(--muted); border-radius: 4px; font: 13px monospace; text-decoration: none; }
.sidebar nav a:hover { background: #2a2a2a; }
.status-list { display: grid; gap: 5px; margin: 0; padding: 0; color: var(--muted); font: 12px/1.45 monospace; list-style: none; }
.status-list li { display: flex; gap: 6px; }
.status-list li::before { width: 6px; height: 6px; flex-shrink: 0; margin-top: .45em; border-radius: 50%; background: var(--text); content: ""; }
.quick-stats p { margin: 0; color: var(--muted); font: 12px/2 monospace; }
.quick-stats strong { color: var(--text); font-weight: 700; }
.content { width: min(100%, 960px); padding: 32px 42px 56px; }
.intro { margin-bottom: 52px; }
.terminal { overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.terminal-title { display: flex; align-items: center; height: 34px; gap: 6px; padding: 0 11px; border-bottom: 1px solid var(--line); }
.terminal-title span { width: 8px; height: 8px; border: 1px solid #777; border-radius: 50%; }
.terminal-title p { margin: 0 auto; transform: translateX(-18px); color: var(--muted); font: 11px monospace; }
.terminal-body { padding: 18px 20px; color: #d6d6d6; font: 13px/1.75 monospace; }
.terminal-body > p { margin: 0 0 12px; }
.terminal-body b { color: #fff; font-weight: 400; }
.terminal-output { margin: 5px 0 17px; padding-left: 17px; }
.terminal-output h1, .terminal-output h2 { margin: 0 0 7px; color: #fff; font: 500 14px/1.5 monospace; }
.terminal-output h2 { margin-top: 17px; }
.terminal-output p { max-width: 680px; margin: 0 0 8px; color: #c0c0c0; }
.terminal-command-output { padding-left: 17px; color: var(--muted); }
.cursor { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -3px; background: #e8e8e8; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-action { display: inline-block; margin-top: 16px; color: var(--muted); font: 12px monospace; text-decoration: none; }
.content-section { margin-bottom: 54px; scroll-margin-top: 72px; }
.section-heading { margin-bottom: 18px; }
.section-heading p { margin: 0 0 5px; color: var(--muted); font: 12px monospace; }
.section-heading h2 { margin: 0; color: var(--text); font-size: 20px; font-weight: 500; }
.section-heading h2 span { color: var(--muted); font: 12px monospace; }
.document-list { border-top: 1px solid var(--line); }
.experience.file-card { position: relative; padding: 18px 0 21px; border-bottom: 1px solid var(--line); }
.file-name { margin: 0 0 12px; color: #d0d0d0; font: 12px monospace; }
.file-card-main { display: grid; grid-template-columns: 165px 1fr; gap: 16px; }
.file-card-main time { color: var(--muted); font: 12px/1.55 monospace; }
.file-card-main h3 { margin: 0 0 2px; font-size: 15px; font-weight: 500; }
.file-card-main p { margin: 0; color: var(--muted); font-size: 13px; }
.file-highlights { margin: 13px 0 14px 181px; padding-left: 17px; color: #c8c8c8; font-size: 13px; line-height: 1.65; }
.file-highlights li + li { margin-top: 5px; }
.file-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 181px; padding-right: 74px; }
.file-skills span { color: #d2d2d2; font: 11px monospace; }
.file-skills span::after { margin-left: 6px; color: #555; content: "·"; }
.file-card .tag { position: absolute; top: 20px; right: 0; color: var(--muted); font: 10px monospace; }
.education-card .file-highlights { display: none; }
.education-card .file-skills { display: none; }
.project-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.project-filter { padding: 0; border: 0; background: transparent; color: var(--muted); font: 12px monospace; cursor: pointer; }
.project-filter:not(:last-child)::after { margin-left: 6px; color: #555; content: ""; }
.project-filter.active, .project-filter:hover { color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project { min-height: 156px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.project:hover { background: #1d1d1d; }
.project-number { color: var(--muted); font: 11px monospace; }
.project h3 { margin: 20px 0 7px; font: 500 14px/1.4 monospace; }
.project p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.project-bottom { display: flex; justify-content: space-between; margin-top: 14px; color: #bbb; }
.project-tech { font: 10px monospace; }
.project-arrow { color: var(--muted); }
.skill-groups { display: grid; gap: 0; border-top: 1px solid var(--line); }
.skill-group { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.skill-group h3, .skill-group p { margin: 0; font-size: 13px; }
.skill-group h3 { color: var(--muted); font-weight: 400; }
.skill-group p { color: #cdcdcd; }
.quest-list { display: grid; gap: 9px; max-width: 480px; margin-top: 16px; font: 12px monospace; }
.quest { display: grid; grid-template-columns: 1.3fr 1.2fr 40px; align-items: center; gap: 12px; }
.quest p { margin: 0; color: #d0d0d0; }
.quest div { height: 4px; background: var(--line); }
.quest div span { display: block; height: 100%; background: #d0d0d0; }
.quest strong { color: var(--muted); font-weight: 400; }
.contact { margin-top: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.contact p { margin: 0 0 7px; color: var(--muted); font: 12px monospace; }
.contact h2 { margin: 0 0 12px; font-size: 21px; font-weight: 500; }
.contact a { color: #d5d5d5; font: 13px monospace; }
footer { padding: 20px 0 0; color: #777; font: 11px monospace; }
/* Experience document cards */
#experience-list.document-list { display: grid; gap: 12px; border-top: 0; }
#experience-list .experience.file-card {
  overflow: hidden; padding: 0; border: 1px solid #bfbfbf; border-radius: 4px;
  background: #fbfbfb; color: #191919;
}
#experience-list .file-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 45px; padding: 8px 14px; border-bottom: 1px solid #cfcfcf; background: #f1f1f1;
}
#experience-list .file-name { margin: 0; color: #252525; font: 12px monospace; }
#experience-list .file-name::before {
  display: inline-grid; width: 16px; height: 16px; margin-right: 9px; border: 1px solid #a8a8a8;
  color: #777; content: "·"; place-items: center; vertical-align: -3px;
}
#experience-list .file-card-header time { color: #333; font: 12px monospace; white-space: nowrap; }
#experience-list .file-card-content { padding: 17px 20px 14px; }
#experience-list .file-card-content h3 { margin: 0 0 6px; color: #151515; font: 600 16px Poppins, Arial, sans-serif; }
#experience-list .organization { margin: 0; color: #303030; font: 13px monospace; }
#experience-list .file-highlights {
  display: grid; gap: 9px; margin: 20px 0 15px; padding: 0; color: #555;
  font: 13px/1.65 monospace; list-style: none;
}
#experience-list .file-highlights li { position: relative; padding-left: 40px; }
#experience-list .file-highlights li::before { position: absolute; left: 0; color: #777; content: "// //"; }
#experience-list .file-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
#experience-list .file-skills span {
  padding: 5px 16px; border: 1px solid #c8c8c8; border-radius: 4px; background: #f1f1f1;
  color: #333; font: 11px Poppins, Arial, sans-serif;
}
#experience-list .file-skills span::after { content: none; }

@media (max-width: 800px) {
  .sidebar { display: none; }
  .content { width: 100%; padding: 26px 18px 40px; }
  .app-title { width: auto; padding: 0 18px; }
  .tab-nav { overflow-x: auto; }
  .tab-nav a { padding: 0 14px; font-size: 12px; }
  .file-card-main { grid-template-columns: 1fr; gap: 3px; }
  .file-highlights, .file-skills { margin-left: 0; padding-right: 0; }
  .file-card .tag { position: static; display: block; margin-top: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .skill-group { grid-template-columns: 1fr; gap: 4px; }
  #experience-list .file-card-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  #experience-list .file-highlights li { padding-left: 0; }
  #experience-list .file-highlights li::before { position: static; margin-right: 8px; }
}
