@import url("https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap");

/* =====================
   CSS CUSTOM PROPERTIES
   ===================== */
:root {
  --color-bg: #000;
  --color-text: rgba(255, 255, 255, 0.9);
  --color-text-muted: rgba(255, 255, 255, 0.75);
  --color-gold: rgba(255, 170, 0, 0.25);
  --color-gold-hover: rgba(255, 170, 0, 0.35);
  --color-border: rgba(255, 255, 255, 0.2);
  --transition-base: 0.35s ease;
}

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

/* =====================
   FONTS
   ===================== */
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
}

/* =====================
   BASE
   ===================== */
body {
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: "Assistant", sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Assistant", sans-serif;
}

a,
a img {
  transition: transform 0.3s ease;
}

/* =====================
   BUTTONS
   ===================== */
.botoes {
  display: flex;
  gap: 36px;
}

.botoes a {
  text-decoration: none;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.9);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 10px 10px 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 40px;
  min-width: 200px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Efeito brilho passando */
.botoes a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.6s;
}

.botoes a:hover::before {
  left: 130%;
}

.botoes a:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.25),
    0 0 12px var(--color-gold);
}

/* Btn secundário */
.botoes .btn2 {
  background-color: #0c0c0c;
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.151);
}

.botoes .btn2:hover {
  background: linear-gradient(135deg, #1a1a1a, #000000);
  border-color: rgba(255, 200, 100, 0.5);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 18px var(--color-gold-hover);
  transform: translateY(-4px) scale(1.02);
}

.botoes a:hover img {
  transform: translateX(4px);
}

.logo-link {
  background: none;
  min-width: unset;
}

/* =====================
   HEADER
   ===================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 4vw;
  position: fixed;
  width: 100%;
  z-index: 99;

  img {
    width: 50px;
  }

  h1 {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
  }
}

.dotvizion {
  font-family: "Clash Display", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}

/* =====================
   TRANSIÇÃO + HERO
   ===================== */
.transicao {
  width: 100%;
  height: 100vh;
}

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

  .bg {
    position: absolute;
    inset: 0;
    z-index: -1;

    video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .subtitulo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 350px;
    height: 56px;
    padding: 0 28px;
    overflow: hidden;
    border-radius: 999px;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(
      135deg,
      rgba(255, 200, 80, 0.18),
      rgba(255, 170, 0, 0.1)
    );
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 60px;
  }

  .subtitulo video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.08);
  }

  .subtitulo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      90deg,
      rgba(120, 70, 0, 0.22) 0%,
      rgba(255, 190, 60, 0.16) 50%,
      rgba(120, 70, 0, 0.22) 100%
    );
  }

  .subtitulo::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    );
  }

  .subtitulo h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: "Assistant", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  }
}

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

  h2 {
    font-size: clamp(28px, 4vw, 64px);
    text-align: center;
    font-weight: 500;
  }

  p {
    margin-top: 24px;
    width: 80%;
    font-size: clamp(15px, 1.2vw, 22px);
    line-height: clamp(24px, 1.8vw, 32px);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 200;
  }
}

/* =====================
   RETÂNGULOS (cortina)
   ===================== */
.retangulos {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;

  div {
    width: 100%;
    background-color: rgba(0, 0, 0, 1);
    transform: translateY(-100%);
  }
}

/* =====================
   SEÇÃO 2 (texto animado)
   ===================== */
.secao2 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;

  h2 {
    padding: 5vw;
    font-size: clamp(18px, 4vw, 64px);
    text-align: center;
    font-weight: 400;
    color: var(--color-text-muted);
  }
}

/* =====================
   SEÇÃO 3 (projetos)
   ===================== */
