/* Android Mobile App Styles - JC PATH LAB */

:root {
    --nav-height: 65px;
    --md-ripple-color: rgba(255, 255, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --primary-color: #0056b3;
}

/* Bottom Navigation Bar */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 3000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    
    /* Hide redundant navigation */
    .hamburger, .nav-menu {
        display: none !important;
    }
    
    /* Adjust header for mobile */
    .header {
        padding: 5px 5%;
        height: 60px;
        display: flex;
        align-items: center;
    }

    .logo {
        height: 40px;
    }
    
    /* Move floating contact buttons above bottom nav */
    .sticky-contact {
        bottom: calc(var(--nav-height) + 15px) !important;
    }
    
    body {
        padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* For ripple */
}

.bottom-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active i {
    transform: translateY(-2px) scale(1.1);
}

/* Material Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 86, 179, 0.1);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Android Back Button Logic / Modal styling upgrade */
.modal-open {
    overflow: hidden;
}

/* Smooth transitions for sections */
section {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Viewport fit for modern Androids */
html {
    height: -webkit-fill-available;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}
