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

 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}


.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
    width: 90px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}



.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}


.section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.section.hidden {
    display: none;
}


.quiz-card {
    background: linear-gradient(145deg, #72c1ee 0%, #4bf0f0 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2f51ec 0%, #a25debaf 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.quiz-header-card {
    text-align: center;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.quiz-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.quiz-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quiz-description {
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
    max-width: 450px;
    margin: 0 auto;
}


.quiz-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 25px 30px;
    background: white;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.363);
    flex-shrink: 0;
}

.feature-content h3 {
    margin: 0 0 3px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.feature-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}


.quiz-stats-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    font-weight: 500;
}

.stat-icon {
    font-size: 1rem;
}


.quiz-actions {
    text-align: center;
    padding: 30px;
    background: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 240px;
    position: relative;
    overflow: hidden;
}

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

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

.btn-icon {
    font-size: 1.2rem;
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-large:hover .btn-arrow {
    transform: translateX(4px);
}

.quiz-note {
    margin-top: 15px;
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}


@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-10px,0);
    }
    70% {
        transform: translate3d(0,-5px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}


.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: #29badf;
    color: #333;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #8bb7e4;
    transform: translateY(-2px);
}

#start-btn {
    display: block;
    margin: 40px auto;
    animation: fadeInUp 0.8s ease 0.6s both;
}


.quiz-header {
    margin-bottom: 30px;
}

.progress-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.timer {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.timer.warning {
    color: #e74c3c;
    animation: pulse 1s infinite;
}


.question-container {
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease;
}

#question-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.5;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.option-btn {
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateY(-2px);
}

.option-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.option-btn.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.option-btn.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

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


.result-animation {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.result-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

.result-animation h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.score-display {
    margin: 40px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    animation: scaleIn 0.8s ease 0.3s both;
}

.score-circle span {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

#score-message {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.result-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}


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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-20px,0);
    }
    70% {
        transform: translate3d(0,-10px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-header {
        padding: 15px 20px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .quiz-card {
        max-width: 100%;
    }
    
    .quiz-header-card {
        padding: 25px 20px 15px;
    }
    
    .quiz-title {
        font-size: 1.7rem;
    }
    
    .quiz-description {
        font-size: 0.95rem;
    }
    
    .quiz-features {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 12px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .quiz-stats-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px 20px;
        justify-content: center;
    }
    
    .quiz-actions {
        padding: 25px 20px;
    }
    
    .btn-large {
        width: 100%;
        min-width: auto;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 0;
        margin: 15px 0;
    }
    
    .quiz-header-card {
        padding: 20px 15px 10px;
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .quiz-features {
        padding: 15px;
    }
    
    .feature-item {
        padding: 10px;
        gap: 8px;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .feature-content h3 {
        font-size: 0.9rem;
    }
    
    .feature-content p {
        font-size: 0.8rem;
    }
    
    .quiz-stats-bar {
        padding: 12px 15px;
        gap: 8px;
    }
    
    .stat-badge {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .quiz-actions {
        padding: 20px 15px;
    }
    
    .quiz-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
}