/* -------------------------------------------------------------
 * ShahaneTech Gallery Page Stylesheet (gallery.css)
 * ------------------------------------------------------------- */

.gallery-section {
  padding: 60px 25px 80px;
  background-color: var(--bg-light);
}

.gallery-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Gallery Filter Bar */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.gallery-filter-btn {
  background-color: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
  transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.gallery-card {
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-color);
}

.gallery-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #f1f5f9;
}

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

.gallery-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(11, 21, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-zoom-icon {
  width: 52px;
  height: 52px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-info {
  padding: 20px 22px;
  text-align: center;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
}

.gallery-info h3 {
  font-size: 1.15rem;
  color: var(--dark-navy);
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

/* -------------------------------------------------------------
 * Lightbox Popup Modal
 * ------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(11, 21, 40, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
  background-color: #0b1528;
  margin-bottom: 15px;
}

.lightbox-content h3 {
  font-size: 1.35rem;
  color: var(--dark-navy);
  margin: 0;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary-color);
}
