@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Garamond';
  src: url('fonts/Garamond.ttf') format('truetype');
}

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins';
  background-color: black;
  color: white;
  line-height: 1.5;
}

h1, h2 {
  font-family: 'Garamond';
}

/* Page Titles */
.page-title {
  text-align: center;
  margin: 100px 0 40px 0;
}

/* Header / Navigation */
header {
  position: absolute;
  top: 0;
  width: 100%;
  background: transparent;
  margin-top: 2%;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: white;
  padding: 6px 10px;
  white-space: nowrap;
}

.nav-list a:hover {
  color: #FF3E00;
}

/* Welcome / Hero */
.welcome {
  min-height: 100vh;
  background-image: url(../images/heart.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-content {
  width: 40%;
}

/* Headings */
h2 {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  font-size: 1.8rem;
}

/* Projects Grid */
.projects-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  align-items: center;
  margin: 0 auto;
}

.projects-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  width: 80%;
  max-width: 800px;
}

.projects-grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 100%;
}

.projects-grid li img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.projects-grid li a h3 {
  color: #FF3E00;
  font-size: 1rem;
  text-align: center;
}

.projects-grid li a p {
  font-size: 1rem;
  text-align: center;
  color: white;
}

.projects-grid li a div {
  padding: 15px;
  text-align: center;
}

/* Project Detail Page */
body.page-things-that-matter main {
  max-width: 90%;
  margin: 0 auto;
}

body.page-things-that-matter h2,
body.page-things-that-matter p,
body.page-things-that-matter ul,
body.page-things-that-matter li {
  text-align: left;
  list-style: none;
}

.project-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 100px 0;
}

.project-flex h2 {
  margin-top: 0;
}

.project-flex .text {
  flex: 1;
  max-width: 45%;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-flex img {
  width: 50%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}

main section {
  margin-bottom: 40px;
  padding: 0 20px;
}

main section h2 {
  margin-bottom: 15px;
}

main section ul {
  padding-left: 20px;
}

.download a {
  color: #FF3E00;
}

/* Introduction / Toolkit */
.introduction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  margin-top: 80px;
}

.introduction img {
  width: 35%;
  max-width: 360px;
  height: auto;
  border-radius: 8px;
}

.introduction p {
  width: 45%;
  max-width: 500px;
}

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

.toolkit ul li {
  list-style-type: none;
}

/* Footer */
footer {
  padding: 40px 20px 5% 2%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 0.2px solid white;
  margin-top: 160px;
}

footer h4 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #FF3E00;
}

footer h5 {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
}

footer p,
footer a {
  font-size: clamp(0.8rem, 1.3vw, 1rem);
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 6vw, 120px);
  list-style: none;
  justify-content: flex-start;
  width: 100%;
  max-width: 80%;
}

footer ul li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

footer ul li a {
  text-decoration: none;
  color: white;
}

strong, .firsth1 {
  color: #FF3E00;
}

/* Media Queries */
@media (max-width: 768px) {
  .introduction {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .introduction p {
    width: 100%;
    max-width: 100%;
  }

  .introduction img {
    width: 70%;
    max-width: 280px;
    height: auto;
  }

  .project-flex {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .project-flex .text {
    max-width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .project-flex img {
    width: 100%;
    max-width: 100%;
  }

  header {
    top: 20px;
  }
}