@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Nova Flat - Regular";
  src: url(fonts/NovaFlat-Regular.ttf);
  font-weight: 800;
}

:root {
  --bg-color: #090a18;
  --primary-color: #22225e;
  --secondary-color: #39acbb;
  --tertiary-color: #f1ff32;
  --white-color: #fff;
  --black-color: #000;
  --header-heigth: 90px;
}

h1 {
  font-family: "Orbitron", "Nova Flat - Regular", sans-serif;
  color: var(--secondary-color);
  font-size: 42px;
  font-weight: 400;
}

h2 {
  font-family: "Inter", sans-serif;
  color: var(--white-color);
}

#bgStars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  z-index: -1;
  pointer-events: none;
  background-color: transparent;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.botoes {
  display: flex;
  gap: 4vw;
  margin-top: 1px;

  a {
    text-decoration: none;
    color: var(--white-color);
    font-size: 24px;
    font-family: "Nova Flat - Regular", sans-serif;
    background-color: var(--secondary-color);
    padding: 8px 8px 8px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 40px;
    opacity: 90%;
    color: var(--black-color);
    border: 2px solid transparent;
  }

  .botaoSecundario {
    background-color: var(--black-color);
    color: var(--white-color);
    border: 2px solid var(--secondary-color);
  }
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 4vw;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
}

header img {
  width: 100%;
  height: 100%;
  color: var(--secondary-color);
}

body {
  background-color: var(--bg-color);
  color: var(--white-color);
  overflow-x: hidden;
}

.transicao {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero {
  height: 100%;
  padding: 80px 0;
  display: flex;
  overflow: hidden;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  .bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;

    video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      display: block;
      object-fit: cover;
    }
  }

  .bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    align-items: center;
    top: 0;
    left: 0;
    transform: rotate(180deg);
  }

  .subtitulo {
    position: relative;
    width: 350px;
    height: 56px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    opacity: 80%;
    margin-bottom: 84px;

    video{
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      object-fit: cover;
      border-radius: inherit;
    }
  

    &::after {
      content: " ";
      width: 100%;
      height: 100%;
      position: absolute;
      background-color: rgba(0, 0, 0, 0.2);
      opacity: 0.2;
      z-index: 1;
    }
  }

  h3 {
    font-size: 16px;
    z-index: 2;
    font-weight: 400;
    mix-blend-mode: color-dodge;
    color: rgb(216, 216, 216);
  }

  .conteudo {
    display: flex;
    width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 13vw;

    h2 {
      font-size: clamp(36px, 6vw, 72px);
      text-align: center;
      font-weight: 500;
      margin-top: 5vh;
      margin-bottom: 6vh;
      text-shadow:
        0px 2px 15px rgba(0, 0, 0, 0.9),
        0px 4px 30px rgba(0, 0, 0, 0.7);
    }

    p {
      text-align: center;
      width: 80%;
      font-size: clamp(46px, 2vw, 24px); /* Clamp( Med min, ideal, máxima) */
      line-height: clamp(24px, 1.8vw, 1.8vw);
      margin-top: 0;
      margin-bottom: 2vw;
      line-height: 1.2;
      font-family: "inter", sans-serif;
      text-shadow:
        0px 2px 15px rgba(0, 0, 0, 0.9),
        0px 4px 30px rgba(0, 0, 0, 0.7);
    }
  }
}

.retangulos {
  width: 100%;
  height: 102vh;
  top: -1vh;
  position: absolute;
  left: 0;
  display: flex;
  pointer-events: none;

  div {
    flex: 1;
    height: 100%;
    background-color: var(--black-color);
    width: 100%;
    border: solid 2px var(--black-color);
    height: 100%;
    transform-origin: top;
    transform: scaleY(0);
  }
}

.frase-transicao {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  padding: 4vw;
  z-index: 999;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;

  h2 {
    font-size: clamp(4vw, 5vh, 5vw);
    margin: 0 8vw 0 8vw;
    font-weight: 400;
    color: var(--white-color);
    opacity: 80%;
    text-align: center;
  }
}

