/* Design System & Variables (Slate Charcoal & Lens Blue Theme) */
:root {
  --bg-dark: #0d0e11;
  /* Preto obsidiana/grafite profundo */
  --bg-dark-rgba: rgba(13, 14, 17, 0.85);
  --bg-light: #121316;
  /* Cinza escuro ardósia/carvão para o contêiner */
  --bg-card: #1a1c22;
  /* Tom de cinza carvão ligeiramente mais claro */
  --accent-color: #8ab4f8;
  /* Azul lente fotográfica / flash premium */
  --accent-color-hover: #aecbfa;
  --text-dark: #e8eaed;
  /* Texto claro em tom de areia fria */
  --text-light: #ffffff;
  --text-muted: #9aa0a6;
  /* Texto secundário cinza metálico */
  --white: #ffffff;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Redefinido para usar fontes do sistema elegantes (Megrim removida) */
.megrim-regular {
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
}

html {
  scroll-behavior: smooth;
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--white);
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* Header & Barra de Navegação */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 14, 17, 0.8);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
}

#nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 2rem;
  height: 4.5rem;
  width: 100%;
}

.nav-logo {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.nav-logo:hover {
  color: var(--accent-color);
}

#nav .links {
  display: flex;
  gap: 1.5rem;
}

#nav .links li {
  position: relative;
}

#nav .links a {
  display: block;
  padding: 0.5rem 0.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: var(--transition-smooth);
  position: relative;
}

#nav .links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

#nav .links a:hover {
  color: var(--white);
}

#nav .links a:hover::after {
  width: 100%;
}

#nav .links .active a {
  color: var(--accent-color);
}

#nav .links .active a::after {
  width: 100%;
  background-color: var(--accent-color);
}

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

#nav .social a.fa-brands {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

#nav .social a.fa-brands:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

#nav .social .label {
  display: none;
}

/* Menu Hambúrguer (Mobile Toggle) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  transition: var(--transition-smooth);
  align-items: center;
  justify-content: center;
}

.nav-toggle:focus {
  outline: none;
}


/* Seção de Introdução (Hero) Alinhada à Direita */
#intro {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 6rem 8% 2rem;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--bg-dark);
}

/* Camada da Imagem de Fundo (Justificada pelo Topo) */
#intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/background.webp');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

/* Overlay Escuro com Transparência de 85% */
#intro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2;
}

/* Conteúdo do Hero */
#intro>* {
  position: relative;
  z-index: 3;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 4px;
  /* Cantos levemente suavizados (borda arredondada reduzida) */
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* Sombra reduzida */
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.profile-pic:hover {
  transform: scale(1.03);
  border-color: var(--accent-color);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 5px;
  margin-bottom: 0.75rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title span {
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1.5px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* Botão Scroll câmera posicionado no rodapé centralizado */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-8px);
  }

  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* Scroll link and camera styles removed */


/* Bloco de Conteúdo Principal (Charcoal slate theme + bordas e sombras reduzidas) */
#main {
  position: relative;
  z-index: 10;
  background: var(--bg-light);
  /* Fundo cinza carvão escuro */
  color: var(--text-dark);
  /* Texto claro neutro */
  border-radius: 8px;
  /* Bordas arredondadas reduzidas (de 32px para 8px) */
  padding: 5rem 3.5rem;
  opacity: 1;
  scroll-margin-top: 100px;
  max-width: 1200px;
  margin: -40px auto 4rem;
  width: 92%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  /* Sombra reduzida */
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Divisórias */
.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  margin: 5rem 0;
}

/* Badges e Títulos de Seções */
.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
}

/* Seção Sobre */
.content-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.image-container,
.text-container {
  flex: 1;
  min-width: 320px;
}

.image-container img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
  /* Bordas arredondadas reduzidas (de 16px para 6px) */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.image-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.text-container p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.text-container p:last-child {
  margin-bottom: 0;
}

/* Seção Serviços */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  /* Fundo ligeiramente mais claro */
  padding: 3.5rem 2.5rem;
  border-radius: 6px;
  /* Bordas arredondadas reduzidas (de 24px para 6px) */
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Sombra reduzida */
  transition: var(--transition-smooth);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border-color: rgba(138, 180, 248, 0.2);
}

