/* ======================================================
   Nexus Global HR — Mobile Redesign CSS
   mobile-redesign.css
   Load AFTER style.css and hp-redesign.css

   ALL rules are inside @media queries.
   Desktop (>=992px) ZERO changes.
   ====================================================== */

/* ======================================================
   §1  MOBILE HEADER
   ====================================================== */
@media (max-width: 991px) {
  .nexus-nav {
    height: 62px !important;
    padding: 0 16px !important;
  }
  .navbar-logo {
    height: 40px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain;
  }
  .brand-text { font-size: 15px !important; }
  .brand-sub  { font-size: 9px !important; }
  .brand-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
  }
  .d-flex.align-items-center.d-lg-none { gap: 10px !important; }

  #themeToggleMob {
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 0 !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px !important;
    height: 42px !important;
    background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(30,58,138,.35)) !important;
    border: 1.5px solid rgba(37,99,235,.4) !important;
    border-radius: 10px !important;
    cursor: pointer;
    padding: 8px !important;
    transition: background .25s, border-color .25s, transform .2s !important;
  }
  .mobile-menu-btn:hover {
    background: linear-gradient(135deg, rgba(37,99,235,.4), rgba(30,58,138,.5)) !important;
    border-color: rgba(37,99,235,.6) !important;
    transform: scale(1.04);
  }
  .mobile-menu-btn.open {
    background: linear-gradient(135deg, #2563eb, #1e3a8a) !important;
    border-color: #2563eb !important;
  }

  .hamburger-line {
    display: block;
    width: 20px !important;
    height: 2px !important;
    background: #fff !important;
    border-radius: 2px !important;
    transition: all .28s cubic-bezier(.4,0,.2,1) !important;
  }
  .mobile-menu-btn.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  .mobile-menu-btn.open .hamburger-line:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
  .mobile-menu-btn.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
}

/* ======================================================
   §2  MOBILE SLIDE MENU
   ====================================================== */
