* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brancoTitle: rgba(255, 255, 255, 0.9);
  --brancoText: rgba(255, 255, 255, 0.75);
  --pretoTitle: rgba(0, 0, 0, 0.9);
  --pretoText: rgba(0, 0, 0, 0.75);
  --bluePrimary: #0066FF; /* Pure blue */
  --blueSecondary: #00D2FF; /* Cyber cyan */
  --blueGradient: linear-gradient(135deg, #0066FF 0%, #00D2FF 100%);
  --blueTint: rgba(0, 102, 255, 0.25);
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: var(--bluePrimary);
  border-radius: 10px;
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blueSecondary);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--bluePrimary) #000;
}


@font-face {
  font-family: "Clash";
  src: url("./assets/fonts/ClashDisplay-Bold.ttf");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Clash";
  src: url("./assets/fonts/ClashDisplay-Medium.ttf");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Clash";
  src: url("./assets/fonts/ClashDisplay-Regular.ttf");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Clash";
  src: url("./assets/fonts/ClashDisplay-Light.ttf");
  font-weight: 300;
  font-display: swap;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--brancoTitle);
  background-color: #000000;
}

a {
  color: var(--brancoText);
}

section {
  padding: 4vw;
}

h2 {
  font-size: 3.8vw;
  font-family: "Clash", "Inter", Sans-Serif;
  line-height: 5vw;
  font-weight: 400;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3% 4vw;
  z-index: 9;
  mix-blend-mode: difference;

  h1 {
    font-size: 24px;
    font-weight: 400;
    font-family: "Clash", "Inter", Sans-Serif;
  }

}

a {
  text-decoration: none;
  border: none;
  outline: none;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 20px;
  font-size: 16px;
  gap: 12px;
}

p {
  color: var(--brancoText);
}

.botaoPrimario {
  background-color: var(--bluePrimary);
  color: #ffffff;
  border: none;
}
.botaoPrimario:hover {
  background-color: var(--blueSecondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 102, 255, 0.6);
}

.botaoSecundario {
  background-color: var(--pretoTitle);
  color: var(--brancoTitle);
  border: 2px solid rgba(255, 255, 255, 0.205);
  height: 68px;
}

/* 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;
}

main{
  width: 100%;
  height: 100lvh;
  
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;

  .midiaBackground {
    &:before {
      content: "";
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, #000 12.22%, rgba(0, 0, 0, 0) 61.85%);
      position: absolute;
      inset: 0;
      z-index: 1;
    }
  }

  .conteudo {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .cardSubtitulo {
      width: 324px;
      height: 49px;
      position: relative;
      border-radius: 40px;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;

      &:before {
        content: "";
        width: 100%;
        height: 100%;
        background: linear-gradient(-45deg, #000000, #001a33, #0088FF, #001a33, #000000);
        background-size: 400% 400%;
        animation: wavyGradient 10s ease infinite;
        position: absolute;
        z-index: 1;
        border-radius: 40px;
        box-shadow:
          -1px -2px 0 0 rgba(255, 255, 255, 0.1) inset,
          1px 2px 0 0 rgba(255, 255, 255, 0.1) inset;
      }

      h3 {
        position: relative;
        z-index: 2;
        font-size: 14px;
        color: rgb(223, 223, 223);
        mix-blend-mode: color-dodge;
        font-weight: 500;
      }
    }

    h2 {
      margin: 3.5vw 0 2vw;
      width: 74vw;
      text-align: center;
    }

    p {
      font-size: clamp(16px, 1.1vw, 24px);
      line-height: 160%;
      text-align: center;
      width: 53vw;
      margin-bottom: 40px;
      will-change: transform, opacity;
    }
  }

  .transition {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
    display: flex;
    pointer-events: none;

    div {
      width: 100%;
      height: 100%;
      background-color: #000000;
      /* border-left: 1px solid rgba(0, 118, 255, 0.15); */
    }
  }
}

.midiaBackground {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;

  img,
  video {
    width: 100%;
    filter: hue-rotate(185deg) brightness(0.8) contrast(1.2) saturate(1.4);
    object-fit: cover;
    object-position: center;
    position: absolute;
    bottom: 0;
    left: 0;
    will-change: filter;
  }
}
.botoes {
  display: flex;
  gap: 32px;
}

