/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;      /* rolagem suave */
  scroll-padding-top: 80px;     /* altura do seu header */
}


/* Fonte */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #fffdfd;
  margin: 0;
  background: linear-gradient(135deg, #031e3a, #87d9f0ef); /* degrade azul */
}

/* Cabeçalho fixo */
header {
  background: #030507;
  padding: 15px 30px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

}
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}
.menu li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}
.menu li a:hover {
  text-decoration: underline;
}

.logo img {
  height: 50px;     /* padrão */
  width: auto;
}

/* Redução do layout apenas para desktop */
@media (min-width: 1024px) {
  header {
    padding: 6px 30px; /* Menor padding no desktop */
  }

  .menu {
    gap: 40px; /* Menor espaçamento entre os links */
  }

  .menu li a {
    font-size: 14px; /* Fonte um pouco menor */
  }

  .logo img {
    height: 80px; /* Logo menor no desktop */
  }
}

/* 🔹 Seção Serviços */







/* Seção inicial (hero) */
.hero {
  height: 100vh; /* ocupa a tela inteira */
  background: url("image/fundo inicial.jpeg") no-repeat center center;
  background-size: cover; /* cobre toda a área */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  font-size: 1.0rem; /* Aumente conforme quiser */
}

/* Fundo levemente escuro para dar contraste */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.795); /* escurece a imagem */
  z-index: 1;
}

/* Logo centralizada */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-logo {
  max-width: 300px;  /* tamanho da logo */
  width: 80%;        /* adapta ao celular */
  height: auto;

 
}


/* Seções */
.section {
  padding: 80px 10%;
  margin-top: 80px;
  text-align: center;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Ajuste só para a aba Serviços */
#servicos {
  padding: 60px 20px;
 
  text-align: center;
}

#servicos h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.cards-servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* responsivo */
  gap: 20px;
}

.card-servico {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card-servico:hover {
  transform: translateY(-5px);
}

.icon-servico {
  width: 100px;
  height: 100px;
  border-radius: 50%; /* deixa a imagem redonda */
  object-fit: cover;
  margin-bottom: 15px;
}

.card-servico h3 {
  margin-bottom: 10px;
  color: #0077b6;
}

.card-servico p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* Projetos */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards por linha */
  gap: 20px;
}

.card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  height: auto; /* altura fixa para todos os cards */
}

.img-container {
  position: relative;
  width: 100%;
  height: 280px; /* altura fixa das imagens */
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantém proporção e preenche a área */
  border-radius: 8px 8px 0 0;
}

/* Setas */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}

.card p {
  margin: 0;                       /* remove margem que podia empurrar o texto */
  padding: 8px 0;                  /* espaço interno */
  font-weight: bold;
  text-align: center;
  width: 100%;                     /* ocupa toda a largura do card */
  background-color: #060607;       /* fundo visível para o texto */
  flex-shrink: 0;                   /* garante que não encolha */
  }

/* Responsivo: tablets e celulares */
@media (max-width: 1024px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr); /* 2 cards por linha em tablets */
  }
}

@media (max-width: 600px) {
  .galeria {
    grid-template-columns: 1fr; /* 1 card por linha em celulares */
  }
}




/* ---------------- SEÇÃO CONTATO ---------------- */

.contato {
  padding: 60px 20px;
  background-color: #010407;
  text-align: center;
}

.contato h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fafafa;
}

.contato p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #fffdfd;
}

/* Links de contato */
.contato-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contato-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 12px 20px;
  border-radius: 10px;
  width: fit-content;
  transition: transform 0.2s, box-shadow 0.3s;
}

.contato-item img {
  width: 28px;
  height: 28px;
}

/* Cores específicas */
.contato-item.whatsapp {
  background: #25a2d3;
  color: white;
}

.contato-item.instagram {
  background:#25a2d3; 
  color: white;
}


/* Efeito hover */
.contato-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 4px 10px rgba(17, 16, 16, 0.2);
}



/* Rodapé */
footer {
  text-align: center;
  background: #060708;
  color: #fff;
  padding: 10px;
  font-size: 0.9rem;
}

/* =================== */
/* 🔹 Responsividade */
/* =================== */

/* Tablets e celulares */
@media (max-width: 768px) {
  .menu {
    flex-direction: row;
    gap: 10px;
  }
  .navbar h1 {
    font-size: 1rem;
  }
  .menu li a {
    font-size: 0.9rem;
  }
  .hero-content {
    padding: 0 25px;
  }
}

/* Celulares pequenos */
@media (max-width: 480px) {
  .navbar h1 {
    font-size: 1.2rem;
  }
  .section h2 {
    font-size: 1.5rem;
  }
  .contato-item {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
  }
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Animação Pulse */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
