/* ============================================================
   7 SEVENCODE — ESTILOS
   Organização:
   1. Base / Reset
   2. Fundo (degradê estático)
   3. Navegação (desktop + mobile)
   4. Seção Home
   5. Seção Sobre
   6. Seção Devs
   7. Seção Projetos
   8. Seção Contato
   9. Rodapé
   10. Animação de scroll
   11. Modais
   12. Responsividade (mobile)
   ============================================================ */

/* ===== 1. BASE / RESET ===== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
}

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

body {
  width: 100%;
  /* NOTA: nao colocar overflow-x aqui!
     Se html E body tiverem overflow-x: hidden, o navegador cria DUAS barras
     de rolagem sobrepostas (bug que travava o scroll). O overflow-x fica so no html. */
  background-color: #17191f;
  color: aliceblue;
}

/* ===== 2. FUNDO (degradê azul estático, custo zero de performance) ===== */
/* Camada fixa atrás de tudo — pintada uma vez, não recalcula ao rolar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(4, 121, 218, 0.16), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(4, 121, 218, 0.12), transparent 45%),
    #17191f;
}

/* ===== 3. NAVEGAÇÃO ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(20, 22, 28, 0.95);
  z-index: 99;
}

nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #0479da;
}

.logo7code {
  width: 300px;
  margin-left: 50px;
}

.menu-desktop {
  display: flex;
  gap: 2.2rem;
  margin-right: 50px;
  list-style: none;
  align-items: center;
}

.menu-desktop li {
  position: relative;
  padding-bottom: 6px;
}

.menu-desktop a {
  color: aliceblue;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.menu-desktop li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #0479da;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.menu-desktop li:hover a,
.menu-desktop li.active a {
  color: #0479da;
}

.menu-desktop li:hover::after,
.menu-desktop li.active::after {
  transform: scaleX(1);
}

/* ----- Botão "Entrar" (área interna da equipe) -----
   Os outros itens do menu são links de âncora e usam o sublinhado que cresce.
   Este é uma AÇÃO, e leva para fora do site — então vira pílula, no mesmo
   desenho do .home-cta-button, para não parecer só mais um item da lista.
   O ::after herdado é desligado: sublinhado somado à borda vira ruído. */
.menu-desktop li.nav-entrar {
  padding-bottom: 0;
}

.menu-desktop li.nav-entrar::after {
  display: none;
}

.menu-desktop li.nav-entrar a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.3rem;
  border: 1px solid #0479da;
  border-radius: 22px;
  color: #0479da;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.menu-desktop li.nav-entrar:hover a,
.menu-desktop li.nav-entrar a:focus-visible {
  background-color: #0479da;
  color: aliceblue;
  box-shadow: 0 0 16px rgba(4, 121, 218, 0.55);
}

/* Menu do celular (escondido no desktop) */
.btn-hamburguer {
  display: none;
}

.menu-celular {
  display: none;
}

/* ===== 4. SEÇÃO HOME ===== */
main {
  margin-top: 10vh;
}

section {
  min-height: 100vh;
  scroll-margin-top: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#home {
  width: 100%;
  min-height: 100vh;
  justify-content: flex-start;
  padding: clamp(3.5rem, 6vh, 6rem) clamp(2rem, 6vw, 5rem) 4rem;
  overflow: hidden;
}

.home-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(100%, 920px);
  gap: 1rem;
  margin-left: clamp(1rem, 3vw, 2rem);
}

.home-logos {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 1rem);
  margin-top: -5rem;
}

.logo-7 {
  width: clamp(150px, 25vw, 235px);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

.code {
  position: relative;
  right: 5%;
  width: clamp(180px, 31vw, 295px);
  filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.8));
}

.home-texts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

hr {
  background: linear-gradient(90deg, #0479da 0%, #4fb2ff 100%);
  border: none;
  height: 2px;
  width: min(100%, 440px);
  margin-top: 0.2rem;
  border-radius: 999px;
}

h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  max-width: 760px;
  color: rgba(240, 248, 255, 0.9);
}

.home-cta-buttons {
  display: flex;
  gap: 50px;
  width: 75%;
  margin-top: 10px;
}

.home-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0479da;
  box-shadow: 0 0 16px #0479da;
  padding: 1rem 1.5rem;
  width: min(100%, 320px);
  font-size: clamp(1rem, 2vw, 1.35rem);
  border-radius: 26px;
  cursor: pointer;
  color: white;
  text-decoration: none;
  transition: 0.5s;
}

.home-cta-button:hover {
  background: rgba(23, 25, 31, 1);
  transform: scale(1.02);
}

/* ===== 5. SEÇÃO SOBRE ===== */
#sobre {
  width: 100%;
  padding: 5rem 2.5rem;
}

.container-sobre {
  width: min(100%, 1280px);
  padding: clamp(2.5rem, 4.5vw, 4rem);
  background: rgba(30, 32, 40, 0.55);
  border-radius: 32px;
}

.container-sobre h3 {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  font-weight: 600;
}

