/* ================================================================
   ANIMATIONS.CSS — New Little Kingdom / Sadguru Education Trust
   Visual enhancement layer: bubbles · SVG children · waves ·
   bouncy cards · scroll reveals · counters · rainbow accents
   Inspired by: Little Millennium — joyful, child-first aesthetic
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
    --joy-red:    #ff6b6b;
    --joy-orange: #ff9f43;
    --joy-yellow: #ffd93d;
    --joy-green:  #6bcb77;
    --joy-teal:   #26d0ce;
    --joy-blue:   #4d96ff;
    --joy-indigo: #818cf8;
    --joy-purple: #c77dff;
    --joy-pink:   #ff6fc8;
}

/* ================================================================
   SCROLL PROGRESS BAR
   ================================================================ */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    width: 0%;
    z-index: 10000;
    background: linear-gradient(90deg,
        var(--joy-red), var(--joy-yellow),
        var(--joy-green), var(--joy-blue),
        var(--joy-pink));
    background-size: 300% 100%;
    animation: progressShift 3s linear infinite;
    transition: width 0.08s linear;
    border-radius: 0 2px 2px 0;
}
@keyframes progressShift {
    0%   { background-position: 0% 0%;   }
    100% { background-position: 300% 0%; }
}

/* ================================================================
   BACK-TO-TOP BUTTON
   ================================================================ */
#back-to-top {
    position: fixed;
    bottom: 110px; right: 24px;
    z-index: 997;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #2e86de, #54a0ff);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(46,134,222,0.45), 0 2px 8px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(18px) scale(0.75);
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
#back-to-top:hover {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
    box-shadow: 0 10px 28px rgba(46,134,222,0.55), 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-5px) scale(1.12);
}

/* ================================================================
   RAINBOW STRIP
   ================================================================ */
.rainbow-strip {
    height: 5px;
    background: linear-gradient(90deg,
        var(--joy-red) 0%,
        var(--joy-orange) 14%,
        var(--joy-yellow) 28%,
        var(--joy-green)  43%,
        var(--joy-teal)   57%,
        var(--joy-blue)   71%,
        var(--joy-purple) 85%,
        var(--joy-pink)  100%);
    background-size: 200% 100%;
    animation: rainbowShift 4s linear infinite;
}
@keyframes rainbowShift {
    0%   { background-position: 0% 0%;   }
    100% { background-position: 200% 0%; }
}

/* ================================================================
   WAVE SECTION DIVIDERS
   ================================================================ */
.wave-divider {
    line-height: 0;
    overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* ================================================================
   FLOATING BUBBLES (hero background)
   ================================================================ */
.hero-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    opacity: 0;
    animation: riseBubble linear infinite;
}
.bubble:nth-child(1)  { width:14px;height:14px; left:5%;  background:rgba(255,107,107,0.35); animation-duration:11s; animation-delay:0s;    }
.bubble:nth-child(2)  { width:22px;height:22px; left:15%; background:rgba(255,217,61,0.3);  animation-duration:13s; animation-delay:1.8s;  }
.bubble:nth-child(3)  { width:10px;height:10px; left:25%; background:rgba(107,203,119,0.4); animation-duration:9s;  animation-delay:0.5s;  }
.bubble:nth-child(4)  { width:26px;height:26px; left:37%; background:rgba(77,150,255,0.28); animation-duration:15s; animation-delay:2.4s;  }
.bubble:nth-child(5)  { width:16px;height:16px; left:50%; background:rgba(255,111,200,0.3); animation-duration:12s; animation-delay:0.3s;  }
.bubble:nth-child(6)  { width:12px;height:12px; left:63%; background:rgba(199,125,255,0.32);animation-duration:8s;  animation-delay:3.2s;  }
.bubble:nth-child(7)  { width:20px;height:20px; left:75%; background:rgba(255,159,67,0.28); animation-duration:14s; animation-delay:1.1s;  }
.bubble:nth-child(8)  { width:9px; height:9px;  left:87%; background:rgba(255,217,61,0.4);  animation-duration:10s; animation-delay:4.5s;  }
.bubble:nth-child(9)  { width:18px;height:18px; left:30%; background:rgba(107,203,119,0.28);animation-duration:12s; animation-delay:2.9s;  }
.bubble:nth-child(10) { width:28px;height:28px; left:70%; background:rgba(77,150,255,0.22); animation-duration:16s; animation-delay:0.7s;  }
.bubble:nth-child(11) { width:15px;height:15px; left:8%;  background:rgba(255,107,107,0.25);animation-duration:10s; animation-delay:5.1s;  }
.bubble:nth-child(12) { width:11px;height:11px; left:92%; background:rgba(199,125,255,0.3); animation-duration:9s;  animation-delay:1.6s;  }
@keyframes riseBubble {
    0%   { bottom:-60px; opacity:0;   transform: translateX(0)     scale(0.7); }
    10%  {               opacity:0.9; }
    88%  {               opacity:0.6; }
    100% { bottom:105%;  opacity:0;   transform: translateX(22px)  scale(1.1); }
}

