:root {
    --bg: #0a1628;
    --bg-secondary: #0d1f3c;
    --bg-card: #112240;
    --fg: #e6f1ff;
    --muted: #8892b0;
    --accent: #64ffda;
    --accent-blue: #4a90d9;
    --democrat-blue: #0d3b66;
    --border: #1e3a5f;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #1e3a5f 0%, #0a1628 60%);
    background-attachment: fixed;
    /* Padding bawah agar konten tidak tertutup menu bawah di HP */
    padding-bottom: 80px; 
}

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
}

/* Scrollbar Keren */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(var(--democrat-blue), var(--accent-blue)); 
    border-radius: 5px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- ANIMATIONS & EFFECTS --- */

.noise-overlay {
    position: fixed; inset: 0; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-fade-up { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

.floating { animation: float 6s ease-in-out infinite; }

.reveal {
    opacity: 0; transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- COMPONENTS --- */

/* Navbar Desktop */
header nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-link { position: relative; font-weight: 500; transition: color 0.3s; }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: width 0.3s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--democrat-blue), #2563eb);
    color: white; padding: 14px 32px; border-radius: 50px;
    font-weight: 600; letter-spacing: 0.5px; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative; overflow: hidden; z-index: 1;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: rgba(255,255,255,0.1); transition: width 0.3s ease; z-index: -1;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5); }
.btn-primary:hover::before { width: 100%; }

.btn-outline {
    background: transparent; border: 2px solid var(--accent-blue); color: var(--accent-blue);
    padding: 12px 30px; border-radius: 50px; font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline:hover { background: var(--accent-blue); color: white; transform: translateY(-3px); }

/* Cards & Containers */
.glass-card {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-blue);
}

/* Timeline */
.timeline { position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--bg-card));
}
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-50%); } }

.timeline-dot {
    position: absolute; left: 13px; top: 0; width: 16px; height: 16px;
    background: var(--accent); border-radius: 50%; z-index: 2;
    box-shadow: 0 0 0 4px rgba(100, 255, 218, 0.2);
}
@media (min-width: 768px) { .timeline-dot { left: 50%; transform: translateX(-50%); } }

/* Gallery */
.portfolio-card {
    border-radius: 12px; overflow: hidden; position: relative; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: all 0.5s ease;
}
.portfolio-card img { transition: transform 0.7s ease; width: 100%; height: 100%; object-fit: cover; }
.portfolio-card:hover img { transform: scale(1.1); }
.portfolio-card .overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.9), transparent);
    opacity: 0; transition: 0.3s; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.portfolio-card:hover .overlay { opacity: 1; }
.portfolio-card:hover { transform: translateY(-5px); }

/* Typing Effect Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- NEW MOBILE BOTTOM NAVIGATION (MEWAH & HIDUP) --- */
.mobile-bottom-nav {
    display: none; /* Hidden on Desktop */
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        height: 70px;
        background: rgba(13, 31, 60, 0.85); /* Dark Glass */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        z-index: 9999;
        padding: 0 10px;
    }

    .nav-item-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        text-decoration: none;
        position: relative;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .nav-item-mobile svg {
        width: 24px;
        height: 24px;
        transition: all 0.3s ease;
        z-index: 2;
    }
    
    .nav-item-mobile span {
        font-size: 0px; /* Hide text default */
        opacity: 0;
        transition: all 0.3s ease;
        position: absolute;
        bottom: -20px;
    }

    /* Active State (Hidup & Mewah) */
    .nav-item-mobile.active {
        transform: translateY(-15px);
        color: white;
    }

    .nav-item-mobile.active .icon-bg {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(135deg, var(--accent-blue), var(--democrat-blue));
        border-radius: 50%;
        box-shadow: 0 5px 20px rgba(74, 144, 217, 0.5);
        opacity: 1;
        transform: scale(1);
        z-index: 1;
        animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-item-mobile .icon-bg {
        opacity: 0;
        transform: scale(0);
        transition: all 0.3s ease;
    }

    /* Bounce animation when clicked */
    @keyframes popUp {
        0% { transform: scale(0); }
        80% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
}

/* Dashboard Specifics */
.form-input { width: 100%; background: var(--bg); border: 1px solid var(--border); padding: 10px; color: white; border-radius: 6px; }
.form-input:focus { border-color: var(--accent-blue); outline: none; }
.card { background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); }
.card-header { padding: 15px; border-bottom: 1px solid var(--border); }
.card-body { padding: 15px; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: scale(1); }
.btn-login {
    width: 100%; background: linear-gradient(135deg, var(--democrat-blue), var(--accent-blue));
    border: none; padding: 16px; color: var(--fg); font-weight: 600; cursor: pointer;
    border-radius: 4px; transition: all 0.3s ease;
}
.btn-login:hover { transform: translateY(-2px); }