
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "Inter", sans-serif;
  background: #0f1115;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 16px;
  color: #eaeaea;
}

.heading {
  font-size: 2.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 35px;
  letter-spacing: 1px;
  color: #f5f5f5;
  position: relative;
  transition: letter-spacing 0.3s ease;
}

.heading:hover {
  letter-spacing: 2px;
}

.heading::after {
  content: "";
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c63ff, #8fd3f4);
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
  animation: underlineGrow 1.1s ease forwards;
}

@keyframes underlineGrow {
  to {
    width: 90px;
  }
}

/* ////////////// Filter Button ////////////// */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-buttons button {
  padding: 10px 22px;
  border-radius: 25px;
  border: none;
  background: #1c1f26;
  color: #cfcfcf;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-buttons button:hover {
  background: #6c63ff;
  color: #fff;
  transform: translateY(-2px);
}

/* /////////////   gallery  ////////////// */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1250px;
}

/* ////////////////////   image card   ///////////////////// */
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  background: #161a20;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #161a20;
  outline: 1px solid rgba(255, 255, 255, 0.06);
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    outline 0.35s ease;
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    120deg,
    rgba(108, 99, 255, 0.5),
    rgba(143, 211, 244, 0.5)
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  outline: 1px solid rgba(108, 99, 255, 0.6);
}

.gallery-item:hover::before {
  opacity: 0.08;
}

.gallery-item img {
  position: relative;
  z-index: 1;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: contrast(1.05) saturate(1.05);
}

/* ////////////////////////////      lightbox       /////////////////////////////// */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.92);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 85%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.close-btn,
.prev-btn,
.next-btn {
  position: absolute;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 50%;
  transition: background 0.25s, transform 0.25s;
}

.close-btn:hover,
.prev-btn:hover,
.next-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
}

.close-btn {
  top: 24px;
  right: 24px;
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}



/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .gallery-container {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .filter-buttons button {
    padding: 9px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 500px) {
  .heading {
    font-size: 2rem;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-buttons button {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .lightbox-img {
    max-width: 90%;
    max-height: 70%;
  }

  .close-btn, .prev-btn, .next-btn {
    font-size: 1.0rem;
    padding: 8px;
  }
}

@media (max-width: 360px) {
  .heading {
    font-size: 1.2rem;
  }


  .filter-buttons button {
    padding: 7px 14px;
    font-size: 0.65rem;
  }

 .prev-btn, .next-btn {
    font-size: 0.65rem;
    padding: 8px;
    opacity: 0.8;

  }
}
