/* Mobile menu enhancements */
@media (max-width: 992px) {
    /* Overlay for mobile menu */
    .mobile-menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(5px);
      opacity: 0;
      visibility: hidden;
      transition: all 0.4s ease;
      z-index: 999;
    }
    
    .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
    }
  
    /* Enhanced mobile navigation */
    .nav-links {
      display: block;
      position: fixed;
      top: 0;
      right: -300px;
      width: 85%;
      max-width: 350px;
      height: 100vh;
      background: linear-gradient(135deg, #000 0%, #111 100%);
      padding: 80px 0 30px;
      transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
      transform: translateX(100%);
      z-index: 1000;
      box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
      overflow-y: auto;
      border-left: 1px solid rgba(0, 173, 239, 0.2);
    }
    
    .nav-links.active {
      transform: translateX(0);
    }
    
    /* Brand styling in mobile menu */
    .mobile-menu-brand {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 25px 20px;
      margin-bottom: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-brand img {
      height: 25px;
    }
    
    /* Enhanced nav items */
    .nav-item {
      margin: 5px 15px;
      border-radius: 10px;
      overflow: hidden;
      transition: all 0.3s ease;
      background-color: rgba(255, 255, 255, 0.03);
    }
    
    .nav-item:hover {
      background-color: rgba(0, 173, 239, 0.1);
    }
    
    .nav-link {
      padding: 15px 20px;
      color: #fff !important;
      font-weight: 500;
      letter-spacing: 1px;
      border-left: 3px solid transparent;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .nav-item.active .nav-link {
      border-left: 3px solid #00adef;
      background-color: rgba(0, 173, 239, 0.2);
    }
    
    .nav-link i {
      transition: transform 0.4s;
    }
    
    .nav-item.active .nav-link i {
      transform: rotate(180deg);
    }
    
    /* Dropdown enhancements */
    .mega-dropdown {
      position: static;
      width: 100%;
      height: 0;
      opacity: 0;
      visibility: hidden;
      transform: none;
      transform-origin: top;
      transition: all 0.4s ease;
      border-top: none;
      padding: 0;
      overflow: hidden;
      background-color: rgba(0, 0, 0, 0.3);
    }
    
    .nav-item.active .mega-dropdown {
      height: auto;
      opacity: 1;
      visibility: visible;
      padding: 10px 0;
    }
    
    .mega-dropdown-content {
      padding: 0 15px;
    }
    
    /* Models tab enhancements */
    .models-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 10px 0;
      padding: 0;
      border-bottom: none;
    }
    
    .models-tab {
      background-color: rgba(255, 255, 255, 0.05);
      border-radius: 50px;
      color: #ccc;
      font-size: 12px;
      padding: 8px 15px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .models-tab.active {
      background-color: #00adef;
      color: #fff;
      border-color: #00adef;
    }
    
    .models-tab.active::after {
      display: none;
    }
    
    /* Car model card enhancements */
    .models-content {
      grid-template-columns: 1fr;
    }
    
    .car-model {
      margin-bottom: 15px;
      transform: none !important;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* Contact info on mobile menu */
    .mobile-menu-contact {
      margin-top: 30px;
      padding: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-contact h4 {
      color: #00adef;
      font-size: 14px;
      margin-bottom: 15px;
      font-weight: 600;
    }
    
    .contact-item {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      color: #ccc;
      font-size: 13px;
    }
    
    .contact-item i {
      color: #00adef;
      font-size: 14px;
      width: 20px;
      text-align: center;
    }
    
    .mobile-social {
      display: flex;
      gap: 15px;
      margin-top: 20px;
    }
    
    .mobile-social a {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.05);
      color: #ccc;
      transition: all 0.3s ease;
    }
    
    .mobile-social a:hover {
      background-color: #00adef;
      color: #fff;
      transform: translateY(-3px);
    }
    
    /* Menu toggle button enhancement */
    .mobile-menu-toggle {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #00adef;
      border-radius: 50%;
      color: white !important;
      box-shadow: 0 5px 15px rgba(0, 173, 239, 0.3);
      transition: all 0.3s ease;
      z-index: 1002;
    }
    
    .mobile-menu-toggle:hover {
      background-color: #fff;
      color: #000 !important;
    }
    
    .mobile-menu-toggle i {
      transition: transform 0.4s ease;
    }
    
    .mobile-menu-toggle.active i.fa-bars {
      transform: rotate(90deg);
      opacity: 0;
      position: absolute;
    }
    
    .mobile-menu-toggle i.fa-times {
      transform: rotate(-90deg);
      opacity: 0;
      position: absolute;
    }
    
    .mobile-menu-toggle.active i.fa-times {
      transform: rotate(0);
      opacity: 1;
    }
  }
  
  /* Animation for the menu toggle icon */
  @keyframes spin-in {
    from { transform: rotate(-90deg); opacity: 0; }
    to { transform: rotate(0); opacity: 1; }
  }
  
  @keyframes spin-out {
    from { transform: rotate(0); opacity: 1; }
    to { transform: rotate(90deg); opacity: 0; }
  }
  
  /* Additional responsive tweaks */
  @media (max-width: 576px) {
    .nav-container {
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .logo img {
      height: 18px;
    }
  }