/* ═══════════════════════════════════════════════════════════════════════ */
/* ─── PREMIUM MOBILE NAVIGATION MENU — REYPUB DIGITAL 2026 ─────────── */
/* ─── Futuristic Dark Theme · Neon Accents · Glassmorphism ──────────── */
/* ═══════════════════════════════════════════════════════════════════════ */

/* ─── PREMIUM MENU: Hidden on Desktop ─── */
.pmm-hero-section,
.pmm-country-selector,
.pmm-contact-info,
.pmm-primary-cta,
.pmm-footer,
.pmm-logo-wrap,
.pmm-icon,
.pmm-arrow { display: none; }

@media (max-width: 768px) {

  /* ═══ CORE DRAWER ═══ */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 92% !important;
    max-width: 400px !important;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #05070D 0%, #080C18 30%, #0B0F1A 100%) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -12px 0 60px rgba(0,0,0,0.7), 0 0 100px rgba(122,61,240,0.05) !important;
    z-index: 9998;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    isolation: isolate;
    will-change: transform;
  }
  .nav-menu.open {
    transform: translateX(0);
  }

  /* Subtle ambient glow at top */
  .nav-menu::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(122,61,240,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
  .nav-menu::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(47,108,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .nav-menu > * { position: relative; z-index: 1; }

  /* ═══ DARK OVERLAY ═══ */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh; height: 100dvh;
    background: rgba(0,0,0,0.7) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* ═══ HEADER WITH LOGO & CLOSE ═══ */
  .mobile-menu-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px !important;
    width: 100%;
    flex-shrink: 0;
    border-bottom: none !important;
  }

  .pmm-logo-wrap {
    display: flex !important;
    align-items: center;
  }

  /* Gradient ring logo container */
  .pmm-logo-ring {
    position: relative;
    display: flex;
    align-items: center;
  }
  .pmm-logo-ring::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #7A3DF0, #D946EF, #3B82F6, #7A3DF0);
    opacity: 0.9;
    animation: pmmLogoSpin 8s linear infinite;
  }
  .pmm-logo-ring::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #05070D;
  }
  .pmm-logo-ring .logo-img {
    position: relative;
    z-index: 1;
    margin-left: 38px;
    height: 28px !important;
    width: auto !important;
  }

  @keyframes pmmLogoSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
  }

  /* Close Button */
  .mobile-menu-close {
    display: flex !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .mobile-menu-close:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.15) !important;
  }

  /* ═══ HERO SECTION (Tagline + Headline) ═══ */
  .pmm-hero-section {
    display: block !important;
    padding: 4px 24px 18px;
    flex-shrink: 0;
  }
  .pmm-tagline {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #9B5CFF;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .pmm-headline {
    font-size: 1.55rem;
    font-weight: 700;
    color: #E8EAF0;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  }
  .pmm-dot {
    color: #3B82F6;
    font-weight: 800;
  }

  /* ═══ NAVIGATION LINKS ═══ */
  .nav-links {
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 0 !important;
    padding: 8px 16px !important;
  }
  .nav-links > li {
    width: 100%;
  }

  /* Premium menu icons */
  .pmm-icon {
    display: inline-flex !important;
    width: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: color 0.3s ease;
  }
  .pmm-arrow {
    display: inline-flex !important;
    margin-left: auto;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
  }

  .nav-link {
    width: 100%;
    padding: 15px 16px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.85) !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    letter-spacing: 0.02em;
    background: transparent !important;
    transition: all 0.3s ease !important;
    position: relative;
  }
  .nav-link::after { display: none !important; }

  /* Hover / Active state */
  .nav-link:hover,
  .nav-link:active {
    background: rgba(255,255,255,0.04) !important;
    color: #fff !important;
  }
  .nav-link:hover .pmm-icon { color: #9B5CFF; }
  .nav-link:hover .pmm-arrow { color: rgba(255,255,255,0.4); transform: translateX(2px); }

  /* Active menu item (Home) — Glowing border */
  .pmm-nav-active .nav-link {
    background: rgba(122,61,240,0.06) !important;
    border: 1px solid rgba(122,61,240,0.4) !important;
    border-bottom: 1px solid rgba(122,61,240,0.4) !important;
    box-shadow: 0 0 20px rgba(122,61,240,0.1), inset 0 0 20px rgba(122,61,240,0.03);
    color: #fff !important;
  }
  .pmm-nav-active .nav-link .pmm-icon {
    color: #9B5CFF;
  }
  .pmm-nav-active .nav-link .pmm-arrow {
    color: rgba(155,92,255,0.6);
  }

  /* Active link highlight override */
  .nav-link.active-link {
    color: #9B5CFF !important;
    background: rgba(122,61,240,0.06) !important;
  }

  /* Contact & Experience Center — override inline styles */
  .nav-link.nav-link-contact,
  a.nav-link.nav-link-contact,
  .nav-links .nav-link-contact {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500 !important;
    background: transparent !important;
    border-color: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    border-radius: 12px !important;
    padding: 15px 16px !important;
  }
  .nav-link.nav-link-contact:hover,
  a.nav-link.nav-link-contact:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.04) !important;
  }
  /* Remove inline gradient styling on mobile */
  .nav-link-contact[style*="background:linear-gradient"] {
    background: transparent !important;
    border-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  }

  /* ═══ DROPDOWN TOGGLE ═══ */
  .dropdown-toggle {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.85) !important;
    justify-content: flex-start !important;
    gap: 14px !important;
  }
  .dropdown-toggle .fa-chevron-down {
    font-size: 0.55rem !important;
    color: rgba(255,255,255,0.25) !important;
    background: rgba(255,255,255,0.05) !important;
    width: 26px !important;
    height: 26px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    margin-left: auto;
  }
  .dropdown.mobile-open .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
    background: rgba(122,61,240,0.2) !important;
    color: #9B5CFF !important;
  }

  /* ═══ MEGA DROPDOWN ═══ */
  .mega-dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(122,61,240,0.03) !important;
    margin: 0 !important;
    pointer-events: all !important;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-radius: 0 !important;
    padding: 0 !important;
    min-width: 100%;
    border-top: 1px solid rgba(122,61,240,0.08) !important;
    border-bottom: 1px solid rgba(122,61,240,0.08) !important;
  }
  .mega-dropdown::before { display: none !important; }
  .mega-dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mega-col-featured { display: none; }
  .mega-col { padding: 10px 12px; }
  .mega-heading {
    margin-bottom: 8px;
    color: rgba(155,92,255,0.5) !important;
    border-bottom-color: rgba(255,255,255,0.04) !important;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    padding-left: 12px;
  }
  .mega-link {
    padding: 10px 12px;
    border-radius: 10px !important;
  }
  .mega-link:hover { background: rgba(122,61,240,0.06) !important; }
  .mega-link strong { color: rgba(255,255,255,0.85) !important; font-size: 0.86rem; }
  .mega-link span { color: rgba(255,255,255,0.3) !important; font-size: 0.74rem; }
  .mega-link-icon {
    background: rgba(122,61,240,0.12) !important;
    color: #9B5CFF !important;
  }
  .mega-link:hover .mega-link-icon {
    background: rgba(122,61,240,0.25) !important;
    color: #B794FF !important;
  }
  .dropdown.mobile-open .mega-dropdown { display: block; max-height: 800px; }

  /* ═══ COUNTRY SELECTOR ═══ */
  .pmm-country-selector {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 8px 16px;
    padding: 13px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .pmm-country-selector:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
  }
  .pmm-country-icon {
    font-size: 0.95rem;
    color: rgba(155,92,255,0.6);
  }
  .pmm-country-arrow {
    margin-left: auto;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.25);
  }

  /* ═══ ACTION BUTTONS (Call Us / WhatsApp) ═══ */
  .nav-actions {
    width: 100% !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    border-top: none !important;
  }
  .nav-action-btn {
    display: flex !important;
    flex: 1 !important;
    height: 46px !important;
    border-radius: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
  }
  .nav-phone-btn {
    background: rgba(47,108,255,0.08) !important;
    color: #5B9AFF !important;
    border: 1px solid rgba(47,108,255,0.2) !important;
  }
  .nav-phone-btn:hover {
    background: rgba(47,108,255,0.15) !important;
    border-color: rgba(47,108,255,0.4) !important;
    box-shadow: 0 0 20px rgba(47,108,255,0.1);
  }
  .nav-wa-btn {
    background: rgba(37,211,102,0.08) !important;
    color: #25D366 !important;
    border: 1px solid rgba(37,211,102,0.2) !important;
  }
  .nav-wa-btn:hover {
    background: rgba(37,211,102,0.15) !important;
    border-color: rgba(37,211,102,0.4) !important;
    box-shadow: 0 0 20px rgba(37,211,102,0.1);
  }
  .nav-cta {
    display: none !important;
  }

  /* ═══ CONTACT INFO ═══ */
  .pmm-contact-info {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 8px 20px 4px;
    width: 100%;
  }
  .pmm-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.45);
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
  }
  .pmm-contact-item:hover {
    color: rgba(255,255,255,0.8);
  }
  .pmm-contact-item i {
    font-size: 0.78rem;
    color: rgba(155,92,255,0.5);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
  }

  /* ═══ PRIMARY CTA — Gradient Button ═══ */
  .pmm-primary-cta {
    display: block !important;
    padding: 12px 16px 8px;
    width: 100%;
    flex-shrink: 0;
  }
  .pmm-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #7A3DF0 0%, #3B82F6 100%);
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(122,61,240,0.25), 0 0 40px rgba(59,130,246,0.08);
    position: relative;
    overflow: hidden;
  }
  .pmm-cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
  }
  .pmm-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(122,61,240,0.35), 0 0 50px rgba(59,130,246,0.12);
  }
  .pmm-cta-content {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .pmm-cta-icon {
    font-size: 1.1rem;
    opacity: 0.9;
  }
  .pmm-cta-text {
    display: flex;
    flex-direction: column;
  }
  .pmm-cta-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .pmm-cta-sub {
    font-size: 0.75rem;
    opacity: 0.75;
    font-weight: 400;
    margin-top: 2px;
  }
  .pmm-cta-arrow {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
  }
  .pmm-cta-btn:hover .pmm-cta-arrow {
    transform: translateX(3px);
  }

  /* ═══ FOOTER ═══ */
  .pmm-footer {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 20px;
    width: 100%;
    flex-shrink: 0;
  }
  .pmm-social {
    display: flex;
    gap: 16px;
  }
  .pmm-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  .pmm-social a:hover {
    background: rgba(122,61,240,0.12);
    border-color: rgba(122,61,240,0.3);
    color: #9B5CFF;
    transform: translateY(-1px);
  }
  .pmm-copyright {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.3px;
  }

  /* ═══ HIDE OLD ELEMENTS ═══ */
  .mobile-menu-contact { display: none !important; }
  .mobile-menu-cta { display: none !important; }

  /* ═══ SCROLLBAR STYLING ═══ */
  .nav-menu::-webkit-scrollbar {
    width: 3px;
  }
  .nav-menu::-webkit-scrollbar-track {
    background: transparent;
  }
  .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(122,61,240,0.2);
    border-radius: 10px;
  }

  /* ═══ HAMBURGER OVERRIDE ═══ */
  .nav-toggle { z-index: 9999 !important; position: relative; }

} /* END @media (max-width: 768px) */