/* ================================================================
   HERO — SVG ILLUSTRATION WRAPPER
   ================================================================ */
.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    flex-shrink: 0;
}
.hero-illus-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 56px rgba(0,0,0,0.28));
    animation: illuFloat 5s ease-in-out infinite;
    display: block;
}
@keyframes illuFloat {
    0%,100% { transform: translateY(0px)   rotate(0deg);   }
    33%      { transform: translateY(-14px) rotate(0.5deg); }
    66%      { transform: translateY(-8px)  rotate(-0.4deg); }
}

/* Stars twinkling around illustration */
.hero-star {
    position: absolute;
    pointer-events: none;
    animation: starTwinkle ease-in-out infinite;
    line-height: 1;
}
.hero-star:nth-child(1) { top:6%;  left:2%;  font-size:1.6rem; animation-duration:2.2s; animation-delay:0s;   }
.hero-star:nth-child(2) { top:15%; right:4%; font-size:1rem;   animation-duration:2.8s; animation-delay:0.8s; }
.hero-star:nth-child(3) { top:50%; left:-2%; font-size:1.2rem; animation-duration:3.1s; animation-delay:1.5s; }
.hero-star:nth-child(4) { top:70%; right:3%; font-size:1.4rem; animation-duration:2.5s; animation-delay:0.3s; }
.hero-star:nth-child(5) { top:35%; right:0%; font-size:0.9rem; animation-duration:3.4s; animation-delay:2.1s; }
@keyframes starTwinkle {
    0%,100% { opacity:0.15; transform: scale(0.7)  rotate(-10deg); }
    50%      { opacity:1;    transform: scale(1.35) rotate(15deg);  }
}

/* Floating info badges */
.hero-float-badge {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Nunito', var(--font-body);
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    white-space: nowrap;
    animation: badgeBob ease-in-out infinite;
    z-index: 10;
    cursor: default;
}
.hero-float-badge:nth-child(1) { top:10%;    left:-12%; animation-duration:3.2s; animation-delay:0s;   }
.hero-float-badge:nth-child(2) { bottom:22%; right:-8%; animation-duration:3.9s; animation-delay:1.1s; }
.hero-float-badge:nth-child(3) { top:56%;    left:-14%; animation-duration:4.2s; animation-delay:2.3s; }
.hero-float-badge .fb-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
@keyframes badgeBob {
    0%,100% { transform: translateY(0px);   }
    50%      { transform: translateY(-9px);  }
}

/* ================================================================
   HERO TEXT — staggered entrance animations
   ================================================================ */
.hero-badge     { animation: slideUpFade 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay:0.2s; }
.hero-title     { animation: slideUpFade 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay:0.38s; }
.hero-desc      { animation: slideUpFade 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay:0.52s; }
.hero-btns      { animation: slideUpFade 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay:0.66s; }
.hero-stats     { animation: slideUpFade 0.6s  cubic-bezier(0.22,1,0.36,1) both; animation-delay:0.80s; }
.hero-illustration { animation: slideRightFade 0.85s cubic-bezier(0.22,1,0.36,1) both; animation-delay:0.35s; }

