@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;800&family=Quicksand:wght@400;600;700&display=swap');

:root {
  --pink: #ffb6c1;
  --lavender: #e6c8ff;
  --mint: #b5ead7;
  --peach: #ffdac1;
  --sky: #c1e3ff;
  --yellow: #fff5ba;
  --white: #fffdf7;
  --text: #5a4a6a;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--white);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Floating background blobs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

body::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  top: -50px;
  right: -50px;
  animation-delay: 0s;
}

body::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--lavender), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
.header {
  text-align: center;
  padding: 60px 20px 40px;
  animation: fadeInUp 0.8s ease-out;
}

.header h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--pink), var(--lavender), var(--sky));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

.header p {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 10px;
  opacity: 0.8;
}

.header .emoji {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
  font-size: 2rem;
}

/* Navigation cards */
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.card {
  background: white;
  border-radius: 24px;
  padding: 40px 35px;
  width: 280px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 24px 24px 0 0;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card:hover .card-icon {
  animation: wiggle 0.5s ease-in-out;
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: block;
}

.card h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.5;
}

.card-quiz::before {
  background: linear-gradient(90deg, var(--pink), var(--lavender));
}

.card-game::before {
  background: linear-gradient(90deg, var(--mint), var(--sky));
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.5;
  font-size: 0.85rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Page wrapper for sub-pages */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.page h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page .icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

.page .coming-soon {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Countdown */
.countdown-container {
  text-align: center;
  padding: 20px 20px 40px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.countdown-item {
  background: white;
  border-radius: 20px;
  padding: 25px 20px 18px;
  min-width: 100px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
}

.countdown-number {
  font-family: 'Baloo 2', cursive;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--lavender), var(--sky));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  line-height: 1;
  display: block;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-top: 5px;
  display: block;
}

.countdown-separator {
  font-family: 'Baloo 2', cursive;
  font-size: 2.5rem;
  color: var(--pink);
  opacity: 0.5;
  padding-bottom: 20px;
}

.countdown-date {
  margin-top: 25px;
  font-size: 1.1rem;
  opacity: 0.6;
  letter-spacing: 1px;
}

/* Floating hearts */
.hearts-float {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -20px;
  animation: heartFloat linear forwards;
  opacity: 0.6;
}

@keyframes heartFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .header h1 {
    font-size: 2rem;
  }

  .cards {
    gap: 20px;
  }

  .card {
    width: 100%;
    max-width: 320px;
  }
}
