/* ===========================
   4Kid.Fun Hub Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #6366F1;
    --coloring-color: #FF6B35;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #C084FC 100%);
    --gradient-coloring: linear-gradient(135deg, #FF6B35 0%, #FFB84D 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.brand-icon {
    font-size: 36px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    text-align: center;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-coloring {
    background: var(--gradient-coloring);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-coloring:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #FFF5F7 0%, #F0F4FF 50%, #FFF8F0 100%);
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================
   Apps Section
   =========================== */
.apps-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===========================
   App Cards
   =========================== */
.app-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.english-card {
    border: 3px solid #FF6B9D;
}

.coloring-card {
    border: 3px solid #FF6B35;
}

.app-card-header {
    padding: 40px 40px 20px;
    text-align: center;
}

.app-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.app-card-header h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.app-tagline {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

.app-card-body {
    padding: 0 40px 20px;
    flex-grow: 1;
}

.app-intro {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-icon {
    font-size: 24px;
}

.app-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-badge {
    background: linear-gradient(135deg, #FF6B9D20 0%, #6366F120 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid #FF6B9D50;
}

.category-badge.coloring {
    background: linear-gradient(135deg, #FF6B3520 0%, #FFB84D20 100%);
    border-color: #FF6B3550;
}

.app-card-footer {
    padding: 20px 40px 40px;
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-description {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.value-item {
    text-align: center;
}

.value-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.value-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #9CA3AF;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9CA3AF;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 42px;
    }

    .nav-menu {
        display: none;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .app-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .app-card-header {
        padding: 30px 20px 15px;
    }

    .app-card-body {
        padding: 0 20px 15px;
    }

    .app-card-footer {
        padding: 15px 20px 30px;
    }

    .app-card-header h3 {
        font-size: 26px;
    }
}
