/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.6;
    background: url('images/bkg.png') no-repeat center top; /* Adicione a imagem de fundo */
  background-size: cover; /* Faz a imagem cobrir toda a largura */
  background-attachment: fixed; /* Mantém o background fixo durante a rolagem */
  background-position: center top; /* Inicia do topo e centralizado */
}

/* Cabeçalho fixo */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
}

.menu li {
  margin: 0 20px;
}

.menu li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease;
}

.menu li a:hover {
  color: #008CFF;
}

/* Layout do container principal */
.container {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, 100vw); /* 2 colunas */
  grid-template-rows: repeat(2, 100vh); /* 2 linhas */
  width: 200vw; /* Largura total do grid */
  height: 200vh; /* Altura total do grid */
  transform: translate3d(0, 0, 0); /* Posição inicial */
  transition: transform 1s ease-in-out;
}

/* Cada página */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Backgrounds específicos para cada página */
.servicos-bg {
  background: linear-gradient(to top, #f06, #111);
}

.quem-somos-bg {
  background: linear-gradient(to left, #33ff57, #111);
}

.contato-bg {
  background: linear-gradient(to right, #0055ff, #111);
}

/* Estilo da área Parallax */
.parallax-objects {
  position: absolute;
  top: 0;
  left: 0;
  width: 200vw; /* Mesmo tamanho do container */
  height: 200vh;
  pointer-events: none;
}

.parallax-objects div {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden; /* Impede elementos horizontais fora da tela */
}

/* Seção Hero */
.hero {
  position: relative;
  min-height: 100vh; /* Faz a seção ocupar toda a tela */
  display: flex;
  flex-direction: column; /* Alinha o texto verticalmente */
  align-items: center; /* Centraliza o conteúdo horizontalmente */
  justify-content: center; /* Centraliza o conteúdo verticalmente */
  overflow: hidden; /* Impede qualquer elemento estranho de sair da seção */
  text-align: center; /* Alinha o texto ao centro */
  padding: 0 20px; /* Adiciona espaçamento para evitar corte do texto nos lados */
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que o vídeo cubra toda a área */
  z-index: -1; /* Coloca o vídeo atrás do texto */
}

.hero-content {
  position: relative; /* Permite controle do posicionamento */
  z-index: 1; /* Coloca o texto acima do vídeo */
  color: white;
}

/* Títulos e Descrição */
.hero-content h1 {
  font-size: 3rem; /* Títulos grandes */
  margin-bottom: 20px;
  word-wrap: break-word; /* Quebra o texto se necessário */
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 90%; /* Limita a largura do texto para não ultrapassar as bordas */
  margin: 0 auto; /* Centralização adicional */
}

/* --- Responsividade Ajustada --- */

/* Smartphones (até 575px) */
@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 1.8rem; /* Reduz tamanho do texto em dispositivos pequenos */
  }

  .hero-content p {
    font-size: 1rem;
    max-width: 100%; /* Garante que o texto não será cortado */
  }
}

/* Tablets (576px até 768px) */
@media (min-width: 576px) and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    max-width: 95%; /* Limita o texto no tablet */
  }
}

/* Desktops (≥ 769px) */
@media (min-width: 769px) {
  .hero-content h1 {
    font-size: 3rem; /* Tamanho normal para desktops */
  }

  .hero-content p {
    font-size: 1.2rem;
    max-width: 70%; /* Texto mais compacto em desktops grandes */
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}


