/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Gaya untuk body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Hindari scroll horizontal */
}

/* Header */
header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Jarak antara logo dan teks */
}

.logo img {
    width: 50px;
    height: auto;
}

.logo h1 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

/* Navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: #28a745;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Hamburger menu untuk mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* Menu slide-in untuk mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: #007bff;
    z-index: 1500;
    transition: left 0.3s ease;
    flex-direction: column;
    padding: 20px;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0; /* Menu aktif akan muncul dari sisi kiri */
}

/* Header pada menu mobile */
.mobile-menu h2 {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px; /* Jarak antara header dan menu */
}

/* Daftar menu mobile */
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Jarak antar menu */
}

.mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
    background: #28a745;
    transform: scale(1.05); /* Efek zoom saat hover */
}

/* Media Queries untuk Responsif */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Sembunyikan menu desktop */
    }

    .hamburger {
        display: flex; /* Tampilkan ikon hamburger */
    }

    .mobile-menu {
        display: flex; /* Pastikan menu slide-in tersedia */
    }
}
