/* Header dan Navbar */
header {
    background-color: #464033;
    color: #fff;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo */
.logo img {
    height: 50px;
    width: auto;
}

/* Hover Animation for Logo */
.logo img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1); /* Membuat logo sedikit membesar */
    opacity: 0.9; /* Memberikan sedikit transparansi */
}


/* Menu Default */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a.active, .nav-links a:hover {
    background-color: #a0522d;
    color: #e3e3e3;
}

/* Scrollable Menu */
.scrollable-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    max-height: 300px;
    background-color: #a0522d;
    padding: 10px;
    position: absolute;
    top: 60px;
    right: 15px;
    border-radius: 8px;
    display: none;
    z-index: 1001;
}

.scrollable-menu a {
    font-size: 16px;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.scrollable-menu a:hover {
    background-color: #a0522d;
    color: #e3e3e3;
}

/* Tombol Toggle */
.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle:hover {
    color: #e3e3e3;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tombol "Install App" */
#install-btn {
    display: none; /* Initial state, akan tampil saat ready */
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    background-color: #a0522d;
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    top: 80px; /* Mengatur posisi agar sejajar dengan logo */
    right: 20px; /* Sesuaikan jarak dari kanan */
    z-index: 1000;
    text-align: center;
    width: auto;
    max-width: 200px; /* Lebar maksimal tombol */
}

/* Efek Hover Tombol */
#install-btn:hover {
    background-color: #a0522d;
    transform: translateY(-5px); /* Tombol terangkat sedikit */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Fokus pada tombol */
#install-btn:focus {
    outline: none;
    border: 2px solid #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

/* Animasi muncul tombol */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(-50px); /* Tombol muncul dari atas */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#install-btn.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}
