:root {
  --bg: #080b12;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(120,100,255,0.5);
  --accent: #9b87ff;
  --accent-glow: rgba(155,135,255,0.25);
  --text: #f0f0f8;
  --muted: #6e7191;
  --muted-bright: #9599b8;
  --ts: #3b82f6;
  --js: #eab308;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background orbs ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}

.orb-1 {
  width: 600px; height: 600px;
  background: #6d28d9;
  top: -200px; left: -200px;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px; height: 500px;
  background: #2563eb;
  bottom: -150px; right: -150px;
  animation: drift 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 300px; height: 300px;
  background: #7c3aed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: drift 15s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 30px); }
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}

.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b87ff, #3b82f6);
  z-index: 0;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  display: block;
}

.hero-handle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted-bright);
  letter-spacing: -0.01em;
}

.hero-handle a {
  color: inherit;
  text-decoration: none;
}

.hero-handle a:hover { color: var(--text); }

.socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.social-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  background: var(--surface-hover);
}

.social-link svg { flex-shrink: 0; }

.hero-bio {
  max-width: 520px;
  font-size: 0.95rem;
  color: var(--muted-bright);
  line-height: 1.7;
}

.hero-bio a {
  color: var(--accent);
  text-decoration: none;
}

.hero-bio a:hover { text-decoration: underline; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Section label ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2rem 0 1.25rem;
}

/* ── Repo grid ── */
.repos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4rem;
}

.card {
  background: var(--bg);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.2s;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 30% 40%, var(--accent-glow), transparent 70%);
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover { background: #0d1020; }
.card:hover::after { opacity: 1; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  color: var(--muted);
  font-size: 0.85rem;
}

.card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.card-desc {
  font-size: 0.86rem;
  color: var(--muted-bright);
  line-height: 1.6;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.2rem;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  color: var(--muted);
}

.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-ts { background: var(--ts); }
.dot-js { background: var(--js); box-shadow: 0 0 6px rgba(234,179,8,0.4); }

.stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.77rem;
  color: var(--muted);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  text-align: center;
}

.footer-inner {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-inner a:hover { color: var(--text); }

.sep { color: var(--border); }

@media (max-width: 560px) {
  .repos { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 2.5rem; }
}
