:root {
  --void: #030713;
  --desktop: #060c1b;
  --navy: #071126;
  --panel: #09162d;
  --panel-light: #0d1d39;
  --line: #24446a;
  --line-soft: #172d4b;
  --blue: #1358d8;
  --blue-hot: #2879ff;
  --cyan: #4de7ff;
  --cyan-dim: #2492a7;
  --paper: #e8f6ff;
  --muted: #7e9ab8;
  --amber: #ffc657;
  --green: #57f287;
  --red: #ff6577;
  --shadow: #01030a;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--void); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -30%, rgba(25, 88, 204, .24), transparent 57%),
    linear-gradient(180deg, #060c1b 0%, #02050e 100%);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 14px;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, .screen:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

.crt {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: screen;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #a9caff;
  background: #01040c;
  transition: opacity .35s ease, visibility .35s ease;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(720px, 100%); }
.boot p { margin: 0 0 7px; }
.boot-log { min-height: 190px; margin-top: 28px; color: #7690b3; line-height: 1.75; }
.boot-log .ok { color: var(--green); }
#skip-boot { margin-top: 26px; padding: 9px 13px; border: 1px solid #264d7b; color: var(--cyan); background: transparent; cursor: pointer; }
#skip-boot:hover { color: #001020; background: var(--cyan); }

.desktop {
  width: min(1480px, calc(100% - 42px));
  margin: 0 auto;
  padding: 19px 0 16px;
  opacity: 0;
  transform: scale(.995);
  transition: .3s ease .1s;
}
.desktop.ready { opacity: 1; transform: none; }

.system-bar, .desktop-footer { display: flex; align-items: center; justify-content: space-between; }
.system-bar { height: 40px; margin-bottom: 13px; }
.brand { color: var(--paper); font: 700 1rem "Space Grotesk", sans-serif; letter-spacing: .06em; }
.brand-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 9px; color: #00102a; background: var(--cyan); }
.brand span:last-child { color: var(--cyan); }
.system-meta { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.window {
  border: 1px solid #315d91;
  background: var(--navy);
  box-shadow: 12px 16px 0 rgba(0, 0, 0, .42), 0 35px 100px rgba(0,0,0,.45), inset 0 0 45px rgba(31, 103, 235, .025);
}

.window-titlebar {
  display: flex;
  align-items: center;
  height: 37px;
  color: #fff;
  background: linear-gradient(90deg, #0e47b6, #1763df 60%, #0b3e9f);
  font-size: .75rem;
  letter-spacing: .05em;
}
.window-icon { display: grid; place-items: center; align-self: stretch; width: 45px; margin-right: 12px; color: var(--navy); background: var(--cyan); font-weight: 600; }
.window-actions { display: flex; align-self: stretch; margin-left: auto; }
.window-actions i { display: grid; place-items: center; width: 37px; border-left: 1px solid rgba(255,255,255,.2); font-style: normal; }

.menu-bar {
  display: flex;
  min-height: 42px;
  padding: 5px 9px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #0b1830;
  scrollbar-width: none;
}
.menu-bar::-webkit-scrollbar { display: none; }
.menu-bar button { flex: 0 0 auto; padding: 7px 11px; border: 0; color: #abc1d9; background: transparent; cursor: pointer; }
.menu-bar button:hover, .menu-bar button.active { color: var(--navy); background: var(--cyan); }
kbd { color: var(--cyan); font: inherit; font-size: .65rem; }
.menu-bar button:hover kbd, .menu-bar button.active kbd { color: #092e53; }

.workspace { display: grid; grid-template-columns: 262px minmax(0, 1fr); height: clamp(480px, calc(100vh - 240px), 700px); min-height: 480px; }
.file-panel { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); background: #071329; }
.panel-heading { padding: 14px 15px 13px; border-bottom: 1px solid var(--line-soft); }
.panel-heading span { display: block; margin-bottom: 5px; color: var(--cyan); font-size: .67rem; letter-spacing: .1em; }
.panel-heading small { color: var(--muted); font-size: .64rem; }

.file-list { flex: 1; padding: 10px 8px; overflow-y: auto; }
.file-list button {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  width: 100%;
  padding: 9px 7px;
  border: 1px solid transparent;
  color: #a9bfd7;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.file-list button:hover { border-color: #18365d; background: #0a1d3d; }
.file-list button.active { border-color: #2761b0; color: white; background: #0c2c62; box-shadow: inset 3px 0 var(--cyan); }
.file-list b { overflow: hidden; font-size: .68rem; font-weight: 500; text-overflow: ellipsis; }
.file-list small { color: #5e7897; font-size: .56rem; }
.file-icon { display: grid; place-items: center; width: 24px; height: 20px; color: #061020; background: var(--cyan); font-size: .51rem; font-weight: 600; }
.file-icon.com, .file-icon.db { background: #70a5ff; }
.file-icon.sys { background: var(--amber); }
.file-icon.dir { background: #72d6aa; }
.file-icon.lnk { background: #b891ff; }
.file-icon.pdf { color: white; background: #e5576b; }

.disk-space { padding: 14px 15px; border-top: 1px solid var(--line-soft); color: #6f89a8; font-size: .57rem; }
.disk-space div { display: flex; justify-content: space-between; margin-bottom: 8px; }
.disk-space b { color: var(--cyan); font-weight: 500; }
.disk-space > i { display: block; height: 6px; margin-bottom: 7px; background: #152b47; }
.disk-space em { display: block; width: 73%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.screen { position: relative; min-width: 0; overflow: auto; background: radial-gradient(circle at 84% 8%, rgba(30, 99, 215, .12), transparent 32rem), #050f22; scrollbar-color: #244f80 #08142a; scrollbar-width: thin; }
.screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(47, 99, 155, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 99, 155, .035) 1px, transparent 1px); background-size: 30px 30px; }
.view { position: relative; z-index: 1; min-height: 100%; padding: clamp(28px, 4vw, 54px); animation: view-in .2s ease-out both; }
.view-label { margin-bottom: 28px; color: var(--cyan); font-size: .66rem; letter-spacing: .13em; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); align-items: center; gap: clamp(35px, 6vw, 90px); }
.prompt-line { margin-bottom: 18px; color: #7495bb; font-size: .7rem; }
h1 { margin: 0; color: white; font: 700 clamp(3.4rem, 6.8vw, 7.2rem)/.76 "Space Grotesk", sans-serif; letter-spacing: -.075em; }
h1 span { color: transparent; -webkit-text-stroke: 1px var(--cyan); text-shadow: 5px 5px 0 rgba(27, 100, 218, .15); }
.hero-role { margin: 29px 0 0; color: #cae3f6; font-weight: 500; line-height: 1.7; letter-spacing: .035em; }
.hero-role em { color: var(--cyan); font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions button, .dos-button { padding: 10px 13px; border: 1px solid var(--cyan-dim); color: var(--cyan); background: rgba(7, 24, 48, .78); cursor: pointer; }
.hero-actions button:first-child, .dos-button.primary { color: #041326; background: var(--cyan); font-weight: 600; }
.hero-actions button:hover, .dos-button:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 #174071; }

.system-card { border: 1px solid #22528c; background: rgba(7, 22, 48, .86); box-shadow: 8px 8px 0 rgba(3, 10, 23, .7); }
.ascii-avatar { padding: 24px; border-bottom: 1px solid #214d80; color: var(--cyan); background: #081a38; font-size: clamp(.75rem, 1.2vw, 1rem); line-height: 1.35; text-align: center; white-space: pre; }
.system-card dl { margin: 0; padding: 13px 18px; }
.system-card dl div { display: grid; grid-template-columns: 65px 1fr; padding: 7px 0; border-bottom: 1px dashed #193a62; font-size: .65rem; }
.system-card dl div:last-child { border-bottom: 0; }
.system-card dt { color: #5f7fa4; }
.system-card dd { margin: 0; color: #bed7ec; }
.system-card dd i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(35px, 6vh, 70px); border: 1px solid #1c3f6b; background: rgba(7,21,43,.74); }
.metric-row > div { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 20px; border-right: 1px solid #1c3f6b; }
.metric-row > div:last-child { border-right: 0; }
.metric-row strong { color: var(--cyan); font: 700 1.6rem "Space Grotesk", sans-serif; }
.metric-row span { color: #6f8dab; font-size: .58rem; line-height: 1.5; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid #20456f; }
.page-heading h2 { margin: 7px 0 0; color: white; font: 700 clamp(1.9rem, 4vw, 3.4rem) "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.page-heading p { max-width: 370px; margin: 0; color: #7d9abb; font-size: .67rem; line-height: 1.6; text-align: right; }
.command-tag { color: var(--cyan); font-size: .62rem; letter-spacing: .1em; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr); gap: 18px; }
.dos-card { padding: 22px; border: 1px solid #1e436f; background: rgba(7, 22, 47, .82); }
.dos-card h3 { margin: 0 0 14px; color: var(--cyan); font-size: .72rem; font-weight: 500; letter-spacing: .08em; }
.dos-card p { margin: 0 0 12px; color: #b3c9db; line-height: 1.75; }
.dos-card p:last-child { margin-bottom: 0; }
.fact-list { display: grid; gap: 10px; }
.fact-list div { padding-bottom: 10px; border-bottom: 1px dashed #1b3b61; }
.fact-list dt { margin-bottom: 4px; color: #59799c; font-size: .58rem; }
.fact-list dd { margin: 0; color: #d1e5f5; font-size: .72rem; }

.timeline { position: relative; margin-left: 12px; padding-left: 30px; border-left: 1px solid #245181; }
.job { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 25px; margin-bottom: 15px; padding: 20px; border: 1px solid #1c416d; background: rgba(7, 22, 48, .82); }
.job::before { content: ""; position: absolute; left: -36px; top: 28px; width: 9px; height: 9px; border: 2px solid #061125; background: var(--cyan); box-shadow: 0 0 0 1px #26649d; }
.job.current { border-color: #266ba4; box-shadow: inset 3px 0 var(--cyan); }
.job-date { color: var(--amber); font-size: .67rem; line-height: 1.55; }
.job-date span { display: block; margin-top: 7px; color: var(--green); font-size: .56rem; }
.job h3 { margin: 0; color: white; font-size: .87rem; }
.job h4 { margin: 6px 0 11px; color: var(--cyan); font-size: .65rem; font-weight: 400; }
.job p { margin: 0; color: #8ba6c0; font-size: .67rem; line-height: 1.65; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.skill-box { padding: 18px; border: 1px solid #1d416b; background: rgba(7,22,47,.84); }
.skill-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.skill-head h3 { margin: 0; color: white; font-size: .75rem; }
.skill-head span { color: var(--cyan); font-size: .55rem; }
.skill-meter { display: flex; gap: 3px; margin-bottom: 14px; }
.skill-meter i { flex: 1; height: 5px; background: #173352; }
.skill-meter i.on { background: linear-gradient(90deg, var(--blue-hot), var(--cyan)); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 5px 7px; border: 1px solid #20466f; color: #8eabc5; background: #0a1c38; font-size: .57rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card { position: relative; min-height: 190px; padding: 20px; border: 1px solid #1e436e; background: rgba(7,22,47,.84); }
.project-card::after { content: attr(data-index); position: absolute; right: 15px; top: 11px; color: #183a61; font: 700 2.3rem "Space Grotesk", sans-serif; }
.project-card .project-icon { display: inline-block; margin-bottom: 35px; color: var(--cyan); }
.project-card h3 { position: relative; z-index: 1; margin: 0 0 8px; color: white; font-size: .78rem; }
.project-card p { margin: 0; color: #7997b6; font-size: .63rem; line-height: 1.65; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; padding: 18px; border: 1px solid #1f466f; color: #cce1ef; background: rgba(7,22,47,.84); text-decoration: none; }
.contact-link + .contact-link { margin-top: 10px; }
.contact-link span { color: #6383a5; font-size: .58rem; }
.contact-link b { color: var(--cyan); font-size: .7rem; font-weight: 500; }
.contact-link:hover { border-color: var(--cyan); background: #0b2b55; }
.quote { display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; }
.quote blockquote { margin: 0; color: white; font: 600 clamp(1.4rem, 3vw, 2.4rem)/1.25 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.quote small { color: #6685a4; }

.pdf-view { display: grid; place-items: center; min-height: 100%; text-align: center; }
.pdf-box { width: min(540px, 100%); padding: 35px; border: 1px solid #25568b; background: rgba(7,22,47,.9); box-shadow: 9px 9px 0 #020817; }
.pdf-icon-large { width: 82px; margin: 0 auto 25px; padding: 19px 10px; color: white; background: #df4f62; font-weight: 600; }
.pdf-box h2 { margin: 0 0 10px; color: white; font: 700 1.6rem "Space Grotesk", sans-serif; }
.pdf-box p { margin: 0 0 24px; color: #7e9ab7; line-height: 1.65; }
.pdf-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.pdf-actions a { display: inline-block; text-decoration: none; }

.command-area { padding: 9px 15px 10px; border-top: 1px solid #315d91; background: #020817; }
.console-message { height: 17px; overflow: hidden; margin-bottom: 5px; color: #587594; font-size: .59rem; white-space: nowrap; text-overflow: ellipsis; }
#command-form { display: flex; align-items: center; min-width: 0; }
#command-form label { flex: 0 0 auto; color: var(--cyan); font-weight: 500; }
#command-input { flex: 1; min-width: 15px; padding: 0 5px; border: 0; outline: 0; color: white; caret-color: transparent; background: transparent; text-transform: uppercase; }
.block-cursor { flex: 0 0 auto; width: 8px; height: 15px; background: var(--cyan); animation: blink .9s steps(2, jump-none) infinite; }
#command-form:focus-within .block-cursor { display: block; }

.status-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 29px; padding: 5px 10px; color: #b8d6ea; background: #1155bd; font-size: .58rem; letter-spacing: .03em; }
.status-bar > span:last-child { text-align: right; }
.status-hints { display: flex; gap: 11px; }
.status-hints b { color: var(--cyan); font-weight: 500; }
.desktop-footer { height: 38px; color: #45617e; font-size: .57rem; letter-spacing: .08em; }
.noscript { padding: 20px; color: white; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }

@media (max-width: 960px) {
  .desktop { width: calc(100% - 22px); }
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .system-card { display: none; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .status-hints { display: none; }
  .status-bar { grid-template-columns: 1fr 1fr; }
  .status-bar > span:last-child { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 13px; }
  .desktop { width: 100%; padding: 0; }
  .system-bar { height: 48px; padding: 0 12px; margin: 0; }
  .system-meta > span { display: none; }
  .window { border-right: 0; border-left: 0; box-shadow: none; }
  .window-titlebar { height: 34px; }
  .window-titlebar strong { max-width: calc(100vw - 145px); overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
  .window-actions i { width: 29px; }
  .menu-bar { min-height: 39px; }
  .menu-bar button { padding: 6px 9px; font-size: .66rem; }
  .workspace { display: block; height: calc(100dvh - 231px); min-height: 420px; }
  .file-panel { display: block; height: 57px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .panel-heading, .disk-space { display: none; }
  .file-list { display: flex; gap: 3px; height: 100%; padding: 6px; overflow: visible; }
  .file-list button { display: flex; flex: 0 0 auto; width: auto; padding: 6px 9px; }
  .file-list button small { display: none; }
  .file-list b { margin-left: 6px; font-size: .58rem; }
  .file-icon { width: 21px; height: 18px; }
  .screen { height: calc(100% - 57px); }
  .view { padding: 24px 18px 30px; }
  .view-label { margin-bottom: 20px; }
  h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .hero-role { font-size: .7rem; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row > div { padding: 11px 15px; border-right: 0; border-bottom: 1px solid #1c3f6b; }
  .metric-row > div:last-child { border-bottom: 0; }
  .page-heading { display: block; }
  .page-heading p { margin-top: 12px; text-align: left; }
  .profile-grid, .skills-grid, .project-grid, .contact-layout { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .timeline { padding-left: 20px; }
  .job::before { left: -26px; }
  .command-area { padding-left: 10px; padding-right: 10px; }
  #command-form { font-size: .72rem; }
  .status-bar { min-height: 26px; }
  .desktop-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
