/* ESTILO GERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #1C1C1C;
  height: 100vh;
}

/* cor da seleção para todos os elementos da página */
::selection {
  background-color: #ffffff36;
  /* Cor de fundo da seleção */
  color: #fff;
  /* Cor do texto selecionado */
}

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

.flex {
  display: flex;
}

.btn-contato button {
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 600;
  background-color: #f0f0f0;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
}

h2.titulo {
  color: #f0f0f0;
  font-size: 38px;
  text-align: center;
}

h2.titulo span {
  color: #999999;
}

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

/* CABEÇALHO */
header {
  padding: 10px 4%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(40, 40, 40, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
}

header.shrink {
  padding: 0px 0%;
  backdrop-filter: blur(12px);
  background: rgba(40, 40, 40, 0.6);
  transition: all 0.3s ease;
  border-radius: 20px;
}

.logo img {
  height: 100px;
}

header.shrink .logo img {
  height: 80px;
}

header.shrink .btn-contato button {
  padding: 5px 25px;
  font-size: 14px;
}

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

header a {
  color: #999999;
  text-decoration: none;
  display: inline-block;
}

header a:hover {
  color: #f0f0f0;
  transform: scale(1.1);
  transition: 0.2s;
}

header nav ul {
  list-style-type: none;
}

header nav ul li {
  display: inline-block;
  padding: 0 40px;
}

/* ---------------------- */
/*   TOPO DO SITE        */
/* ---------------------- */
.topo-do-site {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 20px;
  background: transparent;
}

.topo-do-site .interface {
  max-width: 1200px;
  width: 100%;
}

/* Container de texto + imagem */
.conteudo-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  /* Deixa responsivo */
}

/* Coluna de texto */
.txt-topo-site {
  flex: 1;
  max-width: 550px;
}

.txt-topo-site h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.txt-topo-site h1 span {
  color: #999999;
  /* Cor de destaque */
}

.txt-topo-site p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Coluna da imagem */
.img-topo-site {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.img-topo-site img {
  max-width: 400px;
  width: 100%;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.img-topo-site img:hover {
  transform: scale(1.03);
}

/* ---------------------- */
/*   RESPONSIVIDADE      */
/* ---------------------- */
@media (max-width: 900px) {
  .conteudo-topo {
    flex-direction: column-reverse;
    text-align: center;
  }

  .txt-topo-site {
    max-width: 100%;
  }

  .img-topo-site img {
    max-width: 350px;
  }
}


/* ESPECIALIDADES */
section.especialidades {
  padding: 40px 4%;
}

section.especialidades .flex {
  justify-content: space-around;
}

.especialidades .especialidades-box {
  color: #f0f0f0;
  padding: 40px;
  border-radius: 60px;
  margin-top: 45px;
  transition: 0.2s;
}

.especialidades .especialidades-box:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #151319;
}

.especialidades .especialidades-box i {
  font-size: 70px;
  color: #999999;
}

.especialidades .especialidades-box h3 {
  font-size: 28px;
  margin: 15px 0;
}

/* SOBRE */
section.sobre {
  padding: 100px 4%;
}

section.sobre .flex {
  align-items: center;
}

.sobre .txt-sobre {
  color: #f0f0f0;
}

.sobre .txt-sobre h2 {
  font-size: 40px;
  line-height: 40px;
  margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
  color: #999999;
  display: block;
}

.sobre .txt-sobre p {
  margin: 20px 0;
  color: #f0f0f0;
}

.sobre .txt-sobre .btn-social button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background-color: #999999;
  font-size: 30px;
  cursor: pointer;
  margin: 0 10px;
  transition: 0.2s;
}

/* ---------------------- */
/*   SEÇÃO DE PROJETOS   */
/* ---------------------- */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px;
  border-radius: 20px;

  /* Novo fundo com gradiente em tons de cinza */
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a, #3a3a3a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.project-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  text-align: center;
}

.project-info h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 14px;
  line-height: 1.4;
}

