@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --primary-color: #00674f;
  --primary-color-dark: #004f3d;
  --secondary-color: #014b92;
  --secondary-color-dark: #013566;
  --text-dark: #11161f;
  --text-light: #6b7280;
  --extra-light: #e6f3ff;
  --max-width: 1200px;
}

::selection {
  background-color: var(--primary-color);
  color: white;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  width: 100%;
}

/* --- NAV --- */
nav {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  z-index: 99;
}

.nav__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  transition: 0.3s;
}
nav .logo a:hover {
  color: white;
}

nav .logo a img {
  vertical-align: middle;
  display: block;
}

.logo__text {
  display: block;
  line-height: 1.2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Foco de Acessibilidade */
a:focus-visible,
button:focus-visible,
label.checkbox:focus-visible {
  outline: 3px solid black;
  outline-offset: 2px;
  border-radius: 5px;
}

nav .checkbox:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
  border-radius: 5px;
}

nav .checkbox {
  display: none; /* ESCONDE o menu hamburger em desktop (padrão) */
}

nav .checkbox i {
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ESTILO DA LISTA (UL) - DESKTOP */
ul {
  display: flex; /* Mantém o layout de linha para desktop */
  align-items: center;
  gap: 1rem;
  list-style: none;
  /* REMOVIDO: transition: left 0.3s; (transferido para a media query) */
}

ul li a {
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  color: white;
  transition: 0.3s;
}

ul li a:hover {
  border-bottom-color: white;
  color: white;
}

/* --- HERO SECTION CONTAINER & GRID --- */
.section {
  background-color: white;
}

.section__container {
  min-height: auto;
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

/* CORREÇÃO CRÍTICA DE ALINHAMENTO GRID (Desktop) */
/* Garante que o texto e o vídeo fiquem lado a lado, mesmo com conteúdo variável */
.section__container .content {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.section__container .image.video-wrapper {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}
/* FIM DA CORREÇÃO */

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* ADICIONAR: Garante que a Coluna 1 ocupe a altura total do grid-row */
  align-self: stretch;
}

.subtitle {
  letter-spacing: 2px;
  color: white;
  font-weight: 800;
}

.title {
  font-size: 3.85rem;
  font-weight: 400;
  line-height: 5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.title span {
  font-weight: 600;
}

.description {
  font-size: 1rem;
  line-height: 1.7rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: justify;
  max-width: 57ch;
}

/* --- BOTÕES E ÍCONES SOCIAIS (COLUNA 1) --- */
.action__btns {
  display: flex;
  align-items: center; /* Centraliza verticalmente os ícones com os botões */
  flex-wrap: wrap;
  gap: 1rem; /* Espaço entre botões e o bloco de ícones */
}

.action__btns .btn {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.btn.hire__me {
  background-color: var(--secondary-color);
  color: #ffffff;
}
.btn.hire__me:hover {
  background-color: var(--secondary-color-dark);
}

.btn.portfolio {
  color: var(--secondary-color);
}
.btn.portfolio:hover {
  background-color: var(--secondary-color-dark);
  color: #ffffff;
}

/* Foco para os botões */
.action__btns .btn:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: 5px;
}

/* Estilos dos Ícones de Redes Sociais */
.social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem; /* Espaço entre o último botão e o bloco de ícones */
}

.social-icons a {
  display: flex;
  padding: 0.1rem;
}

.social-icons img {
  width: 45px; /* TAMANHO AJUSTADO */
  height: 45px; /* TAMANHO AJUSTADO */
  display: block;
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.3);
}

/* --- ÍCONES DE ACESSIBILIDADE (Acima do Vídeo) --- */
.video-icons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 0.5rem;
}

.image.video-wrapper {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.video-icons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.55rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 0.5rem;
}

.video-icons img {
  height: 40px;
  width: auto;
  display: block;
}

