/* Mobile Navigation */
.mobile-nav-toggle {
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.3s;
    z-index: 9999;
    border-radius: 6px;
    color: #012970;
}

.mobile-nav-toggle i {
    font-size: 28px;
    display: block;
    transition: transform 0.3s;
}

.mobile-nav-toggle:hover {
    background: rgba(65, 84, 241, 0.1);
    transform: scale(1.05);
}

.mobile-nav-toggle:hover i {
    color: #4154f1;
}

.mobile-nav-toggle[aria-expanded="true"] i {
    color: #4154f1;
}

.navbar-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 9998;
    overflow-y: auto;
    padding-top: 70px;
}

.navbar-mobile.active {
    right: 0;
}

.navbar-mobile::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 41, 112, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: -1;
}

.navbar-mobile.active::before {
    opacity: 1;
    visibility: visible;
}

.navbar-mobile ul {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-mobile ul li {
    border-bottom: 1px solid #e2e8f0;
}

.navbar-mobile a,
.navbar-mobile a:focus {
    padding: 15px 20px;
    font-size: 15px;
    color: #012970;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
    color: #4154f1;
    background: rgba(65, 84, 241, 0.05);
    padding-left: 25px;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
    margin: 15px;
    color: #fff;
    background: #4154f1;
    padding: 12px 25px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: block;
}

.navbar-mobile .getstarted:hover {
    background: #5969f3;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 84, 241, 0.3);
}

/* Prevent body scroll when mobile nav is open */
body.mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navbar ul {
        display: none;
    }
    
    .header {
        position: relative;
    }
    
    .mobile-nav-toggle {
        position: relative;
        right: 0;
        top: 0;
    }
}

@media (min-width: 992px) {
    .navbar-mobile {
        display: none !important;
    }
    
    .mobile-nav-toggle {
        display: none !important;
    }
}