.service-icon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 8px;
  /* Reduzido de circular 50% para quadrado suavizado de 8px */
  background: rgba(138, 180, 248, 0.08);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem;
  font-size: 1.45rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--accent-color);
  color: var(--bg-dark);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

/* Seção Portfólio (Grid Dinâmico Moderno) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.5rem;
  /* Mais juntinhas */
}

.portfolio-item {
  position: relative;
  border-radius: 0;
  /* Removido arredondamento */
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  /* Sombra reduzida */
  background: var(--bg-card);
  display: block;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  border-radius: 0;
  /* Removido arredondamento */
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
      rgba(13, 14, 17, 0.95) 0%,
      rgba(13, 14, 17, 0.3) 70%);
  /* Transição de preto cinzento no overlay (sem marrom) */
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 2.2rem;
  transition: var(--transition-smooth);
  z-index: 2;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.portfolio-item-title {
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Seção Contato */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  text-align: center;
}

.contact-details {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.contact-details li i {
  color: var(--accent-color);
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
}

.contact-details li a {
  color: inherit;
  transition: var(--transition-smooth);
}

.contact-details li a:hover {
  color: var(--accent-color);
}

.contact-action {
  text-align: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.25rem 2.8rem;
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  /* Reduzido de circular 50px para quadrado de 4px */
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  /* Sombra reduzida */
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  background: #20ba59;
  color: var(--white);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  /* Sombra reduzida */
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  color: var(--white);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25d366;
  border-radius: 50%;
  top: 0;
  left: 0;
  z-index: -1;
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Rodapé Escuro */
#footer {
  padding: 4rem 1.5rem;
  background: #090a0d;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

#footer ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 0;
}

#footer li {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* Estilos da Página do Book (book.html) */
.book-header {
  text-align: left;
  margin-bottom: 3rem;
}

.book-badge-container {
  margin-bottom: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.back-link:hover {
  color: var(--accent-color-hover);
  transform: translateX(-4px);
}

.book-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.book-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
}

.book-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 3.5rem 0;
}

.gallery-photo-item {
  position: relative;
  border-radius: 6px;
  /* Reduzido de 16px para 6px */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  /* Sombra reduzida */
  background: var(--bg-card);
  /* Fundo slate cinza */
  cursor: pointer;
}

.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  display: block;
}

.gallery-photo-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.book-footer-action {
  text-align: center;
  margin-top: 4rem;
}

.book-error-container {
  text-align: center;
  padding: 5rem 2rem;
}

.book-error-container h2 {
  font-size: 2rem;
  margin: 1rem 0;
  color: var(--text-dark);
}

.book-error-container p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.error-icon {
  font-size: 3rem;
  color: var(--accent-color);
}

.back-link-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent-color);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 4px;
  /* Reduzido de 50px para 4px */
  transition: var(--transition-smooth);
}

.back-link-btn:hover {
  background: var(--accent-color-hover);
}

