/* Design tokens */
:root {
  --brand: #0056b3;        /* Primary Blue */
  --brand-2: #004494;      /* Deeper Primary Blue */
  --accent-green: #28a745; /* Growth Green */
  --accent-yellow: #ffcc00;/* Sun Yellow */
  --accent-orange: #f38b00;
  --accent-pink: #d63384;  /* Playful Pink */
  --mint: #e6f4ea;
  --peach: #fff5cc;
  --sky: #e6f0fa;
  --cream: #ffffff;        /* Base White */
  
  /* Playful, solid drop shadows */
  --shadow-playful: 6px 6px 0px rgba(0, 86, 179, 1);
  --shadow-playful-hover: 10px 10px 0px rgba(0, 86, 179, 1);
  --shadow-playful-yellow: 6px 6px 0px rgba(255, 204, 0, 1);
  --shadow-playful-green: 6px 6px 0px rgba(40, 167, 69, 1);
  
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;
}

/* Playful heading type for an academy vibe */
h1, h2, h3, h4, .font-display {
  font-family: 'Fredoka One', 'Quicksand', system-ui, sans-serif;
  letter-spacing: 0.5px;
}

body {
  font-family: 'Poppins', 'Montserrat', system-ui, sans-serif;
  background-color: #fcfdfd; /* Very soft blue-white */
  overflow-x: hidden;
  border-top: 8px solid var(--accent-green); /* Added green accent to all pages */
}

/* Floating Decorative Elements */
.float-anim {
  animation: float 6s ease-in-out infinite;
}
.float-anim-delay {
  animation: float 8s ease-in-out infinite 2s;
}
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Colorful Text Utility */
.text-multicolor span:nth-child(1n) { color: var(--brand); }
.text-multicolor span:nth-child(2n) { color: var(--accent-green); }
.text-multicolor span:nth-child(3n) { color: var(--accent-yellow); }
.text-multicolor span:nth-child(4n) { color: var(--accent-pink); }

/* Playful Buttons */
.btn-playful {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  border: 3px solid var(--brand);
  background-color: var(--accent-yellow);
  color: var(--brand);
  box-shadow: 4px 4px 0px var(--brand);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-playful:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0px var(--brand);
}
.btn-playful:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--brand);
}

.btn-playful-blue {
  background-color: var(--brand);
  color: #fff;
  border-color: var(--brand-2);
  box-shadow: 4px 4px 0px var(--accent-yellow);
}
.btn-playful-blue:hover {
  box-shadow: 8px 8px 0px var(--accent-yellow);
}

/* Playful Feature Cards */
.card-playful {
  border: 4px solid var(--brand);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-playful);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.card-playful:hover {
  transform: translateY(-10px) rotate(-2deg);
  box-shadow: var(--shadow-playful-hover);
}

/* Hero Section - Super Vibrant */
.hero-vibrant {
  background-color: var(--brand);
  background-image: radial-gradient(circle at 20% 30%, var(--brand-2) 0%, transparent 40%),
                    radial-gradient(circle at 80% 80%, rgba(40, 167, 69, 0.4) 0%, transparent 50%);
  position: relative;
  padding-bottom: 150px; /* Space for wave */
}

/* Wavy Divider at bottom of hero */
.wavy-divider {
  position: absolute;
  bottom: -2px; /* Fix subpixel gap */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wavy-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 40px; /* Reduced from 120px to make the wave much smaller/gentler */
}
.wavy-divider .shape-fill {
  fill: #fcfdfd;
}

/* Soft badges */
.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem 1.2rem;
  border-radius:999px;
  font-family: 'Fredoka One', sans-serif;
  font-size:1rem;
  background: var(--accent-green);
  color: #fff;
  border: 3px solid var(--accent-green);
  box-shadow: 3px 3px 0px var(--brand);
}

/* Image frame blobs */
.image-blob {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  border: 6px solid var(--accent-green);
  box-shadow: var(--shadow-playful-green);
  overflow: hidden;
  animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Polaroid Style */
.polaroid {
  background: #fff;
  padding: 1rem 1rem 3rem 1rem;
  border: 3px solid var(--brand);
  box-shadow: var(--shadow-playful);
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.polaroid:hover {
  transform: translateY(-5px) rotate(2deg) scale(1.02);
  z-index: 10;
}
.polaroid img {
  border: 2px solid var(--brand-2);
  border-radius: 4px;
}

/* Chalkboard */
.chalkboard {
  background-color: #2c3e50;
  background-image: 
    radial-gradient(#34495e 15%, transparent 16%),
    radial-gradient(#34495e 15%, transparent 16%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  color: #fff;
  border-radius: var(--radius-xl);
  border: 16px solid #8B4513; /* thick wood frame */
  box-shadow: 10px 10px 0px rgba(0,0,0,0.2), inset 0 0 30px rgba(0,0,0,0.8);
  position: relative;
  transform: rotate(-1deg);
}

.chalk-text {
  font-family: 'Quicksand', sans-serif;
  color: #f8f9fa;
  text-shadow: 2px 2px 0px rgba(255,255,255,0.3);
}

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #fcfdfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--brand);
  box-shadow: 6px 6px 0px var(--accent-yellow);
  animation: bounceLogo 1.5s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}
@keyframes bounceLogo {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
.loader-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: fadeDot 1.4s infinite ease-in-out both;
}
.loader-dot:nth-child(1) { background-color: var(--accent-yellow); animation-delay: -0.32s; }
.loader-dot:nth-child(2) { background-color: var(--accent-pink); animation-delay: -0.16s; }
.loader-dot:nth-child(3) { background-color: var(--accent-green); }

@keyframes fadeDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0; }
  40% { transform: scale(1); opacity: 1; }
}

/* Sticky Nav Bubble */
.nav-bubble {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 3px solid var(--brand);
  border-top: 6px solid var(--accent-green); /* Added green accent to all pages */
  border-radius: var(--radius-full);
  box-shadow: 4px 4px 0px var(--brand);
  margin-top: 1rem;
}

