body {
  background-color: rgb(10, 10, 10);
  color: white;
  padding: 0 1.5rem;
}

a {
  text-decoration: underline;
}

.hero {
  padding: 2rem 0 40vh;
}

p {
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  margin-top: 2rem;
  justify-content: start;
  gap: 2rem;
}

.nav-link {
  transition: color 0.5s, background-color 0.5s;
  display: flex;
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  text-decoration: none;
  font-size: clamp(1rem, 5vw, 1.5rem);
  max-height: 2.75rem;
  aspect-ratio: 4/1;
  padding: 0rem 1.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 2rem;
  border: solid 1px white;

  &:hover {
    transition: all 0.5s;
    background-color: white;
    color: black;
  }
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3.75vw, 3rem);
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
}

h3 {
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
}

.git-link {
  display: block;
  margin-top: auto;
  text-decoration: underline;
  text-align: right;
}

.project {
  padding: 4rem 0 4rem 0;
}

.project__name {
  transition: color 0.5s, background-color 0.5s;
  cursor: pointer;
  text-decoration: none;
  padding: 1rem 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  font-size: 2rem;
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  border-bottom: solid 1px white;
  margin-bottom: 2rem;

  &:hover {
    transition: all 0.5s;
    background-color: white;
    color: black;

    & .arrow {
      transition: all 0.5s;
      filter: invert();
    }
  }
}

.arrow {
  width: 3rem;
  height: 3rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  display: flex;
  height: 1.875rem;
  padding: 0rem 1.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 0.5px solid white;
}

.role,
.date {
  display: flex;
  align-items: flex-start;
  gap: 1rem;

  & > span {
    font-family: "Major Mono Display", monospace;
  }
}

.project__description {
  margin-top: 1rem;
}

.contact {
  margin-top: 2rem;

  & p {
    padding-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: calc(40vh - 120px) 0 calc(40vh - 120px);
  }
}

@media (min-width: 1024px) {
  body {
    padding: 0 7rem;
  }

  .project {
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 4rem 0;
    gap: 3rem;

    &:nth-child(2n) {
      flex-direction: row-reverse;
    }
  }

  img {
    aspect-ratio: 16/9;
    width: clamp(300px, 60%, 720px);
  }

  .contact {
    display: flex;
    justify-content: space-between;
  }
}
