* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #111111;
  padding: 50px 20px;
}

/* Header & Menu */
header {
  text-align: center;
  margin-bottom: 50px;
}

.logo a {
  font-size: 2rem;
  font-weight: 500;
  text-decoration: none;
  color: #111111;
  letter-spacing: 3px;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 20px;
}

nav a {
  text-decoration: none;
  color: #888888;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: #000000;
}

/* Galeria em tela cheia (3 colunas grandes) */
.gallery {
  column-count: 3;
  column-gap: 20px;
  width: 100%;
  padding: 0 10px;
}

.gallery-item {
  position: relative;
  margin-bottom: 20px;
  break-inside: avoid;
  overflow: hidden;
  cursor: pointer;
  background-color: #f8f8f8;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* Texto sobreposto no mouseover */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay .title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Modal em tamanho gigante */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  max-width: 95vw;
  max-height: 88vh;
  object-fit: contain;
}

#caption {
  margin-top: 15px;
  color: #222222;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #111111;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
}

/* Estilos de páginas de texto (About / Contact) */
.page-container {
  max-width: 700px;
  margin: 40px auto;
  line-height: 1.8;
  font-size: 1rem;
  color: #333333;
}

.page-container h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.page-container a {
  color: #111111;
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 1024px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  body {
    padding: 30px 10px;
  }
  .gallery {
    column-count: 1;
  }
}

/* E-mail debaixo do Nome no Cabeçalho */
.header-email {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.header-email a {
  color: #666666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-email a:hover {
  color: #000000;
}

/* Layout da página About (Foto + Texto) */
.about-wrapper {
  max-width: 900px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

.about-content h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.about-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #222222;
}

.education-list {
  list-style: disc;
  padding-left: 20px;
  color: #444444;
}

.education-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Links das Redes Sociais na Página About */
.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.social-links a {
  display: inline-block;
  color: #111111;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* Adaptabilidade para celular na página About */
@media (max-width: 768px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .about-image {
    max-width: 250px;
    margin: 0 auto;
  }
}