/* =========================
   Base
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #0d1117;
}

u {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Layout
   ========================= */

header,
main,
footer {
  width: min(1100px, 90%);
  margin: 0 auto;
}

header {
  padding: 25px 0;
}

main {
  padding: 30px 0;
}

section {
  margin-bottom: 30px;
}

/* =========================
   Navigation
   ========================= */

nav {
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: bold;
}

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

/* =========================
   Contact
   ========================= */

#contact {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info a {
    color: #B0E4CC;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* =========================
   Footer
   ========================= */

footer {
  padding: 30px 0;
  border-top: 1px solid #ddd;
  color: #777;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 700px) {
  main {
    padding: 40px 0;
  }

  section {
    margin-bottom: 70px;
  }

  .intro h1 {
    font-size: 2.3rem;
  }

  .categories {
    flex-wrap: wrap;
  }

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