* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --branco: #d2d2d2;
  --preto: #242424;
}

@font-face {
  font-family: "Clash";
  src: url("img/ClashDisplay-Semibold.ttf");
  font-display: swap;
}

body {
  background-color: var(--preto);
  font-family: "Roboto", sans-serif;
}

html,
body {
  overflow-x: hidden;
}

main {
  background-color: var(--branco);
}


h1,
h2 {
  font-family: "Clash", "Roboto", sans-serif;
}

h2 {
  font-size: 8vw;
  text-transform: uppercase;
  line-height: 80%;
}

h3 {
  font-weight: 400;
}

p {
  font-size: 16px;
  line-height: 150%;
}

section,
footer {
  width: 100%;
  padding: 0 2vw;
  display: flex;
  flex-direction: column;
  color: var(--preto);
}

a {
  font-size: 16px;
  padding: 16px;
  outline: none;
  border: 1px solid var(--branco);
  transition: transform 0.3s;
  cursor: pointer;
  color: var(--preto);
  background-color: var(--branco);
  text-decoration: none;
  font-family: "Roboto Mono", monospace;

  &:hover {
    transform: translateY(-2px);
  }
}

.textoAnimado {
  opacity: 0;
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.preloader-text {
  font-size: 50px;
  color: #fff;
  font-weight: 500;
  font-family: "Clash", "Inter", Sans-Serif;
}

.botaoSecundario {
  background-color: transparent;

  color: var(--branco);
}

.diamante {
  flex: 2;
  height: auto;
  position: relative;
  width: 28vw;
  height: 28vw;
  margin-bottom: -40px;

  canvas {
    width: 100% !important;
    height: auto !important;
  }
}

/* VIDEOS */
.video-container {
  position: relative;
  z-index: 9;

  .mira {
    position: absolute;
  }
  .mira:nth-child(1) {
    right: -20px;
    top: -20px;
  }
  .mira:nth-child(2) {
    left: -20px;
    top: -20px;
  }
  .mira:nth-child(3) {
    left: -20px;
    bottom: -20px;
  }
  .mira:nth-child(4) {
    right: -20px;
    bottom: -20px;
  }
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.342);
  background: rgba(255, 255, 255, 0.301);
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.3s ease;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* SECOES */

.hero {
  align-items: center;
  justify-content: space-between;
  background-color: var(--preto);
  color: var(--branco);
  min-height: 96vh;
  padding-bottom: 2vw;

  header {
    width: 100%;
  }

  h1 {
    margin: -4.4vw 0 -6vw -1.4vw;
    font-size: 24.7vw;

    letter-spacing: -2vw;

    text-align: center;
    width: 100%;
  }
  h2 {
    font-size: 6.82vw;
    text-align: center;
  }

  .conteudo {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;

    div {
      display: flex;
      flex-direction: column;
    }

    .divData {
      width: 382px;
      position: relative;
      gap: 8px;

      h3 {
        font-size: 16px;
        font-family: "Roboto Mono", monospace;
        font-weight: 400;
      }
      p {
        font-size: 14px;
        font-style: italic;
        opacity: 0.7;
      }
    }

    .containerDiamante {
      width: 400px;
      align-items: center;
      gap: 16px;

      h3 {
        font-size: 24px;
      }
      p {
        text-align: center;
      }
    }

    .divBotoes {
      flex-direction: row;
      gap: 12px;
    }
  }
}

.secaoAulas {
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 6vw;
  h2 {
    width: 70%;
    margin-bottom: -3vw;
  }

  .conteudo,
  .video-container {
    width: 40%;
  }

  .conteudo {
    padding: 12vw 4.1vw 0 6vw;

    p {
      max-width: 522px;
      margin-bottom: 32px;
    }
  }

  a {
    background-color: var(--preto);
    color: var(--branco);
  }
}

.secaoTecnologias {
  .conteudo {
    h2 {
      margin-top: -3vw;
    }
    p {
      max-width: 768px;
      margin-top: 2vw;
    }
  }

  .container {
    margin-top: 80px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: start;
    gap: 80px;

    .tecnologias {
      width: 50%;
      display: flex;
      gap: 80px;

      h3 {
        font-size: 18px;
        font-weight: 600;
      }
      ul {
        list-style-type: none;
        display: flex;
        flex-direction: column;
        width: 100%;

        li {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 40px;
          padding: 24px 0;
          border-top: 1px solid var(--preto);

          small {
            font-family: "Roboto Mono", monospace;
          }
          &:nth-child(7) {
            border-bottom: 1px solid var(--preto);
          }
        }
      }
    }
  }
}

.oDevart {
  flex-direction: row;
  margin-top: 8vw;
  padding-bottom: 80px;

  h3 {
    font-size: 18px;
    font-weight: 600;
    width: max-content;
  }

  .diamante2 {
    flex: 1;
    height: auto;
    position: relative;

    canvas {
      width: 100% !important;
      height: auto !important;
    }
  }

  .conteudo {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 9;
    h2 {
      font-size: 4.6vw;
      margin-bottom: 1vw;
    }

    a {
      width: max-content;

      margin-top: 20px;
      background-color: var(--preto);
      color: var(--branco);
    }
  }
}

footer {
  background-color: var(--preto);
  color: var(--branco);
  padding: 2vw;
  justify-content: center;
  align-items: center;

  h2 {
    font-size: 11.4vw;
    text-align: center;
  }
}

@media (max-width: 1328px) {
  a {
    font-size: 14px;
    padding: 12px;
  }
  .hero {
    & .conteudo {
      .containerDiamante {
        width: 336px;

        p {
          font-size: 14px;
        }
      }
    }
  }

  .secaoAulas {
    .conteudo {
      padding: 12vw 0vw 0 0vw;

      p {
        width: 100%;
      }
    }
  }

  .secaoTecnologias {
    .container {
      .video-container {
        width: 40%;
      }

      .tecnologias {
        gap: 32px;
      }
    }
  }
}

@media (max-width: 1200px) {
  .hero {
    .conteudo {
      .divData {
        width: 238px;

        h3 {
          font-size: 14px;
          letter-spacing: -0.5px;
        }
      }
      .divBotoes {
        align-items: end;
        width: 238px;
        flex-direction: column;

        a:nth-child(2) {
          order: -1;
        }
      }
    }
  }
}

@media (max-width: 1100px) {
  .oDevart {
    padding-bottom: 80px;

    .conteudo {
      h2 {
        font-size: 10vw;
      }
    }

    .diamante2 {
      flex: 0.7;
    }
  }
}

@media (max-width: 967px) {
  section {
    padding: 5vw;
  }
  h2 {
    font-size: 10vw;
  }
  a{
    font-size: 16px;
    padding: 16px;
  }
  .hero {
    padding-bottom: 60px;

    header {
      h1 {
        font-size: 22.7vw;
        margin-bottom: -3vw;
      }
      h2 {
        font-size: 6.2vw;
      }
    }
    .conteudo {
      flex-direction: column;
      align-items: center;
      gap: 40px;

      .containerDiamante {
        order: -1;
        width: 100%;
        padding-bottom: 40px;

        p {
          font-size: 16px;
        }
      }

      .divData {
        align-items: center;
        width: 100%;
      }

      .divBotoes {
        justify-content: center;
        width: 100%;
        flex-direction: row;
      }
    }
  }

  .secaoAulas {
    h2 {
      width: 100%;
    }
    .conteudo {
      width: 50%;
    }
  }

  .secaoTecnologias {
    .container {
      flex-direction: column;
      .video-container,
      .tecnologias {
        width: 100%;
      }
    }
  }

  .oDevart {
    flex-wrap: wrap;
    gap: 32px;

    .conteudo {
      max-width: none;
    }

    .diamante2 {
      order: 1;
      flex: auto;
      width: 100%;
      margin: -60px 0;
    }
  }

  footer {
    h2 {
      font-size: 11vw;
    }
  }
}

@media (max-width: 700px) {
  .hero{
    .divBotoes{
      a{
        font-size: clamp(10px, 3.7vw, 16px);
        padding: clamp(8px, 4vw, 16px);
      }
    }
  }
  .video-container {
    .mira {
      width: 16px;
    }
    .mira:nth-child(1) {
      right: -16px;
      top: -16px;
    }
    .mira:nth-child(2) {
      left: -16px;
      top: -16px;
    }
    .mira:nth-child(3) {
      left: -16px;
      bottom: -16px;
    }
    .mira:nth-child(4) {
      right: -16px;
      bottom: -16px;
    }
  }

  .secaoAulas {
    h2 {
      margin: 32px 0 20px;
    }
    .conteudo {
      padding: 0;
      width: 100%;
      margin-bottom: 52px;
    }
    .video-container {
      width: 100%;
    }
  }

  .secaoTecnologias {
    .container {
      .tecnologias {
        flex-direction: column;
        h3 {
          font-size: 16px;
        }
      }
    }
    .conteudo {
      h2 {
        margin: 52px 0 20px;
      }
    }
  }

  .oDevart {
    flex-direction: column;
    gap: 0px;
    overflow: hidden;

    h3 {
      font-size: 16px;
      margin-bottom: 32px;
    }
    .conteudo {
      h2 {
        font-size: 12vw;
      }
    }
    .diamante2 {
      height: auto;
      position: relative;
      width: 100%;
      height: 100%;
      margin: -140px 0;
      display: flex;
      flex: none;
      justify-content: center;
      align-items: center;

      canvas {
        width: 100% !important;
        height: 100% !important;
      }
    }
  }
}
