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

:root {
    /* Original Core Colors */
    --kids-yellow: #FFD93D;
    --kids-blue: #6BCBFF;
    --kids-green: #6BCB77;
    --kids-orange: #FF9F43;
    --kids-purple: #9E7BFF;
    
    /* Premium Gradients */
    --grad-yellow: linear-gradient(135deg, #FFE885, #FFD93D);
    --grad-blue: linear-gradient(135deg, #A8E2FF, #6BCBFF);
    --grad-green: linear-gradient(135deg, #9AEB9A, #6BCB77);
    --grad-orange: linear-gradient(135deg, #FFC480, #FF9F43);
    --grad-purple: linear-gradient(135deg, #C2A8FF, #9E7BFF);
    
    --kids-font: 'Quicksand', sans-serif;
    --transition-fast: 0.3s ease;
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --bg-light: #F7FBFF;
}

/* Base Styles */
.kids-page {
    background-color: var(--bg-light);
    font-family: var(--kids-font);
    overflow-x: hidden;
}

.kids-title {
    font-family: var(--kids-font);
    font-weight: 800;
    color: var(--kids-purple);
    letter-spacing: -0.5px;
}

/* --- HERO SECTION --- */
#hero-kids {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('./IMG/kids_hero_bg.png') no-repeat center bottom/cover;
    overflow: hidden;
    color: #fff;
    padding-top: 60px;
}

/* Premium Gradient Overlay */
#hero-kids::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(158, 123, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

/* Glassmorphism Content Box */
.hero-kids-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.5);
    margin: 0 20px;
}

.hero-kids-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 10px 20px rgba(158, 123, 255, 0.4);
    animation: bounceIn 1s var(--transition-bounce) both;
}

.kids-logo-hero {
    display: block;
    max-width: 350px;
    height: auto;
    margin: 0 auto 25px auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    animation: floatVertical 6s ease-in-out infinite;
}

.hero-kids-text {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: #333;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.5;
}

/* SVG Wave Divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-light);
}

/* Floating Elements */
.cloud,
.star,
.balloon {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.cloud {
    animation: floatHorizontal 25s linear infinite;
}

.star {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* --- ABOUT SECTION --- */
#about-kids {
    background-color: var(--bg-light);
    position: relative;
}

.section-kids {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.title-center {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 50px;
    position: relative;
}

.about-kids-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 40px;
    background: #fff;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; /* Organic Blob Shape */
    box-shadow: 0 30px 60px rgba(158, 123, 255, 0.08);
    position: relative;
    animation: morphBlob 15s ease-in-out infinite;
}

.text-kids {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #4a4a4a;
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

/* --- EXPERIENCE CARDS --- */
#experience-kids {
    background: #fff;
    position: relative;
}

/* Top curved divider for Experience */
.curve-top {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    padding: 0 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.card-kids {
    background: #fff;
    padding: 50px 30px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Premium Card Glossy Glow */
.card-kids::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 40px;
    padding: 4px; 
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0)); 
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.card-kids:hover {
    transform: translateY(-20px) scale(1.02);
}

.card-yellow:hover { box-shadow: 0 30px 60px rgba(255, 217, 61, 0.2); }
.card-blue:hover { box-shadow: 0 30px 60px rgba(107, 203, 255, 0.2); }
.card-green:hover { box-shadow: 0 30px 60px rgba(107, 203, 119, 0.2); }
.card-orange:hover { box-shadow: 0 30px 60px rgba(255, 159, 67, 0.2); }

.card-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
    color: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: var(--transition-bounce);
}

.card-kids:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}

.card-yellow .card-icon-wrapper { background: var(--grad-yellow); box-shadow: 0 15px 30px rgba(255, 217, 61, 0.4); }
.card-blue .card-icon-wrapper { background: var(--grad-blue); box-shadow: 0 15px 30px rgba(107, 203, 255, 0.4); }
.card-green .card-icon-wrapper { background: var(--grad-green); box-shadow: 0 15px 30px rgba(107, 203, 119, 0.4); }
.card-orange .card-icon-wrapper { background: var(--grad-orange); box-shadow: 0 15px 30px rgba(255, 159, 67, 0.4); }

.card-kids h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    margin: 0;
}

/* --- INTERACTIVE SECTION --- */
#interactive-section {
    background: var(--grad-blue);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 150px 0;
    border-radius: 60px;
    margin: 50px 20px;
}

#interactive-section .kids-title,
#interactive-section .text-kids {
    color: #fff;
    position: relative;
    z-index: 10;
}

#interactive-section .about-kids-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    animation: none;
    border-radius: 0;
}

/* Background animated shapes for interactive section */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(20px);
    z-index: 1;
}

.interactive-elements {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.moving-icon {
    font-size: 90px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--transition-bounce);
    cursor: pointer;
    animation: floatVertical 4s ease-in-out infinite alternate;
}

.moving-icon:nth-child(2) { animation-delay: 1s; }
.moving-icon:nth-child(3) { animation-delay: 2s; }
.moving-icon:nth-child(4) { animation-delay: 0.5s; }

.moving-icon:hover {
    transform: scale(1.2) translateY(-20px) rotate(15deg) !important;
    background: #fff;
}
.moving-icon:hover.fa-rocket { color: var(--kids-orange) !important; }
.moving-icon:hover.fa-puzzle-piece { color: var(--kids-blue) !important; }
.moving-icon:hover.fa-palette { color: var(--kids-yellow) !important; }
.moving-icon:hover.fa-smile-beam { color: var(--kids-green) !important; }

/* --- PARENTS SECTION --- */
#parents-section {
    background: var(--grad-purple);
    color: #fff;
    border-radius: 80px 80px 0 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind text */
#parents-section::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

#parents-section h2 {
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.parents-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 30px;
    position: relative;
    z-index: 10;
}

.parents-content .text-kids {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
}

/* --- ANIMATIONS --- */
@keyframes floatHorizontal {
    from { transform: translateX(-250px); }
    to { transform: translateX(100vw); }
}

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

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,217,61,0.5)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 20px rgba(255,217,61,1)); }
}

@keyframes morphBlob {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

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

/* Sparkle Particles (kept from original logic) */
.sparkle-particle {
    position: fixed;
    pointer-events: none;
    background: #fff;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
    animation: sparkleAnim 0.8s ease-out forwards;
}

@keyframes sparkleAnim {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { opacity: 1; transform: scale(1.5) rotate(90deg); }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    #hero-kids { min-height: 600px; }
    .hero-kids-content { padding: 40px 20px; }
    #interactive-section { margin: 30px 10px; border-radius: 40px; padding: 100px 0; }
}

@media (max-width: 768px) {
    #hero-kids {
        padding-top: 80px;
        height: auto;
        min-height: 80vh;
    }

    .kids-logo-hero {
        max-width: 250px;
        margin-bottom: 20px;
    }

    .hero-kids-title {
        font-size: 2.2rem;
    }

    .hero-kids-text {
        font-size: 1.1rem;
    }
    
    .about-kids-container {
        padding: 30px 20px;
        border-radius: 30px;
        animation: none; /* Disable blob on mobile for space */
    }

    .section-kids { padding: 60px 0; }

    .card-kids { padding: 40px 20px; }
    
    .interactive-elements { gap: 20px; }
    
    .moving-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
        border-radius: 25px;
    }

    #parents-section { border-radius: 50px 50px 0 0; }
}