body {
    font-family: 'Segoe UI', sans-serif;
}

.home-bg, .exam-bg, .result-bg {
    background: linear-gradient(135deg, #001f54, #004aad, #00a6ff);
    min-height: 100vh;
}

.card {
    animation: fadeUp 0.8s ease;
}

.timer-box {
    background: #ffffff;
    padding: 15px 0;
    font-size: 18px;
}

#timer {
    background: #dc3545;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: bold;
}

.question-card {
    transition: 0.3s;
}

.question-card:hover {
    transform: translateY(-4px);
}

.options label {
    display: block;
    background: #f8f9fa;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.options label:hover {
    background: #eaf4ff;
    border-color: #007bff;
}

.options input {
    margin-right: 10px;
}

.result-card {
    background: #ffffff;
    animation: zoomIn 0.8s ease;
}

.score-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #004aad, #00c6ff);
    color: #fff;
    border-radius: 50%;
    font-size: 38px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.8s infinite;
}

.balloons span {
    position: fixed;
    bottom: -50px;
    font-size: 40px;
    animation: floatUp 8s linear infinite;
}

.balloons span:nth-child(1) { left: 10%; animation-delay: 0s; }
.balloons span:nth-child(2) { left: 30%; animation-delay: 2s; }
.balloons span:nth-child(3) { left: 50%; animation-delay: 4s; }
.balloons span:nth-child(4) { left: 70%; animation-delay: 1s; }
.balloons span:nth-child(5) { left: 90%; animation-delay: 3s; }

@keyframes floatUp {
    0% { bottom: -60px; opacity: 0; }
    20% { opacity: 1; }
    100% { bottom: 110%; opacity: 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 74, 173, 0.5); }
    70% { box-shadow: 0 0 0 25px rgba(0, 74, 173, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 74, 173, 0); }
}

@media(max-width: 576px) {
    .result-card {
        padding: 25px !important;
    }

    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 30px;
    }

    .timer-box {
        font-size: 15px;
    }
}