/* Hide on desktop */
@media (min-width: 993px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 992px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 9998;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0;
        margin: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        position: relative;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        text-decoration: none;
        color: #6c757d;
        padding: 8px 4px 4px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        min-height: 60px;
        border-radius: 8px;
        margin: 0 2px;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item:active {
        transform: scale(0.95);
        background-color: rgba(0, 0, 0, 0.03);
    }

    .mobile-nav-icon {
        font-size: 22px;
        margin-bottom: 4px;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
    }

    .mobile-nav-label {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        transition: all 0.25s ease;
        white-space: nowrap;
    }

    /* Active State */
    .mobile-nav-item.active {
        color: #495A6A;
    }

    .mobile-nav-item.active .mobile-nav-icon {
        color: #495A6A;
        transform: scale(1.1);
    }

    .mobile-nav-item.active .mobile-nav-label {
        color: #495A6A;
        font-weight: 600;
    }

    /* Hover Effect (for devices that support it) */
    @media (hover: hover) {
        .mobile-nav-item:hover {
            color: #495A6A;
            background-color: rgba(73, 90, 106, 0.05);
        }

        .mobile-nav-item:hover .mobile-nav-icon {
            transform: translateY(-2px);
        }
    }

    /* Add padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: 70px;
    }

    /* Remove margin from footer to eliminate white space */
    .footer-section {
        margin-bottom: 0 !important;
    }

    /* Ensure copyright area has no bottom margin */
    .copyright-area {
        margin-bottom: 0 !important;
    }

    .copyright-content {
        margin-bottom: 0 !important;
        padding-bottom: 20px !important;
    }

    /* Adjust scroll to top button position for mobile */
    #scrollup {
        bottom: 90px !important;
        left: 20px !important;
        z-index: 9999 !important;
    }
}

/* Smaller mobile devices */
@media (max-width: 576px) {
    .mobile-nav-icon {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }

    .mobile-nav-label {
        font-size: 10px;
    }

    .mobile-nav-item {
        padding: 6px 2px 2px;
        min-height: 56px;
    }

    body {
        padding-bottom: 66px;
    }

    .footer-section {
        margin-bottom: 0 !important;
    }

    .copyright-area {
        margin-bottom: 0 !important;
    }

    .copyright-content {
        margin-bottom: 0 !important;
        padding-bottom: 15px !important;
    }

    /* Adjust scroll to top button position for smaller mobile */
    #scrollup {
        bottom: 86px !important;
        left: 15px !important;
    }
}

/* Very small devices */
@media (max-width: 375px) {
    .mobile-nav-container {
        padding: 6px 0;
    }

    .mobile-nav-item {
        margin: 0 1px;
    }

    .mobile-nav-label {
        font-size: 9px;
    }
}

/* Safe area for devices with notches (iPhone X and newer) */
@supports (padding: max(0px)) {
    @media (max-width: 992px) {
        .mobile-bottom-nav {
            padding-bottom: max(8px, env(safe-area-inset-bottom));
        }
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent text selection on tap */
.mobile-nav-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

