* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Sacred Background Elements */
.sacred-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.mandala {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 2px) center/40px 40px,
               radial-gradient(circle, rgba(118, 75, 162, 0.2) 1px, transparent 2px) center/80px 80px;
    animation: mandalaRotate 60s linear infinite;
    border-radius: 50%;
}

@keyframes mandalaRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%),
        linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: lightMove 15s ease-in-out infinite;
}

@keyframes lightMove {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(20px); }
}

.floating-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: floatUp 20s linear infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Main Content */
.brand-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.brand-logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Back to Home Button */
.back-to-home-container {
    text-align: left;
    margin-bottom: 30px;
}

.back-to-home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-to-home-button:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(118, 75, 162, 0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.back-to-home-button:active {
    transform: translateX(-3px);
}

/* Quiz Intro Section */
.quiz-intro {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border: 3px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.intro-title {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.intro-text {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

/* Quiz Section */
.quiz-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border: 3px solid rgba(118, 75, 162, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-section {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Question Box */
.question-box {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(118, 75, 162, 0.2);
}

.question-text {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

/* Options Container */
.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.option-button {
    text-align: left;
    padding: 20px 25px;
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    border: 2px solid rgba(118, 75, 162, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #555;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
}

.option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: rgba(118, 75, 162, 0.4);
}

.option-button.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.4);
}

.option-button:active {
    transform: translateY(-1px);
}

/* Quiz Footer */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.question-counter {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.next-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
    transition: all 0.3s ease;
}

.next-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(118, 75, 162, 0.4);
}

.next-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.next-button:active:not(:disabled) {
    transform: translateY(-1px);
}

/* Results Section */
.results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border: 3px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-title {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

/* Element Display */
.element-display {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid rgba(118, 75, 162, 0.2);
    text-align: center;
}

.element-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.element-emoji {
    font-size: 48px;
    margin-bottom: 10px;
}

.element-name {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    font-family: 'Playfair Display', serif;
}

.element-description {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Interpretation Box */
.interpretation-box {
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 165, 0, 0.2);
    text-align: center;
}

.interpretation-title {
    font-size: 24px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.interpretation-text {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* Healing Block */
.healing-block {
    background: linear-gradient(135deg, #f0fff8, #ffffff);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
    text-align: center;
}

.healing-title {
    font-size: 24px;
    font-weight: 700;
    color: #2E8B57;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.healing-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.healing-item {
    font-size: 18px;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    line-height: 1.6;
}

.healing-item:last-child {
    border-bottom: none;
}

.healing-item::before {
    content: '✓';
    color: #2E8B57;
    font-weight: bold;
    margin-right: 10px;
}

/* Results Footer */
.results-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.restart-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.home-button {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #8B4513;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.4);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-logo {
        font-size: 28px;
    }
    
    .intro-title {
        font-size: 28px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .quiz-section, .results-section, .quiz-intro {
        padding: 25px 20px;
    }
    
    .question-text {
        font-size: 24px;
    }
    
    .results-title {
        font-size: 28px;
    }
    
    .element-title {
        font-size: 32px;
    }
    
    .element-name {
        font-size: 20px;
    }
    
    .interpretation-text, .healing-item {
        font-size: 16px;
    }
    
    .results-footer {
        flex-direction: column;
        align-items: center;
    }
}