/* Global styles */
:root {
    --primary-color: #171635; /* Dark blue */
    --secondary-color: #9494AF; /* Grey */
    --accent-color: #FF8001; /* Orange */
    --success-color: #83D33D; /* Green */
    --text-color: #000000; /* Black */
    --light-text-color: #FFFFFF; /* White */
    --background-color: #FFFFFF; /* White */
    --main-background: #171635; /* Dark blue background */
    --border-color: #9494AF; /* Grey */
    --progress-bg-color: #EDE5DF; /* Light beige */
    --exploratory-color: #FF8001; /* Orange */
    --developing-color: #9494AF; /* Grey */
    --operational-color: #83D33D; /* Green */
    --optimizing-color: #171635; /* Dark blue */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: transparent; /* Changed from var(--main-background) */
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px; /* Space for footer */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    color: var(--light-text-color);
    margin-bottom: 10px;
}

header p {
    color: var(--light-text-color);
}

/* Quiz section styling */
.quiz-section {
    background-color: var(--background-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 128, 1, 0.1);
    display: none;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.quiz-section.active {
    display: block;
}

/* Add subtle accent glow to the top right of each quiz section */
.quiz-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 128, 1, 0.15) 0%, rgba(255, 128, 1, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Add subtle accent glow to the bottom left of each quiz section */
.quiz-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(131, 211, 61, 0.15) 0%, rgba(131, 211, 61, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Intro screen styles */
.intro-content {
    text-align: center;
}

.intro-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.intro-content p, .intro-content ul {
    margin-bottom: 20px;
}

.intro-content ul {
    text-align: left;
    list-style-position: inside;
    padding-left: 20px;
}

/* Button styles */
.btn {
    background-color: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.btn:hover {
    background-color: #FF9F3F; /* Lighter orange */
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
}

/* Progress bar */
.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background-color: var(--progress-bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

#question-counter {
    text-align: right;
    font-size: 14px;
    color: var(--secondary-color);
}

/* Footer */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    color: var(--light-text-color);
    font-size: 14px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 1;
}

/* Question container */
#question-container {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

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

#question-text {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Options container */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.option:hover {
    background-color: rgba(255, 128, 1, 0.05);
    border-color: var(--accent-color);
}

.option.selected {
    background-color: rgba(255, 128, 1, 0.1);
    border-color: var(--accent-color);
    font-weight: 500;
}

/* Quiz navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.submit-btn {
    display: none;
    margin-left: auto;
    background-color: var(--success-color);
}

.submit-btn:hover {
    background-color: #98E955; /* Lighter green */
}

/* Add pulse animation for submit button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(131, 211, 61, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(131, 211, 61, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(131, 211, 61, 0);
    }
}

/* Results screen */
.score-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(255, 128, 1, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--accent-color);
}

#score-value {
    font-size: 40px;
    font-weight: bold;
    color: var(--accent-color);
}

#max-score {
    font-size: 16px;
    color: var(--secondary-color);
}

