/* Modern English Level Test - Complete CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><text y="15" font-size="20" fill="rgba(255,255,255,0.05)">ABC 123 ✓</text></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.level-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quiz Container */
.quiz-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    margin: -3rem auto 3rem;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

/* Screen Management */
.screen {
    display: none;
    padding: 2rem;
    min-height: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.welcome-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.welcome-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.test-info {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.level-guide {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.level-guide h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.level-items {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.level-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.level-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.level-badge.beginner {
    background: #fef3c7;
    color: #92400e;
}

.level-badge.intermediate {
    background: #dbeafe;
    color: #1e40af;
}

.level-badge.advanced {
    background: #d1fae5;
    color: #065f46;
}

.start-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

.privacy-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Progress Bar */
.progress-container {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.progress-percentage {
    color: var(--primary-color);
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Question Container */
.question-container {
    padding: 1.25rem 1.5rem 0.75rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.question-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-category {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-weight: 600;
}

.options-container {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.option {
    padding: 0.9rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    transition: width 0.3s ease;
}

.option:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.option:hover::before {
    width: 100%;
}

.option-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.option-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #667eea10, #764ba210);
}

.option.selected .option-letter {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-btn.secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.nav-btn.secondary:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-btn.success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Screen */
.results-content {
    text-align: center;
}

.results-animation {
    position: relative;
    margin-bottom: 2rem;
}

.trophy-icon {
    font-size: 5rem;
    animation: trophyBounce 1s ease-in-out, trophy-glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

@keyframes trophyBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes trophy-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9));
    }
}

.results-animation.excellent {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.results-animation.good {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework-burst 1s ease-out forwards;
}

@keyframes firework-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

.celebration-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    animation: celebration-bounce 0.6s ease-out;
    z-index: 10;
}

@keyframes celebration-bounce {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

.results-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.score-display {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-circle {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-ring {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-ring-background {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 14;
}

.score-ring-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 2s ease-in-out;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    animation: score-count 2s ease-out;
}

@keyframes score-count {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.score-total {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1;
    margin-top: 0.25rem;
}

.level-result {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 15px;
    animation: result-slide-in 0.8s ease-out;
}

@keyframes result-slide-in {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.level-result.excellent {
    background: linear-gradient(135deg, #10b98110, #059669 10);
    border: 2px solid #10b98130;
}

.level-result.good {
    background: linear-gradient(135deg, #3b82f610, #1e3a8a10);
    border: 2px solid #3b82f630;
}

.level-badge-large {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: badge-pop 0.6s ease-out 0.3s both;
}

@keyframes badge-pop {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.level-result h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.level-result p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Performance Breakdown */
.performance-breakdown {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    text-align: left;
}

.performance-breakdown h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.category-scores {
    display: grid;
    gap: 1.5rem;
}

.category-score {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.category-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 1s ease-in-out;
    width: 0%;
}

/* Recommendations */
.recommendations {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    text-align: left;
    border: 2px solid var(--border-color);
}

.recommendations h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.recommendation-list {
    display: grid;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.recommendation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recommendation-text {
    flex: 1;
}

.recommendation-text strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.recommendation-text span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    text-align: center;
}

.cta-section h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn.whatsapp {
    background: #25d366;
    color: white;
}

.cta-btn.whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: white;
    color: var(--primary-color);
}

.cta-btn.secondary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    margin: 2rem 0;
}

.share-section h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.share-btn.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.share-btn.whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
}

/* Footer CTA */
.footer-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.footer-cta .cta-btn.primary {
    background: #ff6b6b;
    color: white;
}

.footer-cta .cta-btn.primary:hover {
    background: #ff5252;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 2rem 0 2.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .quiz-container {
        margin: -1.5rem auto 2rem;
        border-radius: 15px;
    }

    .screen {
        padding: 1.25rem 1rem;
        min-height: auto;
    }

    .welcome-icon {
        font-size: 2.5rem;
    }

    .welcome-content h2 {
        font-size: 1.4rem;
    }

    .level-items {
        gap: 0.75rem;
    }

    .progress-container {
        padding: 0.75rem 1rem;
    }

    .progress-info {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .question-container {
        padding: 1rem 1rem 0.5rem;
    }

    .question-header {
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }

    .question-number {
        font-size: 0.8rem;
    }

    .question-category {
        padding: 0.3rem 0.75rem;
        font-size: 0.75rem;
    }

    .question-text {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .options-container {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .option {
        padding: 0.75rem 1rem;
    }

    .option-letter {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .option-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .quiz-navigation {
        padding: 0.75rem 1rem 1rem;
        gap: 0.75rem;
    }

    .nav-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .score-circle {
        width: 180px;
        height: 180px;
    }

    .score-ring-background,
    .score-ring-progress {
        stroke-width: 12;
    }

    .score-number {
        font-size: 2.8rem;
    }

    .score-total {
        font-size: 1.5rem;
    }

    .trophy-icon {
        font-size: 3.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .share-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .screen {
        padding: 1rem 0.75rem;
    }

    .progress-container {
        padding: 0.6rem 0.75rem;
    }

    .question-container {
        padding: 0.75rem 0.75rem 0.5rem;
    }

    .question-text {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .options-container {
        gap: 0.5rem;
    }

    .option {
        padding: 0.65rem 0.85rem;
    }

    .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .option-text {
        font-size: 0.85rem;
    }

    .quiz-navigation {
        padding: 0.6rem 0.75rem 0.85rem;
        gap: 0.6rem;
    }

    .nav-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }

    .performance-breakdown,
    .recommendations,
    .cta-section {
        padding: 1.25rem;
    }

    .footer-cta h2 {
        font-size: 1.4rem;
    }

    .footer-cta p {
        font-size: 0.95rem;
    }
}

/* Animations and Transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option {
    animation: slideIn 0.3s ease-out forwards;
}

.option:nth-child(1) { animation-delay: 0.1s; }
.option:nth-child(2) { animation-delay: 0.2s; }
.option:nth-child(3) { animation-delay: 0.3s; }
.option:nth-child(4) { animation-delay: 0.4s; }

/* Print Styles */
@media print {
    .hero-section,
    .quiz-navigation,
    .cta-section,
    .share-section,
    .footer-cta {
        display: none;
    }

    .quiz-container {
        box-shadow: none;
        margin: 0;
    }
}
