/* ══════════════════════════════════════ */
/* ── GALLERY PAGE STYLES ── */
/* ══════════════════════════════════════ */
.gallery-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%),
              url('https://images.pexels.com/photos/1216589/pexels-photo-1216589.jpeg?auto=compress&cs=tinysrgb&w=1920&h=600&fit=crop') center/cover;
  padding: 100px 0 80px;
  text-align: center;
  color: white;
  position: relative;
  margin-top: 30px;
}
.gallery-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-btn), var(--secondary), var(--accent));
}
.gallery-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; margin-bottom: 16px; }
.gallery-hero p { color: rgba(255, 255, 255, 0.75); font-size: 18px; max-width: 600px; margin: 0 auto; }
/* Filter Tabs */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 40px 0 20px;
}
.filter-btn {
  padding: 10px 28px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.filter-btn:hover { border-color: var(--blue-btn); color: var(--blue-btn); }
.filter-btn.active {
  background: var(--blue-btn);
  color: #515458;
  border-color: var(--blue-btn);
  box-shadow: 0 4px 15px rgba(64, 146, 205, 0.4);
}
/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 30px 0 80px;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--light);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out both;
}
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.3s; }
.gallery-item:nth-child(5) { animation-delay: 0.4s; }
.gallery-item:nth-child(6) { animation-delay: 0.5s; }
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(64, 146, 205, 0.3);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: white; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.gallery-overlay p { color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.gallery-overlay .gallery-tag {
  display: inline-block;
  background: var(--blue-btn);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.4s ease-out;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.lightbox-close:hover { background: var(--blue-btn); border-color: var(--blue-btn); }
.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
}
.lightbox-caption h3 { font-size: 20px; font-weight: 700; }
.lightbox-caption p { color: rgba(255, 255, 255, 0.6); font-size: 14px; margin-top: 4px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.lightbox-nav:hover { background: var(--blue-btn); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
/* Responsive */
@media (max-width: 900px) {
  .slide-inner { grid-template-columns: 1fr; gap: 50px; padding: 80px 0; text-align: center; }
  .logo-card-wrap { order: -1; }
  .why-grid { grid-template-columns: 1fr; gap: 50px; }
  .slide-stats { gap: 30px; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 600px) {
  .slide-stats { flex-direction: column; gap: 20px; align-items: center; }
  .slide-btns { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cta-contact { flex-direction: column; gap: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .slider-arrow { width: 50px; height: 50px; font-size: 20px; }
  .arrow-prev { left: 16px; }
  .arrow-next { right: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
  .top-bar .contact-links { gap: 12px; }
}
