/* NAVBAR WRAPPER */
.navbar-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 95vw;
    background-color: black;
    padding: 0px 2px;
    border-radius: 35px;
    min-height: 44px;
    transition: all 0.3s ease;
    z-index: 1000;
    transform-origin: center center;
}

/* NAVBAR CONTAINER */
nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    position: relative;
    padding-right: 40px;
    min-height: 43px;
    /* padding-top: 5px;
    padding-bottom: 5px; */
}

/* NAV ITEMS */
nav a {
    text-decoration: none;
    color: white;
    margin: 0 6px;
    padding: 10px 5px;
    width: 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    text-align: center;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ICON STYLE */
.nav-icon {
    width: 25px;
    height: 25px;
}

.nav-icon {
    transition: opacity 0.3s ease-in-out;
}

.nav-icon.fade {
    opacity: 0;
}

/* COLLAPSED STATE */
nav.collapsed a {
    display: none;
}

/* TOGGLE BUTTON */
.toggle-btn {
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0px;
    border: none;
    outline: none;
    height: 44px;
    width: 40px;
    padding: 0;
    padding-right: 10px;
}

/* Keep transparent background on active */
.toggle-btn.active {
    background-color: transparent;
    padding: 0;
}

/* Toggle button icon image */
.toggle-btn img {
    width: 24px;      /* Adjust size as needed */
    height: 24px;
    pointer-events: none;
    user-select: none;
    display: block;
    margin: auto;
}

/* ANIMATION: BOUNCE SHRINK WHEN CLOSING */
@keyframes bounce-shrink {
    0% {
        transform: translateX(-50%) scale(1);
    }
    60% {
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* ANIMATION: EXPAND WITH BOUNCE WHEN OPENING */
@keyframes expand-smooth {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
    60% {
        transform: translateX(-50%) scale(0.9);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

.navbar-wrapper.animate-close {
    animation: bounce-shrink 0.3s ease forwards;
}

.navbar-wrapper.animate-open {
    animation: expand-smooth 0.3s ease forwards;
}
