/* =========================================
   SCRUM CAREER READINESS QUIZ
   Fresh, Modern, Vibrant Design
   ========================================= */

:root {
    /* Color Palette - Fresh & Vibrant */
    --primary: #0891b2;          /* Teal */
    --primary-dark: #0e7490;
    --primary-light: #06b6d4;
    --accent: #f97316;           /* Orange */
    --accent-light: #fb923c;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-bg: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 30px rgba(8, 145, 178, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--space-2xl) 0;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

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

/* =========================================
   WELCOME SCREEN
   ========================================= */
.welcome-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--gradient-warm);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.badge i {
    font-size: 1rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.feature-item {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-text strong {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.feature-text span {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.cta-button.primary:active {
    transform: translateY(0);
}

.cta-button.large {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.125rem;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

.trust-text {
    margin-top: var(--space-lg);
    color: var(--gray-600);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.trust-text i {
    color: var(--primary);
}

/* =========================================
   QUIZ SCREEN
   ========================================= */
.quiz-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
}

/* Progress Bar */
.progress-container {
    margin-bottom: var(--space-xl);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
    border-radius: var(--radius-full);
}

.progress-text {
    text-align: center;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Question Container */
.question-container {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.question-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.question-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.answer-option {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.answer-option:hover {
    border-color: var(--primary-light);
    background: var(--white);
    transform: translateX(5px);
}

.answer-option:hover::before {
    transform: scaleY(1);
}

.answer-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    transform: translateX(5px);
}

.answer-option.selected::before {
    transform: scaleY(1);
}

.answer-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.answer-letter {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.answer-option:hover .answer-letter {
    border-color: var(--primary);
    color: var(--primary);
}

.answer-option.selected .answer-letter {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--white);
}

.answer-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-900);
    font-weight: 500;
}

/* =========================================
   RESULTS SCREEN
   ========================================= */
.results-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Results Header */
.results-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 2;
}

.score-badge {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.score-ring {
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 12;
}

.score-ring-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 2s ease-out;
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-total {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 600;
}

.results-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.results-category {
    font-size: 1.875rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Results Body */
.results-body {
    position: relative;
    z-index: 2;
}

.score-breakdown {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.score-breakdown h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.breakdown-grid {
    display: grid;
    gap: var(--space-md);
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.breakdown-label {
    font-weight: 600;
    color: var(--gray-700);
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.breakdown-value {
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

.results-message {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.results-message p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.results-message p:last-child {
    margin-bottom: 0;
}

.results-message strong {
    color: var(--gray-900);
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.cta-note {
    margin-top: var(--space-md);
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Bonus Section */
.bonus-section {
    margin-bottom: var(--space-xl);
}

.bonus-card {
    background: var(--gradient-warm);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    color: var(--white);
}

.bonus-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.bonus-content h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.bonus-content p {
    margin-bottom: var(--space-md);
    opacity: 0.95;
}

.bonus-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--white);
    color: var(--accent);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bonus-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Share Section */
.share-section {
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-lg);
}

.share-title {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
}

.share-btn.x {
    background: #000000;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.retake-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retake-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(8, 145, 178, 0.05);
}

/* =========================================
   FOOTER
   ========================================= */
.faq-section {
    background: var(--white);
    padding: var(--space-2xl) 0;
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

.faq-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--space-lg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
}

.faq-answer p {
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
}

.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-xl) 0;
    text-align: center;
}

.footer p {
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .main-content {
        padding: var(--space-lg) 0;
    }
    
    .welcome-card,
    .quiz-card,
    .results-card {
        padding: var(--space-lg);
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .question-title {
        font-size: 1.25rem;
    }
    
    .question-container {
        min-height: 350px;
    }
    
    .score-circle {
        width: 160px;
        height: 160px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .bonus-card {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-main {
        font-size: 0.875rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* SVG Gradient for Score Ring */
svg defs {
    display: none;
}
