/* Custom CSS for Animations, Gallery, and Lightbox */

/* Fade-in Animation */
.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay classes for animations */
.delay-100 {
  animation-delay: 100ms;
}
.delay-200 {
  animation-delay: 200ms;
}
.delay-300 {
  animation-delay: 300ms;
}
.delay-400 {
  animation-delay: 400ms;
}
.delay-500 {
  animation-delay: 500ms;
}

/* Filter Buttons Styling */
.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.filter-btn.active {
  color: #9ffff2; /* tertiary color matching the site */
  border-bottom: 2px solid #9ffff2;
}

/* Project Card Styling */
.project-card {
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  overflow: hidden;
  background-color: #131313;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.project-card:hover {
  transform: translateY(-4px);
}
.project-card img {
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
#lightbox-modal.show {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-img {
  max-width: 90%;
  max-height: 75vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

#lightbox-modal {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(8px);
}

#lightbox-modal.show {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

#lightbox-prev {
  left: 25px;
}

#lightbox-next {
  right: 25px;
}

#lightbox-img {
  display: block;
  margin: auto;
  max-width: 90vw;
  max-height: 85vh;
}
