html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 50px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f8f9fa;
  color: #2d2d2d;
  line-height: 1.6;
}

/* EFEITO DE DESFOQUE NO CONTEÚDO */
#conteudo-site {
  transition: filter 0.4s ease, transform 0.4s ease;
}

#conteudo-site.desfocado {
  filter: blur(10px) grayscale(20%);
  transform: scale(0.98);
  pointer-events: none;
}

.limite-largura {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

/* Header */
header.header-container {
  background-color: #1a1a1a;
  color: white;
  padding-top: 60px;
  padding-bottom: 30px;
  border-bottom: 6px solid #328000;
}

.header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
}

.header-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.subtitulo {
  font-size: 1.2rem;
  color: #328000;
  font-weight: 600;
}

.foto-perfil {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #328000;
  object-fit: cover;
}

.menu-nav { margin-top: 40px; }

.menu-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.menu-nav ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: 0.3s;
}

.menu-nav ul li a:hover { color: #328000; }

/* Seções */
section { padding: 50px 0; }

h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-transform: uppercase;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: #328000;
  margin-top: 8px;
}

/* Galeria */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.projeto-card {
  position: relative;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in; /* Lupa de aumento */
  background-color: #ddd;
}

.projeto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.projeto-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(50, 128, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s;
}

.projeto-overlay span {
  color: white;
  font-weight: bold;
  border: 2px solid white;
  padding: 8px 16px;
  border-radius: 5px;
}

.projeto-card:hover img { transform: scale(1.1); }
.projeto-card:hover .projeto-overlay { opacity: 1; }

/* LIGHTBOX (IMAGEM AMPLIADA COM RESPIRO) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  cursor: zoom-out; /* Lupa de diminuir */
  padding: 50px; /* GARANTE O RESPIRO LATERAL */
}

.modal-conteudo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0,0,0,0.6);
  object-fit: contain;
  animation: zoom 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes zoom {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.fechar {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
}

/* Contato */
.botoes-contato {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-contato {
  padding: 12px 28px;
  border: 2px solid #328000;
  color: #328000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-contato:hover { background: #328000; color: white; }

/* Responsividade */
@media (max-width: 768px) {
  .header-content { flex-direction: column; text-align: center; }
  .menu-nav ul { justify-content: center; }
  .conteudo-principal { text-align: center; }
  h2::after { margin: 8px auto; }
  .botoes-contato { justify-content: center; }
}

.fade-in { animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

footer { background: #1a1a1a; color: #aaa; padding: 40px; text-align: center; }