/* 1. Importação da Fonte (GLOBAL.CSS) */

/* 2. Variáveis CSS para Cores (facilita alterações) */
:root {
  --color-dark: linear-gradient(
    90deg,
    #1c1c1c 0%,
    #2a2a2a 40%,
    #3a3a3a 50%,
    #2a2a2a 60%,
    #1c1c1c 100%
  );

  --color-accent: #d4af37;
  --color-light: #efefef;
  --color-text-dim: #555;
  --color-bg-hero: #1b1b1b;
}

/* 3. Estilos Base (Reset e Body) */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg-hero);
  overflow-x: hidden;
  /* Evita a rolagem horizontal indesejada */
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* 4. HEADER / NAV (Menu de Navegação) */
.header {
  width: 100%;
  height: 100px;
  background: var(--color-dark);
  position: sticky;
  /* Mantém no topo ao rolar */
  top: 0;
  z-index: 10;
}

.header ul {
  display: flex;
  /* Simplifica o alinhamento central */
  justify-content: center;
  align-items: center;
  height: 100%;
}

.header li {
  position: relative;
  height: 100%;
  /* Define o espaçamento horizontal e centraliza o texto */
  padding: 0 20px;
  line-height: 100px;
  text-align: center;
  color: var(--color-text-dim);
  transition: color 0.3s ease;
  cursor: pointer;

  /* Tipografia (conforme o original) */
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
}

/* Efeito Hover: Linha amarela por baixo (substitui o complexo 'slide') */
.header li:hover {
  color: var(--color-light);
}

.header li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.header li:hover::after {
  width: 100%;
  left: 0;
}

/* 5. SEÇÃO HERO (Seção principal) */
.hero-section {
  background-image:
    radial-gradient(circle at 30% 20%, #88888899, #0000002a),
    url("https://www.toptal.com/designers/subtlepatterns/uploads/ep_naturalblack.png");

  background-attachment: fixed;

  min-height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.title-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  /* Necessário para o efeito de entrada do texto */
}

.title-container span {
  display: block;
  text-align: center;
  color: #bfc7ce;
  /* Inicia a animação */
  animation: byBottom 1s ease both;
  transform: translateY(150%);
  /* Garante que o texto comece fora da tela */
}

.main-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 12px;

  color: #bababa;

  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.subtitle-text {
  font-family: "Zilla Slab Highlight", serif;
  font-size: 1.2rem;
  animation-delay: 0.25s;
  /* Atraso na animação */
  font-weight: 1000;
}

.subtitle-text a {
  font-family: "Zilla Slab Highlight", serif;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Efeito de Sublinhado Animado no Link */
.subtitle-text a::after {
  content: "";
  height: 2px;
  background-color: var(--color-accent);
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  animation: linkAfter 0.5s 1s ease both;
}

/* 6. Animações (Limpas - sem prefixos) */
@keyframes byBottom {
  0% {
    transform: translateY(150%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes linkAfter {
  0% {
    width: 0;
  }

  100% {
    width: 30px;
  }
}

/* Responsividade Básica para telas menores */
@media (max-width: 768px) {
  .header {
    width: 100%;
    height: auto;
    background: var(--color-dark);
    position: static;
    top: 0;
  }

  .header ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .header li {
    margin: 10px;
    padding: 0;
    height: auto;
    line-height: normal;
    font-size: 0, 75rem;
    letter-spacing: 2px;
  }

  .header a {
    display: inline-block;
    margin: 0;
    padding: 2px 0;
    line-height: 1;
  }

  .hero-section {
    background-color: var(--color-bg-hero);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }
}
