/* ============================================
   IMPORT FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --bg-primary: #0a0a12;
    --bg-secondary: #111122;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f0f5;
    --text-secondary: #9898b0;
    --text-muted: #6a6a88;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { opacity: 0.3; }
    100% { transform: translate(100px, -100px) scale(0.5); opacity: 0; }
}

/* ============================================
   GLOW ORBS
   ============================================ */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.3;
}

.glow-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-light), transparent 70%);
    animation: floatGlow 20s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 18, 0.92);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 1.3rem;
    color: var(--accent);
}

.brand-name {
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-menu a.active {
    color: #fff;
    background: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

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

.progress-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00b894;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
}

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

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.35);
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

/* Hero Visual - Code Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow), 0 0 60px rgba(108, 92, 231, 0.05);
}

.code-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
    font-weight: 500;
}

.code-card-body {
    padding: 20px 24px;
    overflow-x: auto;
}

.code-card-body pre {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #d4d4d4;
}

.hl-tag { color: #c792ea; }
.hl-text { color: #addb67; }
.hl-attr { color: #82aaff; }
.hl-value { color: #f78c6c; }

/* ============================================
   SECTION COMMON
   ============================================ */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 48px;
}

/* ============================================
   LEARN SECTION
   ============================================ */
.learn-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

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

.learn-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.learn-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: 12px;
    right: 20px;
    line-height: 1;
}

.learn-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.learn-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.learn-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   MATERI SECTION
   ============================================ */
.materi-section {
    padding: 80px 0;
}

.materi-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.materi-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.sidebar-header h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: none;
    background: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font);
    font-weight: 500;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.sidebar-nav button:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.sidebar-nav button.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.2);
}

.sidebar-nav button .num {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 24px;
}

.sidebar-nav button.active .num {
    color: rgba(255,255,255,0.6);
}

.sidebar-nav button .check {
    margin-left: auto;
    color: #00b894;
}

/* Materi Content */
.materi-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
}

.materi-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.materi-content .materi-sub {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.materi-content .materi-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.materi-content .materi-body h3 {
    color: var(--text-primary);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.materi-content .materi-body ul {
    padding-left: 20px;
    margin: 10px 0;
}

.materi-content .materi-body li {
    margin-bottom: 6px;
}

.materi-content .materi-body .code-example {
    background: #0a0a12;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 12px 0;
    overflow-x: auto;
    color: #d4d4d4;
    border: 1px solid var(--border-color);
}

.materi-content .materi-body .code-example .hl-tag { color: #c792ea; }
.materi-content .materi-body .code-example .hl-text { color: #addb67; }
.materi-content .materi-body .code-example .hl-attr { color: #82aaff; }

.materi-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-done {
    padding: 10px 24px;
    border-radius: 40px;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.btn-done:hover {
    background: var(--bg-card-hover);
}

.btn-done.completed {
    background: #00b894;
    color: #fff;
}

.btn-done.completed:hover {
    background: #00a381;
}

/* ============================================
   PLAYGROUND
   ============================================ */
.playground-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.playground-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.playground-editor {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 8px;
}

.editor-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.editor-actions {
    display: flex;
    gap: 6px;
}

.btn-editor {
    padding: 4px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

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

.btn-editor:first-child {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-editor:first-child:hover {
    background: var(--accent-light);
}

.playground-editor textarea {
    width: 100%;
    height: 280px;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    resize: vertical;
    outline: none;
}

.playground-editor textarea::placeholder {
    color: var(--text-muted);
}

.playground-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.preview-header {
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
}

.preview-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.preview-content {
    padding: 24px;
    min-height: 280px;
    background: #ffffff;
    color: #1a1a2e;
    border-radius: 0 0 var(--radius) var(--radius);
}

.preview-content h1 { font-size: 2rem; margin-bottom: 8px; }
.preview-content h2 { font-size: 1.5rem; margin-bottom: 6px; }
.preview-content p { margin-bottom: 10px; }
.preview-content ul, .preview-content ol { padding-left: 20px; margin: 8px 0; }
.preview-content li { margin-bottom: 4px; }
.preview-content a { color: #6c5ce7; }
.preview-content img { max-width: 100%; border-radius: 8px; }
.preview-content table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.preview-content th, .preview-content td { border: 1px solid #ddd; padding: 8px 12px; }
.preview-content th { background: #f0f0f5; }

/* ============================================
   QUIZ
   ============================================ */
.quiz-section {
    padding: 80px 0;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
}

.quiz-card .quiz-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.quiz-option {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

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

.quiz-option.correct {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
}

.quiz-option.wrong {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.quiz-option:disabled {
    cursor: default;
    opacity: 0.7;
}

.quiz-feedback {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: none;
    font-weight: 600;
}

.quiz-feedback.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.quiz-feedback.success {
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid #00b894;
    color: #00b894;
}

.quiz-feedback.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

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

.quiz-score-display {
    color: var(--accent-light);
    font-weight: 700;
}

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

/* ============================================
   PROGRESS SECTION
   ============================================ */
.progress-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.progress-dashboard {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    align-items: center;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-circle svg {
    transform: rotate(-90deg);
    width: 120px;
    height: 120px;
}

.progress-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

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

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

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Achievements */
.achievements {
    margin-top: 40px;
}

.achievements h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.achievement-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.achievement-item.unlocked {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.08);
    color: var(--text-primary);
}

.achievement-item .ach-icon {
    font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-brand p {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: #00b894;
}
.toast.error {
    border-color: #ff6b6b;
}

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

    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .materi-wrapper {
        grid-template-columns: 1fr;
    }

    .materi-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }

    .progress-dashboard {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .progress-circle {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 18, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        flex-direction: column;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 16px;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .playground-wrapper {
        grid-template-columns: 1fr;
    }

    .playground-editor textarea {
        height: 180px;
    }

    .preview-content {
        min-height: 180px;
    }

    .progress-stats {
        grid-template-columns: 1fr 1fr;
    }

    .materi-content {
        padding: 24px;
    }

    .code-card {
        max-width: 100%;
    }

    .nav-progress {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

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

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

    .progress-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 10px 14px;
    }

    .quiz-card {
        padding: 20px;
    }

    .materi-content {
        padding: 16px;
    }

    .code-card-body {
        padding: 12px 16px;
        font-size: 0.75rem;
    }

    .container {
        padding: 0 16px;
    }
}