/* ==========================================================================
   ROSBOTZ — KID-FRIENDLY HERO ENHANCEMENTS
   Extra animations, playful styling & vibrant design layered on top.
   ========================================================================== */

/* ── Google Fonts extra (Baloo 2 for fun headings) ── */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800;900&display=swap');

/* ══════════════════════════════════════════════
   KEYFRAME LIBRARY
══════════════════════════════════════════════ */
@keyframes wiggle {
  0%,100% { transform: rotate(-5deg) scale(1); }
  50%      { transform: rotate(5deg)  scale(1.08); }
}
@keyframes bounceIn {
  0%   { opacity:0; transform: scale(.5) translateY(30px); }
  70%  { transform: scale(1.1) translateY(-8px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}
@keyframes popIn {
  0%   { opacity:0; transform: scale(.4); }
  80%  { transform: scale(1.12); }
  100% { opacity:1; transform: scale(1); }
}
@keyframes slideUpFade {
  from { opacity:0; transform: translateY(40px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes floatUpKid {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%     { transform: translateY(-18px) rotate(4deg); }
  66%     { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes starPop {
  0%,100% { transform: scale(1) rotate(0deg); opacity:.7; }
  50%      { transform: scale(1.5) rotate(20deg); opacity:1; }
}
@keyframes rainbowText {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes badgeBounce {
  0%,100% { transform: translateY(0) scale(1); }
  30%      { transform: translateY(-8px) scale(1.05); }
  60%      { transform: translateY(-4px) scale(1.02); }
}
@keyframes pulseScaleKid {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 20px 4px rgba(253,184,19,.35); }
  50%      { box-shadow: 0 0 40px 12px rgba(253,184,19,.6); }
}
@keyframes marqueeFast {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   HERO SECTION — ANIMATED BG
══════════════════════════════════════════════ */
.hero-kids-bg {
  background: linear-gradient(135deg,
    #e0f2fe 0%,
    #fef9c3 30%,
    #fce7f3 60%,
    #d1fae5 100%) !important;
  background-size: 400% 400% !important;
  animation: rainbowText 14s ease infinite !important;
}

/* Large decorative background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .18;
  pointer-events: none;
  animation: pulseScaleKid 8s ease-in-out infinite;
}
.hero-blob-1 { width:380px; height:380px; background:#fdb813; top:-100px; left:-80px; }
.hero-blob-2 { width:320px; height:320px; background:#0ea5e9; top:25%; right:-80px; animation-delay:3s; }
.hero-blob-3 { width:260px; height:260px; background:#8b5cf6; bottom:-20px; left:22%; animation-delay:5s; }

/* ══════════════════════════════════════════════
   FLOATING STEM ICONS
══════════════════════════════════════════════ */
.stem-float-icon {
  position: absolute;
  pointer-events: none;
  font-size: 2.6rem;
  opacity: .55;
  animation: floatUpKid 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
  user-select: none;
}

/* ══════════════════════════════════════════════
   TOP BADGE ROW — animated pill badges
══════════════════════════════════════════════ */
.kid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: .45rem 1.1rem;
  border-radius: 9999px;
  font-family: 'Baloo 2', 'Fredoka', cursive;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  border: 2.5px solid transparent;
  cursor: default;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  animation: badgeBounce 3s ease-in-out infinite;
}
.kid-badge:hover {
  transform: translateY(-5px) scale(1.12) !important;
  z-index: 5;
}
.kid-badge-robot { background:#ffe4b5; border-color:#fdb813; color:#7c3900; animation-delay:.0s; }
.kid-badge-ai    { background:#dbeafe; border-color:#0ea5e9; color:#1e3a8a; animation-delay:.3s; }
.kid-badge-drone { background:#cffafe; border-color:#06b6d4; color:#164e63; animation-delay:.6s; }
.kid-badge-elec  { background:#ffedd5; border-color:#f97316; color:#7c2d12; animation-delay:.9s; }
.kid-badge-stem  { background:#d1fae5; border-color:#10b981; color:#064e3b; animation-delay:1.2s; }

/* ══════════════════════════════════════════════
   HERO BANNER CAROUSEL — upgraded frame
══════════════════════════════════════════════ */
.hero-carousel-frame {
  border-radius: 2rem !important;
  border: 5px solid #ffffff !important;
  box-shadow:
    0 0 0 4px #fdb813,
    0 32px 80px -10px rgba(15,43,92,.25) !important;
  overflow: hidden;
  position: relative;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1) !important;
}
.hero-carousel-frame:hover {
  transform: scale(1.007) translateY(-4px) !important;
}

/* "Where Future Makers Learn!" decorative bubble */
.hero-carousel-frame::before {
  content: '🚀 Where Future Makers Learn!';
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  padding: .4rem 1.1rem;
  border-radius: 9999px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: .75rem;
  color: #0f2b5c;
  border: 2.5px solid #fdb813;
  box-shadow: 0 4px 14px rgba(253,184,19,.35);
  animation: slideUpFade .8s .5s both;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   GOAL SELECTOR CARDS — rainbow hover & bounce
══════════════════════════════════════════════ */
.goal-card-kid {
  border-radius: 1.5rem !important;
  border: 3px solid #f1f5f9 !important;
  background: #ffffff;
  transition:
    transform .3s cubic-bezier(.34,1.56,.64,1),
    box-shadow .3s ease,
    border-color .3s ease !important;
  position: relative;
  overflow: hidden;
}
.goal-card-kid::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0) 55%, rgba(253,184,19,.07) 100%);
  pointer-events: none;
}
.goal-card-kid:hover {
  transform: translateY(-10px) scale(1.04) rotate(-.5deg) !important;
}
.goal-card-kid:hover .goal-emoji {
  animation: wiggle .5s ease-in-out;
  display: inline-block;
}

.goal-card-robot:hover { border-color:#f97316 !important; box-shadow: 0 24px 50px -8px rgba(249,115,22,.22) !important; }
.goal-card-code:hover  { border-color:#10b981 !important; box-shadow: 0 24px 50px -8px rgba(16,185,129,.22) !important; }
.goal-card-world:hover { border-color:#0ea5e9 !important; box-shadow: 0 24px 50px -8px rgba(14,165,233,.22) !important; }
.goal-card-future:hover{ border-color:#8b5cf6 !important; box-shadow: 0 24px 50px -8px rgba(139,92,246,.22) !important; }

.goal-emoji {
  font-size: 1.6rem;
  line-height: 1;
  display: inline-block;
  transition: transform .3s ease;
}

/* ══════════════════════════════════════════════
   CTA BUTTONS — shimmer glow
══════════════════════════════════════════════ */
.btn-kids-primary {
  position: relative;
  overflow: hidden;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  animation: glowPulse 2.8s ease-in-out infinite;
}
.btn-kids-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.38), transparent);
  animation: shimmer 2.4s linear infinite;
}
.btn-kids-primary:hover {
  animation: none;
  box-shadow: 0 20px 50px -8px rgba(253,184,19,.65) !important;
  transform: translateY(-5px) scale(1.06) !important;
}

/* ══════════════════════════════════════════════
   BENTO FEATURE CARDS
══════════════════════════════════════════════ */
.bento-card-kid {
  border-width: 2.5px !important;
  border-radius: 1.75rem !important;
  transition:
    transform .35s cubic-bezier(.34,1.56,.64,1),
    box-shadow .35s ease !important;
  position: relative;
  overflow: hidden;
}
.bento-card-kid::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  pointer-events: none;
  transition: transform .5s ease;
}
.bento-card-kid:hover::before {
  transform: scale(2.8);
}
.bento-card-kid:hover {
  transform: translateY(-12px) rotate(.4deg) !important;
  box-shadow: 0 30px 65px -15px rgba(15,43,92,.18) !important;
}
.bento-card-kid:hover .bento-emoji {
  animation: wiggle .55s ease-in-out;
  display: inline-block;
}
.bento-emoji {
  font-size: 2rem;
  line-height: 1;
  display: inline-block;
  transition: transform .3s ease;
}

/* ══════════════════════════════════════════════
   WHY ROSBOTZ CARDS
══════════════════════════════════════════════ */
.why-card-kid {
  border-radius: 2rem !important;
  border-width: 2.5px !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease !important;
  position: relative; overflow: hidden;
}
.why-card-kid:hover {
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 0 30px 65px -15px rgba(15,43,92,.18) !important;
}
.why-icon-wrap {
  width: 4.5rem; height: 4.5rem;
  border-radius: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.why-card-kid:hover .why-icon-wrap {
  transform: scale(1.2) rotate(-6deg);
}
.why-card-kid::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  opacity: .07;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   STATS COUNTER CARDS
══════════════════════════════════════════════ */
.stat-card-kid {
  border-radius: 1.75rem !important;
  border: 3px solid #f1f5f9 !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease !important;
  position: relative; overflow: hidden;
}
.stat-card-kid:hover {
  transform: translateY(-8px) scale(1.04) !important;
}
.stat-card-kid:nth-child(1):hover { border-color:#0ea5e9 !important; }
.stat-card-kid:nth-child(2):hover { border-color:#8b5cf6 !important; }
.stat-card-kid:nth-child(3):hover { border-color:#fdb813 !important; }
.stat-card-kid:nth-child(4):hover { border-color:#10b981 !important; }

.stat-number-kid {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 3.5rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

/* ══════════════════════════════════════════════
   TRUST MARQUEE — dark colorful bar
══════════════════════════════════════════════ */
.kids-marquee-bar {
  background: linear-gradient(90deg, #0f2b5c 0%, #163e82 50%, #0f2b5c 100%) !important;
  color: #ffffff !important;
}
.kids-marquee-track {
  animation: marqueeFast 22s linear infinite !important;
}
.kids-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 0 2.5rem;
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: .04em;
  white-space: nowrap;
}
.kids-marquee-item span.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fdb813;
  animation: pulseScaleKid 1.8s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   SECTION ENTRY ANIMATION
══════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.25,1,.5,1), transform .7s cubic-bezier(.25,1,.5,1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up:nth-child(1) { transition-delay: .0s; }
.reveal-up:nth-child(2) { transition-delay: .1s; }
.reveal-up:nth-child(3) { transition-delay: .2s; }
.reveal-up:nth-child(4) { transition-delay: .3s; }
.reveal-up:nth-child(5) { transition-delay: .4s; }

/* ══════════════════════════════════════════════
   HERO PREMIUM PILL BADGE
══════════════════════════════════════════════ */
.hero-premium-pill {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: .88rem;
  padding: .5rem 1.4rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(90deg, #fdb813, #ffdd57);
  color: #0f2b5c;
  box-shadow: 0 8px 24px rgba(253,184,19,.45);
  animation: badgeBounce 2.5s ease-in-out infinite;
  border: 3px solid #ffffff;
}

/* ══════════════════════════════════════════════
   STAR DECORATIONS
══════════════════════════════════════════════ */
.star-deco {
  display: inline-block;
  animation: starPop 2s ease-in-out infinite;
  font-size: 1.3rem;
}
.star-deco:nth-child(2) { animation-delay: .4s; }
.star-deco:nth-child(3) { animation-delay: .8s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-blob { display: none; }
  .stem-float-icon { font-size: 1.8rem; opacity: .35; }
  .stat-number-kid { font-size: 2.5rem !important; }
  .kid-badge { font-size: .7rem; padding: .3rem .8rem; }
  .hero-carousel-frame::before { display: none; }
}

/* ══════════════════════════════════════════════
   INNER PAGES (COURSES, ABOUT, CAREERS) HARMONY
══════════════════════════════════════════════ */
.subpage-hero-banner {
  position: relative;
  overflow: hidden;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  border-bottom: 2px solid #e2e8f0;
}
.subpage-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #0f2b5c;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 43, 92, 0.06);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.subpage-back-btn:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: #0ea5e9;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
}
.course-card-kid {
  border-radius: 2rem !important;
  border: 3px solid #f1f5f9 !important;
  background: #ffffff;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.course-card-kid:hover {
  transform: translateY(-10px) scale(1.01) !important;
  box-shadow: 0 32px 70px -15px rgba(15,43,92,.18) !important;
  border-color: #0ea5e9 !important;
}
.course-card-kid img {
  transition: transform .5s ease;
}
.course-card-kid:hover img {
  transform: scale(1.06);
}
.job-card-kid {
  border-radius: 2rem !important;
  border: 3px solid #f1f5f9 !important;
  background: #ffffff;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease !important;
  position: relative;
  overflow: hidden;
}
.job-card-kid:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 28px 60px -12px rgba(15,43,92,.15) !important;
}

