/* Base Reset & Variables */
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --text-primary: #2b2d42;
    --text-secondary: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, 
                 Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Start Screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
    padding: 1rem;
}

.start-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 1.25rem;
    object-fit: contain;
}

.logo h1 {
    color: white;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin: 0;
}

.start-text {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    cursor: pointer;
    animation: textPulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: var(--transition);
}

.start-text:hover {
    border-color: white;
    transform: translateY(-3px);
}

@keyframes textPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Quiz Container */
.quiz-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    opacity: 1;
    transition: var(--transition);
    margin: 1rem;
}

.quiz-container.hidden {
    transform: translateY(20px);
    opacity: 0;
}

.quiz-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: gradientRotate 8s infinite linear;
}

@keyframes gradientRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 0.5rem;
    position: relative;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.question-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Question & Options */
.question-container {
    padding: 1.5rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-text {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 500;
    line-height: 1.4;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.option-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    color: var(--dark);
    width: 100%;
}

.option-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.option-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.option-btn.correct {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.option-btn.incorrect {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem 1.5rem;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-next {
    background: var(--primary);
    color: white;
}

.btn-next:hover:not(:disabled) {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 12, 163, 0.2);
}

.btn-prev {
    background: white;
    border: 2px solid #e9ecef;
    color: var(--dark);
}

.btn-prev:hover:not(:disabled) {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Results */
.result-container {
    padding: 2rem;
    text-align: center;
    display: none;
}

.result-container.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.result-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.score-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.percentage {
    font-size: clamp(2.5rem, 8vw, 3rem);
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 1.25rem 0;
}

.iq-description {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-restart {
    background: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 1.25
}
/* Share Buttons */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 50px;
    color: white;
    flex: 1 1 auto;
    min-width: 150px;
}

.btn-facebook {
    background: #1877f2;
}

.btn-whatsapp {
    background: #25d366;
}

.btn-twitter {
    background: #1da1f2;
}

.btn-share:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Icons */
.icon-facebook::before {
    content: "f";
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.icon-whatsapp::before {
    content: "✓";
    font-family: Arial, sans-serif;
}

.icon-twitter::before {
    content: "𝕏";
    font-family: Arial, sans-serif;
    font-weight: bold;
}
.controls {
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem 1.5rem;
    gap: 1rem;
    transition: opacity 0.3s ease;
}