@keyframes slideUpFade {
    from { opacity:0; transform:translateY(32px); }
    to   { opacity:1; transform:translateY(0);    }
}
@keyframes slideRightFade {
    from { opacity:0; transform:translateX(45px); }
    to   { opacity:1; transform:translateX(0);    }
}

/* ================================================================
   SCROLL REVEAL SYSTEM
   ================================================================ */
.reveal-up, .reveal-left, .reveal-right, .reveal-pop, .reveal-fade {
    opacity: 0;
    transition-duration: 0.7s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-property: opacity, transform;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px);  }
.reveal-pop   { transform: scale(0.85);       }
.reveal-fade  { transform: translateY(12px);  }

.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-pop.in-view,
.reveal-fade.in-view,
.fade-up.visible { /* keep backward compat with existing .fade-up */
    opacity: 1;
    transform: none;
}

/* stagger helpers */
.stagger-1 { transition-delay:0.06s; }
.stagger-2 { transition-delay:0.12s; }
.stagger-3 { transition-delay:0.18s; }
.stagger-4 { transition-delay:0.24s; }
.stagger-5 { transition-delay:0.30s; }
.stagger-6 { transition-delay:0.36s; }

/* ================================================================
   PROGRAM CARDS — joyful card with animated emoji banner
   ================================================================ */
.joy-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(26,58,92,0.07);
    transition: all 0.38s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
}
.joy-card:hover {
    transform: translateY(-12px) rotate(-0.5deg);
    box-shadow: 0 24px 56px rgba(26,58,92,0.15);
}
.joy-card-banner {
    height: 148px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* polka-dot texture on banner */
.joy-card-banner::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.45) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    pointer-events: none;
}
/* curved bottom edge reveals white card body */
.joy-card-banner::after {
    content: '';
    position: absolute;
    bottom: -22px; left: 0; right: 0;
    height: 44px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.joy-card-emoji {
    font-size: 3.8rem;
    position: relative;
    z-index: 2;
    display: block;
    animation: emojiWiggle 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}
@keyframes emojiWiggle {
    0%,100% { transform: rotate(-7deg) scale(1);    }
    25%      { transform: rotate( 7deg) scale(1.12); }
    50%      { transform: rotate(-4deg) scale(1.07); }
    75%      { transform: rotate( 5deg) scale(1.02); }
}
.joy-card:hover .joy-card-emoji {
    animation-play-state: paused;
    transform: scale(1.22) rotate(0deg) !important;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.joy-card-body {
    padding: 14px 24px 28px;
    text-align: center;
}
.joy-card-body h3 {
    font-family: 'Nunito', var(--font-display);
    color: var(--primary);
    font-size: 1.06rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
}
.joy-age-pill {
    display: inline-block;
    padding: 3px 13px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.joy-card-body p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
    margin-bottom: 14px;
}
.joy-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.joy-card-link:hover { gap: 8px; }

/* ================================================================
   STAT BUBBLES (Why Us section counters)
   ================================================================ */
.stat-bubble {
    border-radius: 22px;
    padding: 32px 18px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s;
}
.stat-bubble:hover {
    transform: scale(1.08) rotate(-1.2deg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.stat-bubble::before {
    content: '';
    position: absolute;
    width: 140%; height: 140%;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    top: -15%; left: -15%;
    pointer-events: none;
}
.stat-bubble-icon  { font-size: 2rem; margin-bottom: 8px; display: block; }
.stat-bubble-num   {
    font-family: 'Nunito', var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}
.stat-bubble-label { font-size: 0.83rem; opacity: 0.88; margin-top: 7px; font-weight: 600; display: block; }

/* ================================================================
   SECTION PILL TAGS — colorful gradient
   ================================================================ */
.section-tag-joy {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 50px;
    font-family: 'Nunito', var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 14px;
}

/* Animated underline on section titles */
.fun-underline {
    position: relative;
    display: inline;
}
.fun-underline::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--joy-red), var(--joy-yellow), var(--joy-green));
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.65s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.fun-underline.active::after { transform: scaleX(1); }

/* ================================================================
   FEATURE / WHY-US ITEMS
   ================================================================ */
.why-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    transition: background 0.2s, transform 0.25s;
}
.why-feature:hover {
    background: rgba(26,58,92,0.04);
    transform: translateX(8px);
}
.why-feature-icon {
    width: 44px; height: 44px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.why-feature:hover .why-feature-icon { transform: rotate(15deg) scale(1.12); }

/* ================================================================
   PAGE HEADERS — floating decorative orbs
   ================================================================ */
.page-header { position: relative; overflow: hidden; }
.page-header::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(232,160,32,0.1);
    bottom: -100px; right: -60px;
    pointer-events: none;
    animation: orbFloat 5s ease-in-out infinite;
}
.page-header::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -50px; left: 6%;
    pointer-events: none;
    animation: orbFloat 6s ease-in-out infinite 1.2s;
}
@keyframes orbFloat {
    0%,100% { transform: scale(1) translateY(0); }
    50%      { transform: scale(1.15) translateY(-8px); }
}

