:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary-custom {
    background: var(--primary-gradient);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a"><stop offset="0" stop-color="%23ffffff" stop-opacity=".1"/><stop offset="1" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="600" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: -2s; }
.floating-icon:nth-child(2) { top: 30%; right: 15%; animation-delay: -4s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: -1s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 10%; animation-delay: -3s; }

/* Hero Carousel */
.hero-carousel-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.carousel-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.kids-learning {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="books" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="40" height="40" fill="%23ffffff" opacity="0.1"/><rect x="5" y="5" width="30" height="30" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="400" height="400" fill="url(%23books)"/><circle cx="100" cy="100" r="20" fill="%23ffffff" opacity="0.1"/><circle cx="300" cy="200" r="30" fill="%23ffffff" opacity="0.08"/><circle cx="200" cy="300" r="25" fill="%23ffffff" opacity="0.06"/></svg>');
}

.kids-coding {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="code" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="30" height="30" fill="%23ffffff" opacity="0.1"/><rect x="5" y="5" width="20" height="20" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="400" height="400" fill="url(%23code)"/><rect x="50" y="50" width="60" height="40" fill="%23ffffff" opacity="0.1" rx="5"/><rect x="150" y="80" width="80" height="40" fill="%23ffffff" opacity="0.08" rx="5"/><rect x="250" y="60" width="70" height="40" fill="%23ffffff" opacity="0.06" rx="5"/></svg>');
}

.kids-art {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="art" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="20" fill="%23ffffff" opacity="0.1"/><circle cx="25" cy="25" r="10" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="400" height="400" fill="url(%23art)"/><circle cx="100" cy="100" r="30" fill="%23ffffff" opacity="0.1"/><circle cx="300" cy="150" r="25" fill="%23ffffff" opacity="0.08"/><circle cx="200" cy="250" r="35" fill="%23ffffff" opacity="0.06"/></svg>');
}

.kids-science {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="science" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="40" height="40" fill="%23ffffff" opacity="0.1"/><polygon points="20,5 35,15 20,25 5,15" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="400" height="400" fill="url(%23science)"/><polygon points="100,80 150,120 100,160 50,120" fill="%23ffffff" opacity="0.1"/><polygon points="250,100 300,140 250,180 200,140" fill="%23ffffff" opacity="0.08"/></svg>');
}

.kids-math {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="math" x="0" y="0" width="35" height="35" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="35" height="35" fill="%23ffffff" opacity="0.1"/><text x="17.5" y="20" text-anchor="middle" fill="%23ffffff" opacity="0.05" font-size="12">+</text></pattern></defs><rect width="400" height="400" fill="url(%23math)"/><text x="100" y="120" text-anchor="middle" fill="%23ffffff" opacity="0.1" font-size="60">+</text><text x="300" y="180" text-anchor="middle" fill="%23ffffff" opacity="0.08" font-size="50">×</text><text x="200" y="280" text-anchor="middle" fill="%23ffffff" opacity="0.06" font-size="45">÷</text></svg>');
}

.image-overlay {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.image-overlay i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.image-overlay h4 {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.icon-gradient-1 { background: var(--primary-gradient); }
.icon-gradient-2 { background: var(--secondary-gradient); }
.icon-gradient-3 { background: var(--accent-gradient); }

/* Age Groups Section */
.age-groups {
    padding: 80px 0;
    background: white;
}

.age-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.age-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.age-card.primary { border-top-color: #667eea; }
.age-card.secondary { border-top-color: #f093fb; }
.age-card.accent { border-top-color: #4facfe; }

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-light);
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--primary-gradient);
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-align: center;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 40px 0 20px;
}

.footer h5 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
}

.footer a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: white;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer .d-flex a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer .d-flex a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer hr {
    border-color: #4a5568;
    margin: 2rem 0 1rem;
}

.footer .text-muted {
    color: #a0aec0 !important;
}

.footer .row:last-child a {
    display: inline;
    margin-bottom: 0;
    margin-right: 1rem;
}

.footer .row:last-child .text-md-end a:last-child {
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-outline-light-custom {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .floating-icon {
        display: none;
    }
    
    .hero-carousel-container {
        margin-top: 2rem;
    }
    
    .carousel-image {
        height: 300px;
    }
    
    .image-overlay i {
        font-size: 3rem;
    }
    
    .image-overlay h4 {
        font-size: 1.2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}