:root {
  --cor-primaria: #00bfff;
  --cor-secundaria: #1a1a1a;
  --cor-fundo: #f8f9fa;
  --texto: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
  scroll-behavior: smooth;
}

/* ===== CABEÇALHO COM TELEFONE ===== */
header {
  background: linear-gradient(90deg, #111, #1b1b1b, #1a2a33);
  color: white;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left img {
  width: 130px;
}

.header-center nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.header-center nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.header-center nav a:hover {
  color: var(--cor-primaria);
}

.header-right {
  display: flex;
  align-items: center;
}

.header-phone {
  color: var(--cor-primaria);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.header-phone:hover {
  background: var(--cor-primaria);
  color: white;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 10px 15px;
  }

  .header-center nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-center nav ul::-webkit-scrollbar {
    display: none;
  }

  .header-phone {
    font-size: 0.9rem;
    margin-top: 8px;
  }
}


header img { width: 130px; }
nav ul { list-style: none; display: flex; gap: 25px; }
nav a { text-decoration: none; color: white; font-weight: 600; transition: 0.3s; }
nav a:hover { color: var(--cor-primaria); }

/* SLIDER */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
}

.slides {
  display: flex;
  transition: transform 1s ease;
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 5px;
  transition: 0.3s;
  z-index: 10;
}

.prev:hover, .next:hover {
  background: var(--cor-primaria);
}

.prev { left: 10px; }
.next { right: 10px; }

.dots-container {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: 0.3s;
  cursor: pointer;
}

.active, .dot:hover {
  background-color: var(--cor-primaria);
}

/* CONTEÚDO PRINCIPAL */
main { background: var(--cor-fundo); padding: 60px 20px; text-align: center; color: var(--texto); }
h1, h2 { color: var(--cor-secundaria); }
h1 { font-size: 2rem; margin-bottom: 15px; }
h3 { font-size: 1.2rem; color: #555; margin-bottom: 30px; }
.linha { width: 80px; height: 4px; background: var(--cor-primaria); margin: 10px auto 40px; border-radius: 2px; }
.servicos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; padding: 10px 0; }
.servico { background: white; border-radius: 15px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.servico:hover { transform: translateY(-8px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.servico img { width: 100%; border-radius: 10px; margin-bottom: 15px; transition: 0.3s; }
.servico img:hover { transform: scale(1.02); }

/* ===== SEÇÃO DE INSTALAÇÃO ===== */
#instalacao {
  background: white;
  padding: 60px 20px;
  text-align: center;
}
#instalacao h2 {
  font-size: 1.8rem;
  color: var(--cor-secundaria);
}
.galeria-instalacao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.galeria-instalacao img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.galeria-instalacao img:hover {
  transform: scale(1.05);
}

/* ===== NOSSOS CLIENTES ===== */
#clientes {
  background: #f4f8fc;
  padding: 60px 20px;
}
.mural-clientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}
.mural-clientes img {
  max-width: 100px;
  transition: 0.3s;
  opacity: 0.8;
}
.mural-clientes img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* ===== MINI CHAT ===== */
#chat-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  font-size: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: 0.3s;
  animation: pulse 2s infinite;
}
#chat-bubble:hover { transform: scale(1.1); }

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== RODAPÉ ===== */
footer {
  background: linear-gradient(90deg, #1a1a1a, #0f1b22);
  color: white;
  text-align: center;
  padding: 40px 20px;
}
.footer-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}
.footer-info h3 { color: var(--cor-primaria); font-size: 1rem; margin-bottom: 8px; }
.footer-info p { font-size: 0.9rem; line-height: 1.5; }
.footer-info a { color: white; text-decoration: none; transition: 0.3s; }
.footer-info a:hover { color: var(--cor-primaria); text-decoration: underline; }
footer hr { border: none; height: 1px; background: #444; margin: 20px 0; }

/* ===== RESPONSIVIDADE DO MENU ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 10px 15px;
  }

  nav ul {
    flex-direction: row;              /* 🔹 Sempre lado a lado */
    justify-content: center;          /* 🔹 Centralizado */
    align-items: center;
    flex-wrap: nowrap;                /* 🔹 Impede quebrar linha */
    overflow-x: auto;                 /* 🔹 Permite rolagem horizontal se apertar */
    white-space: nowrap;              /* 🔹 Mantém itens em linha */
    gap: 10px;
    padding: 5px;
    scrollbar-width: none;            /* 🔹 Oculta barra de rolagem no Firefox */
  }

  nav ul::-webkit-scrollbar {
    display: none;                    /* 🔹 Oculta barra de rolagem no Chrome */
  }

  nav a {
    font-size: 1.85rem;               /* 🔹 Diminui tamanho da fonte */
    padding: 6px 15px;                /* 🔹 Reduz espaço interno */
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
    flex-shrink: 0;                   /* 🔹 Impede encolher o texto */
  }

  nav a:hover {
    background: var(--cor-primaria);
    color: white;
  }
}

