/* ===================================================
   PEMROGRAMAN MULTIMEDIA - UNU CIREBON
   Main Stylesheet
   =================================================== */

:root {
    /* Color Palette */
    --primary: #6C3CE1;
    --primary-dark: #5028c0;
    --primary-light: #8B5CF6;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --success: #10B981;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Neutral Colors */
    --bg: #0F0F1A;
    --bg-card: #1A1A2E;
    --bg-card-hover: #1E1E35;
    --bg-surface: #16213E;
    --bg-elevated: #1F1F38;

    /* Text Colors */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-accent: #A78BFA;

    /* Border */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Phase Colors */
    --phase-1: #6C3CE1;
    --phase-2: #0EA5E9;
    --phase-3: #10B981;
    --phase-4: #F59E0B;
    --phase-5: #EF4444;

    /* Spacing */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

code, pre {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

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

.section {
    padding: 80px 0;
}

/* ===================================================
   TOP NAVIGATION
   =================================================== */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.topnav.scrolled {
    background: rgba(15, 15, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.topnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(108, 60, 225, 0.15);
}

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

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    position: relative;
}

.hero-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(108, 60, 225, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 60, 225, 0.15);
    border: 1px solid rgba(108, 60, 225, 0.3);
    color: var(--text-accent);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item i {
    width: 20px;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(108, 60, 225, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ===================================================
   CODE PREVIEW (Hero)
   =================================================== */
.hero-visual {
    flex: 1;
    max-width: 520px;
}

.code-preview {
    background: #0D1117;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(108, 60, 225, 0.15);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #161B22;
    border-bottom: 1px solid var(--border);
}

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

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.code-filename {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.code-body {
    padding: 20px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.8;
}

.code-body code {
    color: #C9D1D9;
}

/* Syntax highlighting */
.kw { color: #FF7B72; }
.fn { color: #D2A8FF; }
.str { color: #A5D6FF; }

/* ===================================================
   STATS BAR
   =================================================== */
.stats-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
}

.stats-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 40px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* ===================================================
   SECTION HEADER
   =================================================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 60, 225, 0.12);
    border: 1px solid rgba(108, 60, 225, 0.25);
    color: var(--text-accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

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

/* ===================================================
   CPL GRID
   =================================================== */
.silabus-section {
    background: var(--bg-surface);
}

.cpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cpl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.cpl-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108, 60, 225, 0.2);
}

.cpl-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 20px;
}

.cpl-icon-1 { background: linear-gradient(135deg, #6C3CE1, #8B5CF6); }
.cpl-icon-2 { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.cpl-icon-3 { background: linear-gradient(135deg, #10B981, #34D399); }

.cpl-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-accent);
}

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

/* ===================================================
   PERTEMUAN GRID
   =================================================== */
.pertemuan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pertemuan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pertemuan-card:hover {
    border-color: rgba(108, 60, 225, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(108, 60, 225, 0.2);
    color: inherit;
}

.card-final {
    grid-column: span 1;
}

.p-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phase-1 { background: linear-gradient(135deg, rgba(108, 60, 225, 0.5), rgba(139, 92, 246, 0.3)); border-bottom: 1px solid rgba(108, 60, 225, 0.4); }
.phase-2 { background: linear-gradient(135deg, rgba(14, 165, 233, 0.5), rgba(56, 189, 248, 0.3)); border-bottom: 1px solid rgba(14, 165, 233, 0.4); }
.phase-3 { background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(52, 211, 153, 0.3)); border-bottom: 1px solid rgba(16, 185, 129, 0.4); }
.phase-4 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(251, 191, 36, 0.3)); border-bottom: 1px solid rgba(245, 158, 11, 0.4); }
.phase-5 { background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(252, 165, 165, 0.3)); border-bottom: 1px solid rgba(239, 68, 68, 0.4); }

.p-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

.p-phase {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.p-card-body {
    padding: 20px;
    flex: 1;
}

.p-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.p-card-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.p-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
}

.topic-tag i {
    font-size: 0.65rem;
}

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

.p-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}

.p-done {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.p-card-footer i {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.pertemuan-card:hover .p-card-footer i {
    transform: translateX(4px);
    color: var(--primary-light);
}

/* ===================================================
   PHASE TIMELINE
   =================================================== */
.guide-section {
    background: var(--bg-surface);
}

.phase-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.phase-timeline::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 56px;
    bottom: 56px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0.4;
}

.phase-item {
    display: flex;
    gap: 28px;
    padding: 24px 0;
    position: relative;
}

.phase-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.4);
    z-index: 1;
}

.phase-content {
    flex: 1;
    padding-top: 8px;
}

.phase-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.phase-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.phase-deliverable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34D399;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===================================================
   TOOLS SECTION
   =================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--shadow);
}

