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

body {
  margin: 0;
  font-family: monospace;
}

/* ── Sections ── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 24px;
  gap: 40px;
}

.projects-hero {
  background-color: #f1f1f1;
}
.stacks-hero {
  background-color: #f9fff6;
}
.tools-hero {
  background-color: #f1f1f1;
}
.experience-hero {
  background-color: #fff;
}
.building-hero {
  background-color: #f9fff6;
}
.fun-hero {
  background-color: #f1f1f1;
}
.contact-hero {
  background-color: #fff;
}

/* ── Hero ── */

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.hero-role {
  font-size: 0.9rem;
  margin: 0;
  color: #555;
}

.hero-brand {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

/* ── Section headers ── */

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 8px;
}

.subtitle {
  font-size: 0.85rem;
  margin: 0;
  color: #555;
}

/* ── Projects ── */

.projects {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: 160px;
}

.project-title {
  font-size: 1rem;
  margin: 0;
}

.project-description {
  font-size: 0.8rem;
  margin: 0;
  color: #555;
}

.project-impact {
  font-size: 0.75rem;
  font-weight: bold;
  margin: 0;
  color: #222;
}

.project-link {
  font-size: 0.75rem;
  color: #000;
  text-decoration: underline;
}

.project-link:hover,
.project-link:active {
  opacity: 0.6;
}

/* ── Tech stack (categorised) ── */

.stack-categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 800px;
}

.stack-category-title {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  color: #888;
}

/* ── Stack grid ── */

.stacks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 800px;
}

.stack {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: center;
}

.stack p {
  margin: 0;
  font-size: 0.75rem;
}

/* ── Experience ── */

.experience-text {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
  text-align: center;
  margin: 0;
  color: #333;
}

/* ── Simple list (Building / Fun) ── */

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.simple-list li {
  font-size: 0.9rem;
  color: #333;
}

.simple-list li::before {
  content: "→ ";
  color: #aaa;
}

/* ── Contact ── */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contact-link {
  font-size: 0.85rem;
  color: #000;
  text-decoration: underline;
}

.contact-link:hover,
.contact-link:active {
  opacity: 0.6;
}

/* ── Mobile ── */

@media (max-width: 600px) {
  .hero {
    padding: 40px 20px;
    gap: 32px;
  }

  .projects {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 100%;
    max-width: 320px;
  }
}

p.about-text {
  width: 80%;
  text-align: center;
}
