/* --- RESET BÁSICO --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- MENU PRINCIPAL --- */
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px;
}

.logo img {
  height: 150px;
}

.menu-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.menu-links a {
  text-decoration: none;
  color: #673265;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 15px;
  margin: 0px 60px 0px 75px;
  transition: color 0.3s;
  padding: 20px 0px 0px 0px;
}

.menu-links a:hover {
  color: #df98df;
}

/* --- IMAGEM DE DESTAQUE (MAIN) --- */
.container {
  display: flex;
  justify-content: center;
  align-items: center;

}

.img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* --- CARROSSEL DA IMAGEM PRINCIPAL --- */

/* 1. A caixa que segura as fotos define o tamanho do círculo perfeito */
.carrossel-perfil {
  position: relative; /* Segura as fotos aqui dentro */
  width: 100%;
  height: 1800px;
}

/* 2. Estilo base para AMBAS as fotos */
.img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Ajuste o rosto da modelo aqui */
  
  /* Faz as fotos ficarem exatamente na mesma posição (empilhadas) */
  position: absolute;
  top: 0;
  left: 0;
}

/* 3. A animação da Foto 2 (Que está por cima) */
.foto-animada {
  /* Animação de 8 segundos que se repete infinitamente */
  animation: trocaFoto 8s infinite; 
}

/* 4. A Mágica do Tempo (Opcidade) */
@keyframes trocaFoto {
  0%, 40% { opacity: 0; }   /* Do segundo 0 ao 3.2: Foto 2 invisível (aparece a Foto 1) */
  50%, 90% { opacity: 1; }  /* Do segundo 4 ao 7.2: Foto 2 visível (cobre a Foto 1) */
  100% { opacity: 0; }      /* Volta ao estado inicial suavemente */
}

/* --- SESSÃO: TRABALHOS EM DESTAQUE --- */
.trabalhos-destaque {
  padding: 60px 120px;
  text-align: center;
}

.titulo-destaque {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: #7a9499;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

.galeria {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

/* --- ITEM DA GALERIA (CADA FOTO) --- */
.item-galeria {
  position: relative; /* FUNDAMENTAL: Prende o overlay dentro desta caixa */
  flex: 1;
  height: 400px;
  overflow: hidden;
  border-radius: 5px;
}

.item-galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* Prepara a foto para o zoom suave */
  display: block; /* Remove pequenos espaços em branco embaixo da imagem */
}

/* Efeito de zoom na foto ao passar o mouse na caixa */
.item-galeria:hover img {
  transform: scale(1.03);
}

/* --- A SOBREPOSIÇÃO (OVERLAY BRANCO) --- */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(240, 244, 244, 0.85);
  opacity: 0; /* Começa invisível */
  transition: opacity 0.4s ease;

  /* Organiza os textos e o ícone usando Flexbox */
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Faz o overlay aparecer ao passar o mouse */
.item-galeria:hover .overlay {
  opacity: 1;
}

/* --- TEXTOS DENTRO DO OVERLAY --- */
.textos-centro {
  margin: auto; /* Centraliza vertical e horizontalmente */
  text-align: center;
}

.textos-centro h4 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 26px;
  font-weight: 300;
  color: #7a9499;
  margin-bottom: 15px;
}

.textos-centro p {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #7a9499;
  text-transform: uppercase;
}

/* --- ÍCONE/VISUALIZAÇÕES NO RODAPÉ DO OVERLAY --- */
.visualizacoes {
  text-align: center;
  color: #7a9499;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 14px;
}

/* Estado Inicial: Invisível e empurrado 50px para baixo */
.escondido {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1s ease,
    transform 1s ease; /* A animação vai durar 1 segundo */
}

/* Estado Final: Visível e na posição original */
.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* --- BOTÃO FLUTUANTE DO WHATSAPP --- */
.btn-whatsapp {
  position: fixed; /* Desprende o botão da página e fixa ele na tela */
  bottom: 30px;    /* Distância do rodapé */
  right: 30px;     /* Distância da lateral direita */
  width: 60px;
  height: 60px;
  background-color: #25d366; /* Verde oficial do WhatsApp */
  border-radius: 50%; /* Deixa a caixa 100% redonda */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Sombra elegante */
  z-index: 1000; /* Garante que ele fique por cima de QUALQUER foto do site */
  transition: transform 0.3s ease;
}

/* Efeito ao passar o mouse (Zoom) */
.btn-whatsapp:hover {
  transform: scale(1.1);
}


/* --- RESPONSIVIDADE PARA CELULARES E TABLETS --- */
@media (max-width: 768px) {
  /* 1. Ajustes do Menu (Mantendo o padrão horizontal do PC) */
  .logo img {
    height: 100px;
  }

  .menu {
    padding: 15px 10px;
    gap: 15px;
  }

  .menu-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  .menu-links a {
    margin: 0;
    padding: 5px;
    font-size: 14px;
    letter-spacing: 4px;
    display: inline-block;
  }

  /* 2. Imagem Principal: Alinhando a margem lateral */
  .container {
    /* margin: 20px 20px 0px 20px; */
    height: 500px;
  }

  /* 3. Galeria: Alinhando o padding lateral com a Imagem Principal */
  .trabalhos-destaque {
    padding: 40px 20px;
  }

  .galeria {
    flex-direction: column;
    gap: 30px;
  }

  .item-galeria {
    width: 100%;
    height: 380px;
  }

  /* 4. Textos do Overlay */
  .textos-centro h4 {
    font-size: 30px;
  }

  .textos-centro p {
    font-size: 14px;
  }

  /* OBS: O bloco 5 foi removido para o hover voltar a funcionar! */
}

