/* Gallery Page - Theme: Blue/Green Gradient */
:root {
  --gallery-primary: #2563eb;
  --gallery-secondary: #16a34a;
  --gallery-accent: #06b6d4;
  --gallery-bg: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fffbeb 100%);
}

.hero-gallery {
  padding: 80px 0 60px;
  background: var(--gallery-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-gallery h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gallery-primary), var(--gallery-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.hero-gallery p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

.navbar-gallery {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
}

.navbar-gallery .nav-menu a {
  color: #334155;
  font-weight: 600;
}

.navbar-gallery .nav-menu a.active,
.navbar-gallery .nav-menu a:hover {
  color: var(--gallery-primary);
}

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

.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gallery-primary);
  color: #fff;
  border-color: var(--gallery-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.gallery-overlay .view-btn {
  padding: 6px 16px;
  background: #fff;
  color: var(--gallery-primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gallery-overlay .view-btn:hover {
  background: var(--gallery-accent);
  color: #fff;
  transform: translateY(-2px);
}

.bg-light {
  background: #f8fafc;
}

.gallery-cta {
  background: linear-gradient(135deg, var(--gallery-primary), var(--gallery-secondary));
  border-radius: 16px;
  padding: 48px;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
}

.gallery-cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.gallery-cta p {
  color: #bfdbfe;
  font-size: 1rem;
  margin-bottom: 24px;
}

.gallery-cta .btn {
  background: #fff;
  color: var(--gallery-primary);
  border-radius: 999px;
  padding: 12px 32px;
  font-weight: 700;
}

.gallery-cta .btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.footer-gallery {
  background: #0e2533;
  color: #d7e5ee;
  padding: 48px 0 20px;
}

@media (max-width: 768px) {
  .hero-gallery {
    padding: 60px 0 40px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-cta {
    padding: 32px;
  }
  
  .gallery-filters {
    gap: 6px;
  }
  
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}
