/* ========================================
   CodeQuest - Playful Modern CSS
   ======================================== */

:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5341d6;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --accent-alt: #fdcb6e;
    --success: #00b894;
    --danger: #e17055;
    --bg-dark: #1a1a2e;
    --bg-darker: #16162a;
    --bg-light: #f8f9ff;
    --bg-white: #ffffff;
    --text-dark: #2d3436;
    --text-light: #b2bec3;
    --text-white: #ffffff;
    --text-muted: #636e72;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

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

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f23 50%, #1a1a3e 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 40px 24px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success), var(--secondary));
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Code Window */
.code-window {
    background: #1e1e3f;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-visual .code-window {
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-visual .code-window:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    color: var(--text-light);
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    margin-left: 8px;
}

.code-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #e4e4e4;
    overflow-x: auto;
    min-height: 60px;
}

.code-body .kw { color: #c792ea; }
.code-body .str { color: #c3e88d; }
.code-body .fn { color: #82aaff; }
.code-body .num { color: #f78c6c; }
.code-body .comment { color: #636e72; }

#typing-code {
    white-space: pre;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary-light);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-white);
}

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

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-dark .section-header h2 {
    color: var(--text-white);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: var(--text-light);
}

/* ========================================
   Learning Path
   ======================================== */

.learning-path {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.path-line {
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    border-radius: 3px;
}

.path-step {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.path-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.path-step:nth-child(3) { transition-delay: 0.15s; }
.path-step:nth-child(4) { transition-delay: 0.3s; }

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    z-index: 2;
}

.step-icon span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.step-content {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ========================================
   Basics Cards
   ======================================== */

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

.basics-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.basics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.basics-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.basics-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

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

.basics-card code {
    background: rgba(108, 92, 231, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.card-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
}

/* ========================================
   Interactive Code Editor
   ======================================== */

.interactive-demo {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.interactive-demo h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.interactive-demo > p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.code-editor-wrapper {
    text-align: left;
}

.code-editor {
    width: 100%;
    min-height: 120px;
    padding: 20px;
    background: #1e1e3f;
    color: #e4e4e4;
    border: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    resize: vertical;
    outline: none;
}

.run-btn {
    margin: 16px 0;
    padding: 10px 24px;
}

.run-icon {
    font-size: 0.8rem;
}

.output-window {
    margin-top: 0;
}

.output-window .code-body {
    min-height: 80px;
    color: var(--success);
}

/* ========================================
   Languages Section
   ======================================== */

.languages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.lang-card {
    perspective: 800px;
}

.lang-card-inner {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.lang-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.lang-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    font-weight: 800;
}

.python-icon { background: linear-gradient(135deg, #3776ab, #ffd43b); }
.js-icon { background: linear-gradient(135deg, #f7df1e, #f0db4f); color: #333; font-family: 'Fira Code', monospace; }
.html-icon { background: linear-gradient(135deg, #e44d26, #f06529); color: white; font-family: 'Fira Code', monospace; font-size: 1.2rem; }
.c-icon { background: linear-gradient(135deg, #004482, #00599c); color: white; font-family: 'Fira Code', monospace; }

.lang-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.lang-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.lang-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lang-tags span {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.lang-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.meter {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--success), var(--accent));
    transition: width 1s ease;
}

.meter-label {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

/* Language Comparison Tabs */
.lang-comparison {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.lang-comparison h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.lang-comparison > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.comparison-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
}

.tab-btn {
    padding: 10px 24px;
    border: none;
    background: #e8e8f0;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
}

.tab-btn.active {
    background: #1e1e3f;
    color: var(--text-white);
}

.tab-btn:hover:not(.active) {
    background: #d8d8e8;
}

.comparison-panels {
    text-align: left;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel .code-window {
    border-radius: 0 var(--radius) var(--radius) var(--radius);
}

/* ========================================
   Quiz Section
   ======================================== */

.quiz-container {
    max-width: 700px;
    margin: 0 auto 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 40px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.quiz-header h3 {
    font-size: 1.3rem;
}

.quiz-score {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.question-text code {
    background: rgba(108, 92, 231, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

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

.quiz-option {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.quiz-option:hover:not(.selected):not(.correct):not(.wrong) {
    border-color: var(--primary-light);
    background: rgba(108, 92, 231, 0.1);
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(0, 184, 148, 0.15);
    cursor: default;
}

.quiz-option.wrong {
    border-color: var(--danger);
    background: rgba(225, 112, 85, 0.15);
    cursor: default;
}

.quiz-option.selected {
    cursor: default;
}

.quiz-option.dimmed {
    opacity: 0.5;
    cursor: default;
}

.quiz-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.quiz-feedback.show {
    display: block;
}

.quiz-feedback.correct {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.quiz-feedback.wrong {
    background: rgba(225, 112, 85, 0.15);
    color: var(--danger);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-progress {
    font-size: 0.9rem;
    color: var(--text-light);
}

.quiz-results {
    text-align: center;
    padding: 40px 20px;
}

.results-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.results-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.results-message {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ========================================
   Challenges Section
   ======================================== */

.challenges-container h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-white);
}

.challenge-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.challenge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px;
}

.challenge-difficulty {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.challenge-difficulty.easy { background: rgba(0, 184, 148, 0.2); color: var(--success); }
.challenge-difficulty.medium { background: rgba(253, 203, 110, 0.2); color: var(--accent-alt); }
.challenge-difficulty.hard { background: rgba(225, 112, 85, 0.2); color: var(--danger); }

.challenge-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

.challenge-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.challenge-editor {
    min-height: 140px;
}

.challenge-output {
    min-height: 60px;
}

/* ========================================
   Articles Section
   ======================================== */

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

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.article-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.article-image {
    height: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
}

.article-card.featured .article-image {
    height: auto;
    min-height: 250px;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-darker);
    color: var(--text-light);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }

    .hero-visual .code-window {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 16px;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

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

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

    .article-card.featured {
        grid-template-columns: 1fr;
    }

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

    .quiz-header {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .path-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .path-line {
        display: none;
    }

    .comparison-tabs {
        flex-wrap: wrap;
    }
}
