@media (max-width: 680px) {
  body {
    max-width: 100vw;
  }

  /* página de projetos responsiva */

  .projects {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 56px auto 0 auto;
    row-gap: 28px;
  }

  .project {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    padding: 28px 16px;
    border-radius: 24px;
    gap: 20px;
    width: 100%;
    height: fit-content;
    justify-content: center;
  }

  .next-case-study-content div {
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  /* navegação responsiva */

  body {
    max-width: 100vw;
  }

  #hamburger {
    display: block;
    user-select: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--background-elevated-color-dark);
    position: absolute;
    top: 60px;
    width: 100%;
    font-size: 18px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 24px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.04),
      0px 8px 12px rgba(0, 0, 0, 0.02), 0px 16px 24px rgba(0, 0, 0, 0.01);
  }

  #nav-toggle:checked + #hamburger + .nav-links {
    display: flex;
    right: 0;
    z-index: 3;
  }

  /* rodapé responsivo */

  footer {
    height: fit-content;
  }

  footer > .container {
    flex-direction: column;
    height: fit-content;
  }

  .footer-text {
    max-width: 100%;
    flex-direction: row;
  }

  .video {
    flex-wrap: wrap;
    width: 100%;
    height: fit-content;
  }

  .video > video {
    width: 100%;
  }

  video.full-width {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
  }

  header > img {
    height: 180px;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  #hamburger {
    display: block;
    user-select: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--background-elevated-color-dark);
    position: absolute;
    top: 60px;
    width: 100%;
    font-size: 18px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 24px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.04),
      0px 8px 12px rgba(0, 0, 0, 0.02), 0px 16px 24px rgba(0, 0, 0, 0.01);
  }

  iframe:nth-of-type(1) {
    height: auto;
  }

  #nav-toggle:checked + #hamburger + .nav-links {
    display: flex;
    right: 0;
    z-index: 3;
  }

  #about {
    flex-direction: column;
  }

  .about-img {
    max-width: 100vw;
  }

  footer {
    height: fit-content;
  }

  footer > .container {
    flex-direction: column;
    height: fit-content;
  }

  .footer-text {
    max-width: 100%;
    flex-direction: row;
  }

  .period {
    text-align: right;
  }

  .next-case-study {
    flex-direction: column;
    padding-top: 24px;
  }

  .next-case-study-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: min-content;
  }

  .next-case-study img {
    width: 100%;
  }

  @media (max-width: 400px) {
    .case-study > h1 {
      line-height: 100%;
      font-size: 42px;
    }

    .big-data {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 32px;
    }

    .video-div {
      max-width: 100%;
      max-height: 700px;
    }

    .video-div video {
      height: fit-content;
    }
  }

  @media (max-width: 370px) {
    body {
      padding: 0;
      overflow-x: hidden;
    }

    nav {
      left: 10px;
      transform: none;
    }

    .container {
      width: 100%;
      padding: 10px;
    }

    nav {
      padding: 12px 20px;
    }

    #social-links {
      flex-wrap: wrap;
      word-wrap: wrap;
      word-break: break-all;
    }

    header h1 {
      font-size: 32px;
    }

    p {
      font-size: 16px;
    }

    .eyebrow-heading {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: normal;
    }

    .btn {
      font-size: 14px;
    }

    .footer-links > a {
      font-size: 16px;
    }

    .tooltip::after {
      left: -40%;
      top: 160%;
      height: fit-content;
    }

    .footer-text {
      flex-direction: column;
    }
  }
}

.nav-hidden {
  opacity: 0;
  top: -50px;
  transition: all 0.25s ease-in-out;
}

@media (max-width: 656px) {
  /* cortar o caderno da página sobre para não aumentar a largura da pagina e a navegação ficar desalinhada */

  .image-overlay {
    overflow-x: hidden;
  }
}
