:root {
  --bg: #0b1120;
  --surface: #111827;
  --border: #1f2937;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
}

body.light {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0284c7;
  --accent-soft: rgba(2, 132, 199, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
}

.container { width: min(1040px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; gap: 1rem; position: relative; }
.brand { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 1.4rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-controls { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle { display: none; }

.hero { padding: 4rem 0 2.8rem; }
.hero-layout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero-copy { flex: 1 1 540px; }
.hero-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.hero-avatar {
  width: 176px; height: 176px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--accent); box-shadow: 0 12px 32px rgba(56, 189, 248, 0.22);
}
.founder-pill {
  font-size: 0.8rem; font-family: "JetBrains Mono", monospace; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border);
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.venture-card { border-color: var(--accent); }
.venture-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.venture-desc { color: var(--text); margin-bottom: 0.85rem; }
.venture-list { padding-left: 1.2rem; display: grid; gap: 0.45rem; color: var(--muted); font-size: 0.94rem; }
.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 1rem; }
.accent { color: var(--accent); }
.hero-sub { max-width: 680px; color: var(--muted); font-size: 1.08rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #082f49; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost { border-color: var(--border); color: var(--muted); background: transparent; padding: 0.4rem 0.8rem; }

.section { padding: 2.2rem 0; }
.section h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 0; }

.text-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.92rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.filter-btn {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.filter-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.skill-card.hidden { display: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem;
}

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
.about-grid p + p { margin-top: 0.8rem; }
.facts { display: grid; gap: 0.7rem; }
.facts div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 0.45rem; font-size: 0.92rem; }
.facts span { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.card h3 { font-size: 1.08rem; margin-bottom: 0.75rem; }
.project-meta { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.4rem; }
.project-card p, .repo-desc { color: var(--muted); font-size: 0.94rem; margin-bottom: 0.9rem; }

.repo-card { display: flex; flex-direction: column; justify-content: space-between; gap: 0.8rem; }
.repo-title { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.repo-title:hover { color: var(--accent); }
.repo-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.muted-note { color: var(--muted); grid-column: 1 / -1; }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags span {
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.cert-item { display: flex; flex-direction: column; gap: 0.25rem; }
.cert-item span { color: var(--muted); font-size: 0.88rem; }

.contact-box { text-align: center; }
.contact-box p { color: var(--muted); margin: 0.5rem 0 1.2rem; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.contact-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.copy-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }
.copy-status { min-height: 1.3rem; margin-top: 0.7rem !important; margin-bottom: 0 !important; color: var(--accent) !important; font-size: 0.88rem; font-weight: 600; }

.footer { padding: 2rem 0 3rem; text-align: center; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    gap: 0.7rem;
  }
  .nav-links.open { display: flex; }
  .about-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-layout { flex-direction: column-reverse; text-align: center; }
  .hero-actions { justify-content: center; }
}
