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

:root {
  --bg:      #0d0d0d;
  --surface: #161616;
  --border:  #242424;
  --text:    #f0ede8;
  --muted:   #888;
  --pink:    #f9c1cf;
  --yellow:  #fde68a;
  --mint:    #a8e6cf;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ───────────────────────────────────────────── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 20px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ── Sections ──────────────────────────────────────── */

section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 36px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  line-height: 1.15;
}

h3 {
  font-size: 1.05rem;
  font-weight: 500;
}

p {
  color: #bbb;
  max-width: 580px;
}

/* ── Hero ──────────────────────────────────────────── */

#hero {
  padding-top: 110px;
  padding-bottom: 110px;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 44px;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-link {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 5px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-link:hover {
  border-color: var(--muted);
  color: var(--pink);
}

/* ── Skills ────────────────────────────────────────── */

.skills {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-group {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.skill-label {
  font-size: 11px;
  color: var(--muted);
  min-width: 44px;
  padding-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* ── Tags ──────────────────────────────────────────── */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface);
  color: #aaa;
  border: 1px solid var(--border);
  line-height: 1.4;
}

.tag-pink {
  background: rgba(249, 193, 207, 0.07);
  color: var(--pink);
  border-color: rgba(249, 193, 207, 0.18);
}

.tag-yellow {
  background: rgba(253, 230, 138, 0.07);
  color: var(--yellow);
  border-color: rgba(253, 230, 138, 0.18);
}

.tag-mint {
  background: rgba(168, 230, 207, 0.07);
  color: var(--mint);
  border-color: rgba(168, 230, 207, 0.18);
}

/* ── Projects ──────────────────────────────────────── */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  transition: border-color 0.25s;
}

.project-card:hover {
  border-color: #383838;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--pink);
}

.project-card p {
  font-size: 0.88rem;
  margin-bottom: 18px;
  line-height: 1.65;
}

/* ── Achievements ──────────────────────────────────── */

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.achievement-list li {
  color: #bbb;
  font-size: 0.9rem;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.ach-accent {
  color: var(--yellow);
  font-weight: 500;
}

.ach-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85em;
  transition: color 0.2s;
}

.ach-link:hover {
  color: var(--pink);
}

/* ── Contact ───────────────────────────────────────── */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  color: var(--pink);
  text-decoration: none;
  font-size: 0.9rem;
  width: fit-content;
  transition: opacity 0.2s;
}

.contact-links a:hover {
  opacity: 0.65;
}

/* ── Footer ────────────────────────────────────────── */

footer {
  padding: 36px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 500px) {
  body { padding: 0 18px; }
  h1   { font-size: 1.75rem; }
  nav  { padding: 20px 0 16px; }

  section  { padding: 64px 0; }
  #hero    { padding-top: 80px; padding-bottom: 80px; }

  .skill-group { flex-direction: column; gap: 8px; }
  .project-card { padding: 22px 20px; }
}
