/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(to bottom, #f7f9fc, #eaeff5);
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}
/* ---------------- Cabeçalho ---------------- */
.hero {
  background-image: url('assets/img/servicos2.png');
  background-size: cover;
  background-position: center;
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  opacity: 0.8;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 20px;
}

.menu-centralizado ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.menu-centralizado a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.menu-centralizado a:hover {
  background-color: #00ccaa;
}

.logo-servico {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

/* ---------------- Rodapé ---------------- */
footer {
  background-color: #0a0a23;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* ---------------- Containers ---------------- */
.container {
  max-width: 100%;
  margin: auto;
  padding: 40px 40px;
}

@media(max-width:768px){
  .container{
    padding-left: 0;
    padding-right: 0;
  }
}
/* ---------------- Sobre Mim ---------------- */
#sobre {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

#sobre h2 {
  font-size: 32px;
  color: #0a0a23;
  margin-bottom: 20px;
}

#sobre p {
  font-size: 18px;
  color: #555;
  margin-bottom: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sobre-mim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.foto-perfil {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 3px solid #0a0a23;
}

.texto {
  max-width: 600px;
  text-align: left;
}

@media (max-width: 768px) {
  .sobre-mim {
    flex-direction: column;
    text-align: center;
  }

  .texto {
    text-align: center;
  }
}

/* ---------------- Serviços ---------------- */
#Portifolio {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

#Portifolio h2 {
  font-size: 32px;
  color: #0a0a23;
  margin-bottom: 40px;
}

.cards-Portifolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.6s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 255, 204, 0.2);
  border-color: #00ccaa;
}

.card h3 {
  font-size: 20px;
  color: #0a0a23;
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  color: #555;
}

/* ---------------- Botão ---------------- */
.btn-card {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #0a0a23;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-card:hover {
  background-color: #00ccaa;
}

/* ---------------- Contato ---------------- */
#contato {
  background-color: #fff;
  padding: 60px 20px;
}

#contato h2 {
  text-align: center;
  color: #0a0a23;
  font-size: 32px;
  margin-bottom: 40px;
}

form {
  max-width: 700px;
  margin: auto;
}

.campo {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.campo label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.campo input,
.campo textarea,
.campo select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
  border-color: #0a0a23;
  outline: none;
}

/* ---------------- WhatsApp ---------------- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

/* ---------------- Carrossel estilo Netflix ---------------- */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.grid-projetos {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 30px 10px;
}

.grid-projetos::-webkit-scrollbar {
  height: 10px;
}

.grid-projetos::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 5px;
}

.grid-projetos::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