.frase-transicao.revelar {
  clip-path: circle(150% at 50% 50%);
}

.Portifolio {
  scroll-margin-top: var(--header-heigth);
  margin-top: 100px;
  width: 100%;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  h2 {
    font-size: clamp(48px, 3vh, 3vw);
    text-align: center;
    font-weight: 500;
    margin-top: 84px;
    margin-bottom: 72px;
    color: var(--white-color);
  }

  p {
    text-align: center;
    font-size: clamp(36px, 1.2vh, 1.2vw);
    width: 80%;
    margin-top: 0;
    margin-bottom: 60px;
    font-family: "Inter", sans-serif;
    margin: auto;
    position: relative;
  }

  .projetos-destaque {
    width: 100%;
    padding-top: 80px;

    .swiper {
      width: 100%;
      height: 70%;
      padding-top: 4vh;
      padding-bottom: 4vh;
      overflow: visible !important;
    }

    .swiper-slide {
      background-position: center;
      background-size: cover;
      width: 60%;
      height: 45%;
      border-radius: 20px;
      overflow: hidden;
      opacity: 0.6;
      filter: blur(4px) grayscale(80%);
      transform: scale(0.85);
      transition: all 0.4s ease-in-out;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .swiper-slide-active {
      opacity: 1;
      filter: blur(0) grayscale(0);
      transform: scale(1.1) translateY(-4vh) !important;
      z-index: 10;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .swiper-button-next,
    .swiper-button-prev {
      display: none;
      background-color: rgba(255, 255, 255, 0);
      width: 50%;
      height: 100%;
      border-radius: 10%;
      opacity: 0;
      margin-top: 0;
      top: 0;
      z-index: -2;
    }

    .swiper-button-prev {
      left: 0;
    }

    .swiper-button-next {
      right: 0;
    }
  }
}

.diferenciais {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  h2 {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    max-width: 1200px;
    transform: translate(-50%, -50%);
    font-size: clamp(48px, 6vw, 110px);
    line-height: 1.05;
    font-family: "Nova Flat - Regular", sans-serif;
    font-weight: 400;
    letter-spacing: 0.3rem;
    text-align: center;
    color: var(--white-color);
  }

  .diferenciais h2 div {
    text-align: center !important;
    width: 100%;
  }
}

footer {
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
  padding: 4vw;
  overflow: hidden;

  p {
    text-align: center;
    font-family: "Inter", sans-serif;
  }

  div {
    display: flex;
    align-items: center;
  }

  .esquerda {
    flex-direction: column;

    a {
      text-decoration: none;
      color: var(--white-color);
      text-align: end;
    }

    h2 {
      font-size: 8vw;
      font-family: "Nova Flat - Regular", sans-serif;
    }
  }

  .direita {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: end;

    h2 {
      text-align: end;
    }

    p {
      margin: 32px 0;
    }
  }

  .bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;

    video {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
    }
  }

  .bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transform: scale(2);
  }

  video {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
    object-fit: cover;
    transform: rotate(180deg) scale(1.1);
    top: 0;
    left: 0;
  }

  .botoes {
    justify-content: center;
    gap: 16px;
  }
}

