/* Gallery Section Styles */
.gallery-section {
  padding: 6rem 0;
  background-color: var(--light);
}

/* Gallery Filter */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-filter .filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.gallery-filter .filter-btn:hover,
.gallery-filter .filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  color: var(--white);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.gallery-info p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Animation Delays */
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.4s;
}

.gallery-item:nth-child(4) {
  animation-delay: 0.6s;
}

.gallery-item:nth-child(5) {
  animation-delay: 0.8s;
}

.gallery-item:nth-child(6) {
  animation-delay: 1s;
}

.gallery-item:nth-child(7) {
  animation-delay: 1.2s;
}

.gallery-item:nth-child(8) {
  animation-delay: 1.4s;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .gallery-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .gallery-filter .filter-btn {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-info h3 {
    font-size: 1.25rem;
  }
  
  .gallery-info p {
    font-size: 0.9rem;
  }
}

/* Fix for scroll animations */
[data-scroll] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.gallery-item {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Mobile Optimization */
@media (max-width: 767px) {
  .gallery-item {
    transition: none !important;
    animation: none !important;
  }
  
  .gallery-item:hover {
    transform: none !important;
  }
  
  .gallery-overlay {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  }
  
  .gallery-info {
    transform: none !important;
  }
} 