/* ==== HEADER SUPER ESTILIZADO (VERSÃO 2.1) ==== */

/* -- Variáveis de cor -- */
:root {
  --cor-principal: #a020f0;   /* Roxo principal */
  --cor-hover: #ff33ff;       /* Rosa/Magenta para hover */
  --cor-fundo-vidro: rgba(20, 20, 20, 0.75); /* Fundo escuro com transparência levemente mais forte */
  --cor-texto-claro: #f0f0f0;
  --cor-sombra-texto: rgba(160, 32, 240, 0.5);
}

header {
  background: var(--cor-fundo-vidro);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  padding: 22px 0;
  text-align: center;
  border-bottom: 2px solid rgba(160, 32, 240, 0.35);
  box-shadow: 0 6px 28px rgba(160, 32, 240, 0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: fadeInDown 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  user-select: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-110%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -- Título com gradiente aprimorado -- */
header h1 {
  font-size: 3em;
  font-weight: 900;
  letter-spacing: 2.5px;
  background: linear-gradient(45deg, var(--cor-principal), var(--cor-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 0 18px var(--cor-sombra-texto);
  transition: text-shadow 0.4s ease;
}

/* Sutil animação no hover do título (opcional) */
header h1:hover {
  text-shadow: 0 0 30px var(--cor-hover), 0 0 25px var(--cor-principal);
}

/* Subtítulo */
header p {
  font-size: 1.15em;
  color: #c8c8c8;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: 0.6px;
}

/* Navegação */
header nav {
  margin-top: 18px;
}

header nav a {
  color: var(--cor-texto-claro);
  margin: 0 20px;
  padding-bottom: 8px;
  font-size: 1.15em;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.35s ease;
}

/* Linha animada que aparece no hover */
header nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px; /* linha um pouco mais grossa */
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--cor-principal), var(--cor-hover));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 2px;
}

/* Hover */
header nav a:hover {
  color: #fff;
}

header nav a:hover::after {
  transform: scaleX(1);
}

/* Link ativo */
header nav a.active {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 0 10px var(--cor-principal);
}

header nav a.active::after {
  transform: scaleX(1);
  box-shadow: 0 0 12px var(--cor-principal);
  border-radius: 2px;
}

/* Responsividade simples */
@media (max-width: 600px) {
  header h1 {
    font-size: 2.2em;
  }

  header nav a {
    margin: 0 12px;
    font-size: 1em;
  }
}