.container-sobre p {
  margin-top: 20px;
  font-size: clamp(1.15rem, 1.9vw, 2rem);
  line-height: 1.8;
}

/* ===== 6. SEÇÃO DEVS ===== */
#devs {
  width: 100%;
  flex-direction: column;
  padding: 4rem 2rem 3rem;
  gap: 2rem;
}

.devs-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.devs-header h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
}

.devs-subtitle {
  color: #0479da;
  font-size: 1rem;
  font-weight: 500;
}

.devs-lista {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
}

.dev {
  flex: 1 1 min(320px, 100%);
  max-width: 360px;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: rgba(19, 19, 19, 0.9);
  border-radius: 25px;
  text-align: center;
  transition: transform 0.5s ease;
}

.dev:hover {
  transform: translateY(-3%);
}

.dev-foto {
  width: min(240px, 70vw);
  height: min(240px, 70vw);
  border-radius: 50%;
  object-fit: cover;
}

.dev h4 {
  margin-top: 30px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
}

.dev p {
  margin-top: 4px;
}

.dev-cargo {
  display: inline-block;
  margin-top: 12px;
  font-weight: 300;
  color: #0479da;
}

/* ===== 7. SEÇÃO PROJETOS ===== */
#projetos {
  width: 100%;
  flex-direction: column;
  padding: 4rem 2rem 3rem;
  gap: 2rem;
}

.projetos-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.projetos-header h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
}

.projetos-subtitle {
  color: #0479da;
  font-size: 1rem;
  font-weight: 500;
}

.projetos-lista {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
}

.projeto {
  flex: 1 1 min(340px, 100%);
  max-width: 390px;
  min-height: 430px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.projeto:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(4, 121, 218, 0.2);
}

.projeto-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.projeto-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.projeto-content {
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.projeto-content h4 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
}

.projeto-content p {
  color: rgba(240, 248, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.65;
}

.projeto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.tag-software,
.tag-pessoal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.tag-software {
  background: rgba(4, 121, 218, 0.18);
  color: #8fd2ff;
  border: 1px solid rgba(79, 178, 255, 0.3);
}

.tag-pessoal {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(240, 248, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Só os links (a.tag-pessoal) ganham hover — os spans não são clicáveis */
a.tag-pessoal {
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

a.tag-pessoal:hover,
a.tag-pessoal:focus-visible {
  background: rgba(4, 121, 218, 0.18);
  border-color: rgba(79, 178, 255, 0.45);
  color: #8fd2ff;
}

.btn-projeto {
  width: 100%;
  padding: 10px 5px;
  border: none;
  border-radius: 7px;
  background: #0479da;
  box-shadow: 0 0 3px rgba(79, 178, 255, 1);
  color: white;
  cursor: pointer;
  transition: 0.5s;
}

.btn-projeto:hover {
  background: rgba(4, 121, 218, 0.18);
}

/* ===== 8. SEÇÃO CONTATO ===== */
#contato {
  width: 100%;
  padding: 5rem 2.5rem 4rem;
}

.contato-container {
  width: min(100%, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.contato-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.contato-header h3 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.contato-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(240, 248, 255, 0.85);
  max-width: 550px;
  line-height: 1.6;
}

.contato-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 3rem;
  background: rgba(30, 32, 40, 0.55);
  border: 1px solid rgba(79, 178, 255, 0.25);
  border-radius: 28px;
}

.contato-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.contato-message h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.impacto-text {
  font-size: 1.05rem;
  color: rgba(240, 248, 255, 0.85);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 500;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.5rem;
  background: #0479da;
  color: white;
  text-decoration: none;
  border-radius: 26px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  box-shadow: 0 0 16px #0479da;
  transition: all 0.4s ease;
}

.btn-whatsapp:hover {
  background: rgba(23, 25, 31, 1);
  transform: scale(1.02);
  box-shadow: 0 0 25px #0479da;
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

/* ===== 9. RODAPÉ ===== */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2rem 1rem 1.5rem;
}

.site-footer img {
  width: 130px;
}

.site-footer p {
  color: #4f4f4f;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.42;
}

/* ===== LINHA DE CONFIANÇA (contato) ===== */
.contato-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  list-style: none;
  margin-top: 0.5rem;
}

.contato-trust li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: rgba(240, 248, 255, 0.8);
}

.contato-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4fb2ff;
  font-weight: 700;
}

/* ===== SEÇÃO FAQ ===== */
#faq {
  width: 100%;
  flex-direction: column;
  padding: 5rem 2rem;
}

