:root { --topbar-h: 68px; --sidebar-w: 272px; }
        * { margin: 0; padding: 0; box-sizing: border-box; }

        /* ---------- Top bar ---------- */
        .topbar {
            position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 200;
            display: flex; align-items: center; gap: .9rem; padding: 0 1rem;
            background: var(--neo-cream); border-bottom: 4px solid #000;
        }
        .toggle-btn {
            width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
            background: var(--neo-yellow); color: #000; font-size: 1.4rem; cursor: pointer;
            border: 3px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 0 #000;
            transition: box-shadow .15s, transform .15s;
        }
        .toggle-btn:hover { box-shadow: 5px 5px 0 0 #000; transform: translateY(-2px); }
        .toggle-btn:active { box-shadow: 0 0 0 0 #000; transform: translate(3px, 3px); }
        .brand { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; text-shadow: 3px 3px 0 var(--neo-green); text-decoration: none; white-space: nowrap; }
        .brand .dot, .sidebar-title .dot {
            margin-left: .35rem; padding: .05rem .6rem; font-size: .85rem; text-shadow: none;
            background: var(--neo-green); border: 3px solid #000; border-radius: 999px; box-shadow: 2px 2px 0 0 #000;
        }
        .topbar-spacer { flex: 1; }
        .profile-img { width: 44px; height: 44px; display: block; object-fit: cover; border-radius: 50%; border: 3px solid #000; box-shadow: 2px 2px 0 0 #000; background: var(--neo-yellow); }

        /* ---------- Sidebar ---------- */
        .sidebar {
            position: fixed; top: 0; left: 0; z-index: 220;
            width: var(--sidebar-w); height: 100vh; padding: 1rem .9rem 2.5rem; overflow-y: auto;
            background: #fff; border-right: 4px solid #000;
            transform: translateX(-100%); transition: transform .25s ease;
        }
        .sidebar.active { transform: translateX(0); box-shadow: 6px 0 0 0 #000; }
        .sidebar-title { display: flex; align-items: center; height: calc(var(--topbar-h) - 1rem); padding: 0 .25rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; text-shadow: 3px 3px 0 var(--neo-green); }
        .sidebar-close {
            margin-left: auto; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
            background: var(--neo-yellow); color: #000; cursor: pointer;
            border: 3px solid #000; border-radius: 10px; box-shadow: 2px 2px 0 0 #000;
        }
        .nav-heading, .menu-section-title {
            display: inline-block; margin: 1.2rem 0 .6rem; padding: .25rem .6rem;
            font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
            background: var(--neo-yellow); border: 3px solid #000; border-radius: 8px;
        }
        .nav-item { margin-bottom: .4rem; }
        .nav-link, .project-item, .menu-item {
            display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; padding: .55rem .7rem;
            font-size: .9rem; font-weight: 600; color: #000; text-decoration: none;
            border: 3px solid transparent; border-radius: 12px;
            transition: transform .12s, box-shadow .12s, background .12s;
        }
        .nav-link i { width: 1.2rem; text-align: center; font-size: 1.05rem; }
        .nav-link:hover, .project-item:hover, .menu-item:hover { background: var(--neo-cream); border-color: #000; box-shadow: 3px 3px 0 0 #000; transform: translateY(-2px); }
        .project-item-icon, .menu-item-icon {
            width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
            background: var(--neo-yellow); border: 3px solid #000; border-radius: 10px; font-size: .85rem;
        }
        .menu-item:nth-of-type(even) .menu-item-icon { background: var(--neo-green); }
        .project-badge {
            margin-left: auto; padding: .1rem .55rem; font-size: .65rem; font-weight: 700;
            background: var(--neo-green); border: 2px solid #000; border-radius: 999px;
        }
        .project-badge.api { background: var(--neo-yellow); }
        .sidebar-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
        .sidebar-overlay.show { opacity: 1; pointer-events: auto; }

        /* ---------- Main ---------- */
        main { position: relative; max-width: 1040px; padding: calc(var(--topbar-h) + 1.75rem) 1.1rem 2rem; }
        @media (min-width: 640px) { main { padding: calc(var(--topbar-h) + 2.25rem) 2rem 2.5rem; } }

        .card { background: #fff; border: 4px solid #000; border-radius: 24px; box-shadow: 6px 6px 0 0 #000; padding: 1.5rem; }
        .card-title {
            display: inline-block; margin-bottom: 1rem; padding: .375rem .75rem;
            font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
            background: var(--neo-green); border: 3px solid #000; border-radius: 8px; text-shadow: none;
        }
        .card-title.yellow { background: var(--neo-yellow); }

        /* hero (portfolio style) */
        .hero { text-align: center; margin-bottom: 2rem; }
        .avatar-ring { display: inline-block; position: relative; margin-bottom: 1.2rem; padding: 8px; background: var(--neo-yellow); border: 6px solid #000; border-radius: 50%; box-shadow: 6px 6px 0 0 #000; }
        .avatar-ring img { width: 128px; height: 128px; display: block; object-fit: cover; border-radius: 50%; border: 6px solid #000; }
        .avatar-ring::after { content: ''; position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; background: var(--neo-green); border: 4px solid #000; border-radius: 50%; box-shadow: 2px 2px 0 0 #000; }
        .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.1; margin-bottom: .6rem; }
        .hero-pill { display: inline-block; margin-bottom: .6rem; padding: .5rem 1rem; font-size: .85rem; font-weight: 700; background: var(--neo-green); border: 3px solid #000; border-radius: 999px; box-shadow: 3px 3px 0 0 #000; }
        .hero-tag { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: #4b5563; margin-bottom: 1.2rem; }
        .socials { display: flex; justify-content: center; gap: 1rem; }
        .social {
            width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
            font-size: 1.15rem; color: #000; text-decoration: none; background: #fff;
            border: 3px solid #000; border-radius: 50%; box-shadow: 3px 3px 0 0 #000; transition: box-shadow .15s, transform .15s;
        }
        .social:hover { box-shadow: 5px 5px 0 0 #000; transform: translateY(-4px); }
        .social.yellow { background: var(--neo-yellow); }
        .social.blue { background: var(--neo-blue); color: #fff; }

        .section-label { display: inline-block; margin: 0 0 1rem .25rem; padding: .375rem .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--neo-green); border: 3px solid #000; border-radius: 8px; }
        .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
        .cat-tile {
            display: flex; align-items: center; gap: .8rem; padding: .9rem; color: #000; text-decoration: none;
            background: #fff; border: 4px solid #000; border-radius: 24px; box-shadow: 6px 6px 0 0 #000;
            transition: box-shadow .15s, transform .15s;
        }
        .cat-tile:hover { box-shadow: 8px 8px 0 0 #000; transform: translateY(-4px); }
        .cat-tile:active { box-shadow: 0 0 0 0 #000; transform: translate(4px, 4px); }
        .cat-tile i { width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; background: var(--neo-yellow); border: 3px solid #000; border-radius: 12px; }
        .cat-tile:nth-child(even) i { background: var(--neo-green); }
        .cat-tile span { min-width: 0; font-size: .95rem; font-weight: 700; overflow-wrap: break-word; }

        .widgets { display: grid; grid-template-columns: 1fr; gap: 1.3rem; margin-bottom: 1.6rem; }
        @media (min-width: 720px) { .widgets { grid-template-columns: 1fr 1fr; } }
        .card-content { display: flex; align-items: center; gap: 1rem; }
        .card-icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--neo-yellow); border: 3px solid #000; border-radius: 14px; box-shadow: 2px 2px 0 0 #000; }
        #browser_info, #battery-level { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
        #browser_sholat, #charging-status { font-size: .8rem; font-weight: 600; color: #4b5563; }

        .api-image img { width: 100%; max-height: 280px; object-fit: cover; display: block; margin-bottom: 1.2rem; border: 4px solid #000; border-radius: 18px; box-shadow: 4px 4px 0 0 #000; }
        .api-description h3 { display: inline-block; margin-bottom: 1rem; padding: .375rem .75rem; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; background: var(--neo-yellow); border: 3px solid #000; border-radius: 8px; }
        .api-description p { margin-bottom: .8rem; font-size: .92rem; font-weight: 500; line-height: 1.7; color: #374151; }
        .api-description p:last-child { margin-bottom: 0; }

        footer { position: relative; max-width: 1040px; padding: 1rem 1rem 2.5rem; text-align: center; font-size: .8rem; font-weight: 600; color: #4b5563; }

        .floating-apk-btn {
            position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 99;
            width: 60px; height: 60px; display: none; align-items: center; justify-content: center;
            font-size: 1.5rem; color: #000; cursor: pointer;
            background: var(--neo-yellow); border: 4px solid #000; border-radius: 50%; box-shadow: 4px 4px 0 0 #000;
            transition: box-shadow .15s, transform .15s;
        }
        .floating-apk-btn:hover { box-shadow: 6px 6px 0 0 #000; transform: translateY(-3px); }

        /* ---------- Desktop: persistent sidebar ---------- */
        @media (min-width: 960px) {
            .sidebar { transform: translateX(0); }
            .sidebar.active { box-shadow: none; }
            .sidebar-overlay, .sidebar-close, .toggle-btn { display: none; }
            .topbar { padding-left: calc(var(--sidebar-w) + 1.5rem); }
            .topbar .brand { display: none; }
            main, footer { margin-left: var(--sidebar-w); }
        }
        @media (max-width: 480px) {
            .cat-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
            .cat-tile { padding: .7rem; gap: .55rem; }
            .cat-tile i { width: 36px; height: 36px; }
            .cat-tile span { font-size: .85rem; }
        }
