/* RESET & VARIABEL UTAMA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-primary: #0a0f1d;
    --bg-secondary: #111827;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --color-cyan: #06b6d4;
    --color-blue: #3b82f6;
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(6, 182, 212, 0.2);
}

/* LIGHT MODE */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #475569;
    --color-cyan: #0891b2;
    --color-blue: #2563eb;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(8, 145, 178, 0.2);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* LOADING SCREEN */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0a0f1d;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.scanner p {
    color: #06b6d4;
    font-family: monospace;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: bold;
}
.scanner .bar {
    width: 250px; height: 4px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    animation: scan 1.5s infinite linear;
}
@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* NAVBAR MODERN */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    color: var(--text-main); font-weight: 800; font-size: 1.4rem; text-decoration: none;
}
.logo span { color: var(--color-cyan); }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    transition: color 0.3s; padding: 5px 10px; border-radius: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-cyan); }

.theme-toggle, .burger { cursor: pointer; color: var(--text-main); font-size: 1.2rem; }
.burger { display: none; }

/* REUSABLE SECTIONS */
.section { padding: 100px 2rem 60px 2rem; max-width: 1200px; margin: 0 auto; }
.section-title {
    font-size: 2.2rem; text-align: center; margin-bottom: 50px;
    color: var(--text-main); position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px; background: var(--color-cyan);
    margin: 10px auto 0 auto; border-radius: 2px;
}

/* HERO / BERANDA */
.hero-section { display: flex; align-items: center; gap: 40px; min-height: 90vh; }
.hero-content { flex: 1; }
.badge {
    background: rgba(6, 182, 212, 0.1); color: var(--color-cyan);
    padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    border: 1px solid var(--glass-border);
}
.hero-content h1 { font-size: 2.8rem; margin: 15px 0; line-height: 1.2; }
.hero-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 25px; }
.hero-objectives { background: var(--bg-secondary); padding: 20px; border-radius: 8px; margin-bottom: 25px; }
.hero-objectives h3 { color: var(--color-cyan); margin-bottom: 10px; }
.hero-objectives ul { list-style-position: inside; color: var(--text-muted); }
.btn-primary {
    display: inline-block; background: var(--color-cyan); color: #fff; padding: 12px 28px;
    border-radius: 6px; text-decoration: none; font-weight: 600; transition: transform 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3); }
.hero-banner { flex: 1; display: flex; justify-content: center; }
.cyber-globe {
    font-size: 10rem; color: var(--color-cyan);
    animation: pulse 3s infinite ease-in-out;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 30px var(--color-cyan); }
}

/* PROFIL CARD */
.profile-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 30px; display: flex; align-items: center; gap: 40px; max-width: 700px; margin: 0 auto;
}
.profile-img { font-size: 5rem; color: var(--color-blue); }
.profile-info table { width: 100%; border-collapse: collapse; }
.profile-info td { padding: 10px; color: var(--text-main); }

/* TIMELINE STUDI KASUS */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::after {
    content: ''; position: absolute; width: 4px; background: var(--glass-border);
    top: 0; bottom: 0; left: 50%; margin-left: -2px;
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item::after {
    content: ''; position: absolute; width: 20px; height: 20px; right: -10px;
    background-color: var(--bg-primary); border: 4px solid var(--color-cyan);
    top: 15px; border-radius: 50%; z-index: 1;
}
.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }
.timeline-content {
    padding: 20px 30px; background: var(--glass-bg); position: relative;
    border-radius: 8px; border: 1px solid var(--glass-border);
}
.timeline-content h3 { color: var(--color-cyan); margin-bottom: 10px; }
.timeline-content p { font-size: 0.95rem; margin-bottom: 8px; color: var(--text-muted); }
.timeline-content strong { color: var(--text-main); }
.date { position: absolute; top: -30px; font-weight: bold; color: var(--color-blue); font-size: 1.1rem; }
.right .date { left: 30px; }
.left .date { right: 30px; }

/* GRID CARDS (ANALISIS & REKOMENDASI) */
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.bg-glass {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px); border-radius: 12px; padding: 25px;
}
.card h3, .card h4 { margin-bottom: 15px; font-size: 1.3rem; }
.text-cyan { color: var(--color-cyan); }
.border-cyan { border-left: 4px solid var(--color-cyan); background: var(--glass-bg); padding: 20px; border-radius: 0 12px 12px 0; }
.grid-container ul { list-style-position: inside; color: var(--text-muted); }

/* STATISTIK / CHARTS */
.charts-wrapper { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 20px; }
.chart-container { flex: 1; min-width: 300px; }
.chart-container h3 { text-align: center; margin-bottom: 20px; font-size: 1.1rem; }

/* REFERENSI */
.references-list ul { list-style: none; }
.references-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }
.references-list i { color: var(--color-blue); margin-right: 10px; }

/* FOOTER */
.footer { text-align: center; padding: 30px; background: var(--bg-secondary); border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }

/* ANIMASI SCROLL CLASS */
.animate-scroll { opacity: 0; transform: translateY(40px); transition: all 0.6s ease-out; }
.animate-scroll.show { opacity: 1; transform: translateY(0); }

/* BACK TO TOP */
#backToTop {
    position: fixed; bottom: 30px; right: 30px; display: none;
    background: var(--color-cyan); color: white; border: none; padding: 12px 15px;
    border-radius: 50%; cursor: pointer; z-index: 99; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .hero-section { flex-direction: column-reverse; text-align: center; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.right { left: 0%; }
    .timeline-item::after { left: 21px; }
    .right::after { left: 21px; }
    .left .date, .right .date { left: 70px; top: -25px; }
    .profile-card { flex-direction: column; text-align: center; }
}