* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  display: flex;
  background: #050505;
  color: white;
}

/* SIDEBAR */
#sidebar {
  width: 250px;
  height: 100vh;
  background: #000;
  position: fixed;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1a1a1a;
  z-index: 100;
}

.logo h2 {
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 60px;
  text-transform: uppercase;
}

#sidebar nav ul { list-style: none; }

#sidebar nav ul li a {
  color: #888;
  text-decoration: none;
  display: block;
  padding: 12px 0;
  transition: 0.3s;
  font-size: 0.9rem;
}

#sidebar nav ul li a:hover { color: #fff; padding-left: 5px; }

.social { margin-top: auto; display: flex; gap: 20px; }
.social a { color: #444; text-decoration: none; font-size: 0.8rem; }
.social a:hover { color: #fff; }

/* CONTEÚDO */
#content {
  margin-left: 250px;
  width: calc(100% - 250px);
}

.section {
  display: none;
  min-height: 100vh;
  position: relative;
}

.section.active { display: flex; flex-direction: column; }

/* ESTILO PARA PÁGINAS COM FUNDO */
.bg-image {
  background-size: cover;
  background-position: center;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#home { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1493397212122-2b85def8d0b0?q=80&w=1470'); }
#bio { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1471341971476-3446ee03bd7c?q=80&w=1632'); }
#contato { background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?q=80&w=1528'); }

.overlay-content h1 { font-size: 2.5rem; margin-bottom: 20px; }
.overlay-content p { margin-bottom: 30px; color: #ccc; }

/* GALERIA */
.section-title { padding: 60px 40px 20px; font-weight: 300; }
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  padding: 40px;
}

.foto-item {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(0.5);
  transition: 0.5s ease;
}

/* DESAFIO: Efeito de Zoom */
.foto-item:hover {
  filter: grayscale(0);
  transform: scale(1.05);
  z-index: 2;
}

.btn-container { text-align: center; padding-bottom: 50px; }

button {
  padding: 12px 35px;
  background: transparent;
  border: 1px solid #fff;
  color: white;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
}

button:hover { background: white; color: black; }

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center; align-items: center;
}

.modal-content { max-width: 80%; max-height: 80%; border: 2px solid #333; }
.close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; cursor: pointer; }

/* RESPONSIVO */
@media(max-width: 768px) {
  #sidebar { width: 100%; height: auto; position: relative; }
  #content { margin-left: 0; width: 100%; }
  body { flex-direction: column; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
}