/* Animated Gradient Background */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #42e695, #fdbb2d);
  background-size: 800% 800%;
  animation: gradientShift 18s ease infinite;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Background Animation Keyframes */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Title & Subtitle */
.page-title {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 20px;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #f1f1f1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Cards Layout */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}

/* Card Style */
.card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.3s ease, background 0.3s ease, opacity 0.5s ease;
  opacity: 0;
  transform: scale(0.9);
}

/* Card Hover */
.card:hover {
  background: linear-gradient(135deg, #f9d423, #ff4e50);
  color: white;
  box-shadow: 0px 12px 25px rgba(0,0,0,0.15);
  transform: translateY(-5px) scale(1.05);
}

/* Fade-in Animation Class */
.card.show {
  opacity: 1;
  transform: scale(1);
}
