/* Modern Mobile Navigation Styles */

/* Burger Menu Button */
.mobile-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

@media (max-width: 1024px) {
    .mobile-nav-burger {
        display: flex;
    }
}

.mobile-nav-burger span {
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-burger:hover span {
    background: #ffa500;
}

/* Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Drawer */
.modern-mobile-nav {
    background: #0d1219;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.modern-mobile-nav.active {
    left: 0;
    visibility: visible;
}

/* Close Button Header */
.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mobile-nav-close::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
    color: #ffa500;
    transform: rotate(90deg);
}

.mobile-nav-close:hover::before {
    opacity: 1;
}

.mobile-nav-close svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.mobile-nav-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Menu Container */
.mobile-nav-container {
    padding: 20px 0;
}

.mobile-nav-menu,
.mobile-nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item.active > .mobile-nav-submenu {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link {
    flex: 1;
    display: block;
    padding: 16px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
}

.mobile-nav-submenu .mobile-nav-link {
    padding-left: 40px;
    font-size: 14px;
    font-weight: 400;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    color: #ffffff;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-toggle {
    transform: rotate(180deg);
}

.mobile-nav-toggle:hover {
    color: #ffa500;
}

/* CTA Button */
.mobile-nav-button-wrapper {
    padding: 20px;
    margin-top: 20px;
}

.mobile-nav-cta-button {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: #000000 !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    border: none;
    line-height: 1.5;
}

.mobile-nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
    color: #000000 !important;
}

/* Scrollbar styling */
.modern-mobile-nav::-webkit-scrollbar {
    width: 6px;
}

.modern-mobile-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modern-mobile-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 3px;
}

.modern-mobile-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.7);
}

/* Prevent body scroll when menu is open */
body.mobile-nav-open {
    overflow: hidden;
}