@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Dancing+Script:wght@700&display=swap');

:root {
    --primary: #10b981;
    /* Emerald */
    --accent: #8b5cf6;
    /* Violet */
    --danger: #ef4444;
    --success: #22c55e;
    --dark-bg: #0b0f1a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    overflow-x: hidden;
}

.quiz-container {
    width: 90%;
    max-width: 600px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.4s ease;
}

.question-box {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.option-btn.correct {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--success);
    color: #fff;
}

.option-btn.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: #fff;
}

.result-screen {
    text-align: center;
    display: none;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    font-size: 2.5rem;
    font-weight: 800;
}

.btn-restart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.btn-restart:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

.note-from-pratik {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #fff;
    margin-top: 2rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}