/* =========================
   IPKD NAVBAR (GLASS + SEAMLESS)
========================= */

.ipkd-navbar {
    position: fixed; /* tetap terlihat saat scroll */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

    background: rgba(255, 255, 255, 0.15); /* transparan awal */
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: none;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* class saat scroll */
.ipkd-navbar.scrolled {
    background: rgba(59, 173, 255, 0.95); /* solid saat scroll */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 10px 20px; /* bisa dikurangi sedikit saat scroll */
}

/* Efek kilau kaca tetap */
.ipkd-navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05)
    );
    pointer-events: none;
}

/* Animasi slideDown tetap */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   CONTAINER
========================= */
.ipkd-container {
    position: relative;
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
}

/* =========================
   BRAND (LOGO + TEXT)
========================= */
.ipkd-brand {
    display: flex;
    align-items: center;
    gap: 8px; /* lebih dekat agar nyatu */
    cursor: pointer;
    text-decoration: none;
}

.ipkd-logo {
    width: 46px;
    height: 46px; /* persegi agar sejajar teks */
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ipkd-brand:hover .ipkd-logo {
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ipkd-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* teks vertikal align tengah logo */
    line-height: 1.1;
}

.ipkd-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.ipkd-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.1;
}

/* =========================
   TEXT COLOR ADAPTIVE
========================= */

/* default (awal / hero) */
.ipkd-navbar {
    --title-color: #ffffff;
    --subtitle-color: rgba(255, 255, 255, 0.85);
}

/* saat navbar berada di area terang */
.ipkd-navbar.light {
    --title-color: #1f2937;        /* abu gelap (aman di putih) */
    --subtitle-color: #4b5563;     /* abu soft */
}

/* apply variable */
.ipkd-title {
    color: var(--title-color);
    transition: color 0.3s ease;
}

.ipkd-subtitle {
    color: var(--subtitle-color);
    transition: color 0.3s ease;
}


/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 576px) {
    .ipkd-container {
        justify-content: center;
    }

    .ipkd-logo {
        width: 40px;
        height: 40px;
    }

    .ipkd-title {
        font-size: 1.1rem;
    }

    .ipkd-subtitle {
        font-size: 0.75rem;
    }

    .ipkd-navbar {
        backdrop-filter: blur(10px);
    }
}

/* =========================
   ANIMATION
========================= */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
