:root {
  --bg: #0c0e10;
  --bg-window: #101418;
  --fg: #d6f5d6;
  --accent: #33ff66;
  --accent-dim: #1e8f3e;
  --muted: #7d9a86;
  --red: #ff5f56;
  --yellow: #ffbd2e;
  --green: #27c93f;
  --border: #23282b;
  --font-mono: "Fira Code", "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* CRT scanline overlay, purely decorative */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #1b1f22;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.titlebar-name {
  color: var(--muted);
  font-size: 13px;
}

.titlebar-name a {
    color: inherit;
    text-decoration: none;
}

.tabs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 10px 16px;
  background: #14181b;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 41px;
  z-index: 19;
}

.nav-toggle-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(51, 255, 102, 0.06);
}

.hamburger-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 6px; }
.hamburger-line:nth-child(3) { top: 12px; }

.nav-toggle-checkbox:checked ~ .nav-toggle-btn .hamburger-line:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle-checkbox:checked ~ .nav-toggle-btn .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle-checkbox:checked ~ .nav-toggle-btn .hamburger-line:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 12px;
}

.tab-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: thin;
}

.tab {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.tab:hover, .tab:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(51, 255, 102, 0.06);
}

@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; }

  .nav-toggle-btn { display: inline-flex; }

  .nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-toggle-checkbox:checked ~ .nav-menu {
    display: flex;
  }

  .tab-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    overflow-x: visible;
  }

  .social-links {
    margin-left: 0;
  }
}

.social-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}


.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-link:hover, .social-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(51, 255, 102, 0.06);
}


.terminal-window {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.prompt-block {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.line {
  margin: 0 0 10px;
  word-break: break-word;
}

.prompt { color: var(--accent); font-weight: 600; }
.colon { color: var(--muted); }
.path { color: #5fb3ff; }
.dollar { color: var(--muted); margin-right: 4px; }

.profile-photo {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 16px auto 0;
  border: 2px solid var(--accent-dim);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(51, 255, 102, 0.25);
  flex-shrink: 0;
}

.ascii-art {
  text-align:center;
  color: var(--accent-dim);
  font-size: 11px;
  line-height: 1.2;
  margin: 8px 0 0;
  overflow-x: auto;
}

.output {
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-left: 4px;
  color: var(--fg);
}

.output p { margin: 6px 0; }

.about-title {
  color: var(--muted);
  font-weight: 600;
}

.log-list { list-style: none; margin: 0; padding: 0; }

.log-entry {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.log-entry:last-child { border-bottom: none; }

.log-head { color: #5fb3ff; margin-bottom: 4px; font-weight: 600; }
.log-tag { color: var(--muted); font-weight: 400; }

.log-entry ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.log-entry li {
  margin-bottom: 4px;
}
.log-entry li::marker { color: var(--accent-dim); }

.skills-category {
  margin-bottom: 18px;
}
.skills-category:last-child {
  margin-bottom: 0;
}

.skills-path {
  color: #5fb3ff;
  margin: 0 0 8px;
  font-weight: 600;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.pkg {
  background: #16201a;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pkg::before { content: "▸ "; color: var(--muted); }

a.pkg:hover, a.pkg:focus-visible {
  color: #33ff66;
  border-color: #33ff66;
  background: rgba(51, 255, 102, 0.12);
}

.links-list {
  display: flex;
  flex-direction: column;
}

.link-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.link-row:hover, .link-row:focus-visible {
  background: rgba(51, 255, 102, 0.06);
}

.link-name {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.link-name::before {
  content: "→ ";
  color: var(--accent-dim);
}

.link-desc {
  color: var(--muted);
  font-size: 13px;
}

.link-desc::before {
  content: "# ";
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 6px; }

a { color: #5fb3ff; }
a:hover, a:focus-visible { color: var(--accent); }

footer.prompt-block { margin-top: 60px; }

@media (max-width: 560px) {
  .tabs { top: 41px; }
  .ascii-art { font-size: 9px; }
}
