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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --card: #1a1a1a;
  --card-hover: #222;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #4fc3f7;
  --accent-hover: #81d4fa;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent-hover);
}

/* ── Header ── */

header {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

header p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ── Main ── */

main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Project Cards Grid ── */

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

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

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.project-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  background: rgba(79, 195, 247, 0.12);
  color: var(--accent);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.project-card .card-link {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-card .card-link::after {
  content: ' \2192';
}

/* ── Footer ── */

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */

@media (max-width: 480px) {
  header {
    padding: 2.5rem 1rem 1.5rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  main {
    padding: 1rem 1rem 2rem;
  }

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