.textoTransicao {
  width: 100%;
  height: 100lvh;
  position: absolute;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4vw;
  pointer-events: none;

  p {
    font-size: 5vw;
  }
}


.div3d {
  margin-top: -1px;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(0, 0, 0);

  canvas {
    position: absolute;
    height: 100% !important;
  }

  h2 {
    position: absolute;
    font-size: 12vw;
    will-change: transform, filter, opacity;
  }
}

/* SEÇÃO PROJETOS */
.projetos {
  width: 100%;
  padding: 8vw 4vw;
  background-color: #000;
  position: relative;
  z-index: 2;
}

.titulo-secao {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 5vw;
}

.titulo-secao h2 {
  margin: 2vw 0 1vw;
  font-size: 4.5vw;
}

.titulo-secao p {
  width: 45vw;
  font-size: 1.2vw;
  color: var(--brancoText);
}

.grid-projetos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
}

.card-projeto {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  transition: transform 0.4s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-projeto:hover {
  transform: translateY(-10px);
  border-color: var(--bluePrimary);
}

.imagem-projeto {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--blueGradient);
  opacity: 0.6;
}

.imagem-projeto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(1) brightness(0.8);
}

.card-projeto:hover .imagem-projeto img {
  transform: scale(1.1);
  filter: grayscale(0) brightness(1);
}

.info-projeto {
  padding: 1.5vw;
}

.info-projeto h3 {
  font-size: 1.5vw;
  font-family: "Clash", sans-serif;
  margin-bottom: 0.5vw;
  color: var(--brancoTitle);
}