html {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .hero {
    .subtitulo {
      margin-top: -40px;
      margin-bottom: -10px;
      width: 280px;
      height: 40px;
      align-items: center;
      -webkit-mask-image: -webkit-radial-gradient(white, black);
      mask-image: radial-gradient(white, black);
      transform: translateZ(0);
    
      h3 {
        width: 100%;
        font-size: 12px;
        text-align: center;
      }
    }
    .conteudo {
      gap: 8px;

      h2 {
        white-space: nowrap;
        padding: 32px 0;
      }
    }

    .botoes {
      width: 100%;
      max-width: 240px; /* Reduz a largura máxima do container para centralizar melhor */
      margin-top: 0px;
      display: flex;
      flex-direction: column; /* MUDE AQUI: Empilha os botões no celular */
      align-items: center;
      gap: 16px; /* Aumenta um pouquinho o espaço entre eles quando empilhados */

      a {
        width: 100%; /* Faz o botão preencher a largura do container */
        max-width: none;
        height: 56px;
        padding: 8px 8px 8px 24px; /* Aumenta o respiro lateral para ficar mais bonito */
        font-size: 18px; /* Com a linha inteira, você pode aumentar a fonte para melhor legibilidade */
        line-height: 1.1;
        display: flex;
        justify-content: space-between;
        border-radius: 40px;
        white-space: nowrap;
        overflow: hidden;
      }

      img {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
      }
    }
  }

  .Portifolio{

    h2{
        font-size: 86px !important;
      }

    .projetos-destaque{      

      .swiper-slide-active{
        opacity: 1;
        scale: 1.04;
        translate: 0 -2vh;
      }

      .swiper-slide{
        width: 80% !important;
        height: 50vh;
        transition: scale 0.4s ease-in-out, translate 0.4s ease-in-out, opacity 0.4s ease-in-out;

        img{
          width: 100%;
          height: 80%;
          object-fit: cover;
          border-radius: 16px;

        }
      }
    }
  }

  .diferenciais {
    min-height: 100svh;
    padding: 0 6vw;
  }

  .diferenciais h2 {
    width: 90%;
    max-width: 360px;
    font-size: clamp(32px, 10vw, 52px);
    line-height: 1.15;
    letter-spacing: 0.12rem;
    text-align: center;
    white-space: normal;
  }

  footer {
    min-height: 100svh;
    height: auto;
    padding: 110px 6vw 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 72px;
    text-align: center;
    overflow: hidden;
  

    .esquerda,.direita {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .esquerda {
      order: 1;
    }

    .direita {
      order: 2;
      gap: 32px;
    }

   .esquerda h2 {
    font-size: clamp(58px, 18vw, 92px);
    line-height: 0.9;
    margin: 0;
    text-align: center;
    text-shadow:
      0px 2px 15px rgba(0, 0, 0, 0.9),
      0px 4px 30px rgba(0, 0, 0, 0.7);
  }

  .direita h2 {
    font-size: clamp(20px, 5.8vw, 30px);
    line-height: 1.15;
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
    text-shadow:
      0px 2px 15px rgba(0, 0, 0, 0.9),
      0px 4px 30px rgba(0, 0, 0, 0.7);
  }

   .direita p {
    font-size: clamp(13px, 3.5vw, 15px);
    line-height: 1.45;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

   .direita .botoes {
    width: 100%;
    max-width: 240px;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

   .direita .botoes a {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 56px;
    padding: 8px 18px 8px 24px;
    font-size: 15px;
    line-height: 1.1;
    justify-content: space-between;
    border-radius: 40px;
    white-space: nowrap;
  }
  }

  footer .direita .botoes a img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  footer .esquerda > div {
    order: 3;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  footer .esquerda p,
  footer .esquerda a {
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.75;
    text-align: center;
  }

  footer .esquerda a {
    color: var(--white-color);
    text-decoration: none;
  }

  footer .bg,
  footer .bg img,
  footer video {
    width: 100%;
    height: 100%;
  }

  footer .bg img {
    object-fit: cover;
    object-position: center;
  }
}


@media (max-width: 768px) and (max-height: 760px) {
  footer {
    justify-content: flex-start;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  footer .esquerda h2 {
    font-size: clamp(48px, 16vw, 72px);
  }
}

@media (max-width: 480px) {
  /* Botões ainda mais compactos em telas pequenas */
  .botoes a {
    font-size: 13px;
    min-width: 180px;
    padding: 9px 10px 9px 16px;
  }

  /* Tipografia hero */
  .hero .conteudo h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero .conteudo p {
    font-size: 24px;
    width: 100%;
    font-weight: 600;
  }

  /* Header: reduz o h1 para não quebrar linha */
  header h1 {
    font-size: 26px;
  }

  .Portifolio {
    h2 {
      font-size: 8vw !important;
    }

    p {
      font-size: 2vh !important;
    }
  }
}
