/* estilo geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: black;
  min-height: 100vh;
  color: #fff;
}

.interface {
  max-width: 1200px;
  margin: 0px auto;
}

.flex {
  display: flex;
}

.btn-contato a {
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 600;
  background-color: #0000ff;
  color: #fff;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-contato a:hover {
  box-shadow: 0 0 20px #0000ffb9;
  transform: scale(1.05);
}

.btn-social {
  display: flex;
  gap: 15px;
}

.btn-social a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0000ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 0 20px #0000ff56;
  transition: 0.3s ease;
}

.btn-social a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #0000ff;
}

h2.titulo {
  color: #fff;
  font-size: 28px;
  text-align: center;
}

h2.titulo span {
  color: #0000ff;
}

/* header */
header {
  padding: 40px 4%;
  position: relative;
}

.logo img {
  height: 150px;
  width: auto;
  display: block;
}

header > .interface {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

header a:hover {
  color: #ffffff;
  transform: scale(1.07);
  transition: 0.2s;
}

header nav ul {
  list-style-type: none;
}

header nav ul li {
  display: inline-block;
  padding: 0 15px;
}

/* estilo do topo do site */
section.topo-do-site {
  padding: 80px 4%;
  scroll-margin-top: 120px;
}

section.topo-do-site .flex {
  align-items: center;
  justify-content: center;
  gap: 90px;
}

.topo-do-site .txt-topo-site h1 {
  color: #fff;
  font-size: 30px;
  line-height: 30px;
}

.topo-do-site .txt-topo-site h1 span {
  color: #0000ff;
  font-size: 70px;
}

.topo-do-site .txt-topo-site p {
  color: #fff;
  margin: 40px 0;
  line-height: 30px;
}

.topo-do-site .img-topo-site img {
  height: 400px;
  width: auto;
  position: relative;
  animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar {
  0% {
    top: 0px;
  }
  100% {
    top: 30px;
  }
}

/* especialidades */
section.especialidades {
  padding: 80px 4%;
}

section.especialidades .flex {
  gap: 40px;
}

.especialidades .especialidades-box {
  color: #fff;
  padding: 40px;
  border: 2px solid #0000ff3b;
  border-radius: 20px;
  margin-top: 45px;
  transition: 0.2s;
}

.especialidades .especialidades-box:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 20px #0000ff;
}

.especialidades .especialidades-box i {
  font-size: 45px;
  color: #0000ff;
}

.especialidades .especialidades-box h3 {
  font-size: 26px;
  margin: 20px 0;
}

/* sobre */
section.sobre {
  padding: 80px 4%;
}

section.sobre .flex {
  align-items: center;
  gap: 60px;
}

.img-sobre img {
  height: 550px;
  width: auto;
  border-radius: 20px;
}

.sobre .txt-sobre {
  color: #fff;
}

.sobre .txt-sobre h2 {
  line-height: 30px;
  margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
  color: #0000ff;
  display: block;
}

.sobre .txt-sobre p {
  margin: 20px 0;
  line-height: 30px;
  text-align: justify;
}

/* projetos port */
section.portfolio {
  padding: 80px 4%;
  box-shadow: 0 0 40px 10px #0000ff56;
}

section.portfolio .flex {
  justify-content: space-around;
  margin-top: 60px;
}

.img-port {
  width: 100%;
  max-width: 360px;
  height: 400px;
  background-color: #0000ff;
  background-size: cover;
  background-position: 100% 0%;
  transition: 1s;
  cursor: pointer;
  border-radius: 20px;
  position: relative;
  opacity: 30%;
}

.img-port:hover {
  background-position: 100% 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000093;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: 0.4s;
}

.overlay:hover {
  opacity: 1;
}

/* contato */
section.formulario {
  padding: 80px 4%;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

form input,
form textarea {
  width: 100%;
  background-color: #242424;
  border: 0;
  outline: 0;
  padding: 18px 15px;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
}

form textarea {
  resize: none;
  max-height: 400px;
}

form .btn-enviar {
  margin-top: 20px;
  text-align: center;
}

form .btn-enviar input {
  width: 120px;
  background-color: #0000ff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

/* footer */
footer {
  padding: 40px 4% 20px 4%;
  box-shadow: 0 0 40px 10px #0000ff56;
}

footer .flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

footer .logo-footer img {
  width: auto;
  height: 80px;
  background-color: #e6e6e6;
  padding: 10px;
  border: 0;
  border-radius: 50%;
}

footer .btn-social {
  display: flex;
  gap: 15px;
}

footer .line-footer p {
  margin-top: 40px;
  width: auto;
  height: 100px;
  display: flex;
  font-size: 20px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background-color: #0000ff;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px #0000ff56;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 9999; /* força ficar acima de tudo */
  pointer-events: none;
}

.back-to-top.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: scale(1.1);
}

/* RESPONSIVIDADE */
@media screen and (max-width: 1024px) {
  .flex {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  header {
    padding: 20px 5%;
  }

  .logo img {
    height: 90px;
  }

  header nav ul li {
    display: block;
    padding: 10px 0;
    text-align: center;
  }

  .btn-contato {
    margin-top: 15px;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  section.topo-do-site .flex {
    gap: 40px;
    text-align: center;
  }

  .topo-do-site .txt-topo-site h1 {
    font-size: 22px;
    line-height: 28px;
  }

  .topo-do-site .txt-topo-site h1 span {
    font-size: 40px;
  }
}

@media screen and (max-width: 1024px) {
  section.especialidades .flex {
    flex-direction: column;
  }
}

@media screen and (max-width: 1024px) {
  .img-sobre img {
    height: auto;
    max-width: 100%;
  }

  .sobre .txt-sobre {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  section.portfolio .flex {
    align-items: center;
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  footer .flex {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  section.especialidades {
    padding: 50px 5%;
  }

  section.especialidades .flex {
    gap: 20px; /* reduz o espaço entre os blocos */
  }

  .especialidades .especialidades-box {
    padding: 25px; /* reduz espaço interno */
    margin-top: 20px; /* reduz espaço externo */
  }
}

/* MENU HAMBURGUER */

.menu-toggle {
  display: none;
  font-size: 35px;
  cursor: pointer;
  color: #fff;
  z-index: 999;
  margin: 30px 0;
}

.menu-toggle i {
  color: #fff;
  transition: 0.3s ease;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-desktop {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #000;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 20px #0000ff56;
    color: #fff;
  }

  .menu-desktop a {
    color: #fff;
  }

  .menu-desktop a:hover {
    color: #0000ff;
  }

  .menu-desktop ul li {
    display: block;
    padding: 15px 0;
  }

  .menu-desktop .btn-contato {
    margin-top: 20px;
  }

  .menu-desktop.active {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  header > .interface {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    order: -1; /* força a logo a ficar primeiro */
    margin-bottom: 15px;
  }

  .logo img {
    height: 200px; /* aumenta um pouco no mobile */
  }
}

/* ==============================
   PÁGINA DE SUCESSO
============================== */

/* ==============================
   PÁGINA DE SUCESSO
============================== */

.pagina-sucesso {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sucesso-box {
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
}

.sucesso-box h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.sucesso-box p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.sucesso-box .btn-contato {
  margin-top: 25px;
}

@media (max-width: 768px) {
  .sucesso-box {
    padding: 25px;
  }

  .sucesso-box h1 {
    font-size: 1.6rem;
  }

  .sucesso-box p {
    font-size: 0.95rem;
  }
}


/* projetos-table */

.projetos-table table, td, th {
  margin: 30px;
  border: 1px solid;
  padding: 10px;
  position: static;
  flex: 1 1 0;
}

.projetos-table table {
  margin: auto 30px 60px 30px;
  border-collapse: collapse;
  text-align: center;
  position: static;
  flex: 1 1 0;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

section.mais-projetos {
  padding: 80px 4%;

}

section.mais-projetos .interface {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
}

section.mais-projetos .interface p {
  text-align: center;
}