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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0d1117;
  color: #c9d1d9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  color: #e6edf3;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 2.5rem;
  text-align: center;
}

.site-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.2rem;
  color: #8b949e;
  font-weight: 400;
}

/* ── Nav ── */
.nav-bar {
  border-bottom: 1px solid #30363d;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-bar .container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.nav-bar a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-bar a:hover {
  color: #e6edf3;
  text-decoration: none;
  border-bottom-color: #58a6ff;
}

/* ── Sections ── */
.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: #161b22;
  border-top: 1px solid #30363d;
  border-bottom: 1px solid #30363d;
}

/* ── Project Cards ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.15);
}

.card h3 {
  color: #e6edf3;
}

.card p {
  font-size: 0.9rem;
  color: #8b949e;
  margin-bottom: 1rem;
}

.card-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background-color: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.card-tag:has(+ .card-tag),
.card-tag + .card-tag {
  margin-left: 0.4rem;
}

/* ── Contact ── */
.external-link {
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid #21262d;
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: #484f58;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 1.5rem; }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .nav-bar .container {
    gap: 1rem;
  }
}
