/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(120deg, #ff9a9e, #fad0c4, #fad0c4, #a18cd1, #fbc2eb, #a6c0fe);
  background-size: 400% 400%;
  animation: rainbowBackground 20s ease infinite;
}

@keyframes rainbowBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sidebar Navigation */
nav {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 220px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(10px);
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}

nav a:hover {
  color: #ffeb3b;
  padding-left: 8px;
}

/* Main content */
main {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

header h1 {
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 1px 1px 3px #000;
  margin-bottom: 30px;
}

/* Cards Grid */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

/* Card Style */
.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  flex: 1 1 300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card h2 {
  color: #6a1b9a;
  margin-bottom: 15px;
}

.card ul {
  list-style: disc;
  margin-left: 20px;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 20px;
  color: white;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px #000;
}

/* Sparkles */
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fff, #ff0, transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 1s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkle {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
