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

:root {
  --bg:       #0a0a0a;
  --bg-card:  #111111;
  --bg-hover: #161616;
  --border:   #1e1e1e;
  --border-hi:#2e2e2e;
  --text:     #e8e8e8;
  --text-2:   #888888;
  --text-3:   #444444;
  --green:    #4ade80;
  --sans:     'Inter', sans-serif;
  --mono:     'JetBrains Mono', monospace;
  --radius:   6px;
  --max:      860px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.shell { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--mono); font-size: 13px; color: var(--text-2); letter-spacing: 0.04em; }
.nav-logo span { color: var(--text); }
.nav-links { list-style: none; display: flex; }
.nav-links a {
  font-size: 13px; color: var(--text-2);
  padding: 0.3rem 0.85rem; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }

/* Hero */
.hero { padding: 7rem 0 5rem; border-bottom: 1px solid var(--border); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-2); letter-spacing: 0.06em; margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.35; } }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600; letter-spacing: -0.04em;
  line-height: 1.08; margin-bottom: 1.25rem;
}
.hero h1 .dim { color: var(--text-2); font-weight: 300; }

.hero-bio {
  max-width: 480px; font-size: 15px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-bio strong { color: var(--text); font-weight: 500; }

.hero-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 13px; font-family: var(--sans); font-weight: 500;
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  transition: all 0.15s; white-space: nowrap;
}
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: #ccc; }
.btn-ghost { border: 1px solid var(--border-hi); color: var(--text-2); }
.btn-ghost:hover { border-color: #444; color: var(--text); background: var(--bg-hover); }

/* Sections */
section { padding: 4.5rem 0; border-bottom: 1px solid var(--border); }

.section-label {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2rem;
}

section h2 {
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 1.75rem;
}

/* About */
.about-body { display: grid; grid-template-columns: 1fr 210px; gap: 3rem; align-items: start; }
.about-text p { color: var(--text-2); margin-bottom: 0.9rem; font-size: 14.5px; max-width: 500px; }

.about-meta { display: flex; flex-direction: column; gap: 0.65rem; }
.meta-row { display: flex; align-items: center; gap: 0.65rem; font-size: 13px; color: var(--text-2); }
.meta-row svg { flex-shrink: 0; opacity: 0.45; }
.meta-row a:hover { color: var(--text); }

/* Skills */
.skills-table { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-row { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: baseline; }
.skill-row-label {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--mono); font-size: 12px; padding: 3px 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-2); transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--border-hi); color: var(--text); }
.chip.dim { border-style: dashed; color: var(--text-3); }

/* Projects */
.projects-list { display: flex; flex-direction: column; }
.project-item {
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 1.5rem;
  padding: 1.4rem 0; border-top: 1px solid var(--border);
}
.project-item:last-child { border-bottom: 1px solid var(--border); }

.project-name {
  font-size: 14.5px; font-weight: 500; color: var(--text);
  margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem;
}
.lang-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.lang-c    { background: #888888; }
.lang-py   { background: #3572A5; }
.lang-html { background: #e34c26; }

.project-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.6; max-width: 540px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.7rem; }
.project-tag {
  font-family: var(--mono); font-size: 11px; padding: 2px 7px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 3px; color: var(--text-3);
}

.project-link {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  white-space: nowrap; display: flex; align-items: center; gap: 4px;
  margin-top: 3px; transition: color 0.15s;
}
.project-link:hover { color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contact-card {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.contact-card:hover { border-color: var(--border-hi); background: var(--bg-hover); }
.contact-card-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  flex-shrink: 0; color: var(--text-2);
}
.contact-card-label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 1px; }
.contact-card-value { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* Footer */
footer {
  padding: 2rem 0; display: flex; justify-content: space-between; align-items: center;
}
footer span { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* Scroll reveal */
.fade { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 5rem 0 3.5rem; }
  .about-body { grid-template-columns: 1fr; gap: 2rem; }
  .skill-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.35rem; align-items: flex-start; }
}
