@font-face {
  font-family: 'PinyonScript';
  src: url('PinyonScript-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  src: url('Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

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

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  background: #2a1f14;
  color: #e8e0d5;
  min-height: 100vh;
}

/* NAV */
nav {
  background: #2a1f14;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 24px 40px;
  position: relative;
}

.nav-tabs {
  display: flex;
  gap: 48px;
}

/* TOGGLE DE IDIOMA */
.lang-toggle {
  background: #3d2e1f;
  border: 1px solid #4a3726;
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: border-color 0.2s;
}

.lang-toggle:hover {
  border-color: #9a7e65;
}

.lang-toggle .lang-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #9a8a70;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 1px;
  transition: color 0.2s, background 0.2s;
}

.lang-toggle .lang-opt .flag {
  font-size: 1.05rem;
  line-height: 1;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s;
}

.lang-toggle .lang-opt.active {
  background: #2a1f14;
  color: #ffffff;
}

.lang-toggle .lang-opt.active .flag {
  filter: none;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #c9b99a;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #e8e0d5;
  transition: width 0.25s;
}

.tab-btn:hover {
  color: #e8e0d5;
}

.tab-btn.active {
  color: #e8e0d5;
}

.tab-btn.active::after {
  width: 100%;
}

/* CONTEÚDO */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* HOME */
.home-hero {
  /* mesmo espaçamento vertical em cima (nome ↔ tabs) e embaixo (texto ↔ projetos) */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 80px 24px;
}

