/* ===== CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  
  body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
  }
  
  /* ===== NAVBAR ===== */
nav {
  position: fixed;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  z-index: 10;
}

nav h1 {
  font-size: 1.5rem;
}

nav h1 span {
  color: #c80000;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #c80000;
}

nav h1 a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

nav h1 a:hover {
  color: #c80000;
}

/* ===== NAVBAR AUTOHIDE ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Esconde a nav deslizando pra cima */
nav.hide {
  transform: translateY(-100%);
}

/* Quando visível e o usuário já rolou um pouco — sombra para destaque */
nav.show-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

  /* ===== HEADER ===== */
  header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }

  /* ===== ANIMAÇÃO DE APARIÇÃO ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* VÍDEO DE FUNDO */
  #bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-color: black; /* evita fundo branco no carregamento */
  }
  
  /* Ajuste de proporção no desktop */
  @media (min-width: 1024px) {
    #bg-video {
      width: 40%;
      height: auto;
    }
  }
  
  .header-content {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.55);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
  }
  
  header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  header p {
    font-size: 1.1rem;
  }
  
  .btn-header {
    background: #c80000;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
  }
  
  .btn-header:hover {
    background: #a10202;
    transform: scale(1.05);
  }
  
  /* ===== SEÇÕES ===== */
  section {
    padding: 100px 10%;
    text-align: center;
  }
  
  section h2 {
    color: #d40000;
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  /* ===== SOBRE ===== */
  #sobre .content {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  #sobre img {
    width: 320px;
    border-radius: 20px;
  }
  
  #sobre p {
    max-width: 500px;
    line-height: 1.6;
    font-size: 1.1rem;
  }
  
  /* ===== SERVIÇOS ===== */
.cards {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative; /* necessário para o pseudo-elemento */
    z-index: 1;
    padding: 60px 20px;
  }
  
  /* ::before cria o fundo animado */
  .cards::before {
    content: "";
    position: absolute;
    inset: 0; /* cobre toda a área do .cards */
    background: url("./img/gif-fundo.gif") center/cover no-repeat;
    opacity: 0.6; /* deixa o gif suave para não distrair */
    z-index: -1; /* fica atrás de tudo */
    pointer-events: none; /* garante que não bloqueie cliques */
  }
  
  .card {
    background: #fff;
    color: #000;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 320px;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 2; /* fica acima do gif */
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(212, 0, 0, 0.5);
  }
  
  .card i {
    font-size: 2rem;
    color: #d40000;
    margin-bottom: 15px;
  }
  
  .card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
  }
  
  
  /* ===== CONTATO ===== */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
  }
  
  .contact-buttons a {
    padding: 12px 25px;
    border-radius: 30px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .whatsapp {
    background: #25d366;
  }
  
  .whatsapp:hover {
    background: #1ebe5d;
    transform: scale(1.05);
    opacity: 0.9;
  }
  
  .instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  }
  
  .instagram:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }
  
  /* ===== FOOTER ===== */
  footer {
    text-align: center;
    background: #111;
    padding: 20px;
    font-size: 0.9rem;
  }
  
  /* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 1.8rem;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    transition: 0.3s;
    z-index: 999;
  }
  
  .whatsapp-float:hover {
    transform: scale(1.1);
  }
  