/* Floating Menu Bar */
.floating-menu-bar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    animation: slideInFromLeft 0.6s ease-out;
}

.menu-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: #60a5fa;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    outline: none;
}

.menu-toggle-btn:hover {
    background: rgba(17, 24, 39, 0.98);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 20px rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.menu-toggle-btn:focus {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(59, 130, 246, 0.4);
}

.menu-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.menu-toggle-btn:hover .menu-icon {
    transform: scale(1.1);
}

.menu-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Menu Sidebar Overlay - Enhanced with Smart Backdrop */
.menu-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(12px) brightness(0.7);
    -webkit-backdrop-filter: blur(12px) brightness(0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Better touch handling */
    touch-action: none;
    /* Prevent scrolling on iOS */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Smart backdrop with subtle pattern */
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    /* Performance optimization */
    will-change: opacity, backdrop-filter;
}

.menu-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    /* Enhanced backdrop animation */
    backdrop-filter: blur(16px) brightness(0.6);
    -webkit-backdrop-filter: blur(16px) brightness(0.6);
}

/* Menu Sidebar - Enhanced with Modern Design */
.menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 
        12px 0 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        inset -1px 0 0 rgba(59, 130, 246, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Enhanced mobile scrolling */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* Prevent content jumping */
    will-change: transform, opacity;
    /* Better touch handling */
    touch-action: pan-y;
    /* Modern glass morphism effect */
    border-radius: 0 16px 16px 0;
    /* Performance optimization */
    contain: layout style paint;
}

.menu-sidebar::-webkit-scrollbar {
    display: none;
}

.menu-sidebar-overlay.active .menu-sidebar {
    transform: translateX(0);
    /* Enhanced shadow on open */
    box-shadow: 
        20px 0 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        inset -1px 0 0 rgba(59, 130, 246, 0.2);
}

/* Close Button - Simple & Clean */
.menu-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    outline: none;
    z-index: 20;
    /* Ensure it never overlaps content */
    flex-shrink: 0;
}

.menu-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: scale(1.1);
}

.menu-close-btn:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
    outline: none;
}

.menu-close-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* Logo Section */
.sidebar-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.sidebar-logo {
    width: 220px;
    height: 220px;
}

/* CTA Section */
.sidebar-cta-section {
    padding: 1.25rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
    /* Better touch targets */
    min-height: 56px;
    /* Prevent text selection */
    -webkit-user-select: none;
    user-select: none;
    /* Shine effect */
    position: relative;
    overflow: hidden;
    /* Better tap feedback */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* Shine effect */
.sidebar-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.sidebar-cta-primary:hover::before {
    left: 100%;
}

.sidebar-cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 40px rgba(59, 130, 246, 0.45),
        0 4px 16px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.sidebar-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    width: 100%;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    /* Better touch targets */
    min-height: 48px;
    /* Prevent text selection */
    -webkit-user-select: none;
    user-select: none;
    /* Better tap feedback */
    -webkit-tap-highlight-color: rgba(148, 163, 184, 0.2);
}

.sidebar-cta-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Navigation */
.sidebar-navigation {
    padding: 1rem 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    /* Better touch targets */
    min-height: 44px;
    /* Prevent text selection on touch */
    -webkit-user-select: none;
    user-select: none;
    /* Better tap feedback */
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    /* Modern glass effect */
    background: rgba(148, 163, 184, 0.02);
    border: 1px solid transparent;
    /* Enhanced typography */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

/* Animated background slide effect */
.sidebar-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.08) 50%, 
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

/* Icon enhancement */
.sidebar-nav-link::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    width: 4px;
    height: 4px;
    background: #60a5fa;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-nav-link i {
    font-size: 1rem;
    min-width: 1.2rem;
    text-align: center;
    color: #60a5fa;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.sidebar-nav-link:hover {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.12) 100%);
    color: #60a5fa;
    transform: translateX(6px) translateY(-1px);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-nav-link:hover::before {
    left: 0;
}

.sidebar-nav-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sidebar-nav-link:hover i {
    color: #3b82f6;
    transform: scale(1.1);
}

.sidebar-nav-link.active {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.2) 100%);
    color: #3b82f6;
    font-weight: 600;
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar-nav-link.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.sidebar-nav-link.active i {
    color: #3b82f6;
    transform: scale(1.05);
}

/* Highlighted Nav Link (z.B. für Kooperation anfragen) */
.sidebar-nav-link-highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.15) 100%) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.sidebar-nav-link-highlight i {
    color: #22c55e !important;
}

.sidebar-nav-link-highlight span {
    color: #22c55e !important;
    font-weight: 600 !important;
}

.sidebar-nav-link-highlight:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.2) 100%) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.sidebar-nav-link-highlight:hover i {
    color: #4ade80 !important;
}

