/* 🌈 PALETA DE CORES E TIPOGRAFIA */
:root {
  --cor0: #ffffff;
  --cor1: #5c5c5c;
  --cor2: #1fc2f0;
  --cor3: #121212;
  --cor4: #242424;
  --fonte-titulo: 'Poppins', sans-serif;
  --fonte-texto: 'Poppins', sans-serif;
}

/* 🔧 RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-texto);
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  color: var(--cor0);
}

.interface {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4%;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* 🧭 CABEÇALHO */
header {
  padding: 40px 0;
}

header .interface {
  display: flex; 
  align-items: center;
  justify-content: space-between;
}


/* 🖼️ Estilo para a logo */
.logo img {
  max-width: 180px; /* Ajuste esse valor conforme necessário */
  height: auto;
}


header nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

header nav a {
  color: var(--cor1);
  text-decoration: none;
  transition: 0.3s;
}

header nav a:hover {
  color: var(--cor0);
  transform: scale(1.05);
}

.btn-contato button {
  padding: 15px 40px;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  background-color: var(--cor2);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover,
form .btn-enviar input:hover {
  box-shadow: 0 0 8px #00ff088e;
  transform: scale(1.05);
}

/* 📱 MENU MOBILE */
.btn-abrir-menu i {
  color: var(--cor2);
  font-size: 40px;
  display: none;
}

.menu-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--cor3);
  z-index: 9999;
  overflow-y: auto;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
}
.menu-mobile.abrir-menu {
  display: flex;
}


.menu-mobile.abrir-menu {
  width: 100%; /* ou 70% se quiser só uma parte */
}

.menu-mobile nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}


.menu-mobile nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* ou center, se quiser centralizado */
  padding: 20px;
  margin: 0;
  gap: 10px; /* espaçamento entre os itens */
}

.menu-mobile nav ul li {
  width: 100%;
}


.menu-mobile nav ul li a {
  display: block;
  padding: 16px;
  color: var(--cor0);
  font-size: 18px;
  font-weight: 300;
  transition: background-color 0.7s, border-radius 0.7s;
}

.menu-mobile nav ul li a:hover {
  background-color: var(--cor2);
  color: var(--cor3);
  border-radius: 12px; /* 👈 Aqui está o contorno arredondado */
}

.overlay-menumob {
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 8888;
}

/* 🖼️ TOPO DO SITE */
.topo-do-site {
  padding: 60px 0;
}

.topo-do-site .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.txt-topo-site {
  flex: 1;
  min-width: 280px;
}

.img-topo-site {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
}

.img-topo-site img {
  animation: flutuar 2s ease-in-out infinite alternate;
  max-width: 300px;
}


.btn-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.btn-social a button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: var(--cor2);
  color: var(--cor3);
  font-size: 22px;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.btn-social a button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}




@keyframes flutuar {
  0% { transform: translateY(0); }
  100% { transform: translateY(30px); }
}

/* 🛠️ ESPECIALIDADES */
.especialidades {
  padding: 60px 0;
}

.especialidades-box {
  flex: 1;
  padding: 40px;
  border-radius: 20px;
  background-color: var(--cor4);
  transition: 0.3s;
}

.especialidades-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px #ffffff78;
}

.especialidades-box i {
  font-size: 60px;
  color: var(--cor2);
}

.especialidades-box h3 {
  font-size: 24px;
  margin: 20px 0 10px;
}

.especialidades-box p {
  font-size: 16px;
  line-height: 1.5;
}

/* 👤 SOBRE */
.sobre {
  padding: 80px 0;
}

.sobre .flex {
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.img-sobre {
  flex: 1;
  display: flex;
  justify-content: center;
}

.img-sobre img {
  max-width: 280px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.txt-sobre {
  flex: 2;
}

.txt-sobre h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.txt-sobre h2 span {
  color: var(--cor2);
}

.txt-sobre p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: justify;
}

.destaque {
  color: var(--cor2);
  font-weight: bold;
}


/* 🖼️ PROJETOS */
.projetos {
  padding: 40px 0;
}

.projetos .flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.img-proj {
  flex: 1 1 calc(33.333% - 40px);
  max-width: calc(33.333% - 40px);
  height: 460px;
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background-position 8s;
  border: none;
}

.img-proj a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.img-proj .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--cor0);
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 20px;
  text-align: center;
}

.img-proj:hover .overlay {
  opacity: 1;
}


.img-proj:hover .overlay {
  opacity: 1;
}


.img-proj:hover {
  background-position: bottom;
}

.img-proj:hover .overlay {
  opacity: 1;
}

/* 📬 FORMULÁRIO */
.formulario {
  padding: 80px 0;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input,
form textarea {
  background-color: var(--cor4);
  border: none;
  padding: 20px;
  border-radius: 15px;
  color: var(--cor0);
  font-size: 16px;
}

form textarea {
  resize: none;
  max-height: 200px;
}

.btn-enviar {
  text-align: center;
}

.btn-enviar input {
  width: 140px;
  background-color: var(--cor2);
  color: var(--cor3);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

/* 🦶 RODAPÉ */
footer {
  padding: 40px 0;
  background-color: var(--cor3);
  box-shadow: 0 0 40px 10px var(--cor1);
}

footer .flex {
  justify-content: space-between;
  align-items: center;
}

footer .line-footer {
  padding: 20px 0;
}

footer .line-footer {
  padding: 20px 0;
}

footer .line-footer.borda {
  border-top: 2px solid var(--cor2);
  text-align: center;
}

footer .line-footer p i {
  color: var(--cor2);
  font-size: 22px;
}

footer .line-footer p a {
  color: var(--cor0);
  text-decoration: none;
}

/* 📱 RESPONSIVIDADE */
@media screen and (max-width: 1024px) {
  .flex {
    flex-direction: column;
    align-items: center;
  }

  header .menu-desktop,
  header .btn-contato {
    display: none;
  }

  .btn-abrir-menu i {
    display: block;
  }

  .topo-do-site h1 {
    font-size: 32px;
    text-align: center;
  }

  .img-topo-site img {
    max-width: 220px;
    margin-top: 20px;
  }






  @media screen and (max-width: 1024px) {
  .projetos .flex {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .img-proj {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 2; /* proporção mais natural */
  background-size: cover;
  background-position: top center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


  .img-proj .overlay {
    opacity: 1;
    font-size: 18px;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
  }
}



  footer .flex {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  footer .line-footer {
    padding: 10px 0;
  }

  footer .line-footer p {
    font-size: 14px;
  }

  footer .line-footer p i {
    font-size: 20px;
  }
}


/*Responsividade Section Sobre*/

@media screen and (max-width: 1024px) {
  .sobre .flex {
    flex-direction: column;
    text-align: center;
  }

  .img-sobre img {
    max-width: 220px;
    margin-bottom: 20px;
  }

  .txt-sobre p {
    text-align: center;
  }
}



/* Responsividade Logo */

@media (max-width: 600px) {
  .logo img {
    max-width: 120px;
  }
}



@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.menu-mobile.fechar-animacao {
  animation: slideOut 0.4s forwards;
}


@keyframes destaqueFade {
  0% {
    box-shadow: 0 0 0px var(--cor2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px var(--cor2);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0px var(--cor2);
    transform: scale(1);
  }
}

.destaque-secao {
  animation: destaqueFade 1.2s ease-in-out;
}



.logo-fixa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: var(--cor2);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.logo-fixa.mostrar {
  opacity: 1;
  pointer-events: auto;
}

.logo-fixa img {
  width: 40px;
  height: 40px;
}
