/* =======================
   FLOATING BOTTOM NAV
======================= */
/* Pastikan section memiliki ID yang benar */
#opening,
#mempelai,
#events,
#gallery,
#wishes {
    scroll-margin-top: 80px;
    /* Memberi ruang agar tidak ketutup navbar */
}

/* Debug style - hapus setelah selesai */
.nav-item.active {
    background: var(--accent-color) !important;
    color: white !important;
}

.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 520px;

    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px);

    border-radius: 28px;
    padding: 10px 14px;

    transition: transform .35s ease, opacity .35s ease;

    z-index: 9999;
}

/* =======================
   AUTO HIDE NAV
======================= */

.bottom-nav.nav-hide {
    transform: translate(-50%, 120%);
    opacity: 0;
    pointer-events: none;
}

/* Smooth animation */
.bottom-nav {
    transition:
        transform .35s ease,
        opacity .35s ease,
        background .25s ease;
}

/* Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

/* =======================
   NAV ITEM
======================= */

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: var(--text-color);

    padding: 8px 6px;
    border-radius: 18px;

    transition: all .25s ease;
}

/* Icon */

.nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
    transition: all .25s ease;
}

/* Label */

.nav-label {
    font-size: 10px;
    opacity: .7;
    transition: all .25s ease;
}

/* =======================
   HOVER
======================= */

.nav-item:hover {
    transform: translateY(-2px);
    color: var(--secondary-color);
}

/* =======================
   ACTIVE STATE
======================= */

.nav-item.active {
    background: var(--accent-color);
    color: #fff;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.nav-item.active i {
    transform: translateY(-2px) scale(1.08);
}

.nav-item.active .nav-label {
    opacity: 1;
    font-weight: 600;
}

/* =======================
   MOBILE
======================= */

@media (max-width:480px) {

    .bottom-nav {
        bottom: 10px;
        padding: 8px 12px;
    }

    .nav-item i {
        font-size: 16px;
    }

    .nav-label {
        font-size: 9px;
    }

}