/* Galeria de Imagens */
.gallery-section {
  padding: 96px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23000" opacity="0.02"/><circle cx="10" cy="60" r="0.5" fill="%23000" opacity="0.02"/><circle cx="90" cy="40" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.gallery-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.gallery-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 24px;
  position: relative;
}

.gallery-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2196F3, #FF6B35);
  border-radius: 2px;
}

.gallery-header p {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.filter-btn {
  padding: 8px 24px;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  color: #6c757d;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.3s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  border-color: #2196F3;
  color: #2196F3;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.filter-btn.active {
  background: #2196F3;
  border-color: #2196F3;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 2;
}

.gallery-item {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
  display: block;
}


.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  background: #ffffff;
}

.gallery-image-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.gallery-image-wrapper:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  text-align: center;
  color: #ffffff;
  padding: 24px;
}

.gallery-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.gallery-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  opacity: 0.95;
}

.gallery-view-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #2196F3;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-view-btn:hover {
  background: #2196F3;
  color: #ffffff;
  transform: scale(1.1);
}

/* Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  animation: fadeIn 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.2);
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1001;
}

.modal-prev,
.modal-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-image-container {
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px;
  position: relative;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-info {
  padding: 32px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.modal-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.modal-info p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #495057;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .gallery-section .container {
    padding: 0 16px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
  }
  
  .gallery-image-wrapper {
    height: 200px;
  }
  
  .gallery-filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 4px 16px;
    font-size: 0.75rem;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .modal-image-container {
    height: 60vh;
    padding: 20px;
  }
  
  .modal-info {
    padding: 24px;
  }
  
  .modal-info h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .gallery-section .container {
    padding: 0 12px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-header h2 {
    font-size: 2rem;
  }
  
  .gallery-header p {
    font-size: 1rem;
  }
  
  .modal-image-container {
    padding: 16px;
  }
  
  .modal-info {
    padding: 20px;
  }
}
