/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f0f0ff;
    --text-secondary: rgba(240, 240, 255, 0.6);
    --text-muted: rgba(240, 240, 255, 0.4);
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #d946ef;
    --accent-4: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --gradient-main: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    --gradient-text: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
    --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.05));
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-bg: rgba(12, 12, 30, 0.95);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}

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

/* ===== Background Animation ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent);
    top: -200px;
    right: -200px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent);
    bottom: -150px;
    left: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217,70,239,0.2), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-80px, 60px); }
    66% { transform: translate(40px, -30px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(60px, -40px); }
    66% { transform: translate(-30px, 80px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--gradient-main);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99,102,241,0.4);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border);
    background: var(--bg-glass);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--bg-glass);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: white;
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,255,255,0.2);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Section Styles ===== */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

.hero-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.hero-card-main {
    padding: 32px;
    width: 340px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-header-visual {
    text-align: center;
    margin-bottom: 24px;
}

.card-icon-large {
    display: flex;
    justify-content: center;
    color: var(--accent-2);
    margin-bottom: 16px;
}

.card-header-visual h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-header-visual p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-progress-visual {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar-visual {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

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

.card-progress-visual span {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.hero-card-float-1,
.hero-card-float-2 {
    position: absolute;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.hero-card-float-1 {
    top: 40px;
    right: -20px;
    animation: floatCard 4s ease-in-out infinite;
}

.hero-card-float-2 {
    bottom: 40px;
    left: -20px;
    animation: floatCard 5s ease-in-out infinite 1s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.float-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.float-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.float-icon.badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-4);
}

.float-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.float-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Features ===== */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Courses ===== */
.courses {
    padding: 120px 0;
}

.course-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: var(--bg-glass);
}

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

.filter-btn.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(99,102,241,0.25);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out both;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.course-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-thumb-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.course-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(10,10,26,0.9));
}

.course-level-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.course-level-tag.beginner {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.course-level-tag.intermediate {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.course-level-tag.advanced {
    background: rgba(217, 70, 239, 0.2);
    color: #e879f9;
    border: 1px solid rgba(217, 70, 239, 0.3);
}

.course-body {
    padding: 20px;
}

.course-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.course-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* ===== Levels/Timeline ===== */
.levels {
    padding: 120px 0;
}

.levels-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.levels-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), var(--accent-3), #f59e0b);
    opacity: 0.3;
}

.level-item {
    display: flex;
    gap: 28px;
    padding: 20px 0;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLevel 0.6s ease-out forwards;
}

.level-item:nth-child(1) { animation-delay: 0.1s; }
.level-item:nth-child(2) { animation-delay: 0.3s; }
.level-item:nth-child(3) { animation-delay: 0.5s; }
.level-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes slideInLevel {
    to { opacity: 1; transform: translateX(0); }
}

.level-marker {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.level-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    background: var(--bg-primary);
}

.level-icon.beginner { border-color: var(--success); color: var(--success); }
.level-icon.intermediate { border-color: var(--accent-1); color: var(--accent-1); }
.level-icon.advanced { border-color: var(--accent-3); color: var(--accent-3); }
.level-icon.master { border-color: var(--accent-4); color: var(--accent-4); }

.level-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    flex: 1;
    transition: var(--transition);
}

