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

:root {
    --primary-color: #FFB347;
    --primary-dark: #FF9800;
    --secondary-color: #A1C4FD;
    --accent-pink: #FF9A9E;
    --accent-purple: #CBAACB;
    --accent-green: #98FB98;
    --text-color: #5C4033;
    --bg-color: #FDFBF7;
    --white: #FFFFFF;

    --border-radius-sm: 16px;
    --border-radius-md: 24px;
    --border-radius-lg: 32px;
    --border-radius-pill: 50px;

    --shadow-soft: 0 8px 16px rgba(92, 64, 51, 0.08);
    --shadow-button: 0 6px 0 var(--primary-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #FDFBF7 0%, #FFF0F5 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cloud Background Decorations */
.cloud {
    position: absolute;
    background: var(--white);
    border-radius: 50px;
    z-index: -1;
    opacity: 0.8;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 50%;
}

.cloud1 {
    width: 150px;
    height: 50px;
    top: 50px;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

.cloud1::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 20px;
}

.cloud1::after {
    width: 50px;
    height: 50px;
    top: -20px;
    right: 20px;
}

.cloud2 {
    width: 200px;
    height: 60px;
    top: 150px;
    right: 5%;
    animation: float 12s ease-in-out infinite reverse;
}

.cloud2::before {
    width: 90px;
    height: 90px;
    top: -45px;
    left: 30px;
}

.cloud2::after {
    width: 60px;
    height: 60px;
    top: -25px;
    right: 30px;
}

/* Background Bees */
.bg-bee {
    position: absolute;
    width: 100px;
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
    animation: floatBee 6s infinite ease-in-out;
}

.bg-bee-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    transform: scaleX(-1);
}

.bg-bee-2 {
    top: 35%;
    right: 10%;
    width: 120px;
    animation-delay: 1.5s;
}

.bg-bee-3 {
    top: 60%;
    left: 15%;
    width: 80px;
    animation-delay: 3s;
    transform: scaleX(-1);
}

.bg-bee-4 {
    top: 85%;
    right: 8%;
    width: 150px;
    animation-delay: 4.5s;
}

@keyframes floatBee {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--primary-dark);
}

.btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-secondary {
    background-color: var(--accent-pink);
    box-shadow: 0 6px 0 #E07A7E;
}

.btn-secondary:hover {
    box-shadow: 0 8px 0 #E07A7E;
}

.btn-secondary:active {
    box-shadow: 0 2px 0 #E07A7E;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid #F0F0F0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 64px;
    width: auto;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Layout Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 0 5%;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 span {
    color: var(--accent-pink);
}

.hero-content h1 span.pink {
    color: #FF6B9E;
}

.hero-content h1 span.blue {
    color: #4AC1FF;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #666;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 8px solid var(--white);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Features Section */
.features {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 80px 40px;
    margin: 40px 5%;
    box-shadow: var(--shadow-soft);
    border: 4px solid #F5F5F5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius-md);
    background-color: #FAFAFA;
    border: 3px solid #F0F0F0;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 0 var(--primary-dark);
}

.feature-card:nth-child(2) .feature-icon {
    background-color: var(--accent-pink);
    box-shadow: 0 4px 0 #E07A7E;
}

.feature-card:nth-child(3) .feature-icon {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 0 #8BA6D7;
}

.feature-card h3 {
    font-size: 1.5rem;
}

/* Categories Section */
.categories {
    padding: 80px 5%;
    text-align: center;
}

.category-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.category-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    width: 300px;
    box-shadow: var(--shadow-soft);
    border: 6px solid #FFF;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
}

.category-card.alphabet {
    background-color: #FF6B9E;
    border-color: #FFD166;
    color: var(--white);
}

.category-card.numbers {
    background-color: #4AC1FF;
    border-color: #FF9F1C;
    color: var(--white);
}

.category-card.alphabet h3,
.category-card.numbers h3 {
    color: var(--white);
}

.category-card:hover {
    transform: scale(1.05);
}

.category-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #F0F0F0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials {
    background-color: #FFF0F5;
    border-radius: var(--border-radius-lg);
    padding: 80px 40px;
    margin: 40px 5%;
    box-shadow: var(--shadow-soft);
    border: 4px solid #FFE4E1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px dashed #FFB6C1;
    text-align: center;
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0;
}

/* Bottom CTA Section */
.bottom-cta {
    text-align: center;
    padding: 80px 20px;
    margin: 60px 5% 0;
    background: linear-gradient(135deg, #A1C4FD 0%, #C2E9FB 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 4px solid #FFF;
}

.bottom-cta h2 {
    color: var(--text-color);
}

.bottom-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.center-cta {
    justify-content: center;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 30px 5% 10px;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 64px;
    width: auto;
    border-radius: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-links a {
    color: #CCC;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #999;
}

/* Page Specific (Privacy / Terms) */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}

.page-header h1 {
    color: var(--white);
    text-shadow: none;
    margin: 0;
}

.page-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    margin: -40px auto 60px;
    max-width: 900px;
    box-shadow: var(--shadow-soft);
}

.page-content h2 {
    text-align: left;
    color: var(--primary-dark);
    margin-top: 30px;
    font-size: 1.8rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    color: #555;
}

.page-content li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .cta-group {
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .navbar .btn {
        display: none;
    }

    .navbar {
        justify-content: center;
    }

    /* Could add a hamburger menu if needed */
}

@media (max-width: 600px) {
    .page-content {
        padding: 30px;
        margin-top: -20px;
    }

    .cta-group {
        flex-direction: column;
    }

    .category-card {
        width: 100%;
    }
}