* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f0f0f;
  color: white;
  overflow-x: hidden; /* Evita que a página "dance" para os lados no celular */
}

/* ========================================= */
/* HEADER - FIXO E SEM QUEBRA DE LINHA       */
/* ========================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%; /* Reduzido de 10% para 5% para ganhar espaço horizontal */
  background: #111;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: nowrap; /* IMPEDE QUEBRA DE LINHA */
}

header h1 {
  font-size: 18px; /* Ajuste para caber em telas menores */
  text-shadow: 0 0 10px #a855f7, 0 0 20px #06b6d4;
  white-space: nowrap; /* Garante que o nome não se divida em dois */
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* Mantém links lado a lado no mobile */
}

nav a {
  color: white;
  margin-left: 15px; /* Espaçamento reduzido para evitar aperto */
  text-decoration: none;
  transition: 0.3s;
  font-size: 14px;
  white-space: nowrap; /* Impede que links como "Nossos Serviços" quebrem */
}

nav a:hover {
  color: #06b6d4;
}

/* ========================================= */
/* HERO (PADRÃO - HOME)                      */
/* ========================================= */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 10%;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-text {
  max-width: 500px;
}

.hero-text h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero-text p {
  margin-bottom: 20px;
}

.hero-img video {
  width: 400px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.hero-img video:hover {
  transform: scale(1.03);
}

/* ========================================= */
/* BOTÕES E COMPONENTES                      */
/* ========================================= */
.btn {
  padding: 12px 25px;
  border-radius: 30px;
  background: #0f0f0f;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #06b6d4;
}

.servicos {
  padding: 60px 10%;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 15px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #a855f7;
}

.preco {
  margin: 10px 0;
  color: #06b6d4;
  font-weight: bold;
}

.cta {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
}

footer {
  background: #111;
  text-align: center;
  padding: 20px;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  padding: 15px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 0 10px #25d366;
  z-index: 9999;
}

/* ========================================= */
/* RESPONSIVIDADE (MOBILE)                   */
/* ========================================= */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-img video {
    width: 90%;
  }
}

/* Ajustes finos para celulares pequenos */
@media (max-width: 480px) {
  header {
    padding: 15px 10px; /* Mais espaço interno para os itens */
  }

  header h1 {
    font-size: 16px;
  }

  nav a {
    margin-left: 8px; /* Cola os links para caberem todos */
    font-size: 12px;
  }

  .hero-text h2 {
    font-size: 30px;
  }
}

/* ========================================= */
/* PÁGINA DE SERVIÇOS                        */
/* ========================================= */
/* ========================================= */
/* EFEITOS DE BACKGROUND (PÁGINA SERVIÇOS)   */
/* ========================================= */

.pagina-servicos {
    position: relative;
    background: #0a0a0a; /* Fundo base escuro */
}

/* Criando a grade cibernética no fundo */
.pagina-servicos::before {
    content: "";
    position: fixed; /* Fica fixo enquanto rola */
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

/* Manchas de luz para tirar o vazio */
.glow-bg {
    position: fixed;
    width: 500px;
    height: 500px;
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: #a855f7;
    animation: float 15s infinite alternate;
}

.glow-2 {
    bottom: -100px;
    right: -100px;
    background: #06b6d4;
    animation: float 20s infinite alternate-reverse;
}

@keyframes float {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 80px) scale(1.1); }
}

/* Ajuste nos cards para serem semi-transparentes (Glassmorphism) */
.pagina-servicos .card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Removendo o gradiente pesado da seção servicos para ver o fundo */
.pagina-servicos .servicos {
    background: transparent !important;
}