/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-blue: #3B82F6;
    --primary-dark: #1E40AF;
    --secondary-purple: #8B5CF6;
    --accent-green: #10B981;
    --accent-orange: #F59E0B;
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;
    
    /* Stage Colors */
    --stage1-color: #DC2626;
    --stage2-color: #EA580C;
    --stage3-color: #059669;
    --stage4-color: #7C3AED;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-chinese: 'Noto Sans TC', 'Inter', sans-serif;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Font Selection Based on Language */
html[lang="en"] {
    font-family: var(--font-primary);
}

html[lang="zh-TW"] {
    font-family: var(--font-chinese);
}

/* Base Typography */
body {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--neutral-600);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 0.25rem;
    box-shadow: var(--shadow-md);
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--neutral-100);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 25%, #7c3aed  75%, #c026d3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.loading-logo {
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-circle svg {
    animation: rotate 3s linear infinite;
}

.loading-progress {
    margin: 2rem 0;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }
.dot:nth-child(4) { animation-delay: 0.16s; }

.loading-text {
    margin-top: 2rem;
}

.loading-text p {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: white;
}

.loading-subtext {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.bg-circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.1;
    }
}

/* Main Container */
.main-container {
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    overflow: hidden;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1.6fr 0.4fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #f0f9ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 100%;
}

.cta-button {
    padding: 1.25rem 2.5rem;
    background: white;
    color: var(--primary-blue);
    border: none;
    border-radius: var(--border-radius-xl);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    background: #f8fafc;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2.5rem;
}

.stage-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 450px;
    height: 450px;
    position: relative;
}

.stage-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 80%;
    background: rgba(255, 255, 255, 0.2);
}

.stage-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.stage-bubble {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.stage-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.9;
    transition: all var(--transition-normal);
}

.stage-1::before { background: linear-gradient(135deg, #DC2626, #B91C1C); }
.stage-2::before { background: linear-gradient(135deg, #EA580C, #C2410C); }
.stage-3::before { background: linear-gradient(135deg, #059669, #047857); }
.stage-4::before { background: linear-gradient(135deg, #7C3AED, #6D28D9); }

.stage-bubble::after {
    content: var(--stage-label, attr(data-tippy-content));
    position: absolute;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stage-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.stage-bubble:hover::before {
    opacity: 1;
}

/* Particles Container */
#particles-hero, #particles-results {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent !important;
}

/* Ensure particles canvas doesn't interfere with layout */
#particles-hero canvas, #particles-results canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    pointer-events: none;
}

/* Assessment Section */
.assessment {
    padding: var(--section-spacing) 0;
    background: var(--neutral-50);
}

.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.assessment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--neutral-200);
    border-radius: 4px;
    margin: 2rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 4px;
    width: 0%;
    transition: width var(--transition-normal);
}

.progress-text {
    position: absolute;
    top: -2rem;
    right: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-600);
}

/* Question Container */
.question-container {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.question {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.question.active {
    opacity: 1;
    transform: translateY(0);
}

.question h3 {
    margin-bottom: 2rem;
    color: var(--neutral-800);
    font-size: 1.25rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    padding: 1rem 1.5rem;
    background: var(--neutral-50);
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.3s ease;
}

.option:hover::before {
    left: 100%;
}

.option:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
}

.option.selected {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-dark);
    font-weight: 500;
}

/* Assessment Navigation */
.assessment-navigation {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    min-height: 50px;
    align-items: center;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--neutral-300);
    background: white;
    color: var(--neutral-700);
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button:hover:not(:disabled) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.nav-button.primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.nav-button.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Results Section */
.results {
    position: relative;
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
    color: white;
    overflow: hidden;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stage-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(10px);
    margin-top: 1rem;
}

.stage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stage-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.stage-description h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.stage-description p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Journey Map */
/* Insights */
.insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.insight-card h4 {
    margin-bottom: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.insight-card:has(#skills-chart) {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.insight-card canvas {
    margin: auto;
    max-width: 100%;
    max-height: 280px;
}

#skills-chart {
    width: 100% !important;
    max-width: 280px !important;
    aspect-ratio: 1 !important;
}

#skills-chart {
    max-width: 100%;
    height: 250px !important;
    flex-grow: 1;
}

/* Fallback skills display */
.skills-fallback {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.skills-list {
    width: 100%;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.skill-label {
    font-size: 0.875rem;
    min-width: 120px;
    text-align: left;
}

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

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    transition: width 0.8s ease;
}

.skill-value {
    font-size: 0.75rem;
    min-width: 30px;
    text-align: right;
    opacity: 0.8;
}

#next-steps-list,
#tool-recommendations-list {
    list-style: none;
    padding: 0;
}

#next-steps-list li,
#tool-recommendations-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 1.5rem;
}

#next-steps-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

#tool-recommendations-list li::before {
    content: '🔧';
    position: absolute;
    left: 0;
    font-size: 0.875rem;
}

#next-steps-list li:last-child,
#tool-recommendations-list li:last-child {
    border-bottom: none;
}


