/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    /* Playful Kids Palette */
    --primary-color: #FF6B6B;
    /* Coral Red */
    --primary-dark: #EE5253;
    --secondary-color: #4ECDC4;
    /* Teal */
    --accent-color: #FFE66D;
    /* Sunny Yellow */
    --info-color: #1A535C;
    /* Dark Teal */
    --bg-light: #FFFDF7;
    /* Creamy White */
    --bg-accent: #F7FFF7;
    /* Minty White */
    --text-main: #2D3436;
    --text-muted: #636E72;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);

    /* Playful Shadows & Borders */
    --shadow-sm: 0 4px 0 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 0 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 0 0 rgba(0, 0, 0, 0.1);
    --border-radius-lg: 30px;
    --border-radius-xl: 50px;
    --transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy transition */
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    background-image: radial-gradient(#FF6B6B 0.5px, transparent 0.5px), radial-gradient(#4ECDC4 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    color: var(--info-color);
}

/* Navbar */
.navbar {
    background: var(--white) !important;
    border-bottom: 4px solid var(--accent-color);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    text-shadow: 2px 2px 0px var(--accent-color);
}

.nav-link {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-main) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    border-radius: 20px;
    padding: 0.5rem 1rem !important;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: var(--info-color) !important;
    transform: rotate(2deg) scale(1.1);
}

/* Buttons */
.btn {
    font-family: 'Fredoka', sans-serif;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    top: 0;
}

.btn:active {
    top: 4px;
    box-shadow: none !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    box-shadow: 0 5px 0 0 #D63031;
    /* Hard shadow for 3D effect */
    white-space: nowrap;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 0 0 #D63031;
}

/* Hero Section */
.hero-section {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 253, 247, 0.8) 100%);
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50% 100px;
    border-bottom-right-radius: 50% 100px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--info-color);
    text-shadow: 3px 3px 0px var(--accent-color);
}

.badge {
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.5px;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    border: 3px solid var(--bg-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Colorful Card Borders */
.col-md-4:nth-child(1) .feature-card {
    border-color: var(--primary-color);
}

.col-md-4:nth-child(2) .feature-card {
    border-color: var(--secondary-color);
}

.col-md-4:nth-child(3) .feature-card {
    border-color: var(--accent-color);
}

.feature-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.5);
}

.col-md-4:nth-child(1) .feature-icon {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
}

.col-md-4:nth-child(2) .feature-icon {
    background-color: rgba(78, 205, 196, 0.1);
    color: var(--secondary-color);
}

.col-md-4:nth-child(3) .feature-icon {
    background-color: rgba(255, 230, 109, 0.2);
    color: #FDCB6E;
}

/* Image Styling */
.course-image,
#hero-img,
.img-fluid {
    border-radius: var(--border-radius-lg);
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.course-image:hover,
#hero-img:hover {
    transform: rotate(-2deg) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 1rem;
    border: 2px dashed var(--secondary-color);
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: 'Fredoka', sans-serif;
    font-size: 100px;
    color: var(--accent-color);
    opacity: 0.3;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--info-color);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 10px solid var(--accent-color);
    border-radius: 50px 50px 0 0;
    margin-top: 50px;
}

.footer-link {
    color: #81ecec;
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Fredoka', sans-serif;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1.5rem;
        border-radius: 20px;
        margin-top: 15px;
        border: 2px solid var(--accent-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-link {
        margin: 5px 0;
        padding: 10px !important;
        border-radius: 10px;
    }

    .nav-link:hover {
        background-color: var(--accent-color);
        transform: scale(1.02);
    }

    .btn-primary-custom {
        width: 100%;
        margin-top: 10px;
        margin-left: 0 !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        padding-top: 120px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        border-radius: 0 0 30px 30px;
    }
}