.btn-projeto {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-projeto:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* FORMULÁRIO */
contact-form {
  padding: 80px 4%;

}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 4vh 4vh;
  border-radius: 40px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a, #3a3a3a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

form input,
form textarea {
  width: 100%;
  background-color: #f0f0f0;
  border: 0;
  outline: 0;
  border-radius: 20px;
  font-size: 15px;
  padding: 20px 15px;
  color: #222222;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

form textarea {
  resize: none;
  max-height: fit-content;
}

form button {
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 600;
  background-color: #999999;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
  color: #222222;
}

form h2 {
  color: #f0f0f0;
  font-size: 38px;
  text-align: center;
  margin-bottom: 10px;
}

form h2 span {
  color: #999999;
}

/* RODAPÉ */
section.rodape {
  padding: 40px 4%;
  box-shadow: #151319 0 0 18px;
}

section.rodape .flex {
  align-items: center;
}

.rodape .txt-rodape {
  color: #f0f0f0;
}

.rodape .txt-rodape h2 {
  font-size: 20px;
  line-height: 40px;
  margin-bottom: 30px;
}

.rodape .txt-rodape h2 span {
  color: #999999;
  margin-bottom: 20px;
}

.rodape .txt-rodape p {
  font-size: 20px;
  color: #f0f0f0;
}

.rodape .txt-rodape p span {
  color: #999999;
}

.rodape .txt-rodape .btn-social button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #999999;
  font-size: 20px;
  cursor: pointer;
  margin: 20px 10px;
  transition: 0.2s;
}

/* DARK MODE FIXO */
.btn-darkmode-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.language-switcher {
  position: fixed;
  bottom: 30px;
  right: 180px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f0f0;
  font-weight: lighter;
  font-size: 14px;
}

.language-switcher .lang-label {
  min-width: 20px;
  text-align: center;
}

/* Botão toggle tradução */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  cursor: pointer;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked+.slider {
  background-color: #4a4a4a;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

.btn-darkmode-fixed button {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  background-color: #666666;
  color: #f0f0f0;
  cursor: pointer;
  box-shadow: 0 0 10px #00000066;
  transition: 0.3s;
}

.btn-darkmode-fixed button:hover {
  background-color: #888888;
}

/* MOBILE MENU */

img {
  max-width: 100%;
  height: auto;
}

.mobile-menu-icon {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #1d1a23;
  position: absolute;
  top: 100px;
  width: 100%;
  padding: 20px;
  z-index: 999;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #fff;
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid #444;
  text-decoration: none;
}

@media (max-width: 1020px) {

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

  .mobile-menu-icon {
    display: block;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
  }

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

/* RESPONSIVO */
@media screen and (max-width: 1020px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  header {
    width: 100vw;
    left: 0;
    right: 0;
    padding: 10px 5%;
    box-sizing: border-box;
  }

  .logo img {
    max-width: 140px;
    height: auto;
  }


  .btn-darkmode-fixed {
    right: 10px;
    bottom: 10px;
  }

  .flex {
    flex-direction: column;
    align-items: center;
  }

  .topo-do-site .flex {
    flex-direction: column-reverse;
    margin-top: -30px;
  }

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

  section.topo-do-site {
    padding: 20px 6%;
    padding-top: 160px;
  }

  .topo-do-site .txt-topo-site h1 {
    font-size: 30px;
    text-align: center;
    margin: 20px 0;
  }

  .topo-do-site .txt-topo-site p {
    font-size: 16px;
    margin: 20px auto;
    padding: 0 10px;
    text-align: center;
    max-width: 95%;
  }

  .topo-do-site .img-topo-site img,
  .img-sobre img {
    width: 100%;
  }

  section.especialidades,
  section.portifolio,
  section.rodape {
    padding: 40px 6%;
  }

  h2.titulo {
    font-size: 30px;
    line-height: 36px;
  }

  .sobre .txt-sobre h2 {
    font-size: 28px;
    line-height: 34px;
    text-align: center;
  }

  .sobre .txt-sobre p,
  .btn-social,
  .rodape .txt-rodape {
    text-align: center;
  }

  .img-port {
    width: 100%;
    max-width: 360px;
    margin: 20px auto;
  }

  section.portifolio .flex {
    gap: 40px;
  }

  section.portifolio {
    padding: 40px 4%;
    border-radius: 50px;
    margin-top: 40px;
  }

  .img-port {
    width: 310px;
    height: 410px;
    background-size: cover;
    border-radius: 40px;
    position: relative;
    margin: 1px;
  }

  .portifolio .btn-contato {
    margin: 40px auto;
    text-align: center;
  }

  form button,
  .btn-contato button {
    width: 100%;
  }

  /* FORMULÁRIO */
  .contact-form {
    padding: 80px 4%;
  }

  form {
    max-width: 300px;
    margin-top: 20px;
    margin-bottom: 40px;
  }


  section.rodape .flex {
    flex-direction: column;
    align-items: center;
    margin: 20px 0;

  }

  /*botão hamburguer cabeçalho mobile*/
  .mobile-menu-icon button {
    background-color: transparent;
    border: none;
    color: #f0f0f0;
  }

  .mobile-menu-icon button:hover {

    background-color: transparent;
    border: none;
    color: #f0f0f0;
  }

  .mobile-menu-icon i {
    height: 50px;
    width: auto;
  }

}