/* ================================================================
   STEP CARDS (Admissions) — number pop animation
   ================================================================ */
.step-card-joy {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26,58,92,0.07);
    border: 1.5px solid rgba(26,58,92,0.06);
    transition: all 0.38s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}
.step-card-joy:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(26,58,92,0.14);
}
.step-card-joy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.step-num-circle {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Nunito', var(--font-display);
    font-weight: 900;
    font-size: 1.3rem;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.step-card-joy:hover .step-num-circle, .step-card-joy:hover .step-number { transform: scale(1.18) rotate(-8deg); }

/* ================================================================
   TEACHER CARD — rainbow glow hover
   ================================================================ */
.teacher-card-wrapper {
    position: relative;
    border-radius: calc(var(--radius) + 3px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.teacher-card-wrapper:hover { transform: translateY(-8px); }
.teacher-card-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius) + 5px);
    background: linear-gradient(135deg,
        var(--joy-red), var(--joy-yellow),
        var(--joy-green), var(--joy-blue),
        var(--joy-pink));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}
.teacher-card-wrapper:hover::before { opacity: 1; }
.teacher-card-wrapper .teacher-card {
    position: relative;
    z-index: 1;
}

/* ================================================================
   CTA SECTION — floating confetti emojis
   ================================================================ */
.cta-emoji {
    position: absolute;
    pointer-events: none;
    animation: ctaFloat ease-in-out infinite;
    opacity: 0.4;
    font-size: 1.8rem;
}
.cta-emoji:nth-child(1) { left:3%;  top:18%; animation-duration:4.5s; animation-delay:0s;   }
.cta-emoji:nth-child(2) { left:8%;  bottom:22%; animation-duration:5.2s; animation-delay:1.3s; }
.cta-emoji:nth-child(3) { right:4%; top:14%; animation-duration:4.1s; animation-delay:0.7s; }
.cta-emoji:nth-child(4) { right:10%;bottom:18%; animation-duration:4.8s; animation-delay:2.1s; }
.cta-emoji:nth-child(5) { left:48%; top:10%; animation-duration:5.8s; animation-delay:0.4s; }
@keyframes ctaFloat {
    0%,100% { transform: translateY(0)    rotate(0deg);  opacity:0.4; }
    50%      { transform: translateY(-22px) rotate(18deg); opacity:0.7; }
}

/* ================================================================
   CONFETTI-DOT SECTION BACKGROUND
   ================================================================ */
