.projects {
  padding: 0;
  width: 96dvw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  height: auto;
  margin-top: 15dvh;
  margin-left: auto;
  margin-right: auto;

  h5 {
    margin: 0;
    margin-bottom: 2dvh;
    width: stretch;
    text-transform: uppercase;
    font-family: "Inter", sans-serif;
    font-size: clamp(0.5rem, 1.2vw, 1.1rem);
    font-weight: 400;
    color: var(--bg);
    letter-spacing: -0.96px;

    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);

    &.in-view {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .project {
    padding: 1dvh 0 5dvh 0;
    width: stretch;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: top;

    > h3,
    > h1,
    > h6,
    > .view-on-github {
      opacity: 0;
      transform: translateY(30px);
      transition:
        opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    }

    > .view-on-github {
      transition:
        color 0.4s ease,
        opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    }

    &.in-view {
      > h3,
      > h1,
      > h6,
      > .view-on-github {
        opacity: 1;
        transform: translateY(0);
      }
    }

    > h3:nth-of-type(1) {
      transition-delay: 0.1s;
    }
    > h1:nth-of-type(1) {
      transition-delay: 0.2s;
    }
    > h3:nth-of-type(2) {
      transition-delay: 0.3s;
    }
    > h6:nth-of-type(1) {
      transition-delay: 0.4s;
    }
    > .view-on-github {
      transition-delay: 0.5s;
    }
  }

  h3 {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: clamp(0.7rem, 1.6vw, 1.5rem);
    font-weight: 600;
    color: var(--muted-dark);
    letter-spacing: -1.28px;
  }

  h1 {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: clamp(2.6rem, 4.6vw, 5.2rem);
    font-weight: 600;
    color: var(--bg);
    line-height: normal;
    letter-spacing: -1.28px;
  }

  h4 {
    font-size: clamp(0.7rem, 1.6vw, 1.5rem);
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1.28px;
  }

  h6 {
    align-self: stretch;
    text-align: right;
    font-family: "Geist Mono", monospace;
    text-transform: uppercase;
    color: #5b5b5b;
    margin: 0;
    font-size: clamp(0.5rem, 1.4vw, 1.2rem);
    font-weight: 400;
  }

  .showcase {
    width: 100%;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
  }

  .project:hover .showcase {
    max-height: 600px;
    opacity: 1;
    margin-top: 2dvh;
  }

  .swiper-slide {
    width: 32%;
    height: 350px;
    transition: width 0.4s ease-out;
    overflow: hidden;
  }

  .swiper-slide:hover {
    width: 45%;
  }

  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
  }

  .swiper-slide:hover img {
    transform: scale(1.05);
  }

  .showcase .swiper-wrapper {
    transition-timing-function: linear !important;
  }

  .view-on-github {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: flex-end;
    font-family: "Geist Mono", monospace;
    color: var(--muted-dark);
    cursor: pointer;
    transition: all 0.4s ease;
    width: 17dvw;
    padding: 0;
    transition: color 0.4s ease;

    img {
      cursor: pointer;
      width: clamp(0.7rem, 1.6vw, 1.5rem);
      margin-left: 10%;
      filter: brightness(1);
      transition: filter 0.4s ease;
    }

    &:hover {
      color: var(--bg);

      img {
        filter: brightness(3);
      }
    }
  }
}
