.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #CAEBF2;
    color: #D9AE6A;
    font-family: Poppins, sans-serif;
    position: fixed;
    width: 100%;
    margin: 0;
    top: 0;
    left: 0;
    background-color: transparent; /* Start as transparent */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000; /* Z-index lebih tinggi dari banner */
}

.navbar ul {
    padding-left: 0;
}

.navbar li {
    text-align: center;
}

.navbar.scrolled {
    background-color: #CAEBF2;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Add shadow for effect */
}

/* Brand Section */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 100px;
    height: 70px;
}

.company-name {
    font-size: 1.2em;
    font-weight: bold;
}

/* Sembunyikan company-name untuk layar kecil, termasuk Galaxy Fold 2 saat dilipat */
@media (max-width: 936px) {
    .company-name {
        display: none;
    }
}

/* Menu Section */
.navbar-menu {
    align-items: center;
    display: flex;
    list-style: none;
    font-weight: 400;
    margin: auto;
}

.navbar-menu li {
    color: white;
    cursor: default;
    margin: 0.625rem 1.25rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;

    transition: color .3s;
}

.navbar-menu li:hover {
    color: #D9AE6A;
}

.navbar-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1em;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: #D9AE6A;
}

.dropdown {
    width: 12.5rem;
    display: grid;
    grid-template-rows: 0fr;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    translate: -50% 0;
    background-color: #CAEBF2;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 0.625rem;
    box-shadow: 0 0 10px 0 black;

    transition: grid-template-rows .5s;
}

.navbar-menu li:nth-child(2):hover .dropdown {
    height: fit-content;
    grid-template-rows: 1fr;
}

.navbar-menu li:nth-child(2) .nav-arrow {
    width: 1.2rem;
    height: 1.2rem;

    transition: transform .2s ease-in;
}

.navbar-menu li:nth-child(2):hover .nav-arrow {
    transform: rotate(.5turn);
}

.dropdown ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    overflow: hidden;
}

.dropdown ul li {
    width: 100px;
    padding: 5px;
}

/* .dropdown ul li a:hover {
    color: black;
} */

.navbar-bars {
    display: none;
    width: 1.7rem;
    height: 1.7rem;
    object-fit: cover;
    margin-right: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none; /* Sembunyikan menu navbar */
        flex-direction: column; /* Menu tampil vertikal */
        position: absolute;
        top: 60px;
        right: 1.25rem;
        background-color: #CAEBF2;  
        padding: 0.625rem;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .navbar-bars {
        display: block;
    }

    .navbar-menu li {
        position: relative;
        padding: 0.625rem;
    }

    .navbar-menu li .dropdown {
        width: 160px;
        left: 54%;
    }
}

.show {
    display: flex;
}