:root {
    --primary: #1D2C92;
    /* Deep Blue */
    --secondary: #D4B759;
    /* Gold */
    --accent: #E63946;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --success: #28a745;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(29, 44, 146, 0.3);
}

.btn-primary:hover {
    background: #15206b;
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f1854 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Assessment Interface - Modern Design */
.assessment-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.assessment-container {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.assessment-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0f1854 100%);
    padding: 20px 30px;
    color: var(--white);
    flex-shrink: 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-level {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.question-count {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--secondary);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(212, 183, 89, 0.5);
}

.question-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    animation: fadeIn 0.5s ease;
}

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

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

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

.choices-grid {
    display: grid;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.choice-btn {
    background: #f8f9fa;
    border: 3px solid transparent;
    padding: 16px 20px;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}

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

.choice-btn:hover {
    border-color: var(--secondary);
    background: #ffffff;
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(212, 183, 89, 0.15);
}

.choice-btn:hover::before {
    transform: scaleY(1);
}

.choice-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f2ff 0%, #ffffff 100%);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(29, 44, 146, 0.15);
}

.choice-btn.selected::before {
    background: var(--primary);
    transform: scaleY(1);
}

.choice-marker {
    min-width: 36px;
    height: 36px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
}

.choice-btn.selected .choice-marker {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.assessment-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    border-top: 1px solid #e0e0e0;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(29, 44, 146, 0.25);
}

.btn-lg:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

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

/* Result Page */
.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.score-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.score-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid;
}

.score-card.d {
    border-color: #FF4D4D;
}

.score-card.i {
    border-color: #FFC107;
}

.score-card.s {
    border-color: #4CAF50;
}

.score-card.c {
    border-color: #2196F3;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.chart-container {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    height: 400px;
}

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

    .score-cards {
        grid-template-columns: 1fr 1fr;
    }

    .assessment-wrapper {
        padding: 10px;
    }

    .assessment-container {
        border-radius: 16px;
        max-height: 95vh;
    }

    .assessment-header {
        padding: 15px 20px;
    }

    .progress-info {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .question-content {
        padding: 20px;
    }

    .question-text {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .choice-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .choice-marker {
        min-width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .assessment-footer {
        padding: 15px 20px;
    }

    .btn-lg {
        width: 100%;
        padding: 12px 32px;
        font-size: 1rem;
    }
}