video {
  max-width: 95%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* Container que segura o vídeo e a decoração juntos */
.video-stack {
  position: relative; /* Cria o contexto de posicionamento */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 0.75rem; /* Espaço para não grudar na transcrição */
  z-index: 1; /* Garante ordem correta na página */
}

/* A imagem decorativa */
.video-decoration {
  position: absolute; /* Sai do fluxo normal para ficar atrás */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centraliza perfeitamente atrás do vídeo */

  /* Ajuste o tamanho da decoração conforme necessário */
  width: 110%; /* Exemplo: Um pouco maior que o vídeo para "vazar" nas bordas */
  height: auto;
  max-width: none; /* Permite que a decoração exceda um pouco se quiser */

  z-index: 99;
  pointer-events: none;
}

/* Ajuste no Vídeo para garantir que ele fique na frente */
.video-stack video {
  position: relative;
  z-index: 90; /* Garante que o vídeo fique na frente da decoração */
  /* Mantém seus estilos originais */
  max-width: 90%;
  height: auto;
  border-radius: 0px;
  display: block;
}

/* Estilo da Transcrição (Botão abaixo do Vídeo) */
.transcription-details {
  width: 95%;
  margin-top: 1.5rem;

  border: 1px solid var(--text-light);
  border-radius: 10px;
  padding: 0.5rem 0.5rem;
}

.transcription-details summary {
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  list-style: none;
}

.transcription-content {
  padding-top: 1rem;
  border-top: 1px dashed var(--text-light);
  margin-top: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 0.9rem;
  text-align: justify;
}

.whitedescription {
  font-size: 1rem;
  line-height: 1.7rem;
  color: white;

  /* REMOVA margin-bottom: 1rem; aqui ou defina como 0 se não for necessário */
  margin-bottom: 0;

  text-align: justify;
  max-width: 55ch;
}

.content-repositioner {
  /* Define o alinhamento interno da caixa (opcional, mas bom para garantir) */
  display: block;
  width: 100%;

  /* Puxa a caixa inteira para cima com a margem negativa desejada */
  /* AJUSTE ESTE VALOR (-8rem, -10rem, -12rem, etc.) até o conteúdo chegar ao topo */
  margin-top: -2.5rem;

  /* Garante que o conteúdo dentro da caixa comece no topo (desktop) */
  align-self: flex-start;
}

/* --- BANNER AZUL (Cor de Fundo, Ajustes Visuais) --- */

.blue {
  /* Estilos Visuais */
  background-color: var(--secondary-color-dark);
  color: white;
  padding: 5px 0;
  text-align: center;
  width: 100%;
  /* ADICIONE A SUA SOMBRA AQUI SE QUISER: */
  /* box-shadow: 5px 5px 0px 0px #003087, 8px 8px 5px 2px rgba(0, 0, 0, 0.4); */
}

.blue .section__container {
  /* Centraliza verticalmente o Conteúdo e a Imagem DENTRO da Seção Azul */
  align-items: center;
}

.blue .section__container .blue-content .subtitle {
  text-align: center;
  margin-top: -6rem;
  margin-bottom: -0.5rem;
}

.blue p {
  font-size: 1rem;
  line-height: 1.7rem;
  color: white;
  margin-bottom: 1rem;
  text-align: justify;
  max-width: 57ch;
  margin-top: 1rem;
}

.blue ul.list-white {
  /* 1. Anula regras de coluna */
  column-count: 1 !important;

  /* 2. Anula posicionamento de menu */
  position: static !important;
  left: auto !important;
  display: block !important;

  /* 3. Garante alinhamento visual e cor */
  color: white; /* Garante que a lista tenha cor branca */
  margin: 0;
  padding-left: 1.5rem; /* Adiciona padding para os marcadores (bolinhas) */
  width: auto;
  list-style-type: disc;
  list-style-position: outside; /* Marcador fora do fluxo do texto */
  font-size: 1rem; /* Define o tamanho da fonte da lista */
  margin-bottom: 0.5rem; /* Reduz a margem inferior para não empurrar o próximo elemento */
  margin-top: 0.5rem; /* Opcional: Adiciona um pequeno espaço no topo da lista */
}

.blue ul.list-white li {
  text-align: left;
  /* Garante que o texto comece à esquerda do marcador */
}

.whitedescription1 {
  font-size: 1rem;
  color: white;
  text-align: justify;
  max-width: 55ch;
}

/* --- ESTILOS DEDICADOS DO CONTEÚDO AZUL (.blue-content) --- */

.blue-content {
  /* Propriedades de Layout (Replicadas do .content global para funcionar no Grid) */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  padding-top: 1px;
}

/* --- INVERSÃO DE COLUNAS (LAYOUT DESKTOP: IMAGEM ESQUERDA / TEXTO DIREITA) --- */

/* Força a Imagem/Foto para a Coluna 1 (LADO ESQUERDO) */
.blue .section__container .blue-image-wrapper {
  grid-column: 1 / 2;
  position: relative;
  display: flex; /* Transforma o wrapper em um container flexível */
  justify-content: center; /* Centraliza a imagem horizontalmente DENTRO da coluna */
  /* OU use justify-content: flex-end; para alinhar a imagem totalmente à direita da coluna. */
}

/* Força o Conteúdo (Texto) para a Coluna 2 (LADO DIREITO) */
.blue .section__container .blue-content {
  grid-column: 2 / 3;
}

/* --- ESTILO DE IMAGEM DEDICADO (.blue-image-wrapper img) --- */

/* Resolve o tamanho, garante responsividade e aplica a margem negativa na imagem da seção azul */
.blue-image-wrapper img {
  max-width: 60%; /* GARANTE RESPONSIVIDADE */
  height: auto;
  display: block;
  margin-top: -1.5rem;
}

/* --- RESPONSIVIDADE (MOBILE: IMAGEM PRIMEIRO / TEXTO DEPOIS) --- */

@media (width < 750px) {
  /* IMAGEM PRIMEIRO (Linha 1) - Na seção .blue */
  .blue .section__container .blue-image-wrapper {
    grid-row: 1;
    grid-column: 1;
    /* A altura do wrapper deve ser suficiente para conter a imagem */
    min-height: 350px; /* <--- AJUSTE ESTA ALTURA se a imagem for cortada */
  }

  /* POSICIONAMENTO LIVRE DA IMAGEM */
  .blue .section__container .blue-image-wrapper img {
    /* 1. Define o tamanho máximo que a imagem pode ter */
    max-width: 300px; /* <--- AJUSTE ESTE VALOR para o tamanho ideal no mobile */
    width: 100%; /* Permite que a imagem se adapte dentro do max-width */

    /* 2. Aplica Posicionamento Absoluto para controle total */
    position: absolute;

    /* 3. Centraliza a imagem horizontalmente e verticalmente no wrapper */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* O truque mágico de centralização */

    /* 4. Remove margens conflitantes que vieram de regras anteriores */
    margin: 0 !important;
  }

  /* CONTEÚDO DEPOIS (Linha 2) - Na seção .blue */
  .blue .section__container .blue-content {
    grid-row: 2;
    grid-column: 1;
  }

  /* Centraliza o BLOCO de texto */
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;

  .blue-content {
    margin-top: -5rem;
  }

  /* --- MOBILE / RESPONSIVIDADE --- */

  nav .checkbox {
    display: block; /* MOSTRA o menu hamburger em mobile */
  }

  /* ESTILO DO MENU OCULTO (MOBILE) */
  /* Alterado de nav ul para nav #main-menu */
/* DENTRO DE @media (width < 750px) */

/* 1. Oculta o menu e prepara a animação */
nav #main-menu {
  /* Use !important para garantir que NENHUM display: flex de desktop interfira */
  display: flex !important; 
  position: absolute;
  width: 100%;
  height: calc(100vh - 85px);
  left: -100%; /* Oculta (fora da tela) */
  top: 85px;
  background-color: var(--primary-color);
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  transition: left 0.3s; 
}

/* 2. Mostra o menu quando o checkbox for marcado */
nav #check:checked ~ #main-menu {
  left: 0; /* MOSTRA */
}

  nav ul li a {
    font-size: 1.25rem;
  }

  .section__container {
    margin-top: 0;
    padding: 3rem 1rem 3rem 1rem;
    text-align: center;
    grid-template-columns: repeat(1, 1fr); /* FORÇA 1 COLUNA */
  }

  /* FORÇA O TEXTO (CONTENT) PARA A PRIMEIRA LINHA */
  .section__container .content {
    grid-row: 1;
    grid-column: 1;
  }

  /* FORÇA O VÍDEO (IMAGE) PARA A SEGUNDA LINHA */
  .section__container .image.video-wrapper {
    grid-row: 2;
    grid-column: 1;
  }

  .action__btns {
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
  }

  .social-icons {
    margin-left: 0;
    justify-content: center;
  }
  .blue .section__container .blue-content .subtitle,
  .blue .section__container .blue-content .title,
  .blue .section__container .blue-content .description {
    text-align: center !important; /* FORÇA O ALINHAMENTO CENTRAL */
  }
}