/* =============================================================================
   SULTIFY TECH INNOVATIONS -- NEXT-GEN MOBILE NAVBAR & OFFCANVAS DRAWER ENGINE
   Designed for ultra-smooth responsiveness on all iPhones, Androids, & Tablets
   ============================================================================= */

/* Desktop Default (> 1024px): Strictly Hide All Mobile Elements */
@media (min-width: 1025px) {
    .mobile-actions-group,
    .mobile-toggle,
    .mobile-nav-edusuite-btn,
    .mobile-drawer,
    .mobile-drawer-backdrop,
    .nav-brand-title {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* =============================================================================
   MOBILE & TABLET VIEWPORT ENGINE (<= 1024px)
   ============================================================================= */
@media (max-width: 1024px) {

    /* Hide desktop nav wings */
    .nav-group.group-left,
    .nav-group.group-right {
        display: none !important;
    }

    /* Floating Pill Header on Mobile */
    .navbar {
        position: fixed !important;
        top: 12px !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        width: calc(100% - 24px) !important;
        max-width: 520px !important;
        height: 52px !important;
        padding: 0 16px !important;
        background: rgba(8, 12, 22, 0.94) !important;
        backdrop-filter: blur(28px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-top: 1px solid rgba(100, 255, 218, 0.45) !important;
        border-radius: 9999px !important;
        box-shadow: 0 10px 32px -8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(100, 255, 218, 0.1) !important;
        z-index: 99990 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-center-layout {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        position: relative !important;
    }

    /* Logo - Left Aligned Brand Lockup on Mobile */
    .logo-center {
        order: 1 !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        margin-right: auto !important;
        text-decoration: none !important;
        z-index: 10 !important;
    }

    .nav-logo-img {
        height: 28px !important;
        width: 28px !important;
        max-height: 28px !important;
        max-width: 28px !important;
        object-fit: contain !important;
        border-radius: 6px !important;
        filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.35)) !important;
        display: block !important;
    }

    .nav-brand-title {
        display: inline-block !important;
        font-family: 'Space Grotesk', -apple-system, sans-serif !important;
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #ffffff 60%, #64ffda 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        line-height: 1 !important;
    }

    /* Mobile Actions Group (EduSuite + Hamburger) */
    .mobile-actions-group {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        z-index: 10 !important;
    }

    /* Quick Launch EduSuite Mini Pill */
    .mobile-nav-edusuite-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 13px !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        color: #64ffda !important;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(100, 255, 218, 0.12)) !important;
        border: 1px solid rgba(100, 255, 218, 0.35) !important;
        border-radius: 9999px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-shadow: 0 0 12px rgba(100, 255, 218, 0.15) !important;
        transition: all 0.2s ease !important;
    }

    .mobile-nav-edusuite-btn:active {
        transform: scale(0.96) !important;
        background: rgba(100, 255, 218, 0.25) !important;
    }

    /* Next-Gen Animated Hamburger Button */
    .mobile-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4.5px !important;
        width: 38px !important;
        height: 38px !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 10001 !important;
        transition: all 0.25s ease !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }

    .mobile-toggle .bar {
        width: 17px !important;
        height: 2px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        transform-origin: center !important;
    }

    .mobile-toggle.active {
        background: rgba(100, 255, 218, 0.15) !important;
        border-color: #64ffda !important;
        box-shadow: 0 0 15px rgba(100, 255, 218, 0.35) !important;
    }

    .mobile-toggle.active .bar {
        background: #64ffda;
    }

    .mobile-toggle.active .bar-1 {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-toggle.active .bar-2 {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-toggle.active .bar-3 {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* --------------------------------------------------------------------------
       OFF-CANVAS MOBILE DRAWER & BACKDROP
       -------------------------------------------------------------------------- */
    .mobile-drawer-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(2, 6, 15, 0.78) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        z-index: 99998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.35s ease, visibility 0.35s ease !important;
        pointer-events: none !important;
    }

    .mobile-drawer-backdrop.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .mobile-drawer {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: min(390px, 88vw) !important;
        height: 100vh !important;
        background: rgba(7, 11, 21, 0.98) !important;
        backdrop-filter: blur(30px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
        border-left: 1px solid rgba(100, 255, 218, 0.25) !important;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9) !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateX(100%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .mobile-drawer.active {
        transform: translateX(0) !important;
    }

    /* Drawer Header */
    .drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(255, 255, 255, 0.02) !important;
        flex-shrink: 0 !important;
    }

    .drawer-brand {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .drawer-logo-img {
        height: 32px !important;
        width: auto !important;
        filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.4)) !important;
    }

    .drawer-brand-text {
        display: flex !important;
        flex-direction: column !important;
    }

    .brand-title {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        letter-spacing: 1px !important;
        line-height: 1.2 !important;
    }

    .brand-tagline {
        font-size: 0.58rem !important;
        color: #64ffda !important;
        letter-spacing: 1.5px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }

    .drawer-close-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #cbd5e1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 1rem !important;
        transition: all 0.25s ease !important;
        padding: 0 !important;
    }

    .drawer-close-btn:hover,
    .drawer-close-btn:active {
        background: rgba(248, 113, 113, 0.2) !important;
        color: #f87171 !important;
        border-color: rgba(248, 113, 113, 0.4) !important;
        transform: rotate(90deg) scale(0.95) !important;
    }

    /* Drawer Scrollable Body */
    .drawer-body {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px 18px 30px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .drawer-body::-webkit-scrollbar {
        width: 4px !important;
    }
    .drawer-body::-webkit-scrollbar-thumb {
        background: rgba(100, 255, 218, 0.3) !important;
        border-radius: 4px !important;
    }

    /* Navigation Links */
    .drawer-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .drawer-link {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 11px 14px !important;
        border-radius: 12px !important;
        color: #94a3b8 !important;
        text-decoration: none !important;
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        background: transparent !important;
        position: relative !important;
    }

    .drawer-link:hover,
    .drawer-link:active {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.05) !important;
        transform: translateX(3px) !important;
    }

    .drawer-link.active-link {
        color: #64ffda !important;
        background: rgba(100, 255, 218, 0.1) !important;
        border-left: 3px solid #64ffda !important;
        padding-left: 14px !important;
        box-shadow: inset 0 0 15px rgba(100, 255, 218, 0.06) !important;
    }

    .link-icon-wrap {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        color: #64ffda !important;
        flex-shrink: 0 !important;
    }

    .link-text {
        flex: 1 !important;
        letter-spacing: 0.2px !important;
    }

    .link-arrow {
        font-size: 0.72rem !important;
        color: #475569 !important;
        transition: transform 0.2s ease !important;
    }

    .drawer-link:hover .link-arrow,
    .drawer-link.active-link .link-arrow {
        color: #64ffda !important;
        transform: translateX(3px) !important;
    }

    .drawer-badge-hiring {
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        padding: 2px 8px !important;
        border-radius: 20px !important;
        background: rgba(16, 185, 129, 0.18) !important;
        color: #34d399 !important;
        border: 1px solid rgba(16, 185, 129, 0.35) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* EduSuite Spotlight Card */
    .drawer-spotlight-card {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(100, 255, 218, 0.1) 100%) !important;
        border: 1px solid rgba(99, 102, 241, 0.4) !important;
        border-radius: 14px !important;
        padding: 14px 16px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    }

    .spotlight-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 0.65rem !important;
        font-weight: 800 !important;
        color: #a5b4fc !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 6px !important;
    }

    .drawer-spotlight-card h4 {
        font-size: 0.98rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        margin: 0 0 4px 0 !important;
    }

    .drawer-spotlight-card p {
        font-size: 0.78rem !important;
        color: #94a3b8 !important;
        line-height: 1.4 !important;
        margin: 0 0 12px 0 !important;
    }

    .drawer-spotlight-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px 16px !important;
        background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
        transition: all 0.25s ease !important;
    }

    .drawer-spotlight-btn:hover,
    .drawer-spotlight-btn:active {
        transform: translateY(-1px) scale(1.01) !important;
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55) !important;
    }

    /* Primary CTA Action Button */
    .drawer-cta-wrapper {
        margin-top: 2px !important;
    }

    .drawer-cta-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 12px 20px !important;
        background: linear-gradient(135deg, #64ffda 0%, #00f2fe 100%) !important;
        color: #07090e !important;
        border-radius: 12px !important;
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        text-decoration: none !important;
        box-shadow: 0 4px 20px rgba(100, 255, 218, 0.35) !important;
        transition: all 0.25s ease !important;
        box-sizing: border-box !important;
    }

    .drawer-cta-btn:hover,
    .drawer-cta-btn:active {
        transform: translateY(-2px) scale(1.02) !important;
        box-shadow: 0 6px 25px rgba(100, 255, 218, 0.6) !important;
    }

    /* Quick Contact Box */
    .drawer-contact-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .drawer-contact-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        font-size: 0.82rem !important;
        color: #cbd5e1 !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
    }

    .drawer-contact-item:hover {
        color: #64ffda !important;
    }

    .drawer-contact-item i {
        color: #64ffda !important;
        width: 16px !important;
        text-align: center !important;
    }

    /* Social Links */
    .drawer-socials {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        padding-top: 4px !important;
    }

    .drawer-socials a {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #94a3b8 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .drawer-socials a:hover {
        color: #64ffda !important;
        border-color: #64ffda !important;
        background: rgba(100, 255, 218, 0.1) !important;
    }

    /* Status Footer */
    .drawer-footer-status {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        font-size: 0.68rem !important;
        color: #64748b !important;
        letter-spacing: 0.5px !important;
        font-weight: 600 !important;
        padding-top: 8px !important;
    }

    .status-pulse-dot {
        width: 6px !important;
        height: 6px !important;
        background: #10b981 !important;
        border-radius: 50% !important;
        box-shadow: 0 0 8px #10b981 !important;
        animation: pulse-dot 1.5s infinite !important;
        display: inline-block !important;
    }

    @keyframes pulse-dot {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.4; transform: scale(0.85); }
    }

    body.mobile-nav-locked {
        overflow: hidden !important;
        touch-action: none !important;
    }
}
