/* ====================================================================
   MOBILE MEGA MENU — mobile-menu.css
   Full-screen glassmorphism overlay with modern animations
   ==================================================================== */

/* Overlay Backdrop */
.mob-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Menu Panel */
.mob-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100dvh;
  height: 100vh;
  background: linear-gradient(165deg, #0d0d1f 0%, #111128 40%, #0a0a18 100%);
  border-left: 1px solid rgba(108, 99, 255, 0.2);
  z-index: 9001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mob-menu-panel.active {
  transform: translateX(0);
}

/* Animated gradient orbs inside panel */
.mob-menu-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: mob-orb-1 6s ease-in-out infinite alternate;
}

.mob-menu-panel::after {
  content: '';
  position: absolute;
  bottom: 120px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: mob-orb-2 8s ease-in-out infinite alternate;
}

@keyframes mob-orb-1 {
  from { transform: translate(0, 0) scale(1); opacity: 0.8; }
  to   { transform: translate(-20px, 30px) scale(1.15); opacity: 1; }
}
@keyframes mob-orb-2 {
  from { transform: translate(0, 0) scale(1); opacity: 0.6; }
  to   { transform: translate(20px, -20px) scale(1.1); opacity: 0.9; }
}

/* Panel Header */
.mob-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.mob-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mob-menu-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.mob-menu-logo-text .swift { color: #fff; }
.mob-menu-logo-text .dex {
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mob-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mob-close-btn:hover,
.mob-close-btn:active {
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.5);
  transform: rotate(90deg);
}

/* Nav Items */
.mob-nav-items {
  flex: none;
  padding: 0;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.mob-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mob-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 24px;
  color: #e8e8f4;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.mob-nav-link:hover,
.mob-nav-link:active {
  color: #a8a4ff;
  background: rgba(108, 99, 255, 0.06);
  padding-left: 30px;
}

.mob-nav-link .mob-nav-icon {
  font-size: 1.1rem;
  margin-right: 10px;
}

.mob-nav-link .mob-nav-arrow {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.mob-nav-item.open .mob-nav-arrow {
  transform: rotate(180deg);
}

/* Sub-menu accordion */
.mob-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.2);
}

.mob-nav-item.open .mob-submenu {
  max-height: 480px;
}

.mob-submenu-group {
  padding: 8px 0;
}

.mob-submenu-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6c63ff;
  padding: 8px 32px 4px;
}

.mob-submenu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 32px;
  color: #b8b8d0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mob-submenu-link:hover,
.mob-submenu-link:active {
  color: #fff;
  background: rgba(108, 99, 255, 0.1);
  padding-left: 38px;
}

.mob-submenu-link .sub-icon {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Promo / Ad Banner */
.mob-promo-banner {
  margin: 0 16px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a0a4a 0%, #0a1a3f 50%, #0a0a2e 100%);
  border: 1px solid rgba(108, 99, 255, 0.25);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
}

.mob-promo-banner:hover {
  border-color: rgba(108, 99, 255, 0.5);
  transform: scale(1.02);
}

.mob-promo-inner {
  padding: 12px 20px 12px;
  position: relative;
  z-index: 2;
}

.mob-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(108, 99, 255, 0.4);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  color: #a8a4ff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mob-promo-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.mob-promo-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.mob-promo-tag {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid;
}

.mob-promo-tag.seo { background: rgba(0, 212, 255, 0.1); color: #00d4ff; border-color: rgba(0, 212, 255, 0.3); }
.mob-promo-tag.ppc { background: rgba(255, 171, 0, 0.1); color: #ffab00; border-color: rgba(255, 171, 0, 0.3); }
.mob-promo-tag.social { background: rgba(0, 230, 118, 0.1); color: #00e676; border-color: rgba(0, 230, 118, 0.3); }
.mob-promo-tag.ai { background: rgba(108, 99, 255, 0.1); color: #a8a4ff; border-color: rgba(108, 99, 255, 0.3); }
.mob-promo-tag.web { background: rgba(234, 67, 53, 0.1); color: #ff6b6b; border-color: rgba(234, 67, 53, 0.3); }

.mob-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  border-radius: 99px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.mob-promo-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Decorative gradient circles in banner */
.mob-promo-decoration {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.mob-promo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mob-promo-metric {
  text-align: center;
}

.mob-promo-metric-num {
  font-size: 1rem;
  font-weight: 900;
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mob-promo-metric-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.3;
  margin-top: 2px;
}

/* Social Icons Footer */
.mob-social-footer {
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.mob-social-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mob-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mob-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.mob-social-link:hover,
.mob-social-link:active {
  transform: translateY(-3px) scale(1.1);
}

.mob-social-link.twitter { --sc: rgba(29, 161, 242, 0.2); }
.mob-social-link.instagram { --sc: rgba(225, 48, 108, 0.2); }
.mob-social-link.facebook { --sc: rgba(24, 119, 242, 0.2); }
.mob-social-link.linkedin { --sc: rgba(0, 119, 181, 0.2); }
.mob-social-link.tiktok { --sc: rgba(105, 201, 208, 0.2); }
.mob-social-link.whatsapp { --sc: rgba(37, 211, 102, 0.2); }
.mob-social-link.youtube { --sc: rgba(255, 0, 0, 0.2); }

.mob-social-link:hover {
  background: var(--sc, rgba(108, 99, 255, 0.2));
  border-color: var(--sc, rgba(108, 99, 255, 0.4));
}

.mob-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 14px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mob-cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

/* Loading shimmer animation for panel entrance */
.mob-nav-link,
.mob-submenu-link,
.mob-social-link,
.mob-promo-banner {
  animation-fill-mode: both;
}

.mob-menu-panel.active .mob-nav-item:nth-child(1) { animation: mob-slide-in 0.3s 0.05s ease both; }
.mob-menu-panel.active .mob-nav-item:nth-child(2) { animation: mob-slide-in 0.3s 0.10s ease both; }
.mob-menu-panel.active .mob-nav-item:nth-child(3) { animation: mob-slide-in 0.3s 0.15s ease both; }
.mob-menu-panel.active .mob-nav-item:nth-child(4) { animation: mob-slide-in 0.3s 0.18s ease both; }
.mob-menu-panel.active .mob-nav-item:nth-child(5) { animation: mob-slide-in 0.3s 0.21s ease both; }
.mob-menu-panel.active .mob-nav-item:nth-child(6) { animation: mob-slide-in 0.3s 0.24s ease both; }
.mob-menu-panel.active .mob-nav-item:nth-child(7) { animation: mob-slide-in 0.3s 0.27s ease both; }
.mob-menu-panel.active .mob-promo-banner { animation: mob-slide-in 0.3s 0.3s ease both; }
.mob-menu-panel.active .mob-social-footer { animation: mob-slide-in 0.3s 0.35s ease both; }

@keyframes mob-slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Hamburger button enhancement */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
}

.nav-hamburger span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Show hamburger on mobile only */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
}

/* Hide mobile menu panel on desktop */
@media (min-width: 901px) {
  .mob-menu-overlay,
  .mob-menu-panel {
    display: none !important;
  }
}

/* Promo Banner Carousel Animation */
@keyframes mob-slide-in {
  0% { opacity: 0; transform: translateX(50px) scale(0.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.mob-promo-carousel-container .slide {
  position: absolute;
  top: 0; left: 0; right: 0; width: auto;
}
.mob-promo-carousel-container .slide.active {
  position: relative;
  z-index: 2;
}