.faq-container {
  width: min(100%, 860px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-header {
  text-align: center;
}

.faq-header h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
}

.faq-subtitle {
  margin-top: 0.3rem;
  color: #0479da;
  font-size: 1rem;
  font-weight: 500;
}

.faq-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(30, 32, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: aliceblue;
  list-style: none; /* remove a setinha padrão */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Seta "+" que vira "−" ao abrir */
.faq-item summary::after {
  content: "+";
  color: #4fb2ff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.4rem 1.25rem;
  color: rgba(240, 248, 255, 0.82);
  line-height: 1.7;
}

/* ===== ACESSIBILIDADE ===== */
/* Contorno visível ao navegar por teclado (Tab) */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #4fb2ff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respeita quem prefere menos animação (config do sistema) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .surgir-ao-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Imagens nunca estouram a largura E mantêm a proporção (height: auto evita esticar) */
img {
  max-width: 100%;
  height: auto;
}

/* ===== 10. ANIMAÇÃO DE SCROLL ===== */
.surgir-ao-scroll {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease-out, transform 1s ease-out;
}

.surgir-ao-scroll.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 11. MODAIS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-conteudo {
  position: relative;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  background-color: #161b22;
  color: white;
  border: 1px solid rgba(79, 178, 255, 0.25);
  border-radius: 12px;
}

.modal-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-conteudo h2 {
  margin-bottom: 0.75rem;
}

.modal-conteudo p {
  line-height: 1.7;
  color: rgba(240, 248, 255, 0.85);
}

.btn-fechar {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ===== 12a. RESPONSIVIDADE - TABLET / TELAS MÉDIAS ===== */
/* Evita o h1 estourar a largura em telas médias */
@media (max-width: 1200px) {
  h1 {
    white-space: normal;
  }
}

/* Faixa entre celular e desktop: aperta o menu e ajusta o hero */
@media (max-width: 1024px) and (min-width: 875px) {
  .logo7code {
    width: 230px;
    margin-left: 24px;
  }

  .menu-desktop {
    gap: 1.4rem;
    margin-right: 24px;
  }

  .menu-desktop a {
    font-size: 0.95rem;
  }

  #home {
    padding: 5rem 2rem 3rem;
  }

  .home-logos {
    margin-top: -2rem;
  }
}

/* ===== 12b. RESPONSIVIDADE (MOBILE) ===== */
@media (max-width: 874px) {
  .logo7code {
    display: block;
    width: 200px;
    margin: 0 auto;
  }

  .menu-desktop {
    display: none;
  }

  /* Botão hamburguer no canto superior direito, ACIMA da barra (z-index maior) */
  .btn-hamburguer {
    position: fixed;
    top: 0;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 10vh;
    background: transparent;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    z-index: 100;
  }

  /* Menu desce logo abaixo da barra fixa */
  .menu-celular {
    position: fixed;
    top: 10vh;
    left: 0;
    display: none;
    width: 100%;
    padding: 2rem 0;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    background-color: rgba(20, 22, 28, 0.98);
    border-bottom: 2px solid #0479da;
    z-index: 95;
  }

  .menu-celular.active {
    display: flex;
  }

  .menu-celular a {
    color: white;
    text-decoration: none;
    font-weight: 500;
  }

  .menu-celular a:hover {
    color: #0479da;
  }

  /* O "Entrar" mantém a forma de pílula também no celular: é a única ação
     desta lista, e no desktop ela já se distingue assim. */
  .menu-celular a.entrar-celular {
    margin-top: 4px;
    padding: 0.55rem 1.6rem;
    border: 1px solid #0479da;
    border-radius: 22px;
    color: #0479da;
    font-weight: 600;
  }

  .menu-celular a.entrar-celular:hover {
    background-color: #0479da;
    color: aliceblue;
  }

  #home {
    align-items: center;
    justify-content: center;
    padding: 6rem 1.25rem 3rem;
  }

  .home-container {
    align-items: center;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .home-texts {
    align-items: center;
  }

  .home-logos {
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
  }

  .logo-7 {
    width: 110px;
  }

  .code {
    width: 155px;
  }

  h1 {
    font-size: clamp(1.2rem, 5.2vw, 1.8rem);
    line-height: 1.15;
    white-space: normal;
  }

  h2 {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  hr {
    width: min(80%, 280px);
    margin: 0.25rem auto 0;
  }

  .home-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .home-cta-button {
    width: min(100%, 260px);
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
  }

  #sobre,
  #devs,
  #projetos,
  #contato {
    min-height: auto;
    padding: 5rem 1.25rem 3rem;
  }

  .container-sobre {
    padding: 1.5rem;
  }

  .container-sobre h3 {
    font-size: 1.8rem;
  }

  .container-sobre p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .devs-header h3,
  .projetos-header h3 {
    font-size: 1.8rem;
  }

  .devs-lista,
  .projetos-lista {
    flex-direction: column;
    gap: 1rem;
  }

  .dev {
    max-width: none;
  }

  .dev-foto {
    width: 180px;
    height: 180px;
  }

  .contato-cta-section {
    padding: 2rem;
    gap: 1.5rem;
  }

  .contato-message h2 {
    font-size: 1.6rem;
  }

  .btn-whatsapp {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  #faq {
    padding: 4rem 1.25rem 3rem;
  }

  .faq-header h3 {
    font-size: 1.8rem;
  }

  .faq-item summary {
    font-size: 0.98rem;
    padding: 1rem 1.1rem;
  }

  .faq-item p {
    padding: 0 1.1rem 1.1rem;
  }
}
