:root {
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --secondary: #764ba2;
    --accent: #00cdac;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f5f6fa;
    --white: #ffffff;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

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

.btn-gradient {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(102, 126, 234, 0.1);
}

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

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-text {
    color: var(--text);
    background: transparent;
}

.btn-text:hover {
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Hero */
.hero {
    padding: 5rem 0;
    background: var(--white);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge-hero {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-image {
    position: relative;
    height: 500px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f4f9 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -25%;
    left: -25%;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: 10%;
}

.card-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.floating-card .icon {
    font-size: 2rem;
    background: #f0f2f5;
    padding: 0.5rem;
    border-radius: 8px;
}

.floating-card .text {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 0.9rem;
    color: var(--text);
}

.floating-card span {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-light {
    background: #f8f9fa;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* CTA Box */
.cta-box {
    background: var(--gradient);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.link-group a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Wizard Styles */
.wizard-container {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.wizard-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, #fafbfc, var(--white));
    border-bottom: 1px solid #eef0f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.progress-container {
    flex: 1;
    max-width: 200px;
}

.progress-bar {
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.step-counter {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.wizard-content {
    padding: 2.5rem 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 300px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e8eaed;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* Question Container */
.question-container {
    animation: fadeInUp 0.4s ease-out;
}

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

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.4;
    text-align: left;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    background: #f0f4ff;
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(4px);
}

.option-card.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.option-card.selected:hover {
    transform: translateX(4px);
}

.option-radio {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #c4c9d4;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    background: var(--white);
}

.option-card:hover .option-radio {
    border-color: var(--primary);
}

.option-card.selected .option-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.option-card.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.option-text {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}

.option-card.selected .option-text {
    color: var(--primary-dark);
}

/* Wizard Footer */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: #fafbfc;
    border-top: 1px solid #eef0f2;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-nav .btn-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-nav:hover .btn-icon {
    transform: translateX(3px);
}

.btn-nav.btn-text:hover .btn-icon {
    transform: translateX(-3px);
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-nav:disabled:hover {
    transform: none;
}

.question-card {
    animation: fadeIn 0.5s ease;
}

/* Results Page */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.results-header h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.results-header > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(118, 75, 162, 0.5);
    }
}

.chart-container {
    max-width: 450px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.level-description {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.level-description p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.course-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.course-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.4;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Wizard Mobile Styles */
    .wizard-container {
        margin: 1rem;
        border-radius: 16px;
        min-height: auto;
    }

    .wizard-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
    }

    .step-counter {
        order: 1;
    }

    .category-badge {
        order: 2;
    }

    .progress-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 0.5rem;
    }

    .wizard-content {
        padding: 1.5rem;
    }

    .question-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .option-card {
        padding: 0.875rem 1rem;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .wizard-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    #prevBtn {
        visibility: visible !important;
        opacity: 0.6;
    }

    #prevBtn:not([style*="hidden"]) {
        opacity: 1;
    }

    /* Results Mobile */
    .results-header h2 {
        font-size: 1.5rem;
    }

    .level-badge {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    .chart-container {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .level-description {
        padding: 1.25rem 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
        margin: 0 -0.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}