* {
  box-sizing: border-box;
}

html,
body,
.impressum {
  width: 100svw;
  height: 100svh;
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  color: black;
  overscroll-behavior-y: none;
  justify-content: center;
  scroll-behavior: smooth;
}

article {
  width: 100%;
  height: 100%;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overflow-x: hidden;
}

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

section {
  width: 100svw;
  height: 100svh;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-snap-type: y mandatory;
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7%;
}

@media screen and (max-width: 900px) {
  header {
    width: 100%;
    height: 10%;
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20% 7% 0;
  }
}

.logo {
  font-weight: 500;
  font-size: 30px;
  text-transform: uppercase;
  pointer-events: none;
  cursor: default;
}

.language {
  font-weight: 300;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 5%;
}

@media screen and (min-width: 1200px) {
  .language:hover {
    color: rgb(107, 107, 107);
  }
}

/* first section */

.bottom-container {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 20%;
  padding: 0 7%;
  bottom: 3%;

  footer {
    color: white;
    height: 50%;
    width: 100%;
    bottom: 0;
    margin: 0;
    padding: 0;
  }

  .about {
    font-size: 18px;
    font-weight: 200;
    align-self: center;
    margin: 0;
  }

  .arrow-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;

    .portfolio-link {
      font-size: 65px;
      font-weight: 100;
      font-style: italic;
      margin: 0;
      margin-right: 5%;
      padding: 0;
    }

    @media screen and (max-width: 900px) {
      .portfolio-link {
        display: none;
      }

      .material-symbols-outlined {
        font-weight: 100;
        font-size: 67px;
      }
    }
  }

  @media screen and (min-width: 1200px) {
    .arrow-wrapper:hover {
      color: rgb(107, 107, 107);
      cursor: pointer;
      transition: color 0.3s ease;
    }
  }
}

h1 {
  font-weight: 400;
  font-size: 30px;
  bottom: 170px;
  left: 30px;
  right: 30px;
}

.main-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-content: center;
  height: 70%;
  width: 100%;
  bottom: 20%;
  top: 10%;
  gap: 0%;
  margin: 0;
  padding: 0;

  .project {
    width: 80%;
    height: 100%;
    padding: 20px;
    border-radius: 30px;
  }
}

.second {
  display: flex;
  flex-direction: column;

  .scroll-wrapper {
    position: relative;
    overflow-x: scroll;
    overflow-y: hidden;
    height: 65%;
    width: 100%;
    bottom: 20%;
    top: 10%;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; /* hide scrollbar: IE and Edge */
    scrollbar-width: none; /* Firefox */

    /* Hide scrollbar for Chrome, Safari and Opera */
    .scroll-wrapper::-webkit-scrollbar {
      display: none;
    }

    .scroll-container {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      gap: 3%;

      .project {
        width: 40%;
        max-width: 600px;
        height: 100%;
        padding: 20px;
        border-radius: 30px;
        scroll-snap-align: center;
        background-color: rgba(0, 0, 0, 0.082);

        h1 {
          font-size: 40px;
        }

        .projects-text {
          margin-bottom: 40px;
        }

        .view-button {
          width: 100%;
          padding: 10px;
          margin: 5px 0;
          border: none;
          font-size: 14px;
          font-family: "Space Grotesk", sans-serif;
          text-transform: uppercase;
          color: #000000;
          background-color: rgba(85, 85, 85, 0.299);
          border-radius: 20px;
          cursor: pointer;
          transition: background-color 0.3s ease;
        }

        @media screen and (min-width: 1200px) {
          .view-button:hover {
            background-color: #0d00ff;
            color: white;
          }
        }
      }
    }
  }

  @media screen and (max-width: 900px) {
    .scroll-wrapper {
      height: 70%;

      .scroll-container {
        width: 200%;
        gap: 1%;
      }
    }
  }

  .bottom-container {
    justify-content: flex-end;

    .about {
      display: none;
    }

    .portfolio-link {
      display: none;
    }
  }
}

.third {
  display: flex;
  flex-direction: column;

  .main-container {
    .info {
      width: 80%;
      height: 100%;
      padding: auto;
      margin: auto;
      border-radius: 30px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      .photo {
        width: 50%;
        max-width: 220px;
        height: auto;
        margin-bottom: 30px;
      }

      p {
        margin: 1%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
      }
    }
  }

  .bottom-container {
    padding: 0;
    bottom: 0;

    footer {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      align-self: flex-end;
      background-color: rgb(0, 0, 0);
      color: rgb(117, 117, 117);
      height: 50%;
      width: 100%;
      bottom: 0;
      margin: 0;
      padding: 0 10%;
      font-size: 14px;
    }
  }
}