.card-projeto {
  flex: 0 0 450px;
  height: 550px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  animation: fadeUp 0.8s ease forwards;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.card-projeto:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-projeto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-projeto h3 {
  position: absolute;
  bottom: 0;
  width: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.4);
  color: #fff;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

@media(max-width: 768px){
  .carousel-wrapper{
    width: 100vw;
    margin-top: calc(-50vw + 50%);
  }
}

@media(max-width:768px){
  .grid-projetos{
    padding:20px 16px;
    gap:16px
  }
}

@media(max-width:768px){
  .card-projeto{
    flex: 0 0 88vw;
    height: 420px;
  }
}

@media(max-width: 768px){
  .card-projeto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media(max-width:768px){
  .grid-projetos{
    scroll-snap-type: x mandatory;
  }
  .card-projeto{
    scroll-snap-align: center;
  }
}

/* Animação */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Setas do carrossel */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 28px;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.scroll-btn {
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.scroll-btn:hover {
  background-color: #00ccaa;
}

.scroll-btn.left {
  left: 15px;
}

.scroll-btn.right {
  right: 15px;
}

/* ---------------- Botão voltar ---------------- */
.btn-card {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 24px;
  background-color: #0a0a23;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.btn-card:hover {
  background-color: #00ccaa;
}

/* ---------------- WhatsApp ---------------- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

@keyframes pulseWhats {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(0, 204, 170, 0.55); }
  70%  { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(0, 204, 170, 0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(0, 204, 170, 0); }
}

.whatsapp-float {
  animation: pulseWhats 1.8s infinite;
}

.whatsapp-float:hover {
  animation: none; 
}

/* ---------------- Responsivo ---------------- */
@media (max-width: 768px) {
  .card-projeto {
    flex: 0 0 80%;
    height: 400px;
  }

  .card-projeto h3 {
    font-size: 16px;
    padding: 10px;
  }

  .scroll-btn {
    display: none;
  }
}

/* ---------------- Cabeçalho fixo ---------------- */
.cabecalho {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('../meu-site/assets/img/subestacao.png') center/cover no-repeat;
  padding: 40px 40px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cabecalho-conteudo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-header {
  height: 60px;
  width: auto;
}

.titulo-header {
  font-size: 24px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .hero {
    height: 45vh;
  }

  .overlay {
    padding: 22px;
  }

  .menu-centralizado ul {
    gap: 12px;
  }

  .cards-servicos {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    padding: 22px 16px;
  }

  .btn-card {
    width: 100%;
    text-align: center;
  }
}

#especialidades {
  background: linear-gradient(to bottom, #ffffff, #f2f5fa);
  padding: 80px 20px;
  text-align: center;
}

#especialidades h2 {
  font-size: 32px;
  color: #0a0a23;
  margin-bottom: 10px;
}

#especialidades .subtitulo {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 50px;
}

.grid-especialidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.especialidade {
  background: #fff;
  border-radius: 14px;
  padding: 30px 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.especialidade:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 204, 170, 0.25);
}

.especialidade i {
  font-size: 36px;
  color: #00ccaa;
  margin-bottom: 15px;
}

.especialidade h3 {
  font-size: 20px;
  color: #0a0a23;
  margin-bottom: 10px;
}

.especialidade p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

/* Dark mode automático */
@media (prefers-color-scheme: dark) {
  #especialidades {
    background: #0b1020;
  }

  .especialidade {
    background: #121a2e;
  }

  .especialidade h3 {
    color: #e8ecf1;
  }

  .especialidade p,
  #especialidades .subtitulo {
    color: #cfd6e3;
  }
}

/* ---------------- Indicadores ---------------- */
#indicadores {
  background: linear-gradient(135deg, #0a0a23, #003366);
  padding: 80px 20px;
}

.grid-indicadores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.indicador {
  color: #fff;
  padding: 30px 20px;
  transition: transform 0.3s ease;
}

.indicador:hover {
  transform: translateY(-6px);
}

.indicador i {
  font-size: 34px;
  color: #00ccaa;
  margin-bottom: 12px;
}

.indicador .numero {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: #00ccaa;
  margin-bottom: 6px;
}

.indicador .descricao {
  font-size: 15px;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
  .indicador .numero {
    font-size: 36px;
  }
}

/* ---------------- Depoimentos ---------------- */
#depoimentos {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

#depoimentos h2 {
  font-size: 32px;
  color: #0a0a23;
  margin-bottom: 10px;
}

#depoimentos .subtitulo {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 50px;
}

.grid-depoimentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.depoimento {
  background: #f7f9fc;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: left;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.depoimento::before {
  content: "“";
  font-size: 80px;
  color: #00ccaa;
  position: absolute;
  top: -20px;
  left: 20px;
  opacity: 0.25;
  font-family: serif;
}

.depoimento:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 204, 170, 0.25);
}

.depoimento .texto {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.depoimento .autor strong {
  display: block;
  font-size: 16px;
  color: #0a0a23;
}

.depoimento .autor span {
  font-size: 14px;
  color: #666;
}

/* Dark mode automático */
@media (prefers-color-scheme: dark) {
  #depoimentos {
    background: #0b1020;
  }

  #depoimentos h2 {
    color: #e8ecf1;
  }

  #depoimentos .subtitulo {
    color: #cfd6e3;
  }

  .depoimento {
    background: #121a2e;
  }

  .depoimento .texto {
    color: #e8ecf1;
  }

  .depoimento .autor span {
    color: #b8c0d4;
  }
}

