/* ========================================
   AWESOME MOBILE MENU STYLES
   ======================================== */

/* Navbar Spacer - Responsive */
.navbar-spacer {
    height: 76px;
}

@media (max-width: 768px) {
    .navbar-spacer {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .navbar-spacer {
        height: 56px;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.navbar-nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.navbar-nav-container.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-menu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.mobile-menu-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.mobile-menu-brand-only {
    text-align: center;
    position: relative;
    z-index: 2;
}

.mobile-menu-brand-only h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.mobile-menu-brand-only p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

/* Navigation Links */
.navbar-nav {
    flex-direction: column;
    padding: 1.5rem 0;
    flex: 1;
}

.navbar-nav .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #28a745 0%, #20c997 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    transform: scaleY(1);
}

.navbar-nav .nav-link i {
    font-size: 1.25rem;
    color: #28a745;
    transition: all 0.3s ease;
    min-width: 24px;
}

.navbar-nav .nav-link span {
    flex: 1;
}

.navbar-nav .nav-link:hover {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, transparent 100%);
    padding-left: 2rem;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.15) 0%, transparent 100%);
    color: #28a745;
}

.navbar-nav .nav-link.active i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid rgba(40, 167, 69, 0.1);
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mobile-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-contact-btn:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.mobile-contact-btn i {
    color: #28a745;
    font-size: 1.1rem;
    min-width: 20px;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.mobile-menu-social a:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.mobile-menu-social a i {
    font-size: 1.1rem;
}

/* Hamburger Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Desktop - Hide mobile menu elements */
@media (min-width: 769px) {
    .mobile-menu-overlay,
    .mobile-menu-header,
    .mobile-menu-footer,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .navbar-nav-container {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        flex-direction: row;
    }
    
    .navbar-nav {
        flex-direction: row;
        padding: 0;
    }
    
    .navbar-nav .nav-item {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .navbar-nav .nav-link i {
        display: none;
    }
    
    .navbar-nav .nav-link::before {
        display: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) and (min-width: 481px) {
    .navbar-nav-container {
        width: 70%;
        max-width: 350px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .navbar-nav-container {
        width: 90%;
    }
    
    .mobile-menu-brand-only h2 {
        font-size: 1.4rem;
    }
    
    .mobile-menu-brand-only p {
        font-size: 0.8rem;
    }
}

/* Smooth scrollbar for mobile menu */
.navbar-nav-container::-webkit-scrollbar {
    width: 6px;
}

.navbar-nav-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.navbar-nav-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #28a745 0%, #20c997 100%);
    border-radius: 10px;
}

.navbar-nav-container::-webkit-scrollbar-thumb:hover {
    background: #28a745;
}