.sidebar-nav-link-highlight:hover span {
    color: #4ade80 !important;
}

/* Social Section */
.sidebar-social-section {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
}

.sidebar-section-title {
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-social-links {
    display: flex;
    justify-content: center;
    gap: 0.875rem;
}

.sidebar-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.sidebar-social-link.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.2);
}

.sidebar-social-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.sidebar-social-link.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.2);
}

.sidebar-social-link.linkedin:hover {
    background: rgba(10, 102, 194, 0.2);
    border-color: rgba(10, 102, 194, 0.4);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.3);
}

.sidebar-social-link.researchgate {
    background: rgba(0, 204, 187, 0.1);
    color: #00ccbb;
    border-color: rgba(0, 204, 187, 0.2);
}

.sidebar-social-link.researchgate:hover {
    background: rgba(0, 204, 187, 0.2);
    border-color: rgba(0, 204, 187, 0.4);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 204, 187, 0.3);
}

.sidebar-social-link.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #E1306C;
    border-color: rgba(225, 48, 108, 0.2);
}

.sidebar-social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: rgba(225, 48, 108, 0.4);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(225, 48, 108, 0.3);
}

/* Legal Section */
.sidebar-legal-section {
    padding: 1.5rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.sidebar-legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar-legal-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-legal-link:hover {
    color: #60a5fa;
}

/* Cookie Settings Button in Menu */
.sidebar-cookie-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(251, 146, 60, 0.15) 100%);
    border: 2px solid rgba(251, 146, 60, 0.3);
    border-radius: 12px;
    color: #fb923c;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.15);
    font-family: 'Poppins', sans-serif;
}

.sidebar-cookie-btn:hover {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(251, 146, 60, 0.2) 100%);
    border-color: rgba(251, 146, 60, 0.5);
    color: #fdba74;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.25);
}

.sidebar-cookie-btn:active {
    transform: translateY(0);
}

.sidebar-cookie-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.sidebar-cookie-btn:hover i {
    transform: scale(1.1) rotate(10deg);
}

.sidebar-copyright {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 400;
}