@media (max-width: 991px) {
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,10,24,.75) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 1998 !important;
  }
  .mobile-nav-overlay.show { display: block; }

  .mobile-nav-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(310px, 88vw) !important;
    height: 100vh !important;
    background: linear-gradient(170deg, #060d1f 0%, #0a1228 40%, #071020 100%) !important;
    z-index: 1999 !important;
    transform: translateX(100%) !important;
    transition: transform .32s cubic-bezier(.4,0,.2,1) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -12px 0 60px rgba(0,0,0,.7) !important;
    border-left: 1px solid rgba(37,99,235,.18) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(37,99,235,.3) transparent;
  }
  .mobile-nav-panel::-webkit-scrollbar { width: 3px; }
  .mobile-nav-panel::-webkit-scrollbar-thumb { background: rgba(37,99,235,.3); border-radius: 3px; }
  .mobile-nav-panel.open {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  .mobile-nav-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 20px 16px !important;
    background: rgba(37,99,235,.08) !important;
    border-bottom: 1px solid rgba(37,99,235,.2) !important;
    flex-shrink: 0 !important;
    position: relative;
  }
  .mobile-nav-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, #2563eb 30%, #f59e0b 50%, #2563eb 70%, transparent);
  }

  .mobile-nav-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-nav-close {
    width: 38px !important;
    height: 38px !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 10px !important;
    color: rgba(255,255,255,.8) !important;
    font-size: 17px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .2s, color .2s, transform .2s !important;
    flex-shrink: 0;
  }
  .mobile-nav-close:hover {
    background: rgba(239,68,68,.15) !important;
    border-color: rgba(239,68,68,.3) !important;
    color: #f87171 !important;
    transform: rotate(90deg) !important;
  }

  .mobile-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    flex: 1 !important;
  }
  .mobile-nav-list li { width: 100% !important; }

  .mobile-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    padding: 13px 20px !important;
    color: rgba(255,255,255,.78) !important;
    text-decoration: none !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    transition: background .2s, color .2s, padding-left .2s !important;
    border-left: 3px solid transparent !important;
  }
  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    background: rgba(37,99,235,.14) !important;
    color: #fff !important;
    padding-left: 24px !important;
    border-left-color: rgba(37,99,235,.5) !important;
    text-decoration: none !important;
  }
  .mobile-nav-link.active {
    background: rgba(37,99,235,.2) !important;
    color: #fff !important;
    border-left-color: #f59e0b !important;
    font-weight: 600 !important;
  }
  .mobile-nav-link i {
    width: 22px !important;
    text-align: center !important;
    font-size: 15px !important;
    opacity: .75 !important;
    color: #60a5fa;
    flex-shrink: 0;
  }
  .mobile-nav-link:hover i,
  .mobile-nav-link.active i { opacity: 1 !important; color: #f59e0b !important; }

  .mobile-nav-badge {
    background: linear-gradient(135deg, #dc2626, #f97316) !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 20px !important;
    margin-left: auto !important;
    text-transform: uppercase !important;
    letter-spacing: .5px;
  }

  .mobile-nav-divider {
    height: 1px !important;
    background: rgba(255,255,255,.07) !important;
    margin: 6px 20px !important;
    list-style: none !important;
  }

  .mobile-nav-apply {
    margin: 10px 16px !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-radius: 11px !important;
    color: #fff !important;
    border-left: none !important;
    justify-content: center !important;
    font-weight: 700 !important;
    padding: 13px 20px !important;
    box-shadow: 0 4px 20px rgba(37,99,235,.35) !important;
  }
  .mobile-nav-apply:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    padding-left: 20px !important;
    border-left: none !important;
  }
  .mobile-nav-apply i { color: rgba(255,255,255,.9) !important; }
  .mobile-nav-logout { color: rgba(248,113,113,.85) !important; }
  .mobile-nav-logout i { color: #f87171 !important; }
  .mobile-nav-logout:hover { background: rgba(248,113,113,.1) !important; }

  .mobile-nav-contact-strip {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 16px 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .mobile-nav-contact-strip a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .2s, color .2s;
  }
  .mobile-nav-contact-strip a:last-child { border-bottom: none; }
  .mobile-nav-contact-strip a:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }
  .mobile-nav-contact-strip i { width: 18px; text-align: center; color: #f59e0b; font-size: 13px; }
}

/* ======================================================
   §3  MOBILE FOOTER
   ====================================================== */
@media (max-width: 767px) {
  .footer-newsletter { padding: 40px 0 !important; }
  .footer-newsletter h4 { font-size: 18px !important; margin-bottom: 8px !important; }
  .footer-newsletter p { font-size: 13px !important; margin-bottom: 18px !important; }
  .newsletter-form { flex-direction: column !important; gap: 10px !important; padding: 0 8px !important; }
  .newsletter-form input { min-width: unset !important; width: 100% !important; padding: 13px 16px !important; }
  .newsletter-form button { width: 100% !important; padding: 13px !important; font-size: 14px !important; border-radius: 10px !important; }

  .nexus-footer { padding: 48px 0 24px !important; }
  .nexus-footer .col-lg-4.col-md-12 { text-align: center; }
  .footer-brand { justify-content: center !important; }
  .footer-tagline { text-align: center; font-size: 13px !important; }
  .nexus-footer .d-flex.gap-3.mt-4.flex-wrap { justify-content: center !important; }
  .footer-social { justify-content: center !important; margin-top: 16px !important; }
  .footer-social a { width: 44px !important; height: 44px !important; font-size: 17px !important; border-radius: 12px !important; }

  .nexus-footer .col-lg-2.col-md-4.col-6 { flex: 0 0 50% !important; max-width: 50% !important; }
  .footer-heading { font-size: 10px !important; letter-spacing: 1.5px !important; margin-bottom: 14px !important; }
  .footer-links li { margin-bottom: 9px !important; }
  .footer-links a { font-size: 13.5px !important; }

  .nexus-footer .col-lg-4.col-md-4 { flex: 0 0 100% !important; max-width: 100% !important; }
  .footer-contact li { font-size: 13px !important; margin-bottom: 13px !important; align-items: center !important; }
  .nexus-footer .d-flex.flex-wrap.gap-2 { gap: 6px !important; }
  .nexus-footer .d-flex.flex-wrap.gap-2 span { font-size: 11.5px !important; padding: 5px 10px !important; border-radius: 8px !important; }
  .footer-divider { margin: 28px 0 18px !important; }

  .nexus-footer .d-flex.flex-wrap.justify-content-between {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
  }
  .footer-copy { font-size: 12px !important; text-align: center !important; }
  .nexus-footer .d-flex.gap-3 { gap: 16px !important; justify-content: center; }
  .nexus-footer .d-flex.gap-3 a { font-size: 11px !important; }

  .whatsapp-float { bottom: 20px !important; right: 16px !important; width: 54px !important; height: 54px !important; font-size: 24px !important; }
  .scroll-top-btn { bottom: 84px !important; right: 16px !important; }
  .whatsapp-float .wa-tooltip { display: none !important; }
}

@media (max-width: 400px) {
  .nexus-footer .col-lg-2.col-md-4.col-6 { flex: 0 0 100% !important; max-width: 100% !important; }
  .footer-social a { width: 40px !important; height: 40px !important; font-size: 15px !important; }
}

/* ======================================================
   §4  DESKTOP GUARD — >= 992px pe kuch nahi badlega
   ====================================================== */
@media (min-width: 992px) {
  .mobile-nav-panel {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    transition: none !important;
  }
  .mobile-nav-overlay { display: none !important; }
  .mobile-menu-btn   { display: none !important; }
  #themeToggleMob    { display: none !important; }
  .mobile-nav-contact-strip { display: none !important; }

  .nexus-nav { height: var(--nav-h) !important; padding: 0 20px !important; }
  .navbar-logo { height: 62px !important; width: auto !important; max-width: 230px !important; }
  .brand-text  { font-size: 18px !important; }
  .brand-icon  { width: 42px !important; height: 42px !important; font-size: 18px !important; }
}

/* ======================================================
   §5  SAFE AREA — iOS notch support (mobile only)
   ====================================================== */
@media (max-width: 991px) {
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-nav-panel { padding-bottom: env(safe-area-inset-bottom); }
    .nexus-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important; }
  }
}