.mainnav {
font-size:10px !important;
	
}




/* 1. Hide the hamburger and the menu on Desktop */

.mobile-nav{
  display:none;
  z-index:9999;
	
position: fixed; /* Keep it fixed so it stays on top while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    background: #000; /* Pure black background */
    transition: all 0.3s ease-in-out;
}	
	
	
	
	
}


/* Hide by default */
.mobile-nav .dynamic-menu-list {
    display: none;
	
	
	list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
	
	
}

/* Show when parent has active class */
.mobile-nav.active .dynamic-menu-list {
    display: block;
	
	height: 100vh; /* Full screen height */
    opacity: 1;
    visibility: visible;
    padding-bottom: 50px; /* Space for the bottom */
}


.menu-toggle {

    cursor: pointer;
	
	
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    margin: 20px;
    cursor: pointer;
    z-index: 10001; /* Ensure button is always on top */
	
	
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #000; /* Your brand orange */
	
	
	
	
	
}



.dynamic-menu-list li {
    width: 100%;
    text-align: center;
}

.dynamic-menu-list li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.dynamic-menu-list li a.fa {
    display: inline-block;
    width: auto;
    font-size: 2rem;
    padding: 20px 15px;
    margin-top: 10px;
}




/* 2. Mobile Styles */
@media screen and (max-width: 768px) {
    .mobile-nav {
		display:block;
        position: relative;
    }

    .menu-toggle {
        display: block; /* Show the hamburger */
        position: absolute;
		right:0;
        z-index: 100;
    }

    /* Hide the list by default on mobile */
    .mobile-nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 20px 0;
        border-bottom: 2px solid #FFF;
    }

    .mobile-nav.active ul {
        display: block; /* Show when active */
    }

    /* Social icons layout for mobile */
    .mobile-nav .social {
        display: none; /* Usually hidden on mobile nav to save space */
    }
    
    .mobile-nav.active .social {
        display: flex;
        justify-content: center;
        padding-top: 10px;
    }

    /* 3. The "X" Transformation */
    .mobile-nav.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}