.navbar {
    padding: 12px 15px;
    background: linear-gradient(
        135deg,
        rgba(58, 12, 163, 0.4),
        rgba(88, 20, 235, 0.6),
        rgba(0, 242, 255, 0.5),
        rgba(35, 49, 255, 0.6),
        rgba(0, 173, 255, 0.4)
    );
    background-size: 200% 200%;
    animation: light-sweep 10s ease-in-out infinite;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 10;
    will-change: background-position;
}

/* Tombol NAVBAR umum: menu & contact */
.navbar .btn.navbar-btn,
#sidebarToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Hover effect disamakan */
.navbar .btn.navbar-btn:hover,
#sidebarToggle:hover {
    background: rgba(0, 255, 255, 0.25);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px #00f2ff;
    color: #ffffff !important;
}

/* Ikon di semua tombol */
.navbar .btn.navbar-btn i,
#sidebarToggle i {
    margin-right: 6px;
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.navbar-brand {
    margin-left: 5px;
    font-weight: 600;
    font-size: 20px;
}

/* Keyframes animasi latar navbar */
@keyframes light-sweep {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.navbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #00ffe7, 0 0 12px #00c6ff;
}

.navbar .icon {
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.5));
}

.electric-header {
    color: #ffffff;
    font-size: 23px;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    text-shadow:
        0 0 10px #00ffe7,
        0 0 20px #00c6ff,
        0 0 30px #0078e6,
        0 0 40px #0044ff;
    animation: flicker-glow 2.5s infinite;
    will-change: opacity, text-shadow;
}

/* Efek flicker electric */
@keyframes flicker-glow {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 8px #00eaff,
            0 0 12px #00caff,
            0 0 20px #0055ff;
    }
    5% { opacity: 0.3; }
    10% { opacity: 1; }
    15% { opacity: 0.5; }
    20% { opacity: 1; }
    22% { opacity: 0.2; }
    25% { opacity: 1; }
    70% {
        text-shadow:
            0 0 16px #00ffe7,
            0 0 30px #00c6ff,
            0 0 45px #0078e6;
    }
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 5px;
        position: relative;
    }

    .navbar-brand {
        font-size: 18px;
        font-weight: 700;
        position: absolute;
        left: 50%;
        transform: translateX(-52%); /* geser ke kiri */
        margin-left: 0 !important;
        z-index: 1;
        pointer-events: none;
    }

    .navbar .btn.navbar-btn,
    #sidebarToggle {
        padding: 6px 10px;
        font-size: 17px;
        height: 36px;
        z-index: 2;
    }

    .navbar .btn.navbar-btn i,
    #sidebarToggle i {
        margin-right: 6px;
    }
}
