/* Styling Dasar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Navbar Utama */
.navbar {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

/* Navigasi Link (Desktop View) */
.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    display: block;
}

.nav-links li a:hover {
    color: #ffd700;
}

/* Tombol Burger (Tersembunyi di Desktop) */
.burger-menu {
    display: none; /* Sembunyikan secara default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-around;
}

.burger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}


/* RESPONSIVE DESIGN - MEDIA QUERY */

/* Munculkan Tombol Burger & Ubah Tampilan Menu di Layar Kecil (Max 768px) */
@media (max-width: 768px) {
    
    /* Tampilkan Tombol Burger */
    .burger-menu {
        display: flex; /* Munculkan tombol burger */
    }

    /* Atur Menu Navigasi */
    .nav-links {
        /* Sembunyikan di luar layar */
        position: absolute;
        top: 50px; /* Di bawah header */
        left: 0;
        width: 100%;
        background-color: #444;
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%); /* Sembunyikan ke kiri */
        z-index: 10;
    }
    
    /* Tampilan Menu Saat Aktif */
    .nav-links.active {
        transform: translateX(0); /* Geser ke posisi terlihat */
    }

    /* Atur Tampilan Link ke Vertikal */
    .nav-links ul {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links li {
        text-align: center;
        margin: 5px 0;
    }

    .nav-links li a {
        padding: 10px 20px;
        border-bottom: 1px solid #555;
    }

    /* Animasi Transformasi Burger saat Aktif (Menjadi X) */
    /* Bar Pertama */
    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    /* Bar Kedua (Sembunyikan) */
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    /* Bar Ketiga */
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}