/* Mobile Hamburger Menu Styles */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  header nav {
    display: none !important;
  }
  
  /* Elegant hamburger menu button - ALIGNED RIGHT */
  .mobile-menu-button {
    display: flex !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-button:focus {
    outline: none;
  }
  
  .hamburger-icon {
    display: block;
    width: 28px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 2px;
  }
  
  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';;
    display: block;
    width: 28px;
    height: 2px;
    background: white;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 2px;
  }
  
  .hamburger-icon::before {
    top: -9px;
  }
  
  .hamburger-icon::after {
    top: 9px;
  }
  
  .mobile-menu-button.active .hamburger-icon {
    background: transparent;
  }
  
  .mobile-menu-button.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .mobile-menu-button.active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }
  
  /* Elegant mobile menu drawer */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    padding: 0;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-menu nav {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 100px 0 40px 0;
    margin: 0;
  }
  
  .mobile-menu nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    padding: 24px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    align-items: center;
    position: relative;
    letter-spacing: -0.3px;
  }
  
  .mobile-menu nav a:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .mobile-menu nav a::before {
    content: '';;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu nav a:hover {
    color: white !important;
    background: rgba(139, 92, 246, 0.1);
    padding-left: 48px;
  }
  
  .mobile-menu nav a:hover::before {
    opacity: 1;
  }
  
  .mobile-menu nav a:active {
    background: rgba(139, 92, 246, 0.15);
  }
  
  /* WHITE BUTTON - NO GLOW */
  .mobile-menu nav a[href*="testflight"] {
    margin: 24px 24px 0 24px;
    padding: 18px 32px !important;
    background: white !important;
    color: black !important;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.2px;
    border: none !important;
    box-shadow: none !important;
    justify-content: center;
  }
  
  .mobile-menu nav a[href*="testflight"]::before {
    display: none;
  }
  
  .mobile-menu nav a[href*="testflight"]:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: black !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
    padding-left: 32px !important;
  }
  
  .mobile-menu nav a[href*="testflight"]:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: none !important;
  }
  
  /* Elegant overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Header fixes for mobile */
  header {
    padding: 20px 24px !important;
  }
  
  /* Ensure header logo is visible */
  header a:first-child {
    position: relative;
    z-index: 100;
  }
  
  /* Smooth scrolling */
  .mobile-menu::-webkit-scrollbar {
    width: 0;
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-menu-button {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
  
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* WHITE BUTTON - NO GLOW - Desktop */
a[href*="testflight"] {
  background: white !important;
  color: black !important;
  box-shadow: none !important;
}

a[href*="testflight"]:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  color: black !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

a[href*="testflight"]:active {
  transform: translateY(0) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: none !important;
}

/* Fix footer link sizes - consistent 14px */
footer a {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

footer nav a,
footer div a {
  font-size: 14px !important;
}

/* App Store button fixes */
.mobile-menu nav a[href*="apps.apple.com"] {
  color: white !important;
  background: linear-gradient(135deg, #147efb 0%, #0b5dd9 100%) !important;
}
