/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --border:    #30363d;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --accent:    #58a6ff;
  --accent-h:  #79c0ff;
  --tag-bg:    #1f2937;
  --card-h:    #1c2533;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  max-width: 640px;
  width: 100%;
  padding: 4rem 1.5rem;
}

/* ── Hero ── */
.hero { text-align: center; margin-bottom: 3rem; }

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a371f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--bg);
  box-shadow: 0 0 32px rgba(88, 166, 255, 0.25);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.tagline {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.bio {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Links ── */
.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: var(--accent);
  background: var(--card-h);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.1);
}

.link-card .icon {
  width: 28px;
  height: 28px;
}

/* ── Experience ── */
.experience { margin-bottom: 3rem; }

.experience h2,
.opensource h2 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.experience p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}

/* ── Open Source ── */
.opensource { margin-bottom: 3rem; }

.os-intro {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.repos { display: flex; flex-direction: column; gap: 0.75rem; }

.repo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.repo-card:hover {
  border-color: var(--accent);
  background: var(--card-h);
  transform: translateY(-1px);
}

.repo-card .repo-icon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  flex-shrink: 0;
}

.repo-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.repo-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

.repo-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Tech stack ── */
.stack { margin-bottom: 3rem; }

.stack h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4rem 0.85rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  transition: all 0.15s ease;
}

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

/* ── Footer ── */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .container { padding: 3rem 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .links { grid-template-columns: 1fr; gap: 0.75rem; }
  .link-card { flex-direction: row; justify-content: flex-start; padding: 1rem 1.25rem; }
  .link-card .icon { width: 22px; height: 22px; }
}