@keyframes imgReveal {
  from {
    opacity: 0;
    transform: translateY(70px) scale(0.98);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.secao3 {
  width: 100%;
  display: flex;
  background: black;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9;
  position: relative;

  h2 {
    font-size: clamp(24px, 4vw, 64px);
    margin: 60px 0;
  }

  p {
    margin-bottom: 60px;
    font-size: clamp(14px, 1.2vw, 22px);
    text-align: center;
  }

  .projetos {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .projetos img {
    width: 100vw;
    height: 100%;
    overflow: hidden;
    /* Scroll-driven animation */
    animation: imgReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* =====================
   ANIMAÇÃO FOOTER
   ===================== */
.animacaoFooter {
  position: relative;
  width: 100%;
  height: 100lvh;
}

/* =====================
   SEÇÃO 4 (diamante)
   ===================== */
.secao4 {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  .divDiamante {
    z-index: 1;
  }

  h2 {
    font-size: clamp(32px, 6vw, 96px);
    text-align: center;
    font-weight: 400;
    position: absolute;
  }

  h2:nth-child(1) {
    opacity: 1;
  }
}

/* =====================
   FOOTER
   ===================== */
footer {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  padding: 4vw;
  z-index: 100;
  opacity: 0;

  .bg {
    position: absolute;
    inset: 0;
    z-index: -1;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .esquerda {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;

    h2 {
      font-size: clamp(22px, 3.5vw, 56px);
    }

    p {
      font-size: clamp(14px, 1.1vw, 20px);
      max-width: 700px;
      margin-bottom: 20px;
    }
  }

  .direita {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;

    h2 {
      font-size: clamp(14px, 2vw, 32px);
      font-weight: 500;
      text-align: end;
    }

    p {
      font-size: clamp(14px, 1.1vw, 20px);
      text-align: end;
    }
  }
}

/* =====================
   RESPONSIVE — TABLET (≤ 1024px)
   ===================== */
@media (max-width: 1024px) {
  .conteudo {
    padding: 0 6vw;
  }

  .botoes {
    gap: 20px;
  }

  footer {
    padding: 6vw;
    gap: 40px;
  }

  footer .esquerda p,
  footer .direita p {
    font-size: 17px;
  }

  .secao4 h2 {
    font-size: clamp(28px, 7vw, 80px);
  }
}

/* =====================
   RESPONSIVE — MOBILE (≤ 768px)
   ===================== */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 20px 5vw;

    img {
      width: 36px;
    }

    h1 {
      font-size: 20px;
    }
  }

  .dotvizion {
    font-size: 20px;
  }

  /* Hero subtítulo */
  .hero .subtitulo {
    min-width: unset;
    width: 90%;
    height: auto;
    padding: 12px 20px;
    margin-bottom: 36px;

    h3 {
      font-size: 16px;
    }
  }

  /* Conteúdo hero */
  .conteudo {
    padding: 0 5vw;

    h2 {
      font-size: clamp(20px, 6vw, 36px);
    }

    p {
      width: 100%;
      font-size: clamp(14px, 4vw, 18px);
      line-height: 1.7;
    }
  }

  /* Botões */
  .botoes {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
  }

  .botoes a {
    min-width: 260px;
    font-size: 16px;
    justify-content: center;
  }

  /* Seção 2 */
  .secao2 h2 {
    font-size: clamp(16px, 5vw, 26px);
    padding: 8vw;
  }

  /* Seção 3 */
  .secao3 h2 {
    font-size: clamp(22px, 7vw, 40px);
    margin: 40px 0 20px;
  }

  .secao3 p {
    font-size: clamp(14px, 4vw, 18px);
    margin-bottom: 36px;
    padding: 0 5vw;
  }

  .secao3 .projetos {
    gap: 20px;
  }

  /* Seção 4 */
  .secao4 h2 {
    font-size: clamp(26px, 9vw, 60px);
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 8vw 6vw;
    gap: 48px;
    height: auto;
    min-height: 100vh;

  }

  footer .esquerda,
  footer .direita {
    width: 100%;
    align-items: flex-start;
  }

  footer .esquerda h2 {
    font-size: clamp(20px, 6vw, 40px);
  }

  footer .esquerda p {
    font-size: 15px;
    max-width: 100%;
  }

  footer .direita h2 {
    font-size: clamp(16px, 5vw, 24px);
    text-align: start;
  }

  footer .direita p {
    font-size: 15px;
    text-align: start;
  }
}

/* =====================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ===================== */
@media (max-width: 480px) {
  .conteudo h2 {
    font-size: clamp(18px, 7vw, 30px);
  }

  .botoes a {
    min-width: 220px;
    font-size: 15px;
  }

  .secao4 h2 {
    font-size: clamp(22px, 11vw, 48px);
  }


  footer .esquerda h2 {
    font-size: clamp(18px, 8vw, 36px);
  }
}
