/* ==========================================================================
   RESET & VARIÁVEIS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

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

:root {
  --primaria: #004a8f;
  --secundaria: #0b0069;
  --escuro: #03061f;
  --maisEscuro: #000000;
  --claro: #e2e8f0;
  --vidro: rgba(255, 255, 255, 1);
}

body {
  background-color: var(--escuro);
  color: var(--claro);
  overflow-x: hidden;
  width: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.navegacao {
  display: flex;
  height: 10vh;
  background: rgba(2, 5, 31, 0.95);
  backdrop-filter: blur(10px);
  width: 100%;
  padding: 1.5rem;
  justify-content: center;
  align-items: center;
  border-bottom: var(--primaria) 1px solid;
  transition: transform 0.4s ease-in-out;
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 3rem;
}

.menu-link {
  text-decoration: none;
  color: var(--claro);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: 0.3s;
}

.menu-link:hover {
  opacity: 0.7;
}

.menu-link::after {
  content: "";
  height: 2px;
  width: 0%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primaria), var(--secundaria));
  transition: width 0.5s ease;
}

.menu-link:hover::after {
  width: 100%;
}

.mobile-menu {
  position: fixed;
  top: 2vh;
  right: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 15;
  background: rgba(15, 18, 42, 0.8);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu div {
  width: 32px;
  height: 2px;
  background: #fff;
  margin: 8px;
  transition: 0.3s;
}

@media (max-width: 999px) {
  .mobile-menu {
    display: block;
  }

  .navegacao {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 5, 31, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    border-bottom: none;
  }

  .navegacao.active {
    transform: translateX(0);
  }

  .menu {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .menu-link {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   HERO / CABEÇALHO PRINCIPAL
   ========================================================================== */
.cabecalho {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.foto-perfil {
  display: block;
  margin: 0 auto 1.5rem auto;
  width: clamp(150px, 22vw, 200px);
  height: clamp(150px, 22vw, 200px);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  border-radius: 50%;
  border: 1.5px solid var(--vidro);
  animation: flutuar 5s ease-in-out infinite;
  object-fit: cover;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--primaria);
  font-weight: bold;
  margin-bottom: 15px;
}

.cabecalho-sub-titulo {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--claro);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   SEÇÃO SOBRE
   ========================================================================== */
.sobre-seçao {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 5rem 1.5rem;
}

.sobre-titulo {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--claro);
  text-align: center;
  margin-bottom: 40px;
}

.sobre-caixa {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--secundaria);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.sobre-paragrafo {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  letter-spacing: 1px;
  text-align: justify;
}

/* ==========================================================================
   SEÇÃO PROJETOS (SCROLL ADAPTADO)
   ========================================================================== */
.projetos {
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.projetos-scrolling {
  padding-top: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.projetos-titulo {
  margin-top: 20px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  width: 100%;
  padding: 0 1rem;
}

.projetos-caixa {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: max-content;
  z-index: 1;
  gap: 2rem;
  padding: 3rem 2rem;
  will-change: transform;
}

.projetos-card {
  position: relative;
  width: 320px;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease;
}

.projetos-card:hover {
  border-color: var(--primaria);
}

/* Card em rascunho: mantém o molde, mas o texto fica transparente.
   Para ativar o card, é só remover "projetos-card--rascunho" do HTML. */
.projetos-card--rascunho .info-projetos,
.projetos-card--rascunho .paragrafo-projetos {
  color: transparent;
  user-select: none;
}

/* Card sem imagem: mantém o molde do card, só não mostra a área da imagem */
.projetos-imagem:not([src]),
.projetos-imagem[src=""] {
  display: none;
}

.projetos-card > a {
  display: block;
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  cursor: pointer;
}

.projetos-imagem {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background-color: rgba(0, 0, 0, 0.2);
}

.projetos-imagem:hover {
  opacity: 0.85;
}

.caixa-textos-projetos {
  width: 100%;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.info-projetos {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--claro);
}

.info-projetos a {
  text-decoration: none;
  color: var(--claro);
  transition: color 0.3s ease;
}

.info-projetos a:hover {
  color: var(--primaria);
}

.paragrafo-projetos {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.8);
  text-align: left;
}

/* ==========================================================================
   SEÇÃO CONTATOS (DISTÂNCIA ENCURTADA)
   ========================================================================== */
.contatos {
  padding: 2rem 1.5rem 6rem 1.5rem; /* Diminuído o padding superior de 6rem para 2rem */
  width: 100%;
}

.contatos-titulo {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 40px;
}

.formulario-contatos {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.nome-form {
  margin-bottom: 1.2rem;
}

.campo-form {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: var(--claro);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.campo-form:focus {
  outline: none;
  border-color: var(--secundaria);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.button {
  color: var(--claro);
  background: linear-gradient(45deg, var(--primaria), var(--secundaria));
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* ==========================================================================
   FOOTER / CRÉDITOS
   ========================================================================== */
.creditos-caixa {
  position: relative;
  background: transparent;
  width: 100vw;
  height: 100vh;
}

.creditos {
  height: 200px;
  width: 100vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.video-creditos {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.creditos-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-weight: bold;
  font-size: 1.5rem;
}

#garantia {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  margin-bottom: 20px;
}

/* ==========================================================================
   EFEITOS E ANIMAÇÕES
   ========================================================================== */
.particula {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  background:
    radial-gradient(circle at 10% 20%, var(--primaria) 0%, transparent 35%),
    radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 35%),
    var(--maisEscuro);
}

@keyframes flutuar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.mobile-menu.active .line1 {
  transform: rotate(-45deg) translate(-8px, 8px);
}
.mobile-menu.active .line2 {
  opacity: 0;
}
.mobile-menu.active .line3 {
  transform: rotate(45deg) translate(-5px, -7px);
}

@media (max-width: 1024px) {
  /* Reseta a altura de todas as seções para o tamanho real do conteúdo */
  .cabecalho,
  .sobre-seçao,
  .contatos {
    height: auto !important;
    min-height: auto !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

}
