:root { --modern-green: #10b981; --dark-deep: #0f172a; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: #f8fafc; margin: 0; overflow-x: hidden; }

/* PRELOADER STYLE */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(248, 250, 252, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: center; z-index: 10000; transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s; }
.loader-wrapper { position: relative; width: 120px; height: 120px; display: flex; justify-content: center; align-items: center; animation: floating 3s ease-in-out infinite; }
.loader-logo { width: 60px; height: auto; position: absolute; z-index: 2; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1)); }
.loader-circle { width: 110px; height: 110px; border: 2px solid rgba(16, 185, 129, 0.1); border-top: 4px solid var(--modern-green); border-radius: 50%; position: absolute; z-index: 1; animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* TOPBAR */
.bg-topbar { background: var(--dark-deep); color: #fff; font-size: 11px; height: 45px; display: flex; align-items: center; z-index: 5000; position: relative; }
.icon-national { height: 18px; margin-right: 8px; }

@media (max-width: 991px) {
    .bg-topbar { position: fixed !important; top: 0; width: 100%; }
    .navbar { display: none !important; }
    .bottom-nav { display: flex !important; }
    body { padding-top: 45px; padding-bottom: 85px; }
}

/* NAVBAR DESKTOP */
@media (min-width: 992px) {
    .navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 2000; }
}
.nav-link { font-weight: 700; text-transform: uppercase; font-size: 0.7rem; color: var(--dark-deep) !important; letter-spacing: 0.5px; }

/* SLIDER */
.carousel-item { background: #000; aspect-ratio: 5 / 2; }
.carousel-fade .carousel-item { opacity: 0; transition: opacity 0.8s ease-in-out; }
.carousel-fade .carousel-item.active { opacity: 1; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

@media (max-width: 991px) {
    #mainHero { padding: 15px 0; }
    .carousel-inner { width: 92%; margin: 0 auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
    .carousel-caption h1 { font-size: 1.1rem !important; }
    .carousel-caption p { font-size: 0.65rem !important; }
}

/* BOTTOM NAV MOBILE */
.bottom-nav { position: fixed !important; bottom: 0; left: 0; right: 0; background: #fff; display: none; align-items: center; z-index: 9000; height: 75px; border-top: 1px solid #eee; box-shadow: 0 -5px 25px rgba(0,0,0,0.15); }
.nav-fixed-item { flex-shrink: 0; background: #fff; position: relative; z-index: 9001; padding: 0 15px; }
.nav-scroll-container { display: flex; overflow-x: auto; white-space: nowrap; height: 100%; align-items: center; flex-grow: 1; padding: 0 10px; }
.nav-scroll-container::-webkit-scrollbar { display: none; }
.bottom-nav-item { display: inline-flex; flex-direction: column; align-items: center; padding: 0 12px; text-decoration: none; color: #94a3b8; font-size: 8px; font-weight: 800; border:none; background:none; }
.bottom-nav-item.active { color: var(--modern-green); }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }

.tablet-brand { display: none; align-items: center; text-decoration: none; padding-right: 15px; border-right: 1px solid #eee; margin-right: 5px; }
@media (min-width: 768px) and (max-width: 991px) {
    .tablet-brand { display: flex; }
    .tablet-brand img { height: 35px; margin-right: 8px; }
    .tablet-brand span { font-weight: 800; color: var(--dark-deep); font-size: 0.9rem; }
    .tablet-brand b { color: var(--modern-green); }
}

.dropup .dropdown-menu { position: fixed !important; bottom: 80px !important; left: 5% !important; width: 90% !important; border-radius: 15px !important; z-index: 9500; box-shadow: 0 -10px 30px rgba(0,0,0,0.2); transform: none !important; }

/* UI ELEMENTS */
#backToTop { position: fixed; bottom: 100px; right: 20px; width: 45px; height: 45px; background: var(--modern-green); color: white; border-radius: 50%; display: none; justify-content: center; align-items: center; z-index: 4500; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
footer { background: var(--dark-deep); color: #94a3b8; padding: 60px 0 110px; position: relative; z-index: 1; }
.footer-title { color: #fff; font-weight: 800; border-left: 3px solid var(--modern-green); padding-left: 12px; margin-bottom: 20px; text-transform: uppercase; font-size: 0.9rem; }

/* Menampilkan footer HANYA di desktop (min-width: 992px) */
footer { 
    display: none; 
    background: var(--dark-deep); 
    color: #94a3b8; 
    padding: 60px 0 30px; 
    position: relative; 
    z-index: 1; 
}

@media (min-width: 992px) {
    footer { display: block; }
}

/* Memperbaiki warna link agar terlihat jelas di background gelap */
.footer-link {
    color: #cbd5e1 !important; /* Warna abu-abu terang agar kontras */
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--modern-green) !important;
    transform: translateX(5px);
}

/* Mengatur ukuran badge store agar lebih kecil */
.store-badge {
    height: 35px; /* Perkecil tinggi badge */
    width: auto;
    transition: transform 0.3s;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* Custom width untuk kolom link terkait agar lebih lebar */
.col-links {
    flex: 0 0 auto;
    width: 20%; /* Memberikan ruang lebih untuk link terkait */
}

/* Penyesuaian kolom store agar tidak memakan tempat */
.col-store {
    flex: 0 0 auto;
    width: 15%; 
}

.footer-form label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.footer-form .form-control::placeholder {
    color: #4b5563; /* Warna placeholder agar lebih soft */
    font-size: 0.7rem;
}

/* Styling App Card */
.app-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.app-card:hover {
    transform: translateY(-5px);
    border-color: #198754;
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.1) !important;
}

/* Styling Gallery */
.gallery-item {
    height: 250px;
    cursor: pointer;
}
.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(25, 135, 84, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Styling Menu Aktif yang Lebih Besar & Jelas */
.nav-link.active-gen-z {
    color: #10b981 !important; /* Hijau Siak */
    font-weight: 800 !important;
    transform: scale(1.1); /* Perbesar sedikit */
    transition: all 0.3s ease;
}

/* Garis bawah tebal untuk penanda */
@media (min-width: 992px) {
    .nav-link.active-gen-z::after {
        content: '';
        display: block;
        width: 100%; /* Full selebar teks */
        height: 4px; /* Lebih tebal */
        background: #10b981;
        position: absolute;
        bottom: -5px;
        left: 0;
        border-radius: 50px;
        box-shadow: 0 2px 5px rgba(16, 185, 129, 0.4);
    }
}

/* Transisi Hover biar makin halus */
.navbar-nav .nav-link {
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: #10b981 !important;
    transform: translateY(-2px);
}