/* ============================================
   MOBILE MENU - COMPLETE & PREMIUM
   ============================================ */

/* HAMBURGER - ALWAYS VISIBLE & DARK */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* FORCE DARK HAMBURGER LINES - ALWAYS VISIBLE */
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #1e293b !important;
    /* Force dark - always visible */
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animated Hamburger to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Mobile Menu Overlay with Blur */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Premium Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    padding: 100px 24px 40px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-nav-drawer.active {
    right: 0;
}

/* Premium Navigation Links */
.mobile-nav-drawer .nav-link {
    display: block;
    padding: 18px 24px;
    color: #1e293b;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 14px;
    margin: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Gradient Border on Hover */
.mobile-nav-drawer .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-drawer .nav-link:active::before,
.mobile-nav-drawer .nav-link:hover::before {
    transform: scaleY(1);
}

.mobile-nav-drawer .nav-link:active,
.mobile-nav-drawer .nav-link:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    padding-left: 32px;
    color: #4f46e5;
    transform: translateX(4px);
}

/* Premium CTA Button */
.mobile-nav-drawer .nav-cta-mobile {
    display: block;
    padding: 18px 28px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 16px;
    margin: 28px 0 24px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on CTA */
.mobile-nav-drawer .nav-cta-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-drawer .nav-cta-mobile:hover::before {
    left: 100%;
}

.mobile-nav-drawer .nav-cta-mobile:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.6);
}

/* Dark Mode Toggle Button */
.mobile-dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 14px;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-dark-mode-toggle:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.5);
}

.mobile-dark-mode-toggle i {
    font-size: 1.3rem;
    color: #4f46e5;
    transition: transform 0.3s ease;
}

.mobile-dark-mode-toggle:hover i {
    transform: rotate(20deg) scale(1.2);
}

/* Dark Mode Styles */
body.dark-mode .hamburger span {
    background: #f8fafc !important;
}

body.dark-mode .mobile-nav-drawer {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
}

body.dark-mode .mobile-nav-drawer .nav-link {
    color: #f8fafc;
}

body.dark-mode .mobile-nav-drawer .nav-link:hover {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
    color: #a5b4fc;
}

body.dark-mode .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .mobile-dark-mode-toggle {
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
    border-color: rgba(129, 140, 248, 0.4);
}

/* FORCE HAMBURGER VISIBLE ON MOBILE */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }

    .bray-nav-links {
        display: none !important;
    }
}

/* Smooth Scrollbar for Drawer */
.mobile-nav-drawer::-webkit-scrollbar {
    width: 6px;
}

.mobile-nav-drawer::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-nav-drawer::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.3);
    border-radius: 10px;
}

.mobile-nav-drawer::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.5);
}

/* Stagger Animation for Links */
.mobile-nav-drawer.active .nav-link {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.mobile-nav-drawer.active .nav-link:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-nav-drawer.active .nav-link:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-nav-drawer.active .nav-link:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-nav-drawer.active .nav-link:nth-child(4) {
    animation-delay: 0.2s;
}

.mobile-nav-drawer.active .nav-link:nth-child(5) {
    animation-delay: 0.25s;
}

.mobile-nav-drawer.active .nav-link:nth-child(6) {
    animation-delay: 0.3s;
}

.mobile-nav-drawer.active .nav-link:nth-child(7) {
    animation-delay: 0.35s;
}

.mobile-nav-drawer.active .nav-link:nth-child(8) {
    animation-delay: 0.4s;
}

.mobile-nav-drawer.active .nav-link:nth-child(9) {
    animation-delay: 0.45s;
}

.mobile-nav-drawer.active .nav-link:nth-child(10) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
@keyframes slideInRight {
    from {
        right: -100%;
        opacity: 0;
    }

    to {
        right: 0;
        opacity: 1;
    }
}

.mobile-nav-drawer.active {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Add slight separation between links */
.mobile-nav-drawer .nav-link+.nav-link {
    border-top: 1px solid rgba(79, 70, 229, 0.08);
    margin-top: 4px;
    padding-top: 18px;
}

body.dark-mode .mobile-nav-drawer .nav-link+.nav-link {
    border-top: 1px solid rgba(129, 140, 248, 0.1);
}