/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --heading-font: 'Nunito', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --accent-font: 'Montserrat', sans-serif;
}

@media (max-width: 823px) {
    header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: #ffffff;
        overflow: hidden;
        transition: height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 999;
    }

    header nav.active {
        display: block;
        height: 100vh;
        opacity: 1;
        padding: 80px 20px 20px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 15px 0;
    }

    header nav ul li a {
        font-size: 1.2rem;
        color: #333;
    }
}

/* Benefits Section - Importance of Coding for Kids */
.benefits {
    padding: 80px 0;
    background: rgba(202, 23, 38, 0.05);
}

.benefits-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.benefits-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.benefits-img:hover {
    transform: scale(1.05);
}

.benefits-content {
    flex: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(162, 74, 163, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(162, 74, 163, 0.15);
    border-color: #a24aa3;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #a24aa3, #000000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(162, 74, 163, 0.3);
}

.benefit-card h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333333;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: #ffffff;
}

.how-it-works .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #a24aa3, #000000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(162, 74, 163, 0.3);
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(162, 74, 163, 0.4);
}

.step-content h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333333;
}

.step-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Animation classes */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .benefits-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .benefits-image {
        order: 1;
    }
    
    .benefits-content {
        order: 2;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .steps-container {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .step {
        flex: 1 1 calc(50% - 30px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .benefits,
    .how-it-works {
        padding: 60px 0;
    }
    
    .step {
        flex: 1 1 100%;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .benefit-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .steps-container {
        padding: 0 10px;
    }
}
