/* Hamburger Menu Button - Hidden by default on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 30px 30px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-nav-drawer.active {
    right: 0;
}

/* Navigation Links */
.mobile-nav-drawer .nav-link {
    display: block;
    padding: 16px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-drawer .nav-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

/* CTA Button in Mobile Menu */
.mobile-nav-drawer .nav-cta-mobile {
    display: block;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    margin: 24px 0;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.mobile-nav-drawer .nav-cta-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* Dark Mode Toggle in Mobile */
.mobile-dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-dark-mode-toggle:hover {
    background: rgba(79, 70, 229, 0.1);
}

.mobile-dark-mode-toggle i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Dark Mode Adjustments */
body.dark-mode .hamburger span {
    background: #f8fafc;
}

body.dark-mode .mobile-nav-drawer {
    background: #1e293b;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .mobile-nav-drawer .nav-link:hover {
    background: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
}

/* Mobile Responsive - Show hamburger only on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }

    .bray-nav-links {
        display: none !important;
    }
}