/* Bagian Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    /* Border hanya atas dan bawah */
    border-top: 6px solid #41DCF0;
    border-bottom: 6px solid #41DCF0;
    /* Hilangkan margin supaya nempel ke atas */
    margin: 0;
    background: rgba(255, 255, 255, 0.75); /* transparan putih */
    backdrop-filter: blur(6px); /* efek buram */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) inset, 0 -4px 8px rgba(0, 0, 0, 0.05) inset;
    font-family: 'Hatter Display Pro', cursive;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.navbar-logo img {
    height: 30px;
}
.navbar-content {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    overflow: visible;
}
.navbar-menu {
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
    overflow-x: auto;
    white-space: nowrap;
}
.navbar-menu a {
    text-decoration: none;
    font-weight: bold;
    color: #224F93;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #41DCF0;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}
.navbar-menu a:hover {
    background-color: #68CDDF;
    transform: translateY(-2px);
}

/* Tambahan untuk tombol hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin-left: 15px;
    position: relative;
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    height: 4px;
    background-color: #224F93;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    padding: 14px;
    min-width: 220px;
    max-width: calc(100vw - 30px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    border: 2.5px solid #41DCF0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    text-decoration: none;
    font-weight: bold;
    color: #224F93;
    padding: 10px 14px;
    border-radius: 10px;
    background-color: #41DCF0;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:active {
    background-color: #68CDDF;
    transform: translateY(-2px);
}

/* Animasi tombol toggle jadi 'X' */
.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Responsif: atur layout untuk layar kecil */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 18px;
    }
    .navbar-menu {
        display: none !important;
    }
    .navbar-toggle {
        display: flex;
    }
}