.maturity-level {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.maturity-description {
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 5px;
    background-color: rgba(148, 148, 175, 0.1);
}

/* Results breakdown */
.results-breakdown {
    margin-top: 30px;
}

.results-breakdown h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

/* Two-column layout for breakdown and recommendations */
.results-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.breakdown-chart-container {
    flex: 1 1 55%;
    min-width: 300px;
    height: 400px; /* Increased height for better visibility */
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}

.recommendations {
    flex: 1 1 40%;
    min-width: 300px;
    padding: 20px;
    border-radius: 5px;
    background-color: rgba(148, 148, 175, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.recommendations h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.recommendations ul {
    padding-left: 20px;
}

.recommendations li {
    margin-bottom: 10px;
}

.recommendations li strong {
    color: var(--accent-color);
}

/* Maturity level colors */
.exploratory {
    color: #DF6F00; /* Darker orange for better contrast */
    background-color: rgba(255, 128, 1, 0.1);
}

.developing {
    color: #717180; /* Darker grey for better contrast */
    background-color: rgba(148, 148, 175, 0.1);
}

.operational {
    color: #5DA728; /* Darker green for better contrast */
    background-color: rgba(131, 211, 61, 0.1);
}

.optimizing {
    color: #0F0E2A; /* Near-black for better contrast */
    background-color: rgba(23, 22, 53, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .quiz-section {
        padding: 20px;
    }
    
    header {
        padding: 15px 0;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    #score-value {
        font-size: 32px;
    }
    
    .breakdown-chart-container, 
    .recommendations {
        flex: 1 1 100%;
    }
    
    .breakdown-chart-container {
        height: 350px;
    }
    
    body {
        padding-bottom: 80px; /* Larger footer spacing for mobile */
    }
}

@media (max-width: 480px) {
    .quiz-section {
        padding: 15px;
    }
    
    .option {
        padding: 12px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn, .submit-btn {
        width: 100%;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    #score-value {
        font-size: 28px;
    }
    
    .breakdown-chart-container {
        height: 300px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    header p {
        font-size: 14px;
    }
    
    footer {
        padding: 10px 0;
        font-size: 12px;
    }
}

/* Background animation */
.animation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(to bottom, #171635 0%, #121027 100%);
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

@keyframes particle-animation-1 {
    0% {
        transform: translate3d(40vw, 60vh, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(45vw, 15vh, 0) scale(0.7);
        opacity: 0.4;
    }
    100% {
        transform: translate3d(35vw, 80vh, 0) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes particle-animation-2 {
    0% {
        transform: translate3d(75vw, 60vh, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate3d(85vw, 15vh, 0) scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: translate3d(65vw, 80vh, 0) scale(1);
        opacity: 0.5;
    }
}

@keyframes particle-animation-3 {
    0% {
        transform: translate3d(10vw, 30vh, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate3d(25vw, 50vh, 0) scale(0.6);
        opacity: 0.2;
    }
    100% {
        transform: translate3d(15vw, 10vh, 0) scale(0.8);
        opacity: 0.4;
    }
}

@keyframes particle-animation-4 {
    0% {
        transform: translate3d(90vw, 20vh, 0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(70vw, 40vh, 0) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: translate3d(95vw, 10vh, 0) scale(1.1);
        opacity: 0.7;
    }
}

@keyframes particle-animation-5 {
    0% {
        transform: translate3d(20vw, 90vh, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(40vw, 70vh, 0) scale(0.8);
        opacity: 0.4;
    }
    100% {
        transform: translate3d(10vw, 85vh, 0) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes particle-animation-6 {
    0% {
        transform: translate3d(60vw, 5vh, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate3d(80vw, 25vh, 0) scale(0.7);
        opacity: 0.3;
    }
    100% {
        transform: translate3d(50vw, 15vh, 0) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes particle-animation-7 {
    0% {
        transform: translate3d(30vw, 40vh, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(10vw, 60vh, 0) scale(0.8);
        opacity: 0.4;
    }
    100% {
        transform: translate3d(40vw, 30vh, 0) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes particle-animation-8 {
    0% {
        transform: translate3d(80vw, 80vh, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate3d(60vw, 90vh, 0) scale(0.7);
        opacity: 0.3;
    }
    100% {
        transform: translate3d(75vw, 70vh, 0) scale(0.8);
        opacity: 0.5;
    }
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    animation: particle-animation-1 15s ease-in-out infinite;
    width: 20px;
    height: 20px;
    left: -20px;
    top: 50%;
    background-color: rgba(255, 128, 1, 0.2);
}

.particle:nth-child(2) {
    animation: particle-animation-2 18s ease-in-out infinite;
    width: 15px;
    height: 15px;
    left: 10%;
    top: 20%;
    background-color: rgba(131, 211, 61, 0.2);
}

.particle:nth-child(3) {
    animation: particle-animation-3 20s ease-in-out infinite;
    width: 25px;
    height: 25px;
    left: 30%;
    top: 80%;
    background-color: rgba(255, 255, 255, 0.15);
}

.particle:nth-child(4) {
    animation: particle-animation-4 22s ease-in-out infinite;
    width: 18px;
    height: 18px;
    left: 70%;
    top: 10%;
    background-color: rgba(255, 128, 1, 0.15);
}

.particle:nth-child(5) {
    animation: particle-animation-5 25s ease-in-out infinite;
    width: 22px;
    height: 22px;
    left: 90%;
    top: 60%;
    background-color: rgba(131, 211, 61, 0.15);
}

.particle:nth-child(6) {
    animation: particle-animation-6 30s ease-in-out infinite;
    width: 12px;
    height: 12px;
    left: 50%;
    top: 30%;
    background-color: rgba(255, 255, 255, 0.1);
}

.particle:nth-child(7) {
    animation: particle-animation-7 28s ease-in-out infinite;
    width: 14px;
    height: 14px;
    left: 25%;
    top: 40%;
    background-color: rgba(255, 128, 1, 0.12);
}

.particle:nth-child(8) {
    animation: particle-animation-8 32s ease-in-out infinite;
    width: 16px;
    height: 16px;
    left: 85%;
    top: 75%;
    background-color: rgba(131, 211, 61, 0.18);
}

/* Small floating particles */
.float-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    animation: float-up 15s linear infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
} 