/* =====================================================
  EverClean Solutions Gallery Styles
===================================================== */

/* Gallery Section */
.gallery {
  padding: 120px 0;
  background: #ffffff;
}
.gallery .section-title {
  text-align: center;
  margin-bottom: 50px;
}

/* Filter Buttons */
.gallery-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}
.filter-btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 30px;
  border-radius: 50px;
  background: #EAF7FF;
  color: #0077B6;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: 0.35s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: #0077B6;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 119, 182, 0.25);
}

/* Gallery Grid */
.gallery-grid {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Gallery Cards */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  height: 360px;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: 0.4s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.12);
}
.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 119, 182, 0.2);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(0, 119, 182, 0.15), rgba(0, 119, 182, 0.85));
  opacity: 0;
  transition: 0.4s ease;
}
.gallery-overlay h3 {
  color: white;
  font-size: 26px;
  transform: translateY(30px);
  transition: 0.4s ease;
}
.gallery-overlay::after {
  content: "Click To View";
  color: white;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.8;
  transform: translateY(30px);
  transition: 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay::after {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 30px;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 25px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.35s ease;
}
.close-lightbox {
  position: absolute;
  right: 40px;
  top: 25px;
  font-size: 60px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.close-lightbox:hover {
  transform: rotate(90deg);
  color: #00B4D8;
}

/* Animation */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Tablet */
@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { height: 320px; }
}

/* Mobile */
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 280px; }
  .gallery-filter { gap: 10px; }
  .filter-btn { padding: 12px 20px; font-size: 14px; }
  .close-lightbox { right: 20px; font-size: 45px; }
}
