:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --border: #334155;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo { font-weight: 700; color: var(--text); }
nav a { margin-left: 1.25rem; color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4rem 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.hero { padding-top: 5rem; }
.eyebrow { color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.tagline { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { opacity: 0.9; }

.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.skills li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card p { color: var(--muted); flex: 1; }

.contact-list { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 1.5rem;
}

@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 0.75rem; }
  nav a { margin: 0 0.6rem; }
  section { padding: 3rem 0; }
}