/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.action-button {
    padding: 0.75rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.action-button:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.action-button.primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.action-button.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* About Section */
.about {
    padding: var(--section-spacing) 0;
    background: linear-gradient(180deg, var(--neutral-50) 0%, white 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.about-container h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 2rem;
    position: relative;
}

.about-container h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 2px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Article Link */
.article-link {
    margin: 2rem 0 3rem;
    display: flex;
    justify-content: center;
}

.article-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.article-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-btn svg {
    transition: transform var(--transition-normal);
}

.article-btn:hover svg {
    transform: translateX(2px);
}

/* Stage Cards */
.stages-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stage-card {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: var(--border-radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all var(--transition-normal);
}

.stage-card:nth-child(1)::before { background: var(--stage1-color); }
.stage-card:nth-child(2)::before { background: var(--stage2-color); }
.stage-card:nth-child(3)::before { background: var(--stage3-color); }
.stage-card:nth-child(4)::before { background: var(--stage4-color); }

.stage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stage-card:nth-child(1):hover { border-color: var(--stage1-color); }
.stage-card:nth-child(2):hover { border-color: var(--stage2-color); }
.stage-card:nth-child(3):hover { border-color: var(--stage3-color); }
.stage-card:nth-child(4):hover { border-color: var(--stage4-color); }

.stage-card .stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.stage-card:nth-child(1) .stage-number { background: var(--stage1-color); }
.stage-card:nth-child(2) .stage-number { background: var(--stage2-color); }
.stage-card:nth-child(3) .stage-number { background: var(--stage3-color); }
.stage-card:nth-child(4) .stage-number { background: var(--stage4-color); }

.stage-card h4 {
    margin-bottom: 1.5rem;
    color: var(--neutral-800);
    font-size: 1.25rem;
}

.stage-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--neutral-600);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-400);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.footer-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-spacing: 3rem;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        display: block;
        text-align: center;
        padding: 3rem var(--container-padding) 1rem;
        order: 1;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .hero-visual {
        order: 2;
        padding: 2rem 0.5rem 1rem;
        gap: 2rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .stage-preview {
        width: 280px;
        height: 280px;
        gap: 1rem;
        justify-items: center;
        align-items: center;
    }
    
    .stage-bubble {
        width: 100px;
        height: 100px;
    }
    
    .stage-bubble::after {
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.1;
    }
    
    .hero-text {
        margin-bottom: 2.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
        margin-bottom: 0;
        max-width: 100%;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .language-switcher {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .insights {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .stages-overview {
        grid-template-columns: 1fr;
    }
    
    .assessment-navigation {
        flex-direction: column;
    }
    
    .options {
        gap: 0.75rem;
    }
    
    .option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0.5rem 0;
    }
    
    .hero-content {
        gap: 1.5rem;
        padding: 3rem var(--container-padding) 0.5rem;
        justify-content: flex-start;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .hero-text {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.125rem);
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
        width: auto;
        max-width: 240px;
        margin-bottom: 1rem;
    }
    
    .stage-preview {
        width: 240px;
        height: 240px;
        gap: 0.75rem;
        justify-items: center;
        align-items: center;
    }
    
    .stage-bubble {
        width: 85px;
        height: 85px;
    }
    
    .stage-bubble::after {
        font-size: 0.625rem;
        line-height: 1;
        font-weight: 700;
    }
    
    .hero-visual {
        padding: 1.5rem 0.25rem 0.5rem;
        gap: 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-text {
        margin-bottom: 1.75rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.25rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.825rem, 3.5vw, 1rem);
        margin-bottom: 0;
    }
    
    .stage-preview {
        width: 220px;
        height: 220px;
        gap: 0.5rem;
        justify-items: center;
        align-items: center;
    }
    
    .stage-bubble {
        width: 78px;
        height: 78px;
    }
    
    .stage-bubble::after {
        font-size: 0.575rem;
    }
}
    
    .question-container {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .question h3 {
        font-size: 1.125rem;
    }
    
    .insight-card {
        padding: 1.5rem;
        min-height: 280px;
    }
    
    #skills-chart {
        height: 220px !important;
    }
    
    .stage-card {
        padding: 1.5rem;
    }
}

/* Chinese Language Specific Adjustments */
html[lang="zh-TW"] {
    /* Chinese text typically needs more vertical space */
    line-height: 1.7;
}

html[lang="zh-TW"] .hero-title {
    line-height: 1.3;
}

html[lang="zh-TW"] .option {
    line-height: 1.6;
    padding: 1rem 1.5rem;
}

html[lang="zh-TW"] .question h3 {
    line-height: 1.5;
}

html[lang="zh-TW"] .stage-card p {
    line-height: 1.7;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
.option:focus,
.lang-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .language-switcher,
    .loading-screen,
    #particles-hero,
    #particles-results {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto !important;
    }
    
    .results {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --neutral-400: #666666;
        --neutral-500: #555555;
        --neutral-600: #444444;
    }
    
    .option {
        border-color: var(--neutral-400);
    }
    
    .stage-bubble {
        border: 2px solid var(--neutral-800);
    }
}