* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  background: #fff;
  color: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.topo {
  display: flex;
  justify-content: space-between;
  padding: 40px 80px;
  font-size: 14px;
}

.topo-dir a {
  margin-left: 32px;
}

/* LAYOUT */
main {
  padding: 120px 80px;
}

.texto-grande {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.35;
  max-width: 900px;
}

.scroll-indicador {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 24px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← 3 por linha */
  gap: 80px 60px;
  margin-top: 120px;
}

.grid img {
  width: 100%;
  display: block;
}

figcaption {
  margin-top: 8px;
}

figcaption em {
  display: block;
  font-style: italic;
}

figcaption span {
  font-size: 13px;
  opacity: 0.6;
}

/* SOBRE */
.sobre-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center; /* ← isso alinha o texto no meio da foto */
}

.sobre-intro img {
  width: 60%;
}

.sobre-intro .texto-grande {
  text-align: left;
}

.texto-menor {
  max-width: 520px;   /* ← coluna mais editorial */
  margin-top: 100px;
  font-size: 15px;
  line-height: 1.7;
}

/* CURRÍCULO */
.curriculo {
  margin-top: 120px;
  max-width: 520px; /* ← igual ao texto-menor */
}

.linha-cv {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.curriculo hr {
  margin: 16px 0 32px;
  border: none;
  border-top: 1px solid #ddd;
}

/* RODAPÉ */
.rodape {
  padding: 80px;
  font-size: 14px;
}

.rodape hr {
  margin-bottom: 40px;
}

.rodape-conteudo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  main, .topo, .rodape {
    padding: 40px;
  }

  .sobre-intro {
    grid-template-columns: 1fr;
  }

  .texto-grande {
    font-size: 26px;
  }

  .rodape-conteudo {
    grid-template-columns: 1fr 1fr;
  }
}

/* CV — SOBRE */
.titulo-secao {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.5;
  margin-bottom: 24px;
}

.linha-cv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.linha-cv strong {
  display: block;
  font-weight: 400;
}

.linha-cv .cargo-cv {
  display: block;
  font-size: 13px;
  font-style: italic;
  opacity: 0.6;
  margin-top: 4px;
}

.linha-cv > span {
  flex-shrink: 0;
  font-size: 13px;
  opacity: 0.5;
  white-space: nowrap;
}

.cv-grid {
  max-width: 520px;
  margin-top: 100px;
}

.cv-bloco strong {
  display: block;
  font-weight: 400;
  margin-bottom: 12px;
}

.cv-texto {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.75;
}

.cv-texto em {
  font-style: italic;
  opacity: 0.8;
}

.habilidades {
  max-width: 520px;
  margin-top: 100px;
}

.skill {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

.skill-barra {
  height: 2px;
  background: #eee;
}

.skill-preenchido {
  height: 100%;
  background: #000;
}

.cv-portfolio {
  margin-top: 100px;
  font-size: 15px;
}

.cv-portfolio a {
  border-bottom: 1px solid #000;
}

@media (max-width: 900px) {
  .linha-cv {
    flex-direction: column;
    gap: 4px;
  }

  .skill {
    grid-template-columns: 90px 1fr;
  }
}

/* MODAL (apenas para a home) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
}

.modal.open {
  display: flex;
}

.modal img {
  max-width: 80vw;
  max-height: 80vh;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  background: #fff;
  color: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.topo {
  display: flex;
  justify-content: space-between;
  padding: 40px 80px;
  font-size: 14px;
}

.topo-dir a {
  margin-left: 32px;
}

/* LAYOUT */
main {
  padding: 120px 80px;
}

.texto-grande {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.35;
  max-width: 900px;
}

.scroll-indicador {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 24px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← 3 por linha */
  gap: 80px 60px;
  margin-top: 120px;
}

.grid img {
  width: 100%;
  max-width: 100%;
  min-width: 240px; /* evita que a imagem encolha demais */
  height: auto;
  display: block;
}

figcaption {
  margin-top: 8px;
}

figcaption em {
  display: block;
  font-style: italic;
}

figcaption span {
  font-size: 13px;
  opacity: 0.6;
}

/* SOBRE */
.sobre-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center; /* ← isso alinha o texto no meio da foto */
}

.sobre-intro img {
  width: 60%;
  max-width: 100%;
  min-width: 160px; /* mantém a foto legível em telas menores */
}

.sobre-intro .texto-grande {
  text-align: left;
}

.texto-menor {
  max-width: 520px;   /* ← coluna mais editorial */
  margin-top: 100px;
  font-size: 15px;
  line-height: 1.7;
}

/* CURRÍCULO */
.curriculo {
  margin-top: 120px;
  max-width: 520px; /* ← igual ao texto-menor */
}

.linha-cv {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.curriculo hr {
  margin: 16px 0 32px;
  border: none;
  border-top: 1px solid #ddd;
}

/* RODAPÉ */
.rodape {
  padding: 80px;
  font-size: 14px;
}

.rodape hr {
  margin-bottom: 40px;
}

.rodape-conteudo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  main, .topo, .rodape {
    padding: 40px;
  }

  .sobre-intro {
    grid-template-columns: 1fr;
  }

  .texto-grande {
    font-size: 26px;
  }

  .rodape-conteudo {
    grid-template-columns: 1fr 1fr;
  }
}

/* Ajustes adicionais para evitar imagens muito pequenas */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* mantém 2 colunas para reduzir encolhimento */
    gap: 32px 24px;
  }

  .grid img {
    min-width: 200px; /* reduz o min-width para caber melhor em telas pequenas */
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr; /* volta para 1 coluna em telas muito pequenas */
    gap: 24px;
  }

  .grid img,
  .sobre-intro img {
    min-width: 160px; /* último recurso para telas muito pequenas */
    width: 100%;
  }
}

/* MODAL (apenas para a home) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
}

.modal.open {
  display: flex;
}

.modal img {
  max-width: 80vw;
  max-height: 80vh;
}