/* Animated Mobile Bottom Navbar CSS */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #20578a;
    /* Blue background */
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 0;
    }

    .footer--3 {
        padding-bottom: 110px !important; /* Push footer content up above the navbar */
        background-color: #20578a !important; /* Make the gap blend with the navbar */
    }
}

.mobile-bottom-nav ul {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.mobile-bottom-nav ul li {
    position: relative;
    list-style: none;
    width: 33.333%;
    height: 70px;
    z-index: 2;
}

.mobile-bottom-nav ul li a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
}

.mobile-bottom-nav ul li a .icon {
    position: relative;
    display: block;
    line-height: 70px;
    font-size: 1.4em;
    text-align: center;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: rgba(255, 255, 255, 0.6);
    /* White icon for inactive */
    z-index: 10;
}

.mobile-bottom-nav ul li.active a .icon {
    transform: translateY(-32px);
    color: #ffffff;
    /* White icon inside the blue bubble */
}

.mobile-bottom-nav ul li a .text {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    /* White text */
    font-size: 0.75em;
    font-weight: 600;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-bottom-nav ul li.active a .text {
    opacity: 1;
    transform: translateY(14px);
    color: #ffffff;
}

.indicator {
    position: absolute;
    top: -45%;
    left: 0;
    /* Controlled by JS */
    width: 60px;
    height: 60px;
    background: #20578a;
    /* Blue bubble */
    border-radius: 50%;
    border: 6px solid #ffffff;
    /* White border to simulate cutout into the body */
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-right-radius: 20px;
    box-shadow: 1px -10px 0 0 #ffffff;
    /* Matches the navbar background color */
}

.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-left-radius: 20px;
    box-shadow: -1px -10px 0 0 #ffffff;
    /* Matches the navbar background color */
}