/* Additional styles for enhanced homepage */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: #8e8e93;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Features Grid */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2.5rem !important;
}

.feature-icon div {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border-radius: 20px;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
}

/* Education Section */
.education {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.education-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.education-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.education-subtitle {
    font-size: 1.125rem;
    color: #8e8e93;
    margin-bottom: 3rem;
}

.education-benefits {
    margin-bottom: 3rem;
}

.benefit {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border-radius: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.benefit-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: #48484a;
    line-height: 1.6;
}

.age-groups h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 1rem;
}

.age-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.age-tag {
    background: #007AFF;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Code Example Visual */
.education-visual {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.code-example {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-direction: column;
}

.visual-block {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.for-block {
    position: relative;
    padding-bottom: 2rem;
}

.nested-area {
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.nested-area .visual-block {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.arrow {
    font-size: 2rem;
    color: #007AFF;
    font-weight: bold;
}

.code-text {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.code-text pre {
    margin: 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #495057;
}

/* Enhanced Footer */
.footer {
    background: #1c1c1e !important;
    color: white;
    padding: 3rem 2rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

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

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #007AFF;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        gap: 2rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .education-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .code-example {
        flex-direction: column;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
}
