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

:root {
  --bg:        #0f1117;
  --surface:   #181a22;
  --card:      #1e2029;
  --border:    #2a2d3a;
  --text:      #d4d4dc;
  --text-dim:  #8b8d9a;
  --accent:    #5b9cf5;
  --accent-hi: #7db4ff;
  --radius:    8px;
  --max-w:     1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: var(--accent-hi); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(168deg, #141620 0%, #0f1117 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3.5rem;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.portrait {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0.3rem 0 1rem;
  font-weight: 500;
}

#bio p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 600px;
  margin-bottom: 0.4rem;
}

.contact-links {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .2s, color .2s, background .2s;
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(91, 156, 245, .06);
}

/* ── Sections ────────────────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.6rem;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Card Grid ───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: border-color .2s, transform .2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.7rem;
}

.card p,
.card li {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li::before {
  content: "\2022";
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  width: 1em;
  margin-left: 0;
}

.card a { font-weight: 500; }

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

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 800px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .contact-links { justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .section h2::after { left: 50%; transform: translateX(-50%); }
  #bio p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 800px) and (min-width: 520px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
