/* ========================================
   THE MILESTONE KIDS ACADEMY - Styles
   Playful, Hi-Tech, Toy-Themed
   ======================================== */

/* CSS Variables */
:root {
  --primary: #29B6F6;
  --primary-dark: #0288D1;
  --secondary: #FDD835;
  --secondary-dark: #F9A825;
  --accent-yellow: #FDD835;
  --accent-purple: #7E57C2;
  --accent-pink: #F06292;
  --accent-green: #66BB6A;
  --accent-blue: #29B6F6;
  --accent-orange: #FFA726;
  --accent-cyan: #26C6DA;
  --accent-red: #E53935;
  --navy: #1A2E44;
  --bg: #FAFCFF;
  --bg-card: #FFFFFF;
  --text: #1A2E44;
  --text-light: #546E7A;
  --text-lighter: #90A4AE;
  --shadow-sm: 0 2px 8px rgba(26,46,68,0.06);
  --shadow-md: 0 8px 30px rgba(26,46,68,0.08);
  --shadow-lg: 0 20px 60px rgba(26,46,68,0.1);
  --shadow-toy: 0 6px 0 rgba(26,46,68,0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   ANIMATED TOY BACKGROUND CANVAS
   ======================================== */
#toyBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(255, 251, 245, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer .logo-img {
  height: 64px;
  filter: brightness(1.2) contrast(1.1);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  color: var(--text-light);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 0 var(--primary-dark), var(--shadow-sm);
  transform: translateY(-2px);
}

.nav-cta:hover {
  transform: translateY(0);
  box-shadow: 0 2px 0 var(--primary-dark);
  background: var(--primary-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   SECTION COMMON
   ======================================== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 20px;
  background: linear-gradient(135deg, rgba(41,182,246,0.1), rgba(253,216,53,0.1));
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   TOY-STYLE 3D COMPONENTS
   ======================================== */
.toy-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-md), 0 4px 0 rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 8px 0 rgba(0,0,0,0.06);
}

.toy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.btn-primary {
  background: var(--secondary);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 6px 0 var(--secondary-dark), 0 8px 20px rgba(253,216,53,0.3);
}

.btn-primary:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--secondary-dark), 0 4px 10px rgba(253,216,53,0.3);
}

.btn-primary:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0 var(--secondary-dark);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
}

.btn-secondary:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.06);
  background: #f8f8f8;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 6px 0 rgba(0,0,0,0.1);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #E1F5FE, #B3E5FC);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 24px;
  animation: bounceIn 0.6s ease;
}

