/* ==========================================================================
   Interactive Gallery Showcase Section - Shwet Cera Innovations
   ========================================================================== */

.gallery-section {
  padding: 100px 0 110px;
  background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F9 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 180, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-section::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 46, 99, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Gallery Toolbar Filters */
.gallery-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 45px;
}

.gallery-filter-btn {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 11px 26px;
  border-radius: 50px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(11, 46, 99, 0.04);
}

.gallery-filter-btn:hover {
  border-color: #0B2E63;
  color: #0B2E63;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 46, 99, 0.1);
}

.gallery-filter-btn.active {
  background: #0B2E63;
  color: #ffffff;
  border-color: #0B2E63;
  box-shadow: 0 8px 22px rgba(11, 46, 99, 0.25);
}

.gallery-filter-btn.active i {
  color: #F4B400;
}

/* Gallery Cards Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #071B33;
  box-shadow: 0 10px 25px rgba(11, 46, 99, 0.08);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 270px;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 45px rgba(11, 46, 99, 0.22);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
}

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

/* Card Overlay Content */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 51, 0.1) 0%, rgba(7, 27, 51, 0.9) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: opacity 0.4s ease;
  z-index: 2;
}

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

.gallery-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(244, 180, 0, 0.9);
  color: #071B33;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.gallery-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.gallery-action-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
}

.gallery-action-hint i {
  color: #F4B400;
  font-size: 1rem;
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 51, 0.94);
  backdrop-filter: blur(15px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 30px;
}

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

.gallery-lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.gallery-lightbox-caption {
  margin-top: 18px;
  text-align: center;
  color: #ffffff;
}

.gallery-lightbox-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-lightbox-meta {
  font-size: 0.88rem;
  color: #F4B400;
  font-weight: 500;
}

/* Lightbox Controls */
.gallery-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-lightbox-close:hover {
  background: #F4B400;
  color: #071B33;
  transform: rotate(90deg);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.gallery-lightbox-nav:hover {
  background: #F4B400;
  color: #071B33;
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-prev {
  left: -70px;
}

.gallery-lightbox-next {
  right: -70px;
}

@media (max-width: 992px) {
  .gallery-lightbox-prev {
    left: 10px;
  }
  .gallery-lightbox-next {
    right: 10px;
  }
  .gallery-lightbox-close {
    top: -50px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 70px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 240px;
  }
}
