@font-face {
  font-family: 'Commit Mono';
  src: url('./fonts/CommitMono-400-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Commit Mono';
  src: url('./fonts/CommitMono-400-Regular.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: #090909;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

:root {
  --accent: #c45ef5;
  --accent-dim: #c45ef544;
  --accent-bg: #c45ef511;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.025) 2px, rgba(0, 0, 0, 0.025) 4px);
  pointer-events: none;
  z-index: 0;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}

.d1 {
  animation-delay: 0.05s;
}

.d2 {
  animation-delay: 0.15s;
}

.d3 {
  animation-delay: 0.25s;
}

.d4 {
  animation-delay: 0.35s;
}

.d5 {
  animation-delay: 0.45s;
}

.d6 {
  animation-delay: 0.55s;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom 3px;
  animation: blink 1.1s step-end infinite;
}

nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 1.5rem;
  display: flex;
  align-items: stretch;
  background: #111;
  font-family: 'Commit Mono', 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1;
}

body {
  padding-bottom: 26px;
}

.tmux-left {
  display: flex;
  align-items: center;
  padding: 0 3px 2px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.tmux-windows {
  display: flex;
  align-items: stretch;
  flex: 1;
  overflow: hidden;
}

.tmux-win {
  display: flex;
  align-items: center;
  padding: 0 10px 2px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.tmux-win:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.tmux-win.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.tmux-win.last {
  color: rgba(255, 255, 255, 0.6);
}

.col { color: rgba(255, 255, 255, 0.9); }
.prompt-sign { color: inherit; }          /* ~ $ — change color/weight here */

.tmux-hostname {
  color: rgba(255, 255, 255, 0.38);
}

.tmux-right {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  font-size: 11px;
  flex-shrink: 0;
}

/* kept for footer links */
.nav-link {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Commit Mono', 'Space Mono', monospace;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.18s;
  padding: 7px 16px;
  border: 1.5px solid;
}

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-accent:hover {
  background: var(--accent);
  color: #090909;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.38);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.65);
}

.btn-sm {
  padding: 5px 12px;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* All sections sit above the body::before overlay */
section,
.layer {
  position: relative;
  z-index: 1;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: clamp(56px, 8vh, 96px) 0 0;
}

.hero-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-name {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-tagline {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-bio {
  border-left: 2px solid var(--accent-dim);
  padding-left: 22px;
  margin-bottom: 32px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.8;
  max-width: 620px;
}

.text-bright {
  color: rgba(255, 255, 255, 0.75);
}

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.018);
  padding: 22px 24px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.card-title {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.hi {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ── Skills ───────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.skill-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.skill-cell {
  background: #090909;
  padding: 10px 14px;
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.52);
  transition: background 0.15s, color 0.15s;
  cursor: default;
}

.skill-cell:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

.skill-group-title {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: var(--accent);
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 10px;
}

/* ── Projects ─────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }

.proj-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.018);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}

.proj-card:hover { border-color: var(--accent-dim); background: var(--accent-bg); }

.proj-file-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.proj-filename {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.85);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-comment { color: rgba(255, 255, 255, 0.2); }
.proj-meta {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.proj-card:hover .proj-meta { opacity: 1; }

.proj-desc { color: rgba(255, 255, 255, 0.52); line-height: 1.6; padding: 12px 16px 0; }

.proj-hashtags { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 16px 14px; }
.proj-tag {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: var(--accent);
  opacity: 0.6;
}

.badge {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  padding: 1px 6px;
}

/* ── Experience ───────────────────────────────────────────────── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.exp-item {
  padding-left: 20px;
  border-left: 1.5px solid var(--accent-dim);
  position: relative;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.exp-date {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.08em;
}

.exp-company {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: var(--accent);
  margin-bottom: 12px;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-bullet {
  display: flex;
  gap: 10px;
}

.bullet-marker {
  color: var(--accent);
  font-family: 'Commit Mono', 'Space Mono', monospace;
  flex-shrink: 0;
}

/* ── About ────────────────────────────────────────────────────── */
.avatar-wrap {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border: 1.5px solid var(--accent-dim);
  border-radius: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.02);
}

.avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 3px, transparent 3px, transparent 9px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder span {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.18);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.profile-key {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.25);
}

.profile-val {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.6);
}

.hobby-item {
  margin-bottom: 12px;
}

.hobby-name {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: var(--accent);
  margin-bottom: 2px;
}

.hobby-desc {
  color: rgba(255, 255, 255, 0.38);
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-wrap {
  padding-bottom: 40px;
}

.footer-copy {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* ── Type scale ───────────────────────────────────────────────── */
.ts-8  { font-size: 8px; }
.ts-9  { font-size: 9px; }
.ts-10 { font-size: 10px; }
.ts-11 { font-size: 11px; }
.ts-12 { font-size: 12px; }
.ts-13 { font-size: 13px; }
.ts-14 { font-size: 14px; }
.ts-15 { font-size: 15px; }
.ts-18 { font-size: 18px; }

/* ── Terminal prompt lines ────────────────────────────────────── */
.cmd {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.cmd.dim {
  color: rgba(255, 255, 255, 0.3);
}

.section-cmd {
  margin-bottom: 8px;
}

.prompt {
  color: var(--accent);
}

.term-divider {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.term-line {
  font-family: 'Commit Mono', 'Space Mono', monospace;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.22);
}

/* ── Contributions ────────────────────────────────────────────── */
.contrib-grid {
  display: flex;
  gap: 3px;
}

.contrib-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.contrib-cell {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}