.home-inner {
  text-align: center;
  padding: 0 24px;
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  font-size: 0.66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a7e65;
  animation: bob 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

.home-projects {
  padding-bottom: 40px;
}

/* o gap acima dos projetos vem do padding do hero, não do .content */
.home-projects .content {
  padding-top: 0;
}

.home-inner .nome-script {
  font-family: 'PinyonScript', cursive;
  font-size: 6rem;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 16px;
}

.home-inner .portfolio-titulo {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 3.8rem;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.home-inner .descricao {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #ACACAC;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

/* SOBRE MIM */
.sobre-mim {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.foto-wrap {
  width: 220px;
  height: 280px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #3d2e1f;
}

.foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre-corpo p {
  line-height: 1.8;
  color: #e8e0d5;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.sobre-corpo strong { color: #ffffff; }

.sobre-texto h2 {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9b99a;
  margin-bottom: 16px;
}

.sobre-texto p {
  line-height: 1.8;
  color: #e8e0d5;
  font-size: 0.95rem;
  font-weight: 400;
}

/* CURRÍCULO */
.secao {
  margin-bottom: 44px;
}

.secao-titulo {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9b99a;
  border-bottom: 1px solid #3d2e1f;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.item {
  margin-bottom: 20px;
}

.item h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: #e8e0d5;
}

.item span {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #9a7e65;
}

.item p {
  margin-top: 6px;
  color: #c9b99a;
  line-height: 1.7;
  font-size: 0.9rem;
  font-weight: 400;
}

.skills {
  font-size: 0.85rem;
  font-weight: 400;
  color: #c9b99a;
  line-height: 2;
  letter-spacing: 0.5px;
}

/* CABEÇALHO DE SEÇÃO (título script + linha) */
.secao-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.secao-script {
  font-family: 'PinyonScript', cursive;
  font-size: 3.4rem;
  color: #ffffff;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
}

.secao-line {
  flex: 1;
  height: 1px;
  background: #c9b99a;
}

/* PROJETOS */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 28px;
}

.card {
  background: transparent;
  cursor: pointer;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #d8d3cb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}

.card-thumb .proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.card:hover .card-thumb .proj-img {
  transform: scale(1.04);
}

.card h3 {
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: none;
  color: #f2ede4;
  line-height: 1.35;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.82rem;
  font-weight: 400;
  color: #b8a888;
  line-height: 1.6;
}

.card-company {
  color: #9a7e65;
}

.card a.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a7e65;
  text-decoration: none;
}

.card:hover a.card-link {
  color: #e8e0d5;
}

/* DETALHE DO PROJETO */
.voltar-btn {
  background: transparent;
  border: none;
  color: #c9b99a;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.voltar-btn:hover { color: #ffffff; }

.proj-header {
  margin-bottom: 40px;
}

.proj-company {
  font-size: 0.66rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9a7e65;
}

.proj-titulo {
  font-size: 2rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  margin: 10px 0 14px;
}

.proj-short {
  font-size: 0.95rem;
  color: #c9b99a;
  line-height: 1.7;
  max-width: 640px;
}

.proj-secao {
  margin-bottom: 44px;
}

.proj-secao-titulo {
  font-size: 1.44rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c9b99a;
  border-bottom: 1px solid #3d2e1f;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.proj-secao-corpo p {
  color: #e8e0d5;
  line-height: 1.8;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.proj-secao-corpo ul {
  margin: 0 0 14px 20px;
  color: #c9b99a;
}

.proj-secao-corpo li {
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.proj-secao-corpo strong { color: #ffffff; }

.proj-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.proj-imgs .proj-img {
  width: 100%;
  border-radius: 10px;
  background: #d8d3cb;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.proj-imgs .proj-img:hover {
  opacity: 0.9;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1000;
  cursor: zoom-out;
  overflow: auto;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  transition: width 0.15s ease;
  flex-shrink: 0;
  margin: auto;
}

/* estado ampliado: imagem maior que a tela, com scroll para navegar */
.lightbox-img.zoomed {
  max-width: none;
  max-height: none;
  border-radius: 0;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: transparent;
  border: none;
  color: #e8e0d5;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #ffffff; }

.figma-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a7e65;
  text-decoration: none;
  border-bottom: 1px solid #3d2e1f;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.figma-link:hover {
  color: #ffffff;
  border-color: #c9b99a;
}

/* CONTATO */
.contato {
  max-width: 480px;
}

.contato h2 {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9b99a;
  margin-bottom: 24px;
}

.contato p {
  font-size: 0.95rem;
  font-weight: 400;
  color: #e8e0d5;
  line-height: 1.8;
  margin-bottom: 24px;
}

.contato a {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9b99a;
  text-decoration: none;
  border-bottom: 1px solid #3d2e1f;
  padding-bottom: 2px;
  margin-right: 24px;
  transition: color 0.2s, border-color 0.2s;
}

.contato a:hover {
  color: #e8e0d5;
  border-color: #c9b99a;
}

/* CURRÍCULO — resumo e listas */
.cv-resumo {
  font-size: 0.95rem;
  color: #e8e0d5;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 44px;
}

.item ul {
  margin: 10px 0 0 18px;
  color: #c9b99a;
}

.item li {
  line-height: 1.65;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

/* Tablet / telas médias */
@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 16px 20px;
  }

  .nav-tabs {
    gap: 22px 26px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .content {
    padding: 48px 22px;
  }

  .home-inner .nome-script { font-size: 4.6rem; }
  .home-inner .portfolio-titulo { font-size: 3rem; }

  .secao-script { font-size: 2.8rem; }

  .sobre-mim { gap: 32px; }
}

/* Celular */
@media (max-width: 600px) {
  nav {
    gap: 14px;
    padding: 14px 16px;
  }

  .nav-tabs {
    gap: 12px 18px;
    order: 2;
    width: 100%;
  }

  .lang-toggle {
    order: 1;
  }

  .tab-btn {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
  }

  .content { padding: 40px 18px; }

  .home-hero { padding: 56px 18px; }
  .home-inner .nome-script { font-size: 3.3rem; }
  .home-inner .portfolio-titulo { font-size: 2.1rem; }
  .home-inner .descricao { font-size: 0.9rem; }

  .secao-header { gap: 14px; margin-bottom: 28px; }
  .secao-script { font-size: 2.2rem; }

  .projetos-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sobre-mim {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .foto-wrap { width: 200px; height: 240px; }

  .proj-titulo { font-size: 1.6rem; }
  .proj-imgs { grid-template-columns: 1fr; }

  .contato a {
    display: block;
    margin: 0 0 16px 0;
    width: fit-content;
  }

  .lightbox { padding: 16px; }
  .lightbox-close { top: 10px; right: 14px; }
}

/* Telas bem estreitas */
@media (max-width: 380px) {
  .nav-tabs { gap: 10px 14px; }
  .tab-btn { font-size: 0.58rem; letter-spacing: 1px; }
  .home-inner .nome-script { font-size: 2.7rem; }
  .home-inner .portfolio-titulo { font-size: 1.8rem; }
}
