:root {
    --primary: #D4AF37; /* Elegant Gold */
    --primary-hover: #F3E5AB;
    --bg-dark: #0B1021; /* Deep Navy */
    --card-bg: rgba(20, 26, 43, 0.6);
    --text-main: #F8F9FA;
    --text-muted: #A0AEC0;
    --border-color: rgba(212, 175, 55, 0.2);
    --accent: #E6C2C0; /* Soft Rose */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Atmosphere */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 15s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #4A90E2; /* Subtle blue touch */
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Layout Elements */
.quiz-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.quiz-screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.quiz-screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFade 0.6s forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* Typography */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 400;
}

.highlight {
    color: var(--primary);
    font-style: italic;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.sub-title-italic {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 400;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

.question-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Buttons and Options */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #B8860B);
    color: #111;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
}

.icon-right {
    transition: transform 0.3s ease;
}

.btn:hover .icon-right {
    transform: translateX(4px);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.option-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s ease;
}

.option-btn:hover::after {
    transform: translateX(100%);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 20%;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 10px var(--primary);
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results */
.result-title {
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.result-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-description {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 300;
}

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 20px 0;
}

.result-note {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .content-wrapper {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .result-title {
        font-size: 2.2rem;
    }
    
    .option-btn {
        padding: 16px;
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        width: 100%;
    }
}
