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

:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --transition-speed: 0.3s;
}

.personality-quiz-container {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background: var(--bg-gradient);
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
}

.personality-quiz-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.quiz-content {
    position: relative;
    z-index: 1;
}

.quiz-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quiz-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.start-btn, .choice-btn, .restart-btn {
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    display: inline-block;
}

.start-btn, .restart-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.start-btn:hover, .restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.question-container {
    display: none;
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.choices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.choice-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    text-align: left;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

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

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

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

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

.result-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffd700;
}

.result-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
