/* FIXED MOBILE NAVIGATION - Clean Working Solution */

@media screen and (max-width: 768px) {
  /* Ensure no horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  /* Show hamburger menu on mobile */
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 30px !important;
    height: 25px !important;
    cursor: pointer !important;
    padding: 5px !important;
    border: none !important;
    background: transparent !important;
    z-index: 1001 !important;
  }
  
  .menu-toggle span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background-color: white !important;
    transition: all 0.3s ease !important;
    border-radius: 1px !important;
  }
  
  /* Hide desktop nav links on mobile */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 300px !important;
    height: 100vh !important;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 50%, var(--primary) 100%) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 80px 0 20px 0 !important;
    z-index: 1000 !important;
    transition: right 0.3s ease !important;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3) !important;
  }
  
  /* Show mobile menu when active */
  body.menu-active .nav-links {
    right: 0 !important;
  }
  
  /* Style mobile nav items */
  .nav-links li {
    width: 100% !important;
    margin: 0.5rem 0 !important;
    text-align: center !important;
  }
  
  .nav-links .nav-link {
    display: block !important;
    padding: 1rem 2rem !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    margin: 0 1rem !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  .nav-links .nav-link:hover {
    background: rgba(79, 155, 255, 0.3) !important;
    transform: translateX(5px) !important;
  }
  
  /* Space button mobile styling */
  .space-btn-container {
    margin: 1rem 0 !important;
  }
  
  .space-btn {
    transform: scale(0.8) !important;
  }
  
  /* Mobile CTA styling */
  .mobile-cta-wrapper {
    margin: 1.5rem 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .mobile-cta-button {
    display: block !important;
    width: 90% !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, #4f9bff 0%, #0052cc 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(79, 155, 255, 0.3) !important;
  }
  
  .mobile-cta-button:hover {
    background: linear-gradient(135deg, #0052cc 0%, #4f9bff 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(79, 155, 255, 0.4) !important;
    color: white !important;
  }
  
  /* Hide desktop CTA on mobile */
  .desktop-cta {
    display: none !important;
  }
  
  /* Hamburger animation when active */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }
  
  /* Mobile overlay */
  body.menu-active::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
  }
  
  /* Prevent body scroll when menu open */
  body.menu-active {
    overflow: hidden !important;
  }
}

/* Hide mobile CTA on desktop */
@media screen and (min-width: 769px) {
  .mobile-cta-wrapper {
    display: none !important;
  }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  .header .container {
    padding: 0 0.5rem !important;
  }
  
  .logo {
    font-size: 1.2rem !important;
  }
  
  .space-btn {
    width: 7rem !important;
    height: 2rem !important;
  }
  
  .space-btn strong {
    font-size: 8px !important;
  }
}