/* 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;
}

h1.titulo {
  color: #fff;
  font-size: 28px;
  text-align: center;
}

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 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;
}


/* =====================================================
   RESPONSIVIDADE MAIS PROJETOS - ADICIONADO
   Ajustes seguros para melhorar mobile sem alterar identidade visual
===================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.interface {
  width: min(100% - 32px, 1200px);
}

section.mais-projetos {
  padding: clamp(50px, 8vw, 80px) 4%;
}

section.mais-projetos .interface {
  align-items: stretch;
  overflow-x: visible;
}

section.mais-projetos h2 {
  color: #fff;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.12;
  text-align: center;
}

section.mais-projetos p {
  color: #fff;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.5;
}

/* Corrige a tabela sem mexer no HTML */
.projetos-table {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 36px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #0000ff56;
  border-radius: 16px;
  overflow: hidden;
}

.projetos-table th,
.projetos-table td {
  margin: 0;
  border: 1px solid #0000ff3b;
  padding: 14px 12px;
  vertical-align: top;
  line-height: 1.5;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.projetos-table th {
  color: #fff;
  background: #0000ff;
  font-weight: 700;
  text-align: left;
}

.projetos-table td {
  background: rgba(0, 0, 0, 0.35);
}

.projetos-table a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #0000ff;
}

.projetos-table a:hover {
  color: #0000ff;
}

@media screen and (max-width: 900px) {
  header > .interface {
    gap: 18px;
  }

  .logo img {
    height: clamp(95px, 18vw, 150px);
  }

  .btn-contato a {
    padding: 10px 28px;
    font-size: 16px;
  }

  .projetos-table {
    table-layout: auto;
  }
}

/* Mobile: transforma as linhas da tabela em cards elegantes */
@media screen and (max-width: 768px) {
  .interface {
    width: min(100% - 28px, 1200px);
  }

  header {
    padding: 18px 4%;
  }

  header > .interface {
    position: relative;
  }

  .menu-toggle {
    margin: 8px 0;
  }

  section.mais-projetos .interface {
    gap: 22px;
  }

  .projetos-table,
  .projetos-table tbody,
  .projetos-table tr,
  .projetos-table th,
  .projetos-table td {
    display: block;
    width: 100%;
  }

  .projetos-table {
    border: 0;
    background: transparent;
  }

  .projetos-table tr:first-child {
    display: none;
  }

  .projetos-table tr {
    margin-bottom: 18px;
    border: 1px solid #0000ff56;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 22px #0000ff24;
    overflow: hidden;
  }

  .projetos-table td {
    border: 0;
    border-bottom: 1px solid #0000ff2e;
    padding: 14px 16px;
    font-size: 15px;
    text-align: left;
    background: transparent;
  }

  .projetos-table td:last-child {
    border-bottom: 0;
  }

  .projetos-table td::before {
    display: block;
    margin-bottom: 6px;
    color: #0000ff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .projetos-table:first-of-type td:nth-child(1)::before {
    content: "Projeto/Ano";
  }

  .projetos-table:first-of-type td:nth-child(2)::before {
    content: "Descrição";
  }

  .projetos-table:first-of-type td:nth-child(3)::before {
    content: "Tecnologias";
  }

  .projetos-table:first-of-type td:nth-child(4)::before {
    content: "Links";
  }

  .projetos-table:nth-of-type(2) td:nth-child(1)::before {
    content: "Empresa/Ano";
  }

  .projetos-table:nth-of-type(2) td:nth-child(2)::before {
    content: "Ferramentas";
  }

  .projetos-table:nth-of-type(2) td:nth-child(3)::before {
    content: "Atividades/Tarefas";
  }

  footer .line-footer p {
    height: auto;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    justify-content: center;
  }

  .back-to-top {
    width: 52px;
    height: 52px;
    right: 18px;
    bottom: 18px;
    font-size: 22px;
  }
}

@media screen and (max-width: 480px) {
  .interface {
    width: min(100% - 24px, 1200px);
  }

  section.mais-projetos {
    padding: 40px 3%;
  }

  section.mais-projetos h2 {
    font-size: 28px;
  }

  .projetos-table tr {
    border-radius: 16px;
  }

  .projetos-table td {
    padding: 13px 14px;
    font-size: 14px;
  }

  .btn-social a {
    width: 52px;
    height: 52px;
  }
}