/* ═══════════════════════════════════════════════════════════════════════ */
/* ─── REYPUB DIGITAL — PROFESSIONAL MENU UPGRADE (2026) ─────────────── */
/* ─── Advanced desktop navigation: glass header, gradient pill links, ── */
/* ─── animated underline, refined mega-dropdown, premium CTAs. ────────  */
/* ═══════════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {

  /* ─── 1. HEADER GLASS BAR ─── */
  .navbar {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: saturate(180%) blur(22px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
    border-bottom: 1px solid rgba(11, 95, 212, 0.06) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 8px 32px -16px rgba(11, 95, 212, 0.08);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 10px 40px -10px rgba(11, 95, 212, 0.14) !important;
    border-bottom-color: rgba(11, 95, 212, 0.1) !important;
  }

  /* Subtle accent shimmer line at the bottom of the navbar */
  .navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(11, 95, 212, 0.25) 25%,
      rgba(122, 61, 240, 0.25) 50%,
      rgba(11, 95, 212, 0.25) 75%,
      transparent 100%);
    opacity: 0.45;
    pointer-events: none;
  }

  /* ─── 2. NAV LINKS ─── */
  .nav-menu { gap: 6px !important; }
  .nav-links { gap: 4px !important; margin-right: 18px !important; }

  .nav-link {
    padding: 10px 18px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.015em !important;
    color: #1a2540 !important;
    position: relative;
    overflow: hidden;
    transition:
      color 0.28s ease,
      background 0.28s ease,
      transform 0.28s ease,
      box-shadow 0.28s ease !important;
  }

  /* Hover glow background */
  .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg,
      rgba(11, 95, 212, 0.08) 0%,
      rgba(122, 61, 240, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  /* Remove old underline element; replace with refined animated bar */
  .nav-link::after {
    bottom: 4px !important;
    width: 24px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #0b5fd4, #7a3df0) !important;
    border-radius: 2px !important;
    box-shadow: 0 0 8px rgba(11, 95, 212, 0.4);
  }

  .nav-link:hover {
    color: #0b5fd4 !important;
    transform: translateY(-1px);
  }
  .nav-link:hover::before { opacity: 1; }

  .nav-link.active-link {
    color: #0b5fd4 !important;
    background: linear-gradient(135deg, rgba(11, 95, 212, 0.1), rgba(122, 61, 240, 0.08));
  }

  /* ─── 3. DROPDOWN TOGGLE ─── */
  .dropdown-toggle .fa-chevron-down {
    font-size: 0.55rem !important;
    margin-left: 4px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    opacity: 0.7;
  }
  .dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg) !important;
    opacity: 1;
  }

  /* ─── 4. PREMIUM CONTACT/CTA PILL ─── */
  .nav-link.nav-link-contact {
    background: linear-gradient(135deg, #0b5fd4 0%, #2f6cff 100%) !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    box-shadow:
      0 4px 14px -3px rgba(11, 95, 212, 0.45),
      0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
    transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  .nav-link.nav-link-contact::before { display: none; }
  .nav-link.nav-link-contact::after { display: none !important; }
  .nav-link.nav-link-contact:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
      0 8px 22px -4px rgba(11, 95, 212, 0.55),
      0 1px 0 rgba(255, 255, 255, 0.25) inset !important;
    background: linear-gradient(135deg, #0a55c2 0%, #2860ee 100%) !important;
  }

  /* ─── 5. NAV ACTION ICONS (phone / WhatsApp) ─── */
  .nav-action-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
    position: relative;
    overflow: hidden;
  }
  .nav-phone-btn {
    background: linear-gradient(135deg, rgba(11, 95, 212, 0.09), rgba(11, 95, 212, 0.04)) !important;
    color: #0b5fd4 !important;
    border: 1px solid rgba(11, 95, 212, 0.12) !important;
  }
  .nav-phone-btn:hover {
    background: linear-gradient(135deg, #0b5fd4, #2f6cff) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px -4px rgba(11, 95, 212, 0.5) !important;
    border-color: transparent !important;
  }
  .nav-wa-btn {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(37, 211, 102, 0.05)) !important;
    color: #1cb858 !important;
    border: 1px solid rgba(37, 211, 102, 0.16) !important;
  }
  .nav-wa-btn:hover {
    background: linear-gradient(135deg, #25D366, #1cb858) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px -4px rgba(37, 211, 102, 0.5) !important;
    border-color: transparent !important;
  }

  /* Subtle pulse on phone icon */
  .nav-phone-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    border: 2px solid rgba(11, 95, 212, 0.3);
    opacity: 0;
    animation: navPhonePulse 2.2s ease-out infinite;
    pointer-events: none;
  }
  @keyframes navPhonePulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.35); }
  }

  /* ─── 6. MEGA DROPDOWN — REFINED ─── */
  .mega-dropdown {
    border-radius: 18px !important;
    border: 1px solid rgba(11, 95, 212, 0.08) !important;
    box-shadow:
      0 24px 60px -20px rgba(13, 23, 53, 0.22),
      0 8px 24px -8px rgba(11, 95, 212, 0.12),
      0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  /* Gradient top accent on each dropdown */
  .mega-dropdown::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b5fd4 0%, #7a3df0 50%, #0b5fd4 100%);
    background-size: 200% 100%;
    animation: dropdownAccent 4s linear infinite;
  }
  @keyframes dropdownAccent {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
  }

  /* ─── 7. SCROLLED-STATE COMPACTION ─── */
  .navbar.scrolled .container {
    height: 78px !important;
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .navbar.scrolled .logo-img {
    height: 54px !important;
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* ─── 8. MOBILE — LIGHT POLISH ON THE EXISTING DRAWER ─── */
@media (max-width: 768px) {
  .nav-link.nav-link-contact {
    background: linear-gradient(135deg, #0b5fd4 0%, #2f6cff 100%) !important;
    border-color: #0b5fd4 !important;
    box-shadow: 0 6px 18px -4px rgba(11, 95, 212, 0.45) !important;
  }
}
