/* ============================================
   PORTFÓLIO — PIETRO YUSUF
   Cores e fontes ficam aqui embaixo. Pode mexer!
   ============================================ */
:root {
  --fundo: #0b0b0d;
  --fundo-2: #121216;
  --texto: #f2f2f0;
  --texto-suave: #a3a3a0;
  --destaque: #5ce1e6;      /* cor de destaque */
  --borda: #26262b;
  --fonte-titulo: "Bebas Neue", sans-serif;
  --fonte-corpo: "Archivo", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-corpo);
  line-height: 1.6;
}

/* ===== NAVEGAÇÃO ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
  z-index: 100;
}

.nav-logo {
  font-family: var(--fonte-titulo);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--texto);
  text-decoration: none;
}
.nav-logo span { color: var(--destaque); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.nav-links a {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--texto); }

.nav-cta {
  border: 1px solid var(--destaque);
  color: var(--destaque) !important;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--destaque); color: #000 !important; }

/* ===== HERO =====
   A foto de capa é fotos/capa.jpg — o texto fica no lado
   esquerdo, sobre a área escura/vazia da foto. */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 5vw;
  background:
    linear-gradient(to right, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.55) 45%, rgba(11, 11, 13, 0.15) 100%),
    url("../fotos/capa.jpg") center right / cover no-repeat,
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(92, 225, 230, 0.07), transparent),
    var(--fundo);
}

.hero-conteudo { max-width: 620px; }

.hero-kicker {
  color: var(--destaque);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--fonte-titulo);
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: 2px;
}

.hero-sub {
  max-width: 480px;
  color: var(--texto-suave);
  margin: 1.5rem 0 2.5rem;
}

.hero-btn {
  color: var(--texto);
  text-decoration: none;
  border: 1px solid var(--borda);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  transition: border-color 0.2s, transform 0.2s;
}
.hero-btn:hover { border-color: var(--destaque); transform: translateY(2px); }

/* ===== SEÇÕES ===== */
.section { padding: 6rem 5vw; }

.section h2 {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ===== FILTROS ===== */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.filter {
  background: transparent;
  border: 1px solid var(--borda);
  color: var(--texto-suave);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-family: var(--fonte-corpo);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { border-color: var(--destaque); color: var(--texto); }
.filter.active {
  background: var(--destaque);
  border-color: var(--destaque);
  color: #000;
  font-weight: 700;
}

/* ===== GRADE DE TRABALHOS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--fundo-2);
  border: 1px solid var(--borda);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--destaque); }

.card img,
.card .card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1a1a20, #101014);
  color: var(--texto-suave);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover .card-overlay { opacity: 1; }

.card-overlay h3 { font-size: 1.1rem; font-weight: 700; }
.card-overlay p { font-size: 0.85rem; color: var(--texto-suave); }

.card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--destaque);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.grid-empty { color: var(--texto-suave); margin-top: 2rem; }

/* ===== SOBRE ===== */
.sobre { background: var(--fundo-2); }

.sobre-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  max-width: 900px;
}

.sobre-body p { color: var(--texto-suave); font-size: 1.05rem; }

.sobre-lista { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }

/* ===== CONTATO ===== */
.contato { text-align: center; }
.contato p { color: var(--texto-suave); margin-bottom: 2rem; }

.contato-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contato-links a {
  color: var(--texto);
  text-decoration: none;
  border: 1px solid var(--borda);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.contato-links a:hover { border-color: var(--destaque); background: rgba(92, 225, 230, 0.08); }

/* ===== RODAPÉ ===== */
.rodape {
  text-align: center;
  padding: 2rem;
  color: var(--texto-suave);
  font-size: 0.85rem;
  border-top: 1px solid var(--borda);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox[hidden] { display: none; }

.lightbox-caixa {
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--fundo-2);
  border-radius: 10px;
}

.lightbox-conteudo img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
}

/* descrição do trabalho dentro do lightbox */
.lightbox-info { padding: 1.6rem 2rem 2rem; }
.lightbox-info:empty { display: none; }

.lightbox-kicker {
  color: var(--destaque);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.lightbox-titulo {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.lightbox-descricao {
  color: var(--texto-suave);
  max-width: 640px;
}

.lightbox-conteudo iframe,
.lightbox-conteudo video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
}

/* vídeos verticais (Shorts/Reels, 9:16) */
.lightbox-conteudo.vertical iframe,
.lightbox-conteudo.vertical video {
  aspect-ratio: 9 / 16;
  height: 72vh;
  width: auto;
  margin: 0 auto;
}

.lightbox-fechar {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--texto);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-fechar:hover { color: var(--destaque); }

/* ===== RESPONSIVO ===== */

/* Em telas estreitas (celular/tablet em pé) a foto é panorâmica
   demais para caber ao lado do texto: o recorte deixaria só a
   área escura. Aqui ela enquadra o centro da imagem e o texto
   desce para a parte de baixo, sobre um gradiente vertical. */
@media (max-width: 900px) {
  .hero {
    justify-content: flex-end;
    padding-bottom: 12vh;
    background:
      linear-gradient(to bottom,
        rgba(11, 11, 13, 0.6) 0%,
        rgba(11, 11, 13, 0.15) 20%,
        rgba(11, 11, 13, 0.75) 56%,
        rgba(11, 11, 13, 0.96) 80%,
        var(--fundo) 100%),
      url("../fotos/capa.jpg") 50% center / cover no-repeat,
      var(--fundo);
  }

  .hero-conteudo,
  .hero-sub { max-width: 100%; }
}

@media (max-width: 700px) {
  .sobre-body { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .section { padding: 4rem 5vw; }
  .lightbox { padding: 2vh 3vw; }
  .lightbox-info { padding: 1.2rem 1.3rem 1.6rem; }
  .lightbox-conteudo.vertical iframe,
  .lightbox-conteudo.vertical video { height: 62vh; }
}
