/**
 * Mobile Menu Styles
 * These styles control the appearance and behavior of the mobile menu
 */

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #343a40;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-close {
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-body {
    padding: 15px;
}

.mobile-menu-body .nav-link {
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.mobile-menu-body .nav-link:hover,
.mobile-menu-body .nav-link.active {
    background: rgba(255,255,255,0.1);
    border-left: 3px solid #ffd333;
}

.mobile-menu-body .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.navbar-toggler {
    border: none;
    padding: 10px;
    background-color: #008cff;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    z-index: 1001;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler.active {
    background: rgba(255,255,255,0.1);
}

/* Hamburger Icon - 3 lines */
.hamburger-icon {
    width: 25px;
    height: 20px;
    position: relative;
    margin: 0 auto;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
    background-color: transparent;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.navbar-toggler.active .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.navbar-toggler.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    width: 0%;
    left: 50%;
}

.navbar-toggler.active .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* Prevent body scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile menu contact info */
.mobile-menu-body .border-top {
    border-color: rgba(255,255,255,0.1) !important;
}

.mobile-menu-body .text-white {
    font-size: 14px;
}

/* Make logo white in mobile view */
.navbar .d-lg-none img,
.mobile-menu-header img,
.mobile-logo {
    filter: brightness(0) invert(1);
    display: block !important;
    visibility: visible !important;
}

/* Ensure logo is visible in mobile menu */
.mobile-logo {
    margin: 0 auto;
}

/* Mobile logo in header */
.d-flex.align-items-center.d-lg-none img {
    display: inline-block !important;
    visibility: visible !important;
}