/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Georgia', serif;
  background-color: #ffffff;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =====================
   CABEÇALHO
   ===================== */
.header {
  padding: 28px 48px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5a2d8c;
  text-transform: uppercase;
}

.logo .dot {
  color: #5a2d8c;
  margin: 0 2px;
}

.logo-img {
  width: 200px !important;
  height: auto !important;
  max-width: 100%;
  display: block;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link--active {
  color: #5a2d8c;
}

/* =====================
   CORPO — GRELHA (Home & Work)
   ===================== */
.main {
  flex: 1;
  padding: 40px 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-title {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.project-image {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  background-color: #e8e8e8;
  background-size: cover; 
  background-position: center;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image {
  transform: scale(1.02);
}

.project-title {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #5a2d8c;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.project-category {
  font-family: 'Georgia', serif;
  font-size: 0.8rem;
  color: #999;
  letter-spacing: 0.02em;
}

.galeria-item {
  overflow: hidden;       /* ← impede que saia da célula */
  position: relative;
}

.galeria-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;     /* ← fica dentro da célula */
  top: 0;
  left: 0;
}

/* =====================
   ABOUT
   ===================== */
.about-main {
  padding-top: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background-color: #e8e0f0;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.about-name {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #5a2d8c;
  letter-spacing: 0.03em;
}

.about-bio {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #2a2a2a;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.about-contact-link {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #5a2d8c;
  transition: opacity 0.2s;
}

.about-contact-link:hover {
  opacity: 0.65;
}

.about-socials {
  display: flex;
  gap: 28px;
}

.about-social-link {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.about-social-link:hover {
  color: #5a2d8c;
  border-color: #5a2d8c;
}

/* =====================
   CONTACT
   ===================== */
.contact-main {
  padding-top: 64px;
  padding-bottom: 80px;
}

.contact-block {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: #5a2d8c;
  transition: opacity 0.2s;
}

.contact-item:hover {
  opacity: 0.65;
}

.contact-socials {
  display: flex;
  gap: 28px;
}

.contact-social {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-social:hover {
  color: #5a2d8c;
  border-color: #5a2d8c;
}

/* =====================
   RODAPÉ
   ===================== */
.footer {
  border-top: 1px solid #d4d4d4;
  padding: 48px 48px 40px;
}

.footer-logo-img {
  width: 200px !important;
  height: auto !important;
  max-width: 100%;
  display: block;
  margin-bottom: 0px;
}


.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #5a2d8c;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.footer-contact {
  font-family: 'Georgia', serif;
  font-size: 0.875rem;
  color: #5a2d8c;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-link {
  color: #5a2d8c;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.65;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-nav-link {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: #5a2d8c;
}

/* =====================
   PÁGINA DE PROJETO
   ===================== */
.projeto-main {
  padding-top: 32px;
  padding-bottom: 80px;
}

.back-link {
  display: inline-block;
  font-family: 'Georgia', serif;
  font-size: 0.875rem;
  color: #5a2d8c;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.65;
}

.projeto-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.projeto-titulo {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color:#63398e;
  letter-spacing: 0.01em;
}

.projeto-categoria {
  font-family: 'Georgia', serif;
  font-size: 0.875rem;
  color: #999;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.projeto-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background-color: #e8e8e8;
  margin-bottom: 40px;
}

.projeto-subtitulo {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 16px;
}

.projeto-descricao {
  max-width: 100%;
  margin-bottom: 56px;
}

.projeto-descricao p {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #63398e;
}

/* GALERIA */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 385px;
  gap: 16px;
  margin-bottom: 72px;
}

.galeria-item {
  border-radius: 12px;
  background-color: #e8e8e8;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.2s;
  overflow: hidden;
}

.galeria-item:hover {
  transform: scale(1.02);
  opacity: 0.92;
}

/* Item largo ocupa 2 colunas */
.galeria-item--largo {
  grid-column: span 2;
}

/* Galeria mista — só para projetos com reels + quadrados + horizontais */
.galeria--mista {
  grid-auto-rows: auto;
  align-items: start;
}

.galeria-item--quadrado {
  aspect-ratio: 1 / 1;
}

.galeria-item--horizontal {
  aspect-ratio: 16 / 9;
  grid-column: span 2;
}

.galeria-item--full {
  aspect-ratio: 16 / 9;
  grid-column: span 3;
}

.galeria-item--reel {
  aspect-ratio: 9 / 16;
}

/* Navegação entre projetos */
.projeto-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid #d4d4d4;
}

.projeto-nav-link {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #5a2d8c;
  transition: opacity 0.2s;
}

.projeto-nav-link:hover {
  opacity: 0.65;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox--ativo {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  cursor: default;
}

.lightbox-fechar {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-fechar:hover {
  opacity: 1;
}

/* =====================
   ABOUT — CV LAYOUT
   ===================== */
.about-cv-main {
  padding-top: 48px;
  padding-bottom: 0;
}

.about-cv-bio {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.75;
  color: #5a2d8c;
  max-width: 780px;
  margin-bottom: 48px;
}

.cv-grid {
  border-top: 1px solid #d4d4d4;
  width: 100%;
}

.cv-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  border-bottom: 1px solid #d4d4d4;
  padding: 20px 0;
  gap: 24px;
  align-items: start;
}

.cv-col-left {
  padding-top: 2px;
}

.cv-col-mid,
.cv-col-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-col-mid--wide {
  grid-column: span 2;
}

.cv-section-title {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  padding-top: 12px;
}

.cv-date {
  font-family: 'Georgia', serif;
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
}

.cv-entry-title {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.cv-entry-sub {
  font-family: 'Georgia', serif;
  font-size: 0.82rem;
  color: #888;
}

.cv-contact-line {
  font-family: 'Georgia', serif;
  font-size: 0.82rem;
  color: #1a1a1a;
  line-height: 1.9;
}

.cv-contact-link {
  color: #1a1a1a;
  transition: color 0.2s;
}

.cv-contact-link:hover {
  color: #5a2d8c;
}

.cv-row--footer {
  align-items: center;
  padding: 24px 0;
}

.cv-cta {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #5a2d8c;
  transition: opacity 0.2s;
}

.cv-cta:hover {
  opacity: 0.65;
}

.cv-col-right--icons {
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cv-row {
    grid-template-columns: 120px 1fr;
  }

  .cv-col-right:not(.cv-col-right--icons) {
    display: none;
  }

  .cv-col-right--icons {
    justify-content: flex-start;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .cv-row,
  .cv-section-header {
    grid-template-columns: 1fr 2fr;
  }

  .cv-col:nth-child(3),
  .cv-col:nth-child(4) {
    display: none;
  }

  .about-cv-bio {
    font-size: 1rem;
  }
}


/* =====================
   RESPONSIVO
   ===================== */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-photo-placeholder {
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 16px 20px;
  }

  .logo {
    font-size: 1rem;
  }

  .nav {
    gap: 20px;
  }

  .main {
    padding: 24px 20px 40px;
  }

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

  .project-image {
    aspect-ratio: 4 / 3;
  }

  .footer {
    padding: 28px 20px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    align-items: flex-start;
  }

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

  /* GALERIA MOBILE */
  .galeria {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .galeria-item {
    aspect-ratio: 4 / 3;
    grid-column: span 1 !important;
  }

  .galeria-item--reel {
    aspect-ratio: 9 / 16;
  }

  .galeria-item--quadrado {
    aspect-ratio: 1 / 1;
  }

  .galeria-item--horizontal,
  .galeria-item--full,
  .galeria-item--largo {
    aspect-ratio: 16 / 9;
  }
}