.badge-star {
  color: var(--secondary);
  animation: spinStar 3s linear infinite;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  color: var(--text-light);
  font-size: 0.5em;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.title-main {
  font-size: 1em !important;
  text-transform: none !important;
  letter-spacing: -1px !important;
}

.letter-m { color: #FDD835; text-shadow: 3px 3px 0 rgba(253,216,53,0.25); }
.letter-i { color: #29B6F6; text-shadow: 3px 3px 0 rgba(41,182,246,0.25); }
.letter-l { color: #F06292; text-shadow: 3px 3px 0 rgba(240,98,146,0.25); }
.letter-e { color: #26C6DA; text-shadow: 3px 3px 0 rgba(38,198,218,0.25); }
.letter-s { color: #FDD835; text-shadow: 3px 3px 0 rgba(253,216,53,0.25); }
.letter-t { color: #29B6F6; text-shadow: 3px 3px 0 rgba(41,182,246,0.25); }
.letter-o { color: #F06292; text-shadow: 3px 3px 0 rgba(240,98,146,0.25); }
.letter-n { color: #26C6DA; text-shadow: 3px 3px 0 rgba(38,198,218,0.25); }
.letter-e2 { color: #FDD835; text-shadow: 3px 3px 0 rgba(253,216,53,0.25); }

.title-main span {
  display: inline-block;
  animation: letterBounce 0.5s ease backwards;
  cursor: default;
  transition: transform 0.2s ease;
}

.title-main span:hover {
  transform: scale(1.2) rotate(-5deg);
}

.letter-m { animation-delay: 0.1s; }
.letter-i { animation-delay: 0.15s; }
.letter-l { animation-delay: 0.2s; }
.letter-e { animation-delay: 0.25s; }
.letter-s { animation-delay: 0.3s; }
.letter-t { animation-delay: 0.35s; }
.letter-o { animation-delay: 0.4s; }
.letter-n { animation-delay: 0.45s; }
.letter-e2 { animation-delay: 0.5s; }

@keyframes letterBounce {
  0% { opacity: 0; transform: translateY(-40px) rotate(-10deg); }
  60% { transform: translateY(8px) rotate(3deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 4px;
}

/* Hero Visual - 3D Toy Scene */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.toy-scene {
  width: 420px;
  height: 420px;
  position: relative;
  perspective: 800px;
}

.toy-block {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 8px 0 rgba(0,0,0,0.15), var(--shadow-md);
  animation: toyFloat 4s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.toy-block:hover {
  transform: scale(1.15) rotate(10deg) !important;
}

.toy-block-1 {
  background: linear-gradient(135deg, #29B6F6, #0288D1);
  top: 40px;
  left: 60px;
  animation-delay: 0s;
  transform: rotate(-10deg);
}

.toy-block-2 {
  background: linear-gradient(135deg, #FDD835, #F9A825);
  top: 140px;
  right: 40px;
  animation-delay: -1.3s;
  transform: rotate(8deg);
}

.toy-block-3 {
  background: linear-gradient(135deg, #F06292, #E91E63);
  bottom: 100px;
  left: 100px;
  animation-delay: -2.6s;
  transform: rotate(-5deg);
}

.toy-ball {
  position: absolute;
  border-radius: 50%;
}

.toy-ball-1 {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, #F06292, #E91E63);
  box-shadow: 0 6px 0 rgba(0,0,0,0.1), inset 0 -4px 8px rgba(0,0,0,0.1);
  top: 30px;
  right: 80px;
  animation: ballBounce 2s ease-in-out infinite;
  animation-delay: -0.7s;
}

.toy-ball-2 {
  width: 35px;
  height: 35px;
  background: radial-gradient(circle at 30% 30%, #26C6DA, #00ACC1);
  box-shadow: 0 4px 0 rgba(0,0,0,0.1), inset 0 -3px 6px rgba(0,0,0,0.1);
  bottom: 50px;
  right: 100px;
  animation: ballBounce 2.5s ease-in-out infinite;
  animation-delay: -2s;
}

.toy-ball-3 {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 30% 30%, #FDD835, #F9A825);
  box-shadow: 0 3px 0 rgba(0,0,0,0.1), inset 0 -2px 4px rgba(0,0,0,0.1);
  top: 180px;
  left: 20px;
  animation: ballBounce 1.8s ease-in-out infinite;
  animation-delay: -1s;
}

@keyframes ballBounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  40% { transform: translateY(-30px) scale(0.95, 1.05); }
  50% { transform: translateY(-32px) scale(1, 1); }
  60% { transform: translateY(-28px) scale(1.05, 0.95); }
  80% { transform: translateY(0) scale(1.08, 0.92); }
  85% { transform: translateY(0) scale(0.95, 1.05); }
  90% { transform: translateY(0) scale(1, 1); }
}

.toy-star {
  position: absolute;
  font-size: 40px;
  animation: spinStar 6s linear infinite;
}

.toy-star-1 {
  color: var(--secondary);
  top: 10px;
  left: 180px;
  filter: drop-shadow(0 4px 8px rgba(253,216,53,0.4));
}

.toy-star-2 {
  color: var(--secondary);
  bottom: 30px;
  left: 40px;
  font-size: 30px;
  animation-direction: reverse;
  filter: drop-shadow(0 4px 8px rgba(253,216,53,0.4));
}

@keyframes spinStar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Rocket */
.toy-rocket {
  position: absolute;
  bottom: 130px;
  right: 20px;
  animation: rocketFly 5s ease-in-out infinite;
}

.rocket-body {
  width: 40px;
  height: 80px;
  background: linear-gradient(180deg, #29B6F6 0%, #0288D1 50%, #E0E0E0 50%, #F5F5F5 100%);
  border-radius: 50% 50% 8px 8px;
  position: relative;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.rocket-window {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 40% 40%, #60A5FA, #3B82F6);
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid white;
}

.rocket-fin {
  position: absolute;
  bottom: 0;
  width: 15px;
  height: 25px;
  border-radius: 0 0 50% 50%;
}

.rocket-fin-l {
  left: -8px;
  background: var(--secondary);
  transform: skewX(10deg);
}

.rocket-fin-r {
  right: -8px;
  background: var(--secondary);
  transform: skewX(-10deg);
}

.rocket-flame {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 25px;
  background: linear-gradient(180deg, var(--accent-orange), var(--accent-yellow), transparent);
  border-radius: 0 0 50% 50%;
  animation: flicker 0.15s ease-in-out infinite alternate;
}

@keyframes flicker {
  0% { height: 20px; opacity: 0.8; }
  100% { height: 28px; opacity: 1; }
}

@keyframes rocketFly {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(-25px) rotate(-15deg); }
}

/* Planet */
.toy-planet {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 35% 35%, #F06292, #E91E63);
  border-radius: 50%;
  top: 80px;
  right: 10px;
  box-shadow: inset -8px -8px 16px rgba(0,0,0,0.2), 0 4px 12px rgba(240,98,146,0.3);
  animation: toyFloat 5s ease-in-out infinite;
  animation-delay: -1s;
}

.toy-ring {
  position: absolute;
  width: 90px;
  height: 20px;
  border: 3px solid rgba(240,98,146,0.5);
  border-radius: 50%;
  top: 97px;
  right: -5px;
  transform: rotateX(70deg) rotateZ(-10deg);
}

/* ========================================
   LADDER TOY
   ======================================== */
.toy-ladder {
  position: absolute;
  bottom: 20px;
  left: 10px;
  width: 60px;
  height: 140px;
  animation: toyFloat 6s ease-in-out infinite;
  animation-delay: -2s;
}

.ladder-side {
  position: absolute;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, #8D6E63, #6D4C41);
  border-radius: 4px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.ladder-left { left: 0; }
.ladder-right { right: 0; }

.ladder-rung {
  position: absolute;
  left: 8px;
  width: calc(100% - 16px);
  height: 6px;
  background: linear-gradient(90deg, #A1887F, #8D6E63);
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.15);
}

.ladder-rung:nth-child(3) { top: 10%; }
.ladder-rung:nth-child(4) { top: 30%; }
.ladder-rung:nth-child(5) { top: 50%; }
.ladder-rung:nth-child(6) { top: 70%; }
.ladder-rung:nth-child(7) { top: 90%; }

.ladder-climber {
  position: absolute;
  font-size: 24px;
  left: 50%;
  transform: translateX(-50%);
  animation: climbLadder 4s ease-in-out infinite;
}

@keyframes climbLadder {
  0%, 100% { top: 75%; }
  50% { top: 10%; }
}

/* ========================================
   SPINNING TOP
   ======================================== */
.spinning-top {
  position: absolute;
  bottom: 15px;
  right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: topSpin 3s linear infinite;
}

.top-handle {
  width: 6px;
  height: 16px;
  background: linear-gradient(180deg, #7E57C2, #5E35B1);
  border-radius: 3px 3px 0 0;
}

.top-body {
  width: 40px;
  height: 28px;
  background: linear-gradient(135deg, #7E57C2, #5E35B1);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  box-shadow: 0 4px 8px rgba(94,53,177,0.3);
  position: relative;
}

.top-body::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.top-body::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 6px;
  right: 6px;
  height: 4px;
  background: var(--accent-pink);
  border-radius: 2px;
}

.top-tip {
  width: 4px;
  height: 10px;
  background: linear-gradient(180deg, #5E35B1, #4527A0);
  border-radius: 0 0 2px 2px;
}

@keyframes topSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.8) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ========================================
   TOY TRAIN DIVIDER
   ======================================== */
.train-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
  z-index: 1;
  margin: -20px 0;
}

.train-track {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 20px;
}

.track-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #8D6E63;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.track-line::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 4px;
  background: #8D6E63;
}

.track-ties {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  display: flex;
  gap: 30px;
}

.track-ties span {
  width: 12px;
  height: 18px;
  background: #A1887F;
  border-radius: 2px;
  flex-shrink: 0;
}

.train {
  position: absolute;
  bottom: 28px;
  display: flex;
  gap: 4px;
  animation: trainMove 15s linear infinite;
}

.train-engine {
  position: relative;
  width: 90px;
  height: 50px;
}

.engine-chimney {
  position: absolute;
  left: 15px;
  top: -15px;
  width: 14px;
  height: 20px;
  background: linear-gradient(180deg, #424242, #616161);
  border-radius: 4px 4px 0 0;
}

.engine-chimney::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -3px;
  width: 20px;
  height: 6px;
  background: #424242;
  border-radius: 3px;
}

.engine-body {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 70px;
  height: 35px;
  background: linear-gradient(180deg, #E53935, #C62828);
  border-radius: 8px 20px 4px 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.engine-body::before {
  content: '';
  position: absolute;
  top: 8px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #FFD54F, #FFB300);
  border-radius: 50%;
  border: 2px solid #E53935;
}

.engine-cabin {
  position: absolute;
  bottom: 12px;
  right: 0;
  width: 30px;
  height: 42px;
  background: linear-gradient(180deg, #1565C0, #0D47A1);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.engine-cabin::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 5px;
  width: 20px;
  height: 14px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.engine-wheel {
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #333, #111);
  border-radius: 50%;
  border: 2px solid #666;
  animation: wheelSpin 0.5s linear infinite;
}

.engine-wheel::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 10px;
  font-weight: bold;
}

.engine-wheel-1 { left: 5px; }
.engine-wheel-2 { left: 28px; }
.engine-wheel-3 { right: 5px; }

@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.steam {
  position: absolute;
  left: 10px;
  font-size: 18px;
  color: rgba(200,200,200,0.6);
  animation: steamRise 2s ease-out infinite;
}

.steam-1 { top: -25px; animation-delay: 0s; }
.steam-2 { top: -30px; left: 20px; animation-delay: 0.6s; font-size: 14px; }
.steam-3 { top: -20px; left: 5px; animation-delay: 1.2s; font-size: 16px; }

@keyframes steamRise {
  0% { opacity: 0.7; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) translateX(10px) scale(1.5); }
}

.train-car {
  position: relative;
  width: 60px;
  height: 40px;
}

.car-body {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  height: 28px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.car-body-yellow { background: linear-gradient(180deg, #FDD835, #F9A825); }
.car-body-pink { background: linear-gradient(180deg, #F06292, #E91E63); }
.car-body-green { background: linear-gradient(180deg, #66BB6A, #43A047); }

.car-content {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  z-index: 1;
}

.car-wheel {
  position: absolute;
  bottom: 2px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #333, #111);
  border-radius: 50%;
  border: 2px solid #666;
  animation: wheelSpin 0.5s linear infinite;
}

.car-wheel-1 { left: 8px; }
.car-wheel-2 { right: 8px; }

/* Connector between cars */
.train-car::before {
  content: '';
  position: absolute;
  left: -6px;
  bottom: 22px;
  width: 10px;
  height: 4px;
  background: #666;
  border-radius: 2px;
}

@keyframes trainMove {
  0% { left: -350px; }
  100% { left: 110%; }
}

/* ========================================
   XYLOPHONE DIVIDER
   ======================================== */
.xylophone-divider {
  position: relative;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}

.xylophone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 500px;
  width: 90%;
}

.xylo-bar {
  width: var(--bar-width);
  height: 18px;
  background: var(--bar-color);
  border-radius: 9px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.3);
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: xyloWave 3s ease-in-out infinite;
  animation-delay: var(--bar-delay);
}

.xylo-bar::before,
.xylo-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

.xylo-bar::before { left: 8px; }
.xylo-bar::after { right: 8px; }

.xylo-bar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 0 rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.3), 0 0 20px rgba(0,0,0,0.1);
}

.xylo-bar.played {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.1), 0 0 30px color-mix(in srgb, var(--bar-color) 50%, transparent);
}

@keyframes xyloWave {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.02); }
}

.xylo-mallets {
  display: flex;
  gap: 80px;
  margin-top: -10px;
  pointer-events: none;
}

.mallet {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mallet-stick {
  width: 6px;
  height: 40px;
  background: linear-gradient(180deg, #8D6E63, #6D4C41);
  border-radius: 3px;
}

.mallet-head {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 40% 40%, #E53935, #B71C1C);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.mallet-left {
  transform: rotate(-25deg);
  animation: malletSwing 2s ease-in-out infinite;
}

.mallet-right {
  transform: rotate(25deg);
  animation: malletSwing 2s ease-in-out infinite reverse;
}

@keyframes malletSwing {
  0%, 100% { transform: rotate(-25deg); }
  50% { transform: rotate(25deg); }
}

/* ========================================
   ABACUS DIVIDER
   ======================================== */
.abacus-divider {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  z-index: 1;
  position: relative;
}

.abacus {
  width: 280px;
  position: relative;
  padding: 20px 16px;
}

.abacus-frame {
  position: absolute;
  inset: 0;
}

.abacus-top, .abacus-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, #8D6E63, #6D4C41);
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.abacus-top { top: 0; }
.abacus-bottom { bottom: 0; }

.abacus-left, .abacus-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(180deg, #8D6E63, #6D4C41);
  border-radius: 5px;
}

.abacus-left { left: 0; }
.abacus-right { right: 0; }

.abacus-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  position: relative;
}

.abacus-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 4px;
  background: #A1887F;
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 0;
}

.abacus-bead {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--bead-color) 80%, white), var(--bead-color));
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15), inset 0 -3px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: beadSlide 4s ease-in-out infinite;
}

.abacus-row:nth-child(2) .abacus-bead { animation-delay: 0s; }
.abacus-row:nth-child(3) .abacus-bead { animation-delay: -0.8s; }
.abacus-row:nth-child(4) .abacus-bead { animation-delay: -1.6s; }
.abacus-row:nth-child(5) .abacus-bead { animation-delay: -2.4s; }
.abacus-row:nth-child(6) .abacus-bead { animation-delay: -3.2s; }

.abacus-bead:hover {
  transform: scale(1.2);
}

@keyframes beadSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* ========================================
   PUZZLE PIECES DIVIDER
   ======================================== */
.puzzle-divider {
  padding: 30px 0;
  z-index: 1;
  position: relative;
  overflow: hidden;
}

.puzzle-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.puzzle-piece {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, rotate 0.3s ease;
  animation: puzzleFloat 5s ease-in-out infinite;
}

.puzzle-piece:hover {
  transform: scale(1.15) rotate(10deg) !important;
}

.puzzle-1 { background: #E53935; animation-delay: 0s; border-radius: 12px 30px 12px 12px; }
.puzzle-2 { background: #FF6F00; animation-delay: -0.6s; border-radius: 30px 12px 12px 12px; }
.puzzle-3 { background: #FDD835; animation-delay: -1.2s; border-radius: 12px 12px 30px 12px; }
.puzzle-4 { background: #43A047; animation-delay: -1.8s; border-radius: 12px 12px 12px 30px; }
.puzzle-5 { background: #29B6F6; animation-delay: -2.4s; border-radius: 30px 12px 30px 12px; }
.puzzle-6 { background: #7E57C2; animation-delay: -3s; border-radius: 12px 30px 12px 30px; }
.puzzle-7 { background: #F06292; animation-delay: -3.6s; border-radius: 30px 30px 12px 12px; }
.puzzle-8 { background: #26C6DA; animation-delay: -4.2s; border-radius: 12px 12px 30px 30px; }

.puzzle-piece::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: inherit;
  border-radius: 50%;
  filter: brightness(0.85);
}

.puzzle-1::after { top: -8px; left: 50%; transform: translateX(-50%); }
.puzzle-2::after { right: -8px; top: 50%; transform: translateY(-50%); }
.puzzle-3::after { bottom: -8px; left: 50%; transform: translateX(-50%); }
.puzzle-4::after { left: -8px; top: 50%; transform: translateY(-50%); }
.puzzle-5::after { top: -8px; right: 15px; }
.puzzle-6::after { bottom: -8px; right: 15px; }
.puzzle-7::after { left: -8px; bottom: 15px; }
.puzzle-8::after { right: -8px; top: 15px; }

@keyframes puzzleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  75% { transform: translateY(4px) rotate(-2deg); }
}

/* ========================================
   BUILDING BLOCKS DIVIDER
   ======================================== */
.blocks-divider {
  padding: 30px 0;
  z-index: 1;
  position: relative;
}

.blocks-scene {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  min-height: 200px;
}

.block-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}

.building-block {
  width: 52px;
  height: 52px;
  background: var(--block-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 4px 0 rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: blockWobble 4s ease-in-out infinite;
}

.building-block:hover {
  transform: scale(1.1) rotate(5deg);
}

.block-stack:nth-child(1) .building-block { animation-delay: 0s; }
.block-stack:nth-child(2) .building-block { animation-delay: -1s; }
.block-stack:nth-child(3) .building-block { animation-delay: -2s; }
.block-stack:nth-child(4) .building-block { animation-delay: -3s; }

/* Lego dots on blocks */
.building-block::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px 4px 0 0;
}

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

/* ========================================
   CRAYON DIVIDER
   ======================================== */
.crayon-divider {
  padding: 30px 0;
  z-index: 1;
  position: relative;
}

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

.crayon {
  width: 24px;
  height: var(--crayon-height);
  background: var(--crayon-color);
  border-radius: 4px 4px 0 0;
  position: relative;
  box-shadow: 2px 0 0 rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: crayonDance 3s ease-in-out infinite;
}

.crayon::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 2px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid var(--crayon-color);
  filter: brightness(0.9);
}

.crayon::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 20px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
}

.crayon:hover {
  transform: translateY(-10px) rotate(-5deg);
}

.crayon:nth-child(1) { animation-delay: 0s; }
.crayon:nth-child(2) { animation-delay: -0.3s; }
.crayon:nth-child(3) { animation-delay: -0.6s; }
.crayon:nth-child(4) { animation-delay: -0.9s; }
.crayon:nth-child(5) { animation-delay: -1.2s; }
.crayon:nth-child(6) { animation-delay: -1.5s; }
.crayon:nth-child(7) { animation-delay: -1.8s; }
.crayon:nth-child(8) { animation-delay: -2.1s; }

@keyframes crayonDance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

.crayon-scribble {
  width: 300px;
  height: 6px;
  margin: 20px auto 0;
  background: linear-gradient(90deg,
    #E53935, #FF6F00, #FDD835, #43A047, #29B6F6, #7E57C2, #F06292, #26C6DA
  );
  border-radius: 3px;
  opacity: 0.4;
  animation: scribbleGrow 3s ease-in-out infinite;
}

@keyframes scribbleGrow {
  0%, 100% { width: 200px; opacity: 0.3; }
  50% { width: 350px; opacity: 0.5; }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.about-card {
  padding: 36px 28px;
  text-align: center;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.card-icon {
  margin-bottom: 20px;
}

.icon-3d {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  transition: transform 0.3s ease;
}

.about-card:hover .icon-3d {
  transform: rotateY(15deg) rotateX(-10deg) scale(1.1);
}

.icon-book {
  background: linear-gradient(135deg, #E1F5FE, #B3E5FC);
  box-shadow: 0 6px 0 #81D4FA;
}

.icon-heart {
  background: linear-gradient(135deg, #FCE4EC, #F8BBD0);
  box-shadow: 0 6px 0 #F48FB1;
}

.icon-star {
  background: linear-gradient(135deg, #FFFDE7, #FFF9C4);
  box-shadow: 0 6px 0 #FFF176;
}

.icon-globe {
  background: linear-gradient(135deg, #E0F7FA, #B2EBF2);
  box-shadow: 0 6px 0 #80DEEA;
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */
.programs {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(255,107,107,0.03) 0%, transparent 100%);
  position: relative;
  z-index: 1;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: start;
}

.program-card {
  padding: 40px 32px;
  text-align: center;
  position: relative;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent, var(--primary));
  border-radius: var(--radius) var(--radius) 0 0;
}

.program-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 14px;
  background: var(--accent-yellow);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
}

.program-age {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.program-emoji {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.program-card > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.program-features {
  text-align: left;
  margin-bottom: 28px;
}

.program-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-features li::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(41,182,246,0.1);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.program-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent, var(--primary));
  color: white;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.program-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}

.program-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.02);
}

.program-card.featured:hover {
  transform: scale(1.02) translateY(-6px);
}

/* ========================================
   ACTIVITIES SECTION
   ======================================== */
.activities {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* Marquee */
.activities-marquee {
  margin-bottom: 60px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.activity-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  border: 2px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 0 rgba(0,0,0,0.04);
  color: var(--text);
  transition: all 0.3s ease;
}

.activity-chip:hover {
  border-color: var(--chip-color);
  transform: translateY(-2px);
}

.chip-icon {
  font-size: 1.3rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Activity Cards */
.activity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.activity-card {
  padding: 32px 24px;
  text-align: center;
}

.activity-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.activity-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.activity-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.activity-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.activity-tags span {
  padding: 4px 14px;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(78,205,196,0.03));
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-large {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gallery-color), color-mix(in srgb, var(--gallery-color) 70%, white));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.gallery-placeholder span {
  font-size: 3rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.gallery-placeholder p {
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.9;
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
}

.testimonial-stars {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-card > p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.testimonial-dots .dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 40px 0 100px;
  position: relative;
  z-index: 1;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark), #1565C0) !important;
  padding: 60px;
  text-align: center;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--secondary);
  color: var(--navy);
  box-shadow: 0 6px 0 var(--secondary-dark);
}

.cta-buttons .btn-primary:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}

.cta-decoration {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cta-toy {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: toyFloat 4s ease-in-out infinite;
}

.cta-toy-1 { top: 20px; left: 40px; animation-delay: 0s; }
.cta-toy-2 { top: 30px; right: 60px; animation-delay: -1s; }
.cta-toy-3 { bottom: 20px; left: 80px; animation-delay: -2s; }
.cta-toy-4 { bottom: 30px; right: 40px; animation-delay: -3s; }

/* Lego-like blocks in CTA */
.cta-lego {
  position: absolute;
  width: 40px;
  height: 25px;
  border-radius: 6px;
  opacity: 0.1;
  animation: toyFloat 5s ease-in-out infinite;
}

.cta-lego::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 6px;
  width: 12px;
  height: 8px;
  border-radius: 6px 6px 0 0;
  background: inherit;
}

.cta-lego::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 6px;
  width: 12px;
  height: 8px;
  border-radius: 6px 6px 0 0;
  background: inherit;
}

.cta-lego-1 {
  background: var(--accent-yellow);
  top: 60px;
  left: 15%;
  animation-delay: -1s;
  transform: rotate(15deg);
}

.cta-lego-2 {
  background: var(--accent-pink);
  bottom: 50px;
  right: 20%;
  animation-delay: -2.5s;
  transform: rotate(-20deg);
}

.cta-lego-3 {
  background: var(--accent-green);
  top: 40%;
  right: 10%;
  animation-delay: -4s;
  transform: rotate(8deg);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-form {
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(41,182,246,0.15);
}

.form-group textarea {
  resize: vertical;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.footer-toys {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
}

.footer-toy {
  position: absolute;
  opacity: 0.06;
  animation: toyFloat 6s ease-in-out infinite;
}

.ft-1 { font-size: 3rem; top: 10%; left: 5%; animation-delay: 0s; }
.ft-2 { font-size: 2rem; top: 30%; right: 8%; animation-delay: -1s; }
.ft-3 { font-size: 2.5rem; bottom: 30%; left: 10%; animation-delay: -2s; }
.ft-4 { font-size: 2rem; top: 15%; right: 25%; animation-delay: -3s; }
.ft-5 { font-size: 3rem; bottom: 20%; right: 15%; animation-delay: -4s; }
.ft-6 { font-size: 2.5rem; bottom: 40%; left: 30%; animation-delay: -5s; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.footer-brand .logo-text {
  -webkit-text-fill-color: white;
}

.footer-brand > p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 6px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   FORM SUCCESS STATE
   ======================================== */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  min-height: 400px;
}

.form-success .success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounceIn 0.5s ease;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .toy-scene {
    width: 320px;
    height: 320px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-card.featured {
    transform: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-large {
    grid-column: span 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toy-scene {
    width: 280px;
    height: 280px;
  }

  .toy-block { width: 60px; height: 60px; font-size: 1.5rem; }

  .toy-ladder {
    width: 45px;
    height: 100px;
  }

  .ladder-climber { font-size: 18px; }

  .spinning-top { display: none; }

  .train-divider { height: 100px; }

  .xylophone { max-width: 350px; }
  .xylo-bar { height: 14px; }

  .abacus { width: 220px; }
  .abacus-bead { width: 22px; height: 22px; }

  .puzzle-piece {
    width: 45px;
    height: 45px;
  }

  .building-block {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .crayon { width: 18px; }

  .xylo-mallets { gap: 40px; }
}

@media (max-width: 480px) {
  .hero {
    padding: 90px 16px 60px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }

  .testimonial-card {
    padding: 28px 20px;
  }

  .contact-form {
    padding: 24px;
  }

  .toy-scene {
    width: 240px;
    height: 240px;
  }

  .toy-block { width: 50px; height: 50px; font-size: 1.2rem; border-radius: 10px; }
  .toy-block-1 { top: 20px; left: 30px; }
  .toy-block-2 { top: 100px; right: 20px; }
  .toy-block-3 { bottom: 60px; left: 60px; }

  .toy-ball-1 { width: 35px; height: 35px; }
  .toy-ball-2 { width: 25px; height: 25px; }
  .toy-ball-3 { width: 20px; height: 20px; }

  .toy-ladder { width: 35px; height: 80px; }
  .toy-rocket { bottom: 90px; }

  .rocket-body { width: 30px; height: 60px; }
  .rocket-window { width: 12px; height: 12px; top: 15px; }
  .rocket-fin { width: 10px; height: 18px; }
  .rocket-fin-l { left: -5px; }
  .rocket-fin-r { right: -5px; }

  .toy-planet { width: 40px; height: 40px; top: 60px; }
  .toy-ring { width: 60px; height: 14px; top: 75px; }

  .train-divider { height: 80px; }
  .engine-body { width: 50px; height: 25px; }
  .engine-cabin { width: 22px; height: 30px; }
  .engine-chimney { width: 10px; height: 14px; }
  .engine-wheel { width: 12px; height: 12px; }

  .xylophone { max-width: 260px; }
  .xylo-bar { height: 12px; }
  .xylo-mallets { display: none; }

  .abacus { width: 180px; padding: 14px 12px; }
  .abacus-bead { width: 18px; height: 18px; }
  .abacus-row { padding: 5px 16px; }

  .puzzle-piece { width: 36px; height: 36px; }
  .puzzle-piece::after { width: 14px; height: 14px; }

  .building-block { width: 36px; height: 36px; font-size: 0.85rem; }

  .crayon { width: 14px; }
  .crayon::before { left: 1px; border-left-width: 6px; border-right-width: 6px; border-bottom-width: 12px; top: -12px; }

  .crayons { gap: 6px; }
  .crayon-scribble { width: 150px; }

  .section-header { margin-bottom: 40px; }
  .about, .programs, .activities, .gallery, .testimonials, .contact {
    padding: 60px 0;
  }
}