.info-projeto p {
  font-size: 0.9vw;
  color: var(--blueSecondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .grid-projetos {
    grid-template-columns: repeat(2, 1fr);
  }
  .titulo-secao h2 { font-size: 6vw; }
  .titulo-secao p { width: 80vw; font-size: 3vw; }
  .info-projeto h3 { font-size: 3vw; }
}

@media (max-width: 600px) {
  .grid-projetos {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .titulo-secao h2 { font-size: 10vw; line-height: 11vw; }
  .info-projeto h3 { font-size: 5vw; }
  .info-projeto p { font-size: 3vw; }
}


.animations {
  width: 100%;
  min-height: 100vh;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 100vh;
}

footer {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 4vw;
  position: absolute;
  align-items: end;
  gap: 32px;
  z-index: 9;
  top: 0;
  left: 0;
  background-color: #000;

  .midiaBackground {
    img,
    video {
      top: 0;
    }
  }

  .webhubFooter,
  .conteudo {
    position: relative;
    width: 50%;
  }

  .webhubFooter {
    display: flex;
    flex-direction: column;

    h2 {
      font-size: 9vw;
      line-height: 11vw;
    }

    div {
      display: flex;
      gap: 20px;
    }
  }
  .conteudo {
    display: flex;
    flex-direction: column;
    align-items: end;
    h2 {
      text-align: start;
      font-size: 3vw;
      line-height: 3.2vw;
      text-align: end;
      margin-bottom: clamp(32px, 2vw, 2vw);
    }
  }
}

@keyframes wavyGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes textoInifito {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1385px) {
  .hero {
    .conteudo {
      p {
        width: 733px;
      }
    }
  }
}

@media (max-width: 1250px) {
  footer {
    .webhubFooter {
      div {
        p {
          font-size: 14px;
        }
      }
    }
  }
}

@media (max-width: 1200px) {
  .hero {
    .conteudo {
      h2 {
        width: 100%;
        font-size: 4.5vw;
      }
    }
  }

  footer {
    .webhubFooter {
      div {
        flex-direction: column;
      }
    }
  }
}

@media (max-width: 1140px) {
  footer {
    .conteudo {
      width: 600px;
    }
  }
}

@media (max-width: 1004px) {
  footer {
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 80px;
    padding: 80px 20px;
    .conteudo {
      align-items: center;
      width: 100%;
      h2 {
        text-align: center;
      }
    }

    .webhubFooter {
      order: 2;

      div {
        align-items: center;
      }
    }
  }

  .webhubFooter,
  .conteudo {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .hero .conteudo {
    width: 100%;
  }
  .hero .conteudo p {
    width: 100%;
  }
  h2,
  .hero .conteudo h2,
  footer .conteudo h2 {
    font-size: 6.4vw;
    line-height: 7vw;
  }
}

@media (max-width: 600px) {
  header {
    padding: 32px 4vw;

  }
  a {
    width: 238px;
  }
  h2,
  .hero .conteudo h2,
  footer .conteudo h2 {
    font-size: 6.2vw;
    line-height: 7.4vw;
  }
  .botoes {
    flex-direction: column;
    gap: 16px;
  }

  .hero {
    padding: 40px 4vw 4vw;

    .conteudo {
      align-items: start;

      .cardSubtitulo {
        margin: auto;
      }

      h2,
      p {
        text-align: start;
      }

      h2 {
        margin: 32px 0px 20px;
      }

      p {
        margin-bottom: 28px;
      }
    }

    .midiaBackground {
      width: 220vw;
      right: 0;
      left: auto;
    }

    .transition {
      div:nth-child(6),
      div:nth-child(7),
      div:nth-child(8),
      div:nth-child(9),
      div:nth-child(10),
      div:nth-child(11) {
        display: none;
      }
    }
  }
  .textoTransicao {
    p {
      font-size: 7vw;
      width: 100%;
    }
  }

  .projetos {
    .titulo {
      padding: 0 4vw;
    }

    h2 {
      font-size: 8vw;
    }

    p {
      text-align: center;
      margin-bottom: 20px;
    }
  }

  footer {
    gap: 40px;
    .conteudo {
      align-items: start;
      h2 {
        font-size: 9.2vw;
        line-height: 10vw;
        text-align: start;
      }
    }

    .midiaBackground {
      width: 220vw;

      left: 0%;
    }

    .webhubFooter {
      width: 100%;
      h2 {
        font-size: 21vw;
        line-height: 22vw;
      }

      div {
        margin-top: 8px;
        gap: 4px;
      }
    }
  }
}

/* PÁGINA DE ORÇAMENTO / FUNIL */
.body-funil {
    background-color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-funil {
    padding: 3% 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.voltar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--brancoTitle);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: 0.3s;
    font-size: 14px;
}

.voltar:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.funil-container {
    max-width: 800px;
    margin: 8vw auto;
    padding: 0 4vw;
    flex-grow: 1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--blueGradient);
    width: 10%;
    transition: width 0.5s ease;
}

.step-counter {
    font-size: 14px;
    color: var(--blueSecondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--brancoTitle);
    font-family: "Clash", sans-serif;
}

.step input[type="text"],
.step input[type="email"],
.step input[type="tel"],
.step input[type="url"],
.step textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px 15px;
    font-size: clamp(18px, 1.5vw, 24px);
    color: var(--brancoTitle);
    font-family: "Inter", sans-serif;
    outline: none;
    transition: all 0.3s;
    border-radius: 8px 8px 0 0;
}

.step input:focus,
.step textarea:focus {
    border-color: var(--bluePrimary);
}

.radio-options,
.urgencia-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-options label,
.urgencia-options label {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.radio-options input,
.urgencia-options input {
    display: none;
}

.radio-options label:has(input:checked),
.urgencia-options label:has(input:checked) {
    background: var(--bluePrimary);
    border-color: var(--blueSecondary);
    color: white;
}

.funil-botoes {
    margin-top: 60px;
    display: flex;
    gap: 20px;
}

.funil-botoes button {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-family: "Inter", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

#prevBtn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--brancoTitle);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#prevBtn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

#nextBtn {
    background: var(--blueGradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

#nextBtn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
    filter: brightness(1.1);
}

#nextBtn:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .header-funil {
        padding: 15px 6vw;
    }
    .header-funil h1 {
        font-size: 20px;
    }
    .voltar {
        padding: 8px 15px;
        font-size: 13px;
        gap: 6px;
    }
    .voltar img {
        width: 16px !important;
    }
    .funil-container { 
        margin: 10vw auto; 
        padding: 0 6vw;
    }
    .step h2 { 
        font-size: 26px; 
        margin-bottom: 30px;
    }
    .radio-options, .urgencia-options {
        gap: 12px;
    }
    .radio-options label, .urgencia-options label {
        width: 100%;
        padding: 20px;
        text-align: center;
        font-size: 18px;
    }
    .funil-botoes {
        flex-direction: column-reverse;
        gap: 15px;
        margin-top: 40px;
    }
    .funil-botoes button {
        width: 100%;
        padding: 20px;
        font-size: 18px;
    }
}