/* ===== Ajuste extra para telas muito pequenas ===== */
@media (max-width: 420px) {
  nav a {
    font-size: 0.75rem;               /* 🔹 Reduz mais ainda a fonte */
    padding: 5px 8px;
  }
}

/* ===== INSTALAÇÃO COM VÍDEOS ===== */
#instalacao {
  background: white;
  padding: 60px 20px;
  text-align: center;
}
#instalacao h2 {
  font-size: 1.8rem;
  color: var(--cor-secundaria);
}
.galeria-instalacao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.instalacao-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.instalacao-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.instalacao-item video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: 0.3s;
}

/* Ao passar o mouse no desktop, vídeo toca e mostra overlay suave */
@media (hover: hover) and (pointer: fine) {
  .instalacao-item video {
    filter: brightness(0.8);
  }
  .instalacao-item:hover video {
    filter: brightness(1);
  }
}

/* ===== MODAL DE VÍDEO (para mobile e clique) ===== */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.video-content {
  position: relative;
  width: 85%;
  max-width: 800px;
}
.video-content video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.fechar {
  position: absolute;
  top: -40px;
  right: -5px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: 0.3s;
}
.fechar:hover {
  color: var(--cor-primaria);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .galeria-instalacao {
    grid-template-columns: 1fr;
  }
}

/* ===== SPLASH SCREEN MOBILE ===== */
#splash-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--cor-primaria); /* Azul principal */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999999;
  transition: opacity 1s ease, visibility 1s ease;
}

.splash-content {
  text-align: center;
  color: white;
}

.splash-logo {
  width: 180px;
  max-width: 60%;
  animation: fadeInLogo 2s ease;
}

/* Texto "Somos 5 estrelas..." */
.splash-text {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  opacity: 0;
  animation: fadeText 3s forwards 1.5s;
}

@keyframes fadeText {
  to { opacity: 1; }
}

/* Estrelas animadas */
.stars {
  margin-top: 10px;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star {
  opacity: 0;
  transform: scale(0.5);
  animation: starAppear 0.5s ease forwards;
}

/* Animação de entrada de cada estrela */
.star:nth-child(1) { animation-delay: 1.8s; }
.star:nth-child(2) { animation-delay: 2.2s; }
.star:nth-child(3) { animation-delay: 2.6s; }
.star:nth-child(4) { animation-delay: 3.0s; }
.star:nth-child(5) { animation-delay: 3.4s; }

@keyframes starAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animação do logo */
@keyframes fadeInLogo {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Esconde o splash após a animação */
#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Mostra apenas em dispositivos móveis */
@media (min-width: 769px) {
  #splash-screen {
    display: none;
  }
}

/* Esconde o splash após a animação */
#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Mostra apenas em dispositivos móveis */
@media (min-width: 769px) {
  #splash-screen {
    display: none;
  }
}

/* ===== INSTALAÇÃO DE PROJETORES ===== */
#instalacao {
  background: white;
  padding: 60px 20px;
  text-align: center;
}
#instalacao h2 {
  font-size: 1.8rem;
  color: var(--cor-secundaria);
}
.galeria-instalacao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.instalacao-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.instalacao-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.instalacao-item video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: 0.3s;
}

/* ===== MODAL ===== */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.video-content {
  position: relative;
  width: 60%;        /* 🔹 Reduz a largura do player */
  max-width: 450px;  /* 🔹 Tamanho máximo em telas grandes */
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s ease;
}

.video-content video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
/* ===== BOTÃO FECHAR MODAL ===== */
.fechar {
  position: absolute;
  top: 10px;              /* 🔹 Move pra dentro do vídeo */
  right: 15px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4); /* 🔹 Fundo suave */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  z-index: 10000;         /* 🔹 Garante que sempre apareça */
}

.fechar:hover {
  background: var(--cor-primaria);
  color: white;
  transform: scale(1.1);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .galeria-instalacao {
    grid-template-columns: 1fr;
  }
}
/* ===== ESCONDER SETAS NO MOBILE ===== */
@media (max-width: 768px) {
  .prev,
  .next {
    display: none !important;
  }
}
