/* Mobile Navigation Styles for Background Removal Page - Only for Mobile Devices */

/* Hide mobile menu by default on desktop */
.mobile-icon,
#bg-mobile-icon {
  display: none;
}

/* Mobile Menu Responsive Styles */
@media (max-width: 768px) {
  /* Show mobile icon on mobile devices */
  .mobile-icon,
  #bg-mobile-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .mobile-icon:hover,
  #bg-mobile-icon:hover {
    background: rgba(0, 242, 254, 0.1);
  }

  .mobile-icon span,
  #bg-mobile-icon span {
    width: 25px;
    height: 3px;
    background: #00f2fe;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 242, 254, 0.3);
  }

  /* Mobile Icon Animation when active */
  .mobile-icon.active span:nth-child(1),
  #bg-mobile-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-icon.active span:nth-child(2),
  #bg-mobile-icon.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-icon.active span:nth-child(3),
  #bg-mobile-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Mobile Navigation Menu */
  .nav-links {
    position: fixed !important;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(15, 32, 39, 0.95));
    backdrop-filter: blur(10px);
    flex-direction: column !important;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 0;
    gap: 0 !important;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 90%;
    margin: 0.5rem 0;
  }

  .nav-links a {
    display: block !important;
    width: 100%;
    padding: 1rem 1.5rem !important;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    transform: none !important; /* Override any existing transforms */
  }

  .nav-links a:hover {
    background: linear-gradient(45deg, #00f2fe, #4facfe) !important;
    color: #000 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
  }

  /* Mobile Dropdown */
  .dropdown-content {
    position: static !important;
    display: none;
    background: rgba(0, 242, 254, 0.1) !important;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: none !important;
  }

  .nav-links li:hover .dropdown-content,
  .nav-links li.active .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease;
  }

  .dropdown-content a {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
  }

  .dropdown-content a:hover {
    background: rgba(0, 242, 254, 0.2) !important;
    transform: translateX(5px) !important;
  }

  /* Prevent body scroll when mobile menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Navigation for smaller screens */
@media (max-width: 480px) {
  .nav-links {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .nav-links a {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem;
  }

  .mobile-icon span,
  #bg-mobile-icon span {
    width: 22px;
    height: 2.5px;
  }
}