/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
    color: #FFD700;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.admin-link {
    background: #FF6B6B;
    color: white;
}

.admin-link:hover {
    background: #FF5252;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 3rem;
    color: #2E7D32;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Laptop Demo */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.3s ease;
}

.laptop:hover {
    transform: perspective(1000px) rotateY(-10deg);
}

.laptop-screen {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.typing-demo {
    text-align: center;
}

.typing-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.cursor {
    font-size: 1.5rem;
    color: #4CAF50;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.laptop-keyboard {
    margin-top: 20px;
    text-align: center;
}

.key {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Section Styles */
.lessons-section,
.exercises-section,
.progress-section {
    margin-bottom: 4rem;
}

.lessons-section h2,
.exercises-section h2,
.progress-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2E7D32;
    margin-bottom: 2rem;
}

/* Grid Layouts */
.lessons-grid,
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Card Styles */
.lesson-card,
.exercise-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.lesson-card:hover,
.exercise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.lesson-icon,
.exercise-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.lesson-icon i,
.exercise-icon i {
    font-size: 3rem;
    color: #4CAF50;
}

.lesson-card h3,
.exercise-card h3 {
    font-size: 1.5rem;
    color: #2E7D32;
    margin-bottom: 1rem;
    text-align: center;
}

.lesson-card p,
.exercise-card p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.lesson-meta,
.exercise-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.difficulty,
.category {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.difficulty.beginner {
    background: #E8F5E8;
    color: #2E7D32;
}

.difficulty.intermediate {
    background: #FFF3E0;
    color: #F57C00;
}

.difficulty.advanced {
    background: #FFEBEE;
    color: #D32F2F;
}

.duration,
.words {
    color: #666;
    font-size: 0.9rem;
}

/* Progress Section */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FF6B6B;
}

/* Footer */
.footer {
    background: #2E7D32;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 2rem;
}

/* Typing Interface */
.typing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2E7D32;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin: 0 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
}

.stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.typing-area {
    margin-bottom: 2rem;
}

.text-display {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    min-height: 150px;
    border: 2px solid #e9ecef;
}

#typing-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    resize: none;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

#typing-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.keyboard-hint {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.hint-text {
    color: #666;
    margin-bottom: 1rem;
}

.key-highlight {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lessons-grid,
    .exercises-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .typing-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .lesson-card,
    .exercise-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
