:root {
  --color-1: #556B2F;
  --color-2: #8FA31E;
  --color-3: #C6D870;
  --color-4: #EFF5D2;
}

body {
  margin: 0;
  font-family: sans-serif;
}

#navbar {
  position: fixed;
  width: 100%;
  height: 70px;
  background-color: var(--color-1);
  top: 0;
  display: flex;
  justify-content: flex-end;
}

.nav-link {
  padding: 1em;
  color: rgb(247, 244, 244);
  text-decoration: none;
  font-size: 1.4em;
}

.nav-link:hover {
  background-color: var(--color-2);
}

@media screen and (max-width: 768px) {
  #navbar {
    height: 60px;
  }
  .nav-link {
    font-size: 1.2em;
  }
}

#welcome-section {
  margin-top: 50px;
  background-color: var(--color-4);
  height: calc(100vh - 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#welcome-section h1 {
  margin: 0;
  font-size: 50px;
}

#welcome-section h2 {
  margin: 10px 0;
  font-style: italic;
  color: var(--color-1);
}

#project-section {
  background-color: var(--color-2);
  padding: 50px 30px;
}

#project-section h2 {
  text-align: center;
  margin: 0 0 25px 0;
  color: rgb(251, 249, 249);
}

#project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 25px;
}

.project-tile {
  background-color: var(--color-4);
  border-radius: 10px;
  box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
  font-weight: bold;
  overflow: clip;
}

.project-tile .img-placeholder {
  aspect-ratio: 1.5 / 1;
  background-color: lightgray;
  border-bottom: solid 1px rgb(195, 194, 194);
}

.project-tile p {
  font-size: 16px;
  margin-bottom: 30px;
}

.project-tile a {
  text-decoration: none;
  background-color: var(--color-1);
  color: white;
  padding: 8px 25px;
  border-radius: 10px;
}

.project-tile a:hover {
  background-color: var(--color-2);
}

#contact-section {
  background-color: var(--color-4);
  text-align: center;
  padding: 40px;
}

#contact-section h2 {
  margin: 0 0 25px 0;
}

#contact-section a {
  margin: 0 25px;
  text-decoration: none;
  color: var(--color-1);
  font-weight: bold;
}