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

/* 1. Preloader cobrindo toda a janela com o gradiente idêntico ao do vídeo */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Cores exatas extraídas do fundo do estúdio do vídeo (do topo ao chão) */
  background: linear-gradient(
    to bottom,
    #9a9592 0%,
    #a6a19e 25%,
    #b2adaa 50%,
    #d4ceca 75%,
    #f0eae5 100%
  );
  background-color: #a6a19e;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s ease-out;
}

/* 2. Vídeo único na tela toda com fusão suave nas laterais */
#preloader video {
  width: 100%;
  height: 100%;
  max-width: 85vw;
  max-height: 100vh; /* Espaçamento para o cabelo e tênis aparecerem 100% sem encostar na borda */
  object-fit: cover;
  pointer-events: none;

  /* Dissolve suavemente as bordas laterais do vídeo no fundo para eliminar qualquer corte ou diferença de tom */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* 3. Porcentagem no canto inferior direito */
.preloader-counter {
  position: absolute;
  bottom: 35px;
  right: 40px;
  z-index: 10;
  color: #1e2229;
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem); /* Responsivo para mobile e desktop */
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6);
  user-select: none;
}

/* 4. Ocultar o preloader ao finalizar */
.esconder-preloader {
  opacity: 0;
  visibility: hidden;
}

/* 5. Estilos Gerais da Página */
body {
  background-color: #f8f9fa;
  color: #1e293b;
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    sans-serif;
  overflow-x: hidden;
}

/* 6. Header / Navegação */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #64748b;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0f172a;
}

/* 7. Seção Hero (Apresentação + Vídeo) */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

/* Lado Esquerdo: Textos e Botões */
.hero-texto {
  display: flex;
  flex-direction: column;
}

.hero-titulo {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.destaque-nome {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitulo {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  color: #475569;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.tag-frontend {
  color: #2563eb;
  font-weight: 700;
}

.hero-descricao {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-botoes {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}

.btn-secondary:hover {
  background-color: #f8f9fa;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

/* Lado Direito: Vídeo 9:16 sem cortes */
.hero-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.video-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  background-color: #a6a19e;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 8. Responsividade */
@media (max-width: 900px) {
  .header {
    height: 70px;
  }

  .header-container {
    padding: 0 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero {
    padding-top: 90px;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding: 1.5rem 1.25rem 3.5rem;
  }

  .hero-texto {
    align-items: center;
  }

  .hero-descricao {
    max-width: 100%;
  }

  .hero-botoes {
    justify-content: center;
  }

  .video-card {
    max-width: 280px;
    max-height: 50vh;
  }
}

@media (max-width: 768px) {
  #preloader {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  #preloader video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    max-width: none;
    max-height: none;

    object-position: 38% center;

    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%
    );

    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%
    );
  }

  .preloader-counter {
    right: 20px;
    bottom: 20px;

    font-size: 2.2rem;
  }
}
