:root {
  --bg: #0d1117;
  --bg-alt: #010409;
  --card: #161b22;
  --card-border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #2ea043;
  --accent-2: #3fb950;
  --radius: 12px;
  --maxw: 1060px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, .brand, .nav-links a { font-family: 'Space Grotesk', 'Inter', sans-serif; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(13,17,23,0.85);
  border-bottom: 1px solid var(--card-border);
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand .dot { color: var(--accent); }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent); color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-2); }

/* Profile / Banner */
.profile { position: relative; }
.banner {
  height: 220px;
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(46,160,67,0.28), transparent),
    radial-gradient(700px 320px at 85% 10%, rgba(88,166,255,0.22), transparent),
    linear-gradient(120deg, #0d1117, #161b22);
  border-bottom: 1px solid var(--card-border);
}
.profile-body {
  display: flex; gap: 22px; align-items: flex-end;
  margin-top: -52px; padding-bottom: 8px; flex-wrap: wrap;
}
.avatar {
  width: 104px; height: 104px; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #58a6ff);
  border: 4px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.4rem; color: #fff;
  flex: 0 0 auto;
}
.profile-meta { padding-bottom: 4px; }
.profile-meta h1 { margin: 0; font-size: 1.9rem; }
.handle { color: var(--muted); margin: 2px 0 10px; font-weight: 500; }
.bio { max-width: 640px; margin: 0 0 12px; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: rgba(110,118,129,0.15); color: var(--muted);
  padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 500;
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 30px; }

/* Cards (GitHub pinned style) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: rgba(46,160,67,0.5); transform: translateY(-2px); }
.card-icon { font-size: 1.8rem; margin-bottom: 8px; }
.card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.card-tag { color: var(--accent-2); font-size: .8rem; font-weight: 600; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: .95rem; flex: 1; }
.card-link { color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; align-self: flex-start; }
.card-link:hover { color: var(--accent-2); }

/* Link grid */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.linktile {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text);
  transition: transform .15s, border-color .15s;
}
.linktile:hover { transform: translateY(-2px); border-color: rgba(46,160,67,0.5); }
.link-emoji { font-size: 1.5rem; }
.linktile span:nth-child(2) { font-weight: 600; font-size: 1.05rem; }
.link-sub { color: var(--muted); font-size: .85rem; }

/* Contact */
.contact { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; transition: transform .12s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 26px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .banner { height: 160px; }
  .profile-body { margin-top: -44px; }
  .avatar { width: 84px; height: 84px; font-size: 2rem; }
  .section { padding: 44px 0; }
}
