:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #f43f5e;
    --accent: #f59e0b;
    --bg-light: #fcfcfd;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-hover: rgba(255, 255, 255, 0.95);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.06);
    --shadow-premium: 0 30px 60px -12px rgba(0, 0, 0, 0.08), 0 18px 36px -18px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    animation: move 25s infinite alternate ease-in-out;
}

.blob-1 { top: -15%; left: -10%; background: var(--primary); }
.blob-2 { bottom: -15%; right: -10%; background: var(--secondary); animation-delay: -7s; }
.blob-3 { top: 35%; left: 45%; background: var(--accent); animation-delay: -12s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1) rotate(0deg); }
    to { transform: translate(120px, 80px) scale(1.15) rotate(15deg); }
}

/* Quiz Wrapper */
.quiz-wrapper {
    width: 100%;
    max-width: 650px;
    padding: 24px;
    perspective: 1500px;
}

.quiz-container {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative;
    outline: 1px solid var(--border);
}

.quiz {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Slides */
.slide {
    min-width: 100%;
    padding: 70px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.8;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.accent-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.5;
}

/* Options Grid */
.options {
    display: grid;
    gap: 20px;
    width: 100%;
}

.grid-mood {
    grid-template-columns: repeat(2, 1fr);
}

.grid-color {
    grid-template-columns: repeat(2, 1fr);
}

.option {
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(229 230 245 / 52%);
}

.option:hover {
    background: var(--bg-hover);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.2);
}

.option:active {
    transform: translateY(-1px) scale(0.98);
}

/* Color Specific Options - Subtle Indicators */
.color-pink::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #f472b6; opacity: 0.3; }
.color-white::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #e2e8f0; opacity: 0.6; }
.color-gold::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #fbbf24; opacity: 0.3; }
.color-green::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #34d399; opacity: 0.3; }

/* Result Slide */
.result-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 15px rgba(245, 158, 11, 0.2));
}

.result-display {
    padding: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(244, 63, 94, 0.05));
    border-radius: 28px;
    margin: 32px 0 48px;
    width: 100%;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.result-display::before {
    content: 'Recommended Essence';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 4px 16px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--primary);
}

#result-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
}

.restart-btn {
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.restart-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.6);
}

/* Responsive */
@media (max-width: 600px) {
    .slide {
        padding: 30px 15px;
    }
    .option{
        padding:15px;
    }
    h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    .result-display{
        padding:30px 15px 15px;
    }
    #result-text {
        font-size: 2.5rem;
    }
}
.final-result-item {
    text-align: center;
}

/* Add a separator line between the two notes */
.final-result-item:first-child {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.note-category {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.note-description {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* Responsive adjustments for the new styles */
@media (max-width: 600px) {
    .note-description {
        font-size: 1.25rem;
    }
}
/* Style for the main result (re-creating your original #result-text style) */
#main-result-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 32px; /* Space between main result and additional notes */
}

/* Container to hold the two additional notes */
.additional-notes-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
    border-top: 1px solid rgba(99, 102, 241, 0.1); /* Subtle separator line */
    padding-top: 24px;
}

.additional-note-item {
    text-align: center;
}

/* Styling for the text within the additional notes */
.note-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.note-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Adjustments for the new result styles on smaller screens */
@media (max-width: 600px) {
    #main-result-text {
        font-size: 2.5rem; /* Make main result smaller on mobile */
        margin-bottom: 24px;
    }

    .additional-notes-container {
        flex-direction: column; /* Stack notes vertically on mobile */
        gap: 16px;
    }
    
    .note-description {
        font-size: 1rem;
    }
}