/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    padding: 30px 0;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

header h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/* Navigation and Buttons */
.home-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.btn {
    background: linear-gradient(45deg, #ffca28, #ffd54f);
    color: #333;
    padding: 20px 30px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffd54f, #ffeb3b);
}

.btn:active {
    transform: translateY(-2px);
}

/* Back Link */
.back-link {
    display: inline-block;
    margin: 20px;
    background: linear-gradient(45deg, #81c784, #a5d6a7);
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Content Sections */
section {
    background: rgba(255,255,255,0.95);
    margin: 30px auto;
    max-width: 900px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

section h2, section h3 {
    color: #4a4a4a;
    margin-bottom: 20px;
    text-align: center;
}

section h2 {
    font-size: 2.2em;
    color: #ff6b6b;
}

section h3 {
    font-size: 1.6em;
    color: #4ecdc4;
}

/* Map Styles */
#map {
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* Quiz Styles */
.quiz-container {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
}

.quiz-question {
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.quiz-option {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: bold;
}

.quiz-option:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.quiz-option.correct {
    background: #4caf50;
    border-color: #4caf50;
}

.quiz-option.incorrect {
    background: #f44336;
    border-color: #f44336;
}

/* Progress Bar */
.progress-container {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 5px;
    margin: 20px 0;
}

.progress-bar {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    height: 20px;
    border-radius: 8px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

/* Score Display */
.score-display {
    background: linear-gradient(45deg, #ff9800, #ffc107);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Input Styles */
input[type="text"], input[type="number"] {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    border: 3px solid #ddd;
    border-radius: 10px;
    font-size: 1.2em;
    font-family: inherit;
    margin: 10px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.activity-card {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

/* Hindi Word Styles */
.hword {
    cursor: pointer;
    color: #e91e63;
    font-weight: bold;
    font-size: 1.3em;
    padding: 10px;
    border-radius: 8px;
    background: rgba(233, 30, 99, 0.1);
    margin: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.hword:hover {
    background: rgba(233, 30, 99, 0.2);
    transform: scale(1.05);
}

/* Vocabulary Cards */
.vocab-card {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.vocab-word {
    font-size: 1.5em;
    font-weight: bold;
}

.vocab-meaning {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Utility Classes */
.hidden {
    display: none;
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .home-buttons {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    section {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 1s;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Country Info Card */
.country-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.country-flag {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin: 15px 0;
}

/* Math Problem Display */
.math-problem {
    background: linear-gradient(45deg, #ff9800, #ffc107);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* English Activity Cards */
.english-activity {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Audio Controls */
audio {
    width: 100%;
    margin: 10px 0;
    border-radius: 10px;
}

/* Letter Display */
.letter-display {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.letter-display h3 {
    font-size: 3em;
    margin-bottom: 15px;
    color: white;
}