/* Enhanced Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced stagger animations with micro-interactions */
.menu-sidebar-overlay.active .sidebar-cta-section {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.menu-sidebar-overlay.active .sidebar-navigation {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.menu-sidebar-overlay.active .sidebar-social-section {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.menu-sidebar-overlay.active .sidebar-legal-section {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

/* Individual navigation item animations */
.menu-sidebar-overlay.active .sidebar-nav-link:nth-child(1) {
    animation: slideInFromLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.menu-sidebar-overlay.active .sidebar-nav-link:nth-child(2) {
    animation: slideInFromLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s both;
}

.menu-sidebar-overlay.active .sidebar-nav-link:nth-child(3) {
    animation: slideInFromLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.menu-sidebar-overlay.active .sidebar-nav-link:nth-child(4) {
    animation: slideInFromLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s both;
}

.menu-sidebar-overlay.active .sidebar-nav-link:nth-child(5) {
    animation: slideInFromLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.menu-sidebar-overlay.active .sidebar-nav-link:nth-child(6) {
    animation: slideInFromLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s both;
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1023px) {
    .menu-sidebar {
        width: 340px;
    }
    
    .sidebar-cta-section {
        padding: 1.25rem 1.75rem 1.25rem;
    }
    
    .sidebar-cta-primary,
    .sidebar-cta-secondary {
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .sidebar-navigation {
        padding: 1.125rem 0.875rem 1.5rem;
    }
    
    .sidebar-nav-link {
        padding: 0.9rem 1.125rem;
        font-size: 0.95rem;
        min-height: 46px;
    }
    
    .sidebar-social-section {
        padding: 1.5rem 1.75rem;
    }
    
    .sidebar-social-link {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
    
    .sidebar-legal-section {
        padding: 1.5rem 1.75rem;
    }
    
    /* Tablet landscape specific */
    @media (orientation: landscape) {
        .sidebar-cta-section {
            padding: 1rem 1.75rem 1rem;
        }
        
        .sidebar-navigation {
            padding: 1rem 0.875rem 1.25rem;
        }
        
        .sidebar-nav-link {
            padding: 0.75rem 1.125rem;
            min-height: 42px;
        }
    }
}

/* Desktop Optimizations */
@media (min-width: 1024px) {
    .menu-sidebar {
        width: 380px;
    }
    
    .sidebar-cta-section {
        padding: 1.5rem 2rem 1.5rem;
    }
    
    .sidebar-cta-primary,
    .sidebar-cta-secondary {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 52px;
    }
    
    .sidebar-navigation {
        padding: 1.25rem 1rem 1.75rem;
    }
    
    .sidebar-nav-link {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .sidebar-nav-link:hover {
        transform: translateX(6px);
    }
    
    .sidebar-social-section {
        padding: 1.75rem 2rem;
    }
    
    .sidebar-social-link {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .sidebar-legal-section {
        padding: 1.75rem 2rem;
    }
    
    /* Large desktop */
    @media (min-width: 1440px) {
        .menu-sidebar {
            width: 400px;
        }
        
        .sidebar-cta-section {
            padding: 1.75rem 2.5rem 1.75rem;
        }
        
        .sidebar-navigation {
            padding: 1.5rem 1.25rem 2rem;
        }
        
        .sidebar-nav-link {
            padding: 1.125rem 1.5rem;
            font-size: 1.05rem;
        }
        
        .sidebar-social-section {
            padding: 2rem 2.5rem;
        }
        
        .sidebar-social-link {
            width: 50px;
            height: 50px;
            font-size: 1.3rem;
        }
        
        .sidebar-legal-section {
            padding: 2rem 2.5rem;
        }
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .menu-sidebar {
        width: 300px;
        max-width: 90vw;
    }
    
    .menu-close-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .sidebar-cta-section {
        padding: 3.5rem 1.5rem 1.25rem;
    }
    
    .sidebar-cta-primary,
    .sidebar-cta-secondary {
        padding: 0.875rem 1.125rem;
        font-size: 0.9rem;
        min-height: 50px;
        /* Better mobile tap targets */
        border-radius: 14px;
    }
    
    .sidebar-navigation {
        padding: 1rem 0.75rem;
    }
    
    .sidebar-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
        /* Better mobile tap targets */
        border-radius: 12px;
    }
    
    .sidebar-social-section {
        padding: 1.25rem 1.5rem;
    }
    
    .sidebar-social-link {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .sidebar-legal-section {
        padding: 1.25rem 1.5rem;
    }
    
    /* Mobile portrait specific optimizations */
    @media (orientation: portrait) {
        .menu-sidebar {
            width: 320px;
            max-width: 85vw;
        }
        
        .sidebar-cta-section {
            padding: 1.5rem 1.75rem 1.5rem;
        }
        
        .sidebar-cta-primary,
        .sidebar-cta-secondary {
            padding: 1rem 1.25rem;
            min-height: 52px;
        }
        
        .sidebar-navigation {
            padding: 1.25rem 1rem;
        }
        
        .sidebar-nav-link {
            padding: 1rem 1.125rem;
            min-height: 50px;
        }
        
        .sidebar-social-section {
            padding: 1.5rem 1.75rem;
        }
        
        .sidebar-legal-section {
            padding: 1.5rem 1.75rem;
        }
    }
}

@media (max-width: 480px) {
    .menu-sidebar {
        width: 260px;
    }
    
    .menu-close-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .sidebar-cta-section {
        padding: 1rem 1rem 1rem;
    }
    
    .sidebar-nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .sidebar-social-link {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .sidebar-legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .menu-sidebar {
        width: 240px;
    }
    
    .menu-close-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .sidebar-cta-section {
        padding: 1rem 1rem 1rem;
    }
}

/* Landscape mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .sidebar-cta-section {
        padding: 0.75rem 1.5rem 0.75rem;
    }
    
    .sidebar-cta-primary,
    .sidebar-cta-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
    
    .sidebar-navigation {
        padding: 0.75rem 0.75rem 1rem;
    }
    
    .sidebar-nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .sidebar-social-section {
        padding: 1rem 1.5rem;
    }
    
    .sidebar-legal-section {
        padding: 1rem 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .menu-toggle-btn {
        border-width: 3px;
    }
    
    .sidebar-nav-link:hover,
    .sidebar-nav-link.active {
        border: 2px solid #60a5fa;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-menu-bar {
        animation: none;
    }
    
    .menu-toggle-btn,
    .menu-sidebar-overlay,
    .menu-sidebar,
    .sidebar-nav-link,
    .sidebar-social-link,
    .sidebar-cta-primary,
    .sidebar-cta-secondary {
        transition: none;
    }
    
    /* Disable stagger animations for reduced motion */
    .menu-sidebar-overlay.active .sidebar-cta-section,
    .menu-sidebar-overlay.active .sidebar-navigation,
    .menu-sidebar-overlay.active .sidebar-social-section,
    .menu-sidebar-overlay.active .sidebar-legal-section {
        animation: none;
    }
    
    /* Simplify hover effects */
    .sidebar-nav-link:hover {
        transform: none;
    }
}

/* Focus management for accessibility */
.menu-sidebar:focus {
    outline: none;
}

.sidebar-nav-link:focus,
.sidebar-cta-primary:focus,
.sidebar-cta-secondary:focus,
.sidebar-social-link:focus,
.sidebar-legal-link:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Ensure sidebar is above everything */
.menu-sidebar-overlay {
    z-index: 9999;
}

.menu-sidebar {
    z-index: 10000;
}