.tool-primary {
    border-color: rgba(108, 60, 225, 0.4);
    background: rgba(108, 60, 225, 0.06);
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(108, 60, 225, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.tool-icon-ai { background: rgba(245, 158, 11, 0.15); color: #FCD34D; }
.tool-icon-design { background: rgba(236, 72, 153, 0.15); color: #F9A8D4; }
.tool-icon-code { background: rgba(14, 165, 233, 0.15); color: #7DD3FC; }

.tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.tool-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tool-tag-required { background: rgba(108, 60, 225, 0.2); color: #A78BFA; border: 1px solid rgba(108, 60, 225, 0.3); }
.tool-tag-ai { background: rgba(245, 158, 11, 0.15); color: #FCD34D; border: 1px solid rgba(245, 158, 11, 0.3); }
.tool-tag-design { background: rgba(236, 72, 153, 0.15); color: #F9A8D4; border: 1px solid rgba(236, 72, 153, 0.3); }
.tool-tag-code { background: rgba(14, 165, 233, 0.15); color: #7DD3FC; border: 1px solid rgba(14, 165, 233, 0.3); }

/* ===================================================
   TUGAS SECTION
   =================================================== */
.tugas-section {
    background: var(--bg-surface);
}

.tugas-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.tugas-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.tugas-item:hover {
    border-color: var(--border-light);
}

.tugas-final {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.04);
}

.tugas-num {
    width: 44px;
    height: 44px;
    background: rgba(108, 60, 225, 0.2);
    border: 1px solid rgba(108, 60, 225, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.tugas-final .tugas-num {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.3);
    color: #FCD34D;
    font-size: 1.1rem;
}

.tugas-content {
    flex: 1;
}

.tugas-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.tugas-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.tugas-deadline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.tugas-type {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    height: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.tugas-type-final {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #FCD34D;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--text-accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

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

/* ===================================================
   PERTEMUAN PAGE LAYOUT
   =================================================== */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.page-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.back-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.page-nav-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.pnav-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.pnav-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-nav-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.nav-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.nav-ctrl-btn:hover {
    background: rgba(108, 60, 225, 0.15);
    color: var(--primary-light);
    border-color: rgba(108, 60, 225, 0.3);
}

/* ===================================================
   PERTEMUAN CONTENT PAGE
   =================================================== */
.page-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 64px;
}

.page-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 24px 0;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 20px;
    margin-bottom: 8px;
    margin-top: 16px;
}

.sidebar-section-title:first-child {
    margin-top: 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav-item.active {
    color: var(--primary-light);
    background: rgba(108, 60, 225, 0.08);
    border-left-color: var(--primary-light);
}

.sidebar-nav-item i {
    width: 16px;
    font-size: 0.75rem;
    text-align: center;
    flex-shrink: 0;
}

.page-main {
    flex: 1;
    min-width: 0;
    padding: 40px;
    max-width: 860px;
}

/* ===================================================
   CONTENT BLOCKS
   =================================================== */
.content-section {
    margin-bottom: 56px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(108, 60, 225, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(108, 60, 225, 0.2);
}

.content-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--text-primary);
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.content-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--text-secondary);
}

.content-section p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.content-section ul, .content-section ol {
    margin: 12px 0 20px 0;
    padding-left: 0;
    list-style: none;
}

.content-section ul li, .content-section ol li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.content-section ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

.content-section ol {
    counter-reset: list-counter;
}

.content-section ol li {
    counter-increment: list-counter;
}

.content-section ol li::before {
    content: counter(list-counter);
    background: rgba(108, 60, 225, 0.2);
    color: var(--primary-light);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===================================================
   CODE BLOCKS
   =================================================== */
.code-block {
    background: #0D1117;
    border: 1px solid #30363D;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #161B22;
    border-bottom: 1px solid #30363D;
}

.code-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #8B949E;
    font-family: 'JetBrains Mono', monospace;
}

.code-block-title i {
    font-size: 0.75rem;
}

.copy-btn {
    background: none;
    border: 1px solid #30363D;
    color: #8B949E;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: #21262D;
    color: #C9D1D9;
    border-color: #8B949E;
}

.copy-btn.copied {
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.4);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #C9D1D9;
    tab-size: 4;
}

/* ===================================================
   INFO BOXES
   =================================================== */
.info-box {
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-box-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box-content {
    flex: 1;
}

.info-box-content strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-box-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.box-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.box-info .info-box-icon { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.box-info .info-box-content strong { color: #93C5FD; }
.box-info .info-box-content p { color: #BFDBFE; }

.box-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.box-warning .info-box-icon { background: rgba(245, 158, 11, 0.2); color: #FCD34D; }
.box-warning .info-box-content strong { color: #FDE68A; }
.box-warning .info-box-content p { color: #FEF3C7; }

.box-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.box-success .info-box-icon { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.box-success .info-box-content strong { color: #6EE7B7; }
.box-success .info-box-content p { color: #A7F3D0; }

.box-tip {
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.box-tip .info-box-icon { background: rgba(236, 72, 153, 0.2); color: #F9A8D4; }
.box-tip .info-box-content strong { color: #FBCFE8; }
.box-tip .info-box-content p { color: #FCE7F3; }

/* ===================================================
   PROMPT CARDS
   =================================================== */
.prompt-card {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.08), rgba(14, 165, 233, 0.05));
    border: 1px solid rgba(108, 60, 225, 0.25);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.prompt-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.prompt-card-header i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.prompt-card-header span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.prompt-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-style: italic;
    position: relative;
}

/* ===================================================
   QUIZ SECTION
   =================================================== */
.quiz-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 24px 0;
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.quiz-header i {
    color: var(--accent);
    font-size: 1.2rem;
}

.quiz-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.quiz-question {
    margin-bottom: 24px;
}

.quiz-question p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

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

.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: var(--text-secondary);
    user-select: none;
}

.quiz-option:hover {
    background: rgba(108, 60, 225, 0.1);
    border-color: rgba(108, 60, 225, 0.3);
    color: var(--text-primary);
}

.quiz-option.correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34D399;
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

.quiz-feedback {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
}

.quiz-feedback.show { display: block; }
.quiz-feedback.correct { background: rgba(16, 185, 129, 0.1); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.quiz-feedback.wrong { background: rgba(239, 68, 68, 0.1); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ===================================================
   TABLE
   =================================================== */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.875rem;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.content-table th {
    background: rgba(108, 60, 225, 0.15);
    color: var(--text-accent);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
}

.content-table td {
    padding: 10px 16px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}

.content-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.content-table code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #A5D6FF;
}

/* ===================================================
   STEP CARDS
   =================================================== */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s ease;
}

.step-item:hover {
    border-color: var(--border-light);
}

.step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===================================================
   PROGRESS BAR
   =================================================== */
.progress-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.progress-indicator::-webkit-scrollbar { display: none; }

.progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.progress-step:hover {
    color: var(--text-secondary);
}

.progress-step.active {
    color: var(--primary-light);
}

.progress-step.done {
    color: var(--success);
}

.prog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.2s ease;
}

.progress-step.active .prog-dot {
    background: var(--primary-light);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

.progress-step.done .prog-dot {
    background: var(--success);
}

.prog-line {
    width: 24px;
    height: 1px;
    background: var(--border);
}

/* ===================================================
   PAGE HERO (Pertemuan)
   =================================================== */
.page-hero {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.15) 0%, rgba(14, 165, 233, 0.08) 100%);
    border-bottom: 1px solid var(--border);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 60, 225, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 60, 225, 0.2);
    border: 1px solid rgba(108, 60, 225, 0.35);
    color: var(--text-accent);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.page-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.page-hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 20px;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

.page-hero-meta-item i {
    color: var(--primary-light);
    font-size: 0.75rem;
}

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

    .page-sidebar {
        display: none;
    }

    .page-main {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding-top: 88px;
        gap: 32px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        max-width: 100%;
        width: 100%;
    }

    .hero-badge {
        font-size: 0.72rem;
    }

    .hero-meta {
        align-items: center;
    }

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

    .topnav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 12px;
        flex-direction: column;
        gap: 4px;
    }

    .topnav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .brand-sub {
        display: none;
    }

    .section {
        padding: 56px 0;
    }

    .stats-bar .container {
        gap: 0;
    }

    .stat-item {
        padding: 8px 20px;
    }

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

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

    .phase-timeline::before {
        display: none;
    }

    .phase-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-nav-controls {
        display: none;
    }

    .page-hero {
        padding: 24px 20px;
    }

    .page-main {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .stat-divider {
        display: none;
    }

    .stats-bar .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

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

    .tugas-item {
        flex-wrap: wrap;
    }

    .code-body {
        font-size: 0.72rem;
    }
}

/* ===================================================
   SCROLLBAR CUSTOM
   =================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===================================================
   SYNTAX HIGHLIGHTING (Code Blocks)
   =================================================== */
.code-block .cm { color: #6A9955; font-style: italic; }  /* Comment */
.code-block .kw { color: #C586C0; }                       /* Keyword */
.code-block .fn { color: #DCDCAA; }                       /* Function */
.code-block .str { color: #CE9178; }                      /* String */
.code-block .num { color: #B5CEA8; }                      /* Number */
.code-block .var { color: #9CDCFE; }                      /* Variable */
.code-block .cls { color: #4EC9B0; }                      /* Class */

/* Inline code */
code {
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #A5D6FF;
    font-family: 'JetBrains Mono', monospace;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: #C9D1D9;
    font-size: inherit;
}

/* kbd element */
kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

/* ===================================================
   UTILITY CLASSES
   =================================================== */
.text-accent { color: var(--text-accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--accent); }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.mt-0 { margin-top: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