.dot-bg {
    position: relative;
}
.dot-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,107,107,0.07) 2px, transparent 2px),
        radial-gradient(circle, rgba(77,150,255,0.06)  2px, transparent 2px),
        radial-gradient(circle, rgba(107,203,119,0.07) 2px, transparent 2px);
    background-size: 56px 56px, 77px 77px, 46px 46px;
    background-position: 0 0, 30px 30px, 15px 15px;
    z-index: 0;
}
.dot-bg > * { position: relative; z-index: 1; }

/* ================================================================
   VALUE CARDS (About page) — hover pop
   ================================================================ */
.value-card-joy {
    will-change: transform;
    background: white;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    border: 1.5px solid rgba(26,58,92,0.07);
    box-shadow: 0 3px 16px rgba(26,58,92,0.07);
    transition: all 0.38s cubic-bezier(0.34,1.56,0.64,1);
    cursor: default;
}
.value-card-joy:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 44px rgba(26,58,92,0.14);
}
.value-card-joy .vc-icon, .value-card-joy .value-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 14px;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.value-card-joy:hover .vc-icon, .value-card-joy:hover .value-icon { transform: rotate(12deg) scale(1.15); }

/* ================================================================
   GALLERY items — shimmer effect
   ================================================================ */
.gallery-item-joy {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item-joy::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 40%,
        rgba(255,255,255,0.18) 50%,
        transparent 60%);
    transform: translateX(-100%);
    transition: transform 0s;
}
.gallery-item-joy:hover::after {
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

/* ================================================================
   EVENTS — category badge pop
   ================================================================ */
.event-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { transform: scale(1);    }
    50%      { transform: scale(1.04); }
}

/* ================================================================
   CONTACT — form field glow on focus
   ================================================================ */
.form-control-joy:focus {
    border-color: var(--joy-blue) !important;
    box-shadow: 0 0 0 4px rgba(77,150,255,0.15) !important;
    outline: none;
}

/* ================================================================
   NAVBAR ACTIVE DOT INDICATOR
   ================================================================ */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
}
.nav-links a { position: relative; }

/* ================================================================
   LOADING SKELETON (placeholder shimmer)
   ================================================================ */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.skeleton {
    background: linear-gradient(90deg,
        rgba(26,58,92,0.06) 25%,
        rgba(26,58,92,0.12) 50%,
        rgba(26,58,92,0.06) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite;
    border-radius: 8px;
}

/* ================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================ */
@media (max-width: 900px) {
    .hero-float-badge { display: none; }
    .hero-star:nth-child(3),
    .hero-star:nth-child(5) { display: none; }
    .hero-illustration { max-width: 300px; }
    .stat-bubble-num { font-size: 2.4rem; }
}
@media (max-width: 600px) {
    .hero-illustration { max-width: 260px; }
    .joy-card-banner  { height: 115px; }
    .joy-card-emoji   { font-size: 3rem; }
    #back-to-top { right: 12px; bottom: 92px; }
    .cta-emoji { display: none; }
    .stat-bubble { padding: 22px 12px; }
}


/* ── SAFETY FALLBACK: show all reveals after 3s if JS is slow ── */
@keyframes revealFallback {
    to { opacity: 1; transform: none; }
}
.reveal-up:not(.in-view),
.reveal-left:not(.in-view),
.reveal-right:not(.in-view),
.reveal-pop:not(.in-view),
.reveal-fade:not(.in-view) {
    animation: revealFallback 0.5s ease forwards;
    animation-delay: 2.5s;
}

/* ================================================================
   ACCESSIBILITY — respect reduced motion preference
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .bubble,
    .hero-illus-svg,
    .hero-star,
    .hero-float-badge,
    .joy-card-emoji,
    .cta-emoji,
    .stat-bubble,
    .rainbow-strip,
    #scroll-progress {
        animation: none !important;
    }
    .hero-badge,
    .hero-title,
    .hero-desc,
    .hero-btns,
    .hero-stats,
    .hero-illustration {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .reveal-up, .reveal-left, .reveal-right,
    .reveal-pop, .reveal-fade, .fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
