@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ShareTechMono.woff2') format('woff2');
}

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

:root {
  --green:  #33ff66;
  --dim:    #1a4d2e;
  --mid:    #2e7a46;
  --text:   #99ccaa;
  --bg:     #040608;
  --panel:  rgba(8, 16, 10, 0.82);
  --border: rgba(51, 255, 102, 0.18);
}

html, body {
  width: 100%; min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.6;
}

/* ── PARTICLE CANVAS ── */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* ── SCANLINES ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.09) 3px, rgba(0,0,0,0.09) 4px
  );
}

/* ── LAYOUT ── */
#wrap {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 340px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 1.8rem;
  align-items: start;
}

@media (max-width: 680px) {
  #wrap { grid-template-columns: 1fr; }
  .sidebar { grid-row: 2; }
  .main    { grid-row: 3; }
}

/* ── HEADER (full width) ── */
.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-bottom: 1.8rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}

.avatar {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20px rgba(51,255,102,0.12);
}

.header-info h1 {
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--green);
  letter-spacing: 0.04em;
}

.header-info .handle {
  font-size: 0.84rem;
  color: var(--mid);
  letter-spacing: 0.15em;
  margin-top: 0.15rem;
}

.header-info .tagline {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.6rem;
  max-width: 480px;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ── MAIN ── */
.main {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ── PANEL ── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  backdrop-filter: blur(2px);
}

.panel-title {
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

/* ── STAT GRID ── */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0;
}

.stat-label { color: var(--mid); font-size: 0.84rem; }
.stat-value { color: var(--green); font-size: 0.84rem; text-align: right; }

/* ── LINKS ── */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.link-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s;
}

.link-list a::before {
  content: '//';
  color: var(--dim);
  font-size: 0.8rem;
}

.link-list a:hover { color: var(--green); }

/* ── TERMINAL ── */
.term {
  font-size: 0.9rem;
  line-height: 1.85;
}

.term-row { display: flex; gap: 0.4rem; white-space: pre-wrap; word-break: break-all; }
.p   { color: var(--dim); flex-shrink: 0; }
.c   { color: #bbddcc; }
.o   { color: #5a8a6a; padding-left: 0.8rem; }

#tw-cur {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--green);
  vertical-align: text-bottom;
  position: relative;
  top: 0.4em;
  animation: blink 1.1s step-end infinite;
}

/* ── PROJECT ROWS ── */
.proj {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.proj:last-child { border-bottom: none; }
.proj-name { color: var(--green); min-width: 8em; flex-shrink: 0; }
.proj-desc { color: #5a8a6a; font-size: 0.84rem; flex: 1; padding: 0 0.8rem; }
.proj-lang { color: var(--mid); font-size: 0.8rem; white-space: nowrap; }

/* ── FOOTER ── */
.footer-row {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--mid);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* ── MISC ── */
::selection { background: var(--green); color: #000; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--dim); }

@keyframes blink { 50% { opacity: 0; } }
