/* Fade-in and slide-up */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

/* Staggered animation for event cards */
.upcoming-events .event-card,
.past-events .event-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.upcoming-events .event-card:nth-child(1) {
  animation-delay: 0.2s;
}
.upcoming-events .event-card:nth-child(2) {
  animation-delay: 0.4s;
}
.upcoming-events .event-card:nth-child(3) {
  animation-delay: 0.6s;
}

.past-events .event-card:nth-child(1) {
  animation-delay: 0.2s;
}

/* Staggered animation for gallery images */
.gallery-grid img {
  opacity: 0;
  transform: scale(0.95);
  animation: fadeScale 0.8s ease forwards;
}

.gallery-grid img:nth-child(1) {
  animation-delay: 0.2s;
}
.gallery-grid img:nth-child(2) {
  animation-delay: 0.4s;
}
.gallery-grid img:nth-child(3) {
  animation-delay: 0.6s;
}
.gallery-grid img:nth-child(4) {
  animation-delay: 0.8s;
}
.gallery-grid img:nth-child(5) {
  animation-delay: 1s;
}
.gallery-grid img:nth-child(6) {
  animation-delay: 1.2s;
}

/* Buttons */
button,
.btn,
.join-btn {
  transition: all 0.3s ease;
}

/* Links */
nav a {
  transition: color 0.3s ease;
}

/* Page Loader */
#page-loader {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #002244; /* brand color background */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

/* Spin animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Hidden state */
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in and slide-left */
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeLeft 1s ease forwards;
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade-in and scale */
.fade-scale {
  opacity: 0;
  transform: scale(0.95);
  animation: fadeScale 1s ease forwards;
}

@keyframes fadeScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
