/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fredoka', 'Noto Sans Devanagari', sans-serif;
    background: linear-gradient(135deg, #FFE5E5 0%, #E5F7FF 50%, #E5FFE5 100%);
    color: #333;
    line-height: 1.6;
}

/* ===== HEADER STYLES ===== */
.main-header {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA500 50%, #00D4FF 100%);
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    animation: bounce 2s infinite;
}

.logo h1 {
    margin: 0;
    font-size: 26px;
}

.logo svg {
    animation: rotate 3s linear infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    background: white;
    color: #FF6B9D;
    transform: scale(1.05);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-box {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF00FF 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
    animation: slideInDown 0.8s ease;
}

.welcome-box h2 {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.welcome-box p {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.95;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.progress-section h3 {
    font-size: 24px;
    color: #FF6B9D;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #FF6B9D, #FFA500);
    border-radius: 15px;
    transition: width 0.5s ease;
}

#progressText {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B9D;
}

/* ===== GRID LAYOUTS ===== */
.grammar-grid,
.lessons-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.lessons-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ===== CHAPTER CARDS ===== */
.chapter-card,
.lesson-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.chapter-card:hover,
.lesson-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.chapter-card:hover::before {
    left: 100%;
}

/* Card Colors */
.card-pink {
    background: linear-gradient(135deg, #FF6B9D, #FF1493);
}

.card-orange {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.card-green {
    background: linear-gradient(135deg, #00C853, #00AA44);
}

.card-blue {
    background: linear-gradient(135deg, #00D4FF, #0099CC);
}

.card-purple {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.card-yellow {
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #333;
}

.card-cyan {
    background: linear-gradient(135deg, #00CED1, #00B0B0);
}

.card-magenta {
    background: linear-gradient(135deg, #FF00FF, #FF0080);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.chapter-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.chapter-card p {
    font-size: 12px;
    opacity: 0.95;
}

.lesson-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.lesson-card p {
    font-size: 13px;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

/* ===== SECTIONS ===== */
.chapters-section,
.lessons-section,
.features-section,
.instructions-section {
    margin-bottom: 50px;
}

.chapters-section h2,
.lessons-section h2,
.features-section h2,
.instructions-section h2 {
    font-size: 32px;
    color: #FF6B9D;
    margin-bottom: 10px;
    text-align: center;
    animation: slideInDown 0.8s ease;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.feature-box h4 {
    color: #FF6B9D;
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-box p {
    color: #666;
    font-size: 14px;
}

/* ===== INSTRUCTIONS SECTION ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #FF6B9D;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.step-number {
    font-size: 32px;
    margin-bottom: 10px;
    display: inline-block;
}

.step h4 {
    color: #FF6B9D;
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    color: #666;
    font-size: 13px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #FF6B9D, #FFA500, #00D4FF);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 5px 0;
    font-weight: 600;
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .welcome-box h2 {
        font-size: 32px;
    }

    .welcome-box p {
        font-size: 16px;
    }

    .grammar-grid,
    .lessons-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }

    .lessons-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .chapter-card,
    .lesson-card {
        min-height: 130px;
        padding: 15px;
    }

    .card-icon {
        font-size: 36px;
    }

    .chapter-card h3 {
        font-size: 13px;
    }

    .chapters-section h2,
    .lessons-section h2,
    .features-section h2,
    .instructions-section h2 {
        font-size: 24px;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    .welcome-box {
        padding: 20px;
    }

    .welcome-box h2 {
        font-size: 24px;
    }

    .grammar-grid,
    .lessons-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .chapter-card,
    .lesson-card {
        min-height: 100px;
        padding: 10px;
    }

    .card-icon {
        font-size: 28px;
    }

    .chapter-card h3 {
        font-size: 12px;
    }

    .chapter-card p {
        font-size: 10px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}
