:root {
    --bs-primary: #0b78ff;
    --bs-primary-rgb: 11, 120, 255;
    --header-h: 72px;
    /* tinggi header */
}

/* ===============================
   PRIMARY COLOR BLUEVERA
=============================== */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
}

.text-primary {
    color: var(--bs-primary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

/* ===============================
   HEADER / NAVBAR (Frosted Glass)
=============================== */
header.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1100;
    background: rgba(188, 185, 185, 0.05) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: background .3s ease, backdrop-filter .3s ease;
}

/* Saat discroll, lebih solid */
header.header.sticky-active {
    background: rgba(255, 255, 255, 0.6) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
}

/* Tombol Login / Get Started */
.btn-getstarted {
    backdrop-filter: blur(8px);
    background-color: rgba(11, 120, 255, 0.8);
    border: none;
    color: #fff;
    transition: 0.3s;
}

.btn-getstarted:hover {
    background-color: rgba(11, 120, 255, 1);
}

/* ===============================
   NON-HOME: navbar putih + teks hitam
=============================== */
body:not(.home-page) header.header {
    background: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

/* Paksa warna hitam (override yang putih) */
body:not(.home-page) header.header .logo h1,
body:not(.home-page) header.header .navmenu a,
body:not(.home-page) header.header .mobile-nav-toggle {
    color: #000 !important;
}

/* Konten non-home tidak ketutup header */
body:not(.home-page) .main {
    padding-top: var(--header-h);
}

/* ===============================
   HERO SECTION
=============================== */
#hero {
    position: relative;
    min-height: 100vh;
    /* full layar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-h);
    /* kompensasi navbar */
    overflow: hidden;
}

#hero .hero-bg,
#hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
}

/* Scroll anchor offset agar tidak ketutup header */
[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Hapus overlay transparan default */
.hero:before {
    content: none !important;
}

/* ==========================
   NAVBAR TEXT PUTIH
========================== */
header.header .logo h1,
header.header .navmenu a {
    color: #fff !important;
    transition: color 0.3s ease;
}

/* Hover atau aktif: tetap putih tapi sedikit efek */
header.header .navmenu a:hover,
header.header .navmenu a.active {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* Hamburger icon (mobile) */
header.header .mobile-nav-toggle {
    color: #fff !important;
}

/* Saat header sticky-active (scroll), ubah teks jadi gelap agar kontras */
header.header.sticky-active .logo h1,
header.header.sticky-active .navmenu a,
header.header.sticky-active .mobile-nav-toggle {
    color: #000 !important;
}

/* ===== Login Page Custom Style ===== */

#auth-left {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#auth-left .auth-logo img {
    width: 80px;
}

#auth-left .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

#auth-left .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 120, 255, 0.25);
}

#auth-left .form-control-icon {
    color: var(--bs-primary);
}

#auth-right {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ========== Dropdown User ========== */
header.header .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    /* muncul tepat di bawah tombol */
    left: auto !important;
    right: 0 !important;
    margin-top: 10px !important;
    /* jarak kecil dari tombol */
    border: none;
    border-radius: 12px;
    min-width: 200px;
    padding: 0.5rem 0;
    transform: none !important;
    /* nonaktifkan animasi posisi bawaan Bootstrap */
    animation: dropdownFade 0.25s ease forwards;
    backdrop-filter: blur(12px) saturate(180%);
    background: rgba(255, 255, 255, 0.85);
}

/* Animasi halus */
@keyframes dropdownFade {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

header.header .dropdown-menu a.dropdown-item {
    font-weight: 500;
    color: #333;
    transition: background 0.25s ease, color 0.25s ease;
}

header.header .dropdown-menu a.dropdown-item:hover {
    background: rgba(11, 120, 255, 0.08);
    color: var(--bs-primary);
}

header.header .dropdown-menu.show {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}