/* Layout Masonry Assimétrico Premium para Desktop (Galeria interna) */
@media (min-width: 768px) {

  /* Mosaico Interno do Book */
  .book-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-photo-item:nth-child(4n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-photo-item:nth-child(5n) {
    grid-row: span 2;
  }

  /* Mosaico Principal do Portfólio (Home) */
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    /* Altura de linha padrão */
    gap: 0.5rem;
    /* Mais juntinhas */
  }

  .portfolio-item {
    aspect-ratio: auto;
    /* Desativa a proporção fixa para preencher o grid */
    height: 100%;
  }

  /* Distribuição matemática assimétrica sem buracos para repetições de 6 itens */
  .portfolio-item:nth-child(6n + 1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .portfolio-item:nth-child(6n + 2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .portfolio-item:nth-child(6n + 3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .portfolio-item:nth-child(6n + 4) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .portfolio-item:nth-child(6n + 5) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .portfolio-item:nth-child(6n + 6) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* Responsividade Geral */
@media (max-width: 980px) {
  #intro {
    padding: 8rem 5% 2rem;
  }

  #main {
    padding: 4rem 2.5rem;
    margin-top: -30px;
    width: 94%;
  }

  .content-wrapper {
    gap: 3rem;
  }
}

@media (max-width: 768px) {

  /* Header & Navegação Mobile Premium */
  #header {
    background: rgba(13, 14, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  #nav {
    padding: 0 1.5rem;
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  .nav-toggle {
    display: flex;
    order: 2;
  }

  #nav .social {
    display: flex;
    align-items: center;
    margin-left: auto;
    order: 1;
    margin-right: 0.75rem;
    z-index: 1100;
  }

  #nav .social a.fa-brands {
    font-size: 1.4rem;
  }

  #header.nav-open #nav .social {
    display: none !important;
  }

  #nav .links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(9, 10, 13, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-30px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    margin: 0;
  }

  #header.nav-open #nav .links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  #nav .links li {
    width: 100%;
    text-align: center;
  }

  #nav .links a {
    font-size: 1.35rem;
    letter-spacing: 3px;
    padding: 0.8rem 2rem;
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
  }

  #nav .links a::after {
    display: none;
  }

  #nav .links a:hover,
  #nav .links .active a {
    color: var(--accent-color);
  }


  /* Intro / Hero Section */
  #intro {
    padding: 8rem 1.5rem 3rem;
    align-items: center;
    text-align: center;
  }

  #intro::before {
    background-attachment: scroll;
    background-position: center center;
  }

  .hero-title {
    display: block;
    width: 100%;
    margin: 0 auto 1.25rem;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  }

  .hero-title span {
    display: block;
    text-align: center;
    width: 100%;
  }

  .hero-title span:first-child {
    font-size: 3.3rem;
    font-weight: 500;
    letter-spacing: normal;
  }

  .hero-title span:last-child {
    font-size: 2.38rem;
    font-weight: 500;
    letter-spacing: normal;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
  }

  /* Container Principal */
  #main {
    padding: 3rem 1.5rem;
    margin-top: -20px;
    margin-bottom: 2.5rem;
    width: 92%;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .section-divider {
    margin: 3.5rem 0;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 2rem;
  }

  /* Sobre mim */
  .content-wrapper {
    gap: 2rem;
  }

  .image-container img {
    max-height: 380px;
  }

  .text-container p {
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: left;
  }

  /* Serviços */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2.5rem 1.5rem;
  }

  /* Portfólio (Grid de 2 colunas moderno no Mobile) */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .portfolio-item {
    aspect-ratio: 1/1;
  }

  .portfolio-overlay {
    padding: 1.2rem;
  }

  .portfolio-info {
    transform: translateY(0);
  }

  .portfolio-item-title {
    font-size: 0.95rem;
  }

  .portfolio-category {
    font-size: 0.65rem;
  }

  /* Álbum Galeria Grid (book.html) */
  .book-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin: 2rem 0;
  }

  .gallery-photo-item {
    aspect-ratio: 1/1;
  }

  /* Contato */
  .contact-info h3 {
    font-size: 1.4rem;
  }

  .contact-info p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .contact-details li {
    font-size: 0.95rem;
  }

  /* WhatsApp Flutuante & Footer */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  #footer {
    padding: 3rem 1.5rem;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 14, 12, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-toolbar {
  position: absolute;
  top: -50px;
  right: 0;
  display: flex;
  gap: 15px;
  z-index: 1010;
}

.lightbox-control {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-control:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-img-container {
  max-width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  user-select: none;
  display: block;
}

/* Zoomed State */
.lightbox-content.zoomed .lightbox-img-container {
  overflow: auto;
  max-width: 90vw;
  max-height: 85vh;
  cursor: grab;
}

.lightbox-content.zoomed .lightbox-img-container:active {
  cursor: grabbing;
}

.lightbox-content.zoomed .lightbox-img {
  max-width: 200%;
  max-height: 200vh;
  cursor: zoom-out;
  transition: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

/* Responsive Lightbox */
@media (max-width: 992px) {
  .lightbox-prev {
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
  }
  .lightbox-next {
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
  }
  .lightbox-toolbar {
    top: 15px;
    right: 15px;
    gap: 10px;
  }
  .lightbox-control {
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
  }
}