:root {
    --bg-color: #ffffff;
    --primary-blue: #0056D2;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --dot-color: #E2E8F0;
    --accent-orange: #f97316;
}

[data-theme="dark"] {
    --bg-color: #0b1120;
    --text-dark: #f1f5f9;
    --text-muted: #94a3b8;
    --dot-color: #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center; /* Menurunkan seluruh konten ke tengah layar */
    overflow-x: hidden;
    transition: background 0.3s ease;
}

.dot-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
    background-size: 24px 24px; z-index: -1;
}

.toolbar { position: fixed; top: 25px; right: 25px; display: flex; gap: 10px; z-index: 2000; }
.tool-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--dot-color);
    background: var(--bg-color); color: var(--text-dark); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 40px; }

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.brand { font-size: 52px; font-weight: 800; letter-spacing: -2px; }
.brand span { color: var(--primary-blue); }

.hero { margin-bottom: 40px; }
.greeting { font-size: 24px; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; }
.role { font-size: 28px; font-weight: 600; }

/* Font Monospace untuk Typing (IT Style) */
.mono-text {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-orange);
    font-size: 28px;
}

.cursor { color: var(--primary-blue); font-weight: 400; animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.main-nav { margin-bottom: 40px; }
.nav-links { list-style: none; display: flex; gap: 25px; flex-wrap: wrap; }
.nav-links a {
    text-decoration: none; color: var(--text-dark);
    font-weight: 500; font-size: 18px; transition: 0.3s;
    padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); font-weight: 800; border-bottom: 2px solid var(--primary-blue); }

/* Timeline UI: Presisi di Tengah */
.timeline-container {
    display: none; margin: 30px 0 40px 15px;
    padding-left: 35px; border-left: 3px solid var(--dot-color);
    animation: slideIn 0.4s ease both;
}
.timeline-container.active { display: block; }
.timeline-item { position: relative; margin-bottom: 35px; }

.timeline-dot {
    position: absolute; left: -46.5px; top: 6px;
    width: 20px; height: 20px; background: var(--bg-color);
    border: 4px solid var(--primary-blue); border-radius: 50%;
}

.time-year { font-weight: 800; font-size: 14px; opacity: 0.7; margin-bottom: 5px; display: block; }
.time-content h4 { font-size: 20px; margin-bottom: 5px; }
.time-content p { color: var(--text-muted); font-size: 15px; max-width: 650px; }

/* Resume Card */
.resume-section { display: none; padding: 20px 0; animation: fadeIn 0.5s ease; }
.resume-section.active { display: block; }
.resume-card {
    background: var(--bg-color); border: 1px solid var(--dot-color);
    padding: 60px 40px; border-radius: 20px; text-align: center;
    max-width: 600px; box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.badge-doc { background: #fee2e2; color: var(--accent-orange); padding: 5px 15px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.resume-card h2 { font-size: 42px; margin: 20px 0 15px; font-weight: 800; }
.btn-download {
    display: inline-block; background: var(--accent-orange); color: white;
    padding: 15px 35px; border-radius: 8px; text-decoration: none; font-weight: 700;
    margin-top: 20px;
}

/* CTA & Social Hover (Floating Effect) */
.cta-wrapper { display: inline-flex; flex-direction: column; gap: 15px; }
.btn-touch {
    padding: 14px 30px; border: 2px solid var(--text-dark);
    background: transparent; color: var(--text-dark); font-weight: 600;
    font-size: 18px; border-radius: 4px; cursor: pointer; transition: 0.3s;
}
.btn-touch:hover, .btn-touch.active { background: var(--text-dark); color: white; }

.social-reveal { display: flex; gap: 20px; height: 0; opacity: 0; overflow: visible; transition: 0.5s ease; padding: 10px 5px; }
.social-reveal.show { height: 50px; opacity: 1; margin-top: 5px; }

.soc-link {
    display: inline-block; font-size: 24px; color: var(--text-dark);
    text-decoration: none; transform: translateY(-20px); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    transition-delay: var(--d);
}
.social-reveal.show .soc-link { transform: translateY(0); opacity: 1; }
.soc-link:hover { transform: translateY(-8px) !important; color: var(--primary-blue); transition-delay: 0s; }

.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 28px; height: 3px; background: var(--text-dark); }

footer { margin-top: 80px; color: var(--text-muted); font-size: 14px; }
.heart { color: #ff4d4d; }

@keyframes slideIn { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    .container { padding: 40px 25px; }
    .brand { font-size: 38px; }
    .burger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 60px; right: 0; width: 100%; max-width: 280px;
        flex-direction: column; background: var(--bg-color); padding: 25px; border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--dot-color); z-index: 1000; gap: 20px;
    }
    .nav-links.show { display: flex; }
}