/*** Mobile Footer with Sophisticated Animations ***/
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 10px 0 8px;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px;
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8a92a3;
    text-decoration: none;
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

    .footer-nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: #13357B;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }

    .footer-nav-item.active::before {
        transform: scaleX(1);
    }

    .footer-nav-item i {
        font-size: 1.3rem;
        margin-bottom: 4px;
        color: #8a92a3;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        position: relative;
        z-index: 1;
    }

    .footer-nav-item.active i {
        color: #13357B;
        transform: translateY(-4px) scale(1.15);
    }

    .footer-nav-item .footer-nav-text {
        font-size: 0.65rem;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
    }

    .footer-nav-item.active .footer-nav-text {
        color: #13357B;
        font-weight: 600;
        transform: scale(1.05);
    }

    .footer-nav-item:not(.active):hover {
        background: rgba(19, 53, 123, 0.05);
    }

        .footer-nav-item:not(.active):hover i {
            transform: translateY(-2px);
            color: #5a6a8a;
        }

.footer-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.footer-nav-item:hover .footer-badge {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* Ripple effect animation */
.footer-nav-item::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(19, 53, 123, 0.1);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}

.footer-nav-item:active::after {
    transform: scale(1);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/*** Desktop Footer ***/
.desktop-footer .footer {
    background: var(--bs-dark);
}

.desktop-footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .desktop-footer .footer-item a:hover {
        letter-spacing: 1px;
        color: #13357B;
        padding-left: 8px;
    }

.desktop-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
}

/*** Responsive Adjustments ***/
@media (max-width: 768px) {
    body {
        padding-bottom: 68px;
    }

    .desktop-footer {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-footer {
        display: none !important;
    }
}

/* Special animation for active state */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.footer-nav-item.active i {
    animation: iconBounce 0.6s ease;
}

/* Floating effect for better visibility */
.footer-nav-item {
    will-change: transform;
}
