/* ── Reset & Base ──────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  color: #f1f5f9;       /* slate-100 */
  background: #0f172a;  /* slate-900 */
  line-height: 1.6;
}

/* ── Header & Nav ─────────────────────────────────────── */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* ── Main Layout ─────────────────────────────────── */
main {
  max-width: 50rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ───────────────────────────────── */
#hero {
  text-align: center;
  margin: 4rem 0;
}

#hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.5rem;
}

#hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

/* ── Bio ───────────────────────────────── */
#bio {
  background-color: #1e293b; /* slate-800 */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  margin: 2rem auto;
}

/* ── Project Grid Responsive ───────────────────────── */
.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 4rem;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