.level-content:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.level-badge.beginner { background: rgba(16,185,129,0.15); color: #34d399; }
.level-badge.intermediate { background: rgba(99,102,241,0.15); color: #818cf8; }
.level-badge.advanced { background: rgba(217,70,239,0.15); color: #e879f9; }
.level-badge.master { background: rgba(245,158,11,0.15); color: #fbbf24; }

.level-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.level-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.6;
}

.level-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    padding: 4px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== Test Section ===== */
.tests {
    padding: 120px 0;
}

.test-container {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.test-intro {
    padding: 64px 48px;
    text-align: center;
}

.test-intro-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.test-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.test-intro p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Quiz Styles */
.test-quiz {
    padding: 32px;
}

.quiz-header {
    margin-bottom: 32px;
}

.quiz-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

#quiz-question-num {
    font-weight: 600;
    color: var(--text-primary);
}

#quiz-question-total {
    color: var(--text-muted);
}

.quiz-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 10%;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quiz-body {
    margin-bottom: 32px;
}

.quiz-question {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
}

.quiz-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.quiz-option.selected {
    background: rgba(99,102,241,0.12);
    border-color: var(--accent-1);
}

.quiz-option.correct {
    background: rgba(16,185,129,0.12);
    border-color: var(--success);
}

.quiz-option.incorrect {
    background: rgba(239,68,68,0.12);
    border-color: var(--danger);
}

.option-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.quiz-option.selected .option-letter {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: white;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Test Result */
.test-result {
    padding: 48px;
    text-align: center;
}

.result-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 28px;
}

.result-circle svg {
    width: 100%;
    height: 100%;
}

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

.result-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-total {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.result-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.result-breakdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

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

.breakdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.breakdown-value.correct-val { color: var(--success); }
.breakdown-value.incorrect-val { color: var(--danger); }
.breakdown-value.time-val { color: var(--accent-2); }

.breakdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== Progress Dashboard ===== */
.progress {
    padding: 120px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.card-wide {
    grid-column: 1;
    grid-row: 1 / 3;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dash-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.dash-period {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    border-radius: 100px;
    padding: 3px;
}

.period-btn {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.period-btn.active {
    background: var(--accent-1);
    color: white;
}

/* Activity Chart */
.chart-container {
    height: 260px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 20px 0;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    border-radius: 6px 6px 0 0;
    background: var(--gradient-main);
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 4px;
    opacity: 0.7;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 1;
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.achievement {
    text-align: center;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0.4;
}

.achievement.unlocked {
    opacity: 1;
}

.achievement.unlocked:hover {
    transform: scale(1.05);
    border-color: var(--border-hover);
}

.achievement-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.achievement span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.achievement.unlocked span {
    color: var(--text-secondary);
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.leader-item:hover {
    background: var(--bg-card-hover);
}

.leader-item.highlight {
    border-color: var(--accent-1);
    background: rgba(99,102,241,0.08);
}

.leader-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bg-glass);
    flex-shrink: 0;
}

.leader-rank.gold { background: rgba(245,158,11,0.2); color: #fbbf24; }
.leader-rank.silver { background: rgba(148,163,184,0.2); color: #cbd5e1; }
.leader-rank.bronze { background: rgba(217,119,6,0.2); color: #f59e0b; }

.leader-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.leader-score {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 120px 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--accent-4);
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-info {
    min-width: 0;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== CTA ===== */
.cta {
    padding: 80px 0 120px;
}

.cta-card {
    background: var(--gradient-main);
    border-radius: var(--radius-xl);
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    color: white;
}

.cta-card p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    margin-bottom: 16px;
}

.cta-note {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.5) !important;
    margin-bottom: 0 !important;
}

.cta-decoration {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
}

.cta-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    top: -100px;
    right: -50px;
}

.cta-orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    bottom: -60px;
    left: -30px;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links-group a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 1;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.modal-content {
    padding: 40px;
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-content .modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.modal-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .card-wide {
        grid-column: 1;
        grid-row: auto;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-filters {
        flex-wrap: wrap;
    }

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

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .test-intro {
        padding: 40px 24px;
    }

    .test-quiz {
        padding: 24px;
    }

    .test-result {
        padding: 32px 24px;
    }

    .result-breakdown {
        gap: 20px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .modal-content {
        padding: 28px;
    }

    .levels-timeline::before {
        left: 22px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .quiz-footer {
        flex-direction: column;
        gap: 10px;
    }

    .quiz-footer .btn-primary,
    .quiz-footer .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions button {
        width: 100%;
        justify-content: center;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
