/* Estilos para a galeria de projetos */

.gallery-container {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-title {
  font-size: 2.5rem;
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 15px;
  position: relative;
}

.gallery-description {
  text-align: center;
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto 40px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.gallery-filter-btn {
  padding: 8px 20px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--text-medium);
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
  background-color: #e0e0e0;
}

.gallery-filter-btn.active {
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.gallery-item-category {
  font-size: 0.9rem;
  opacity: 0.8;
}

.gallery-item-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--accent-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal para visualização ampliada */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: block;
  opacity: 1;
}

.gallery-modal-content {
  position: relative;
  margin: 5% auto;
  width: 80%;
  max-width: 1000px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-modal-close:hover {
  color: var(--secondary-color);
}

.gallery-modal-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
}

.gallery-modal-caption {
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 1.2rem;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.gallery-modal-prev,
.gallery-modal-next {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .gallery-modal-content {
    width: 95%;
  }
  
  .gallery-filter-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

