/* ═══════════════════════════════════════════════
   VABKIDS — animations.css  v18
   ═══════════════════════════════════════════════ */

/* Smooth scroll globale */
html { scroll-behavior: smooth; }

/* ── Pop-up book entrance ─────────────────────── */
.pop-up-hidden {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    transition: opacity .7s cubic-bezier(.34,1.56,.64,1),
                transform .7s cubic-bezier(.34,1.56,.64,1);
    will-change: transform, opacity;
}
.pop-up-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Floating elements ────────────────────────── */
.animate-float-hover:hover {
    animation: float 2s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ── CTA button shimmer ───────────────────────── */
.cta-button {
    position: relative;
    overflow: hidden;
}
.cta-button::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    animation: btnShimmer 4s ease-in-out infinite;
}
@keyframes btnShimmer {
    0%, 60% { left: -100%; }
    100%     { left: 160%; }
}

/* ── Section heading decoration ──────────────── */
.heading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 24px;
}
.heading-dots span {
    display: block;
    border-radius: 9999px;
    height: 6px;
}

/* ── Card improvements ────────────────────────── */
.cardboard-box {
    transition: transform .25s cubic-bezier(.34,1.56,.64,1),
                box-shadow .25s ease !important;
}
.cardboard-box:hover {
    box-shadow: 12px 12px 0 rgba(44,62,80,.14) !important;
}

/* ── Testimonial card ─────────────────────────── */
.testimonial-card {
    background: #fff;
    border: 3px dashed #e5e7eb;
    border-radius: 1.5rem;
    padding: 2rem;
    width: 18rem;
    box-shadow: 6px 6px 0 rgba(44,62,80,.08);
    position: relative;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1),
                box-shadow .3s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px) rotate(0deg) !important;
    box-shadow: 10px 14px 0 rgba(44,62,80,.12);
}
.testimonial-card .quote-icon {
    position: absolute;
    top: -14px; left: 20px;
    width: 32px; height: 32px;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 900;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.testimonial-card .quote-text {
    margin-top: .75rem;
    font-style: italic;
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}
.testimonial-card .quote-author {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
}
.testimonial-card .author-dot {
    width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0;
}

/* ── Magic cursor particles ───────────────────── */
.magic-particle {
    position: fixed;
    pointer-events: none;
    z-index: 99999 !important;
    animation: particleFade 1s forwards;
    font-family: system-ui, sans-serif;
    user-select: none;
}
@keyframes particleFade {
    0%   { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
    100% { opacity: 0; transform: scale(0) translate(var(--tx), var(--ty)) rotate(var(--rot)); }
}

/* ── Mobile menu ─────────────────────────────── */
.mobile-menu { transition: transform 0.3s ease-in-out; }
.mobile-menu.open { transform: translateX(0); }

/* ── Wavy divider ─────────────────────────────── */
.wavy-divider-bottom {
    position: absolute; bottom: -1px; left: 0;
    width: 100%; height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

/* ── Blob animated shapes ─────────────────────── */
.blob {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.blob-2 {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blobMorph2 11s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.blob-3 {
    position: absolute;
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    animation: blobMorph3 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes blobMorph {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50%  { border-radius: 50% 50% 40% 60% / 40% 70% 60% 30%; }
    75%  { border-radius: 40% 70% 50% 50% / 70% 30% 50% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes blobMorph2 {
    0%   { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    33%  { border-radius: 70% 30% 40% 60% / 60% 40% 30% 70%; }
    66%  { border-radius: 30% 70% 60% 40% / 30% 60% 70% 40%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}
@keyframes blobMorph3 {
    0%   { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
    50%  { border-radius: 30% 70% 30% 70% / 60% 30% 70% 30%; }
    100% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}

/* ── Back to top button ───────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    background: #ffe66d;
    border: 3px solid #2c3e50;
    border-radius: 50%;
    box-shadow: 4px 4px 0 rgba(44,62,80,0.25);
    font-size: 1.5rem;
    font-family: 'Fredoka One', cursive;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
}
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#back-to-top:hover {
    box-shadow: 6px 6px 0 rgba(44,62,80,0.3);
    transform: translateY(-2px);
}

/* ── Stagger transition delays ────────────────── */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ── Story card modern ────────────────────────── */
.story-card-img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    border-radius: 1.25rem 1.25rem 0 0;
    transition: transform .4s ease;
}
.story-card:hover .story-card-img {
    transform: scale(1.05);
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
