#header,
    .sm-navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        padding: 0 40px;
        background: transparent;
        transition: transform .35s ease, background .4s ease, box-shadow .4s ease;
    }

    #header.scrolled,
    .sm-navbar.scrolled {
        background: rgba(5, 13, 31, .72);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
    }

    /* #header.hide {
        transform: translateY(-100%);
    } */

    .sm-navbar-container {
        max-width: 1400px;
        margin: auto;
        height: 84px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
    }

    .header-dropdown > * {
    position: relative;
    z-index: 1001;
}

    .sm-logo,
    .header-logo {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        flex: 0 0 auto;
        position: relative;  
        z-index: 1002; 
    }

    .sm-logo img,
    .header-logo img {
        height: 38px;
        filter: brightness(0) invert(1);
            z-index: 1001;
    }

    .sm-nav-links,
    .header-nav {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-left: 18px;
        margin-right: auto;
    }

    /* RTL: Reverse navigation margins */
    [dir="rtl"] .sm-nav-links,
    [dir="rtl"] .header-nav {
        margin-left: auto;
        margin-right: 18px;
    }

    .sm-nav-item,
    .header-dropdown {
        position: relative;
    }

    .sm-nav-btn,
    .header-nav-btn {
        background: none;
        border: none;
        color: rgba(255, 255, 255, .72);
        display: flex;
        align-items: center;
        gap: 6px;
        font-family: inherit;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        padding: 10px 0;
        cursor: pointer;
    }

    .sm-nav-btn:hover,
    .header-nav-btn:hover,
    .header-nav-btn.active,
    .header-dropdown:hover > .header-nav-btn {
        color: #fff;
    }

    .sm-nav-btn .material-symbols-outlined,
    .header-nav-btn .material-symbols-outlined {
        font-size: 24px;
        transition: transform .25s ease;
    }

    .header-dropdown:hover > .header-nav-btn .material-symbols-outlined,
    .header-nav-btn.active .material-symbols-outlined {
        transform: rotate(180deg);
    }

    /* lazy-icon: the icon no longer inherits the button's color, and its own
       inline "transition: opacity" would otherwise wipe out the rotate transition above */
    .sm-nav-btn .skeleton-icon-wrapper .material-symbols-outlined,
    .header-nav-btn .skeleton-icon-wrapper .material-symbols-outlined {
        color: rgba(255, 255, 255, .72) !important;
        transition: opacity .3s ease, transform .25s ease !important;
    }

    .sm-nav-btn:hover .skeleton-icon-wrapper .material-symbols-outlined,
    .header-nav-btn:hover .skeleton-icon-wrapper .material-symbols-outlined,
    .header-nav-btn.active .skeleton-icon-wrapper .material-symbols-outlined,
    .header-dropdown:hover > .header-nav-btn .skeleton-icon-wrapper .material-symbols-outlined {
        color: #fff !important;
    }

    .sm-dropdown,
    .header-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 260px;
        background: rgba(8, 18, 37, .95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, .06);
        border-radius: 18px;
        padding: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
        pointer-events: none;
        z-index: 1001;
    }

    /* RTL: Align dropdown to the right */
    [dir="rtl"] .sm-dropdown,
    [dir="rtl"] .header-dropdown-menu {
        left: auto;
        right: 0;
    }

    .sm-nav-item:hover .sm-dropdown,
    .header-dropdown:hover .header-dropdown-menu,
    .header-dropdown-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .sm-dropdown a,
    .header-dropdown-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 12px;
        color: rgba(255, 255, 255, .72);
        text-decoration: none;
        font-size: 14px;
        line-height: 1.35;
    }

    .sm-dropdown a:hover,
    .header-dropdown-menu a:hover {
        background: rgba(255, 255, 255, .05);
        color: #fff;
    }

    .sm-nav-links a,
    .header-nav a:not(.mobile-nav-logo) {
        color: rgba(255, 255, 255, .72);
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
        z-index: 1001;
    }

    .sm-nav-links a:hover,
    .header-nav a:not(.mobile-nav-logo):hover {
        color: #fff;
    }

    .sm-mobile-toggle,
    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 14px;
        background: rgba(5, 13, 31, .35);
        color: #fff;
        cursor: pointer;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1001;
    }

    .sm-mobile-toggle .material-symbols-outlined,
    .menu-btn .material-symbols-outlined {
        font-size: 26px;
    }

    .sm-menu-close,
    .menu-btn.active .sm-menu-open {
        display: none;
    }

    .menu-btn.active .sm-menu-close {
        display: inline-block;
    }

    .mobile-nav-logo {
        display: none;
    }

    #overlay {
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(5, 13, 31, .38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        transition: opacity .3s ease, visibility .3s ease;
    }

    #overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    @media (max-width: 1023px) {
        #header,
        .sm-navbar {
            padding: 0 18px;
        }

        .sm-navbar-container {
            height: 70px;
        }

        .sm-nav-links,
        .header-nav {
            display: none;
        }

        .mobile-nav-logo {
            display: none;
            justify-content: center;
            padding: 8px 0 18px;
            margin-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, .08);
        }

        .mobile-nav-logo img {
            height: 34px;
            filter: brightness(0) invert(1);
        }

        .sm-nav-item,
        .header-dropdown {
            width: 100%;
        }

        .sm-nav-btn,
        .header-nav-btn,
        .sm-nav-links a,
        .header-nav a:not(.mobile-nav-logo) {
            width: 100%;
            min-height: 50px;
            padding: 14px 16px;
            border-radius: 14px;
            background: rgba(255, 255, 255, .05);
            color: rgba(255, 255, 255, .78);
        }

        .sm-nav-btn,
        .header-nav-btn {
            justify-content: space-between;
        }

        .sm-nav-links a,
        .header-nav a:not(.mobile-nav-logo) {
            display: flex;
            align-items: center;
        }

        .sm-dropdown,
        .header-dropdown-menu {
            position: static;
            width: 100%;
            max-height: 0;
            margin-top: 8px;
            padding: 0;
            overflow: hidden;
            border-radius: 14px;
            opacity: 0;
            visibility: hidden;
            transform: none;
            transition: max-height .35s ease, opacity .25s ease, visibility .25s ease;
        }

        .sm-nav-item:hover .sm-dropdown,
        .header-dropdown:hover .header-dropdown-menu {
            opacity: 0;
            visibility: hidden;
            max-height: 0;
        }

        .sm-dropdown.open,
        .header-dropdown-menu.open {
            max-height: 900px;
            padding: 8px;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto;
        }

        .sm-dropdown a,
        .header-dropdown-menu a {
            min-height: 46px;
        }

        .sm-mobile-toggle,
        .menu-btn {
            display: inline-flex;
            order: 0;
        }
    }

    @media (max-width: 639px) {
        #header,
        .sm-navbar {
            padding: 0 12px;
        }

        .sm-navbar-container {
            height: 62px;
        }

        .sm-logo img,
        .header-logo img {
            height: 32px;
        }

        .sm-nav-links,
        .header-nav {
            top: 62px;
            width: min(340px, calc(100vw - 20px));
            height: calc(100vh - 62px);
        }
    }

    /* Large Desktop */
    @media (max-width: 1400px) {
        .sm-navbar-container {
            max-width: 1180px;
        }
    }

    /* Desktop */
    @media (max-width: 1200px) {
        #header,
        .sm-navbar {
            padding-left: 28px;
            padding-right: 28px;
        }

        .sm-navbar-container {
            gap: 14px;
        }

        .header-nav,
        .sm-nav-links {
            gap: 12px;
            margin-left: 12px;
        }

        /* RTL: Reverse navigation margins */
        [dir="rtl"] .header-nav,
        [dir="rtl"] .sm-nav-links {
            margin-left: auto;
            margin-right: 12px;
        }

        .header-nav-btn,
        .sm-nav-btn,
        .header-nav a:not(.mobile-nav-logo),
        .sm-nav-links a {
            font-size: 13px;
        }
    }

    /* Small Laptop */
    @media (max-width: 992px) {
        #header,
        .sm-navbar {
            padding-left: 18px;
            padding-right: 18px;
        }

        .sm-navbar-container {
            height: 70px;
        }

        #header-nav,
        .header-nav,
        .sm-nav-links {
            display: none !important;
        }
    }

    /* Tablet */
    @media (max-width: 768px) {
        .sm-navbar-container {
            height: 64px;
        }

        .sm-logo img,
        .header-logo img {
            height: 34px;
        }
    }

    /* Mobile */
    @media (max-width: 576px) {
        #header,
        .sm-navbar {
            padding-left: 12px;
            padding-right: 12px;
            height: 60px;
        }

        .sm-navbar-container {
            height: 60px;
            gap: 10px;
            margin: 5px;
        }

        .menu-btn,
        .sm-mobile-toggle {
            width: 40px;
            height: 40px;
            border-radius: 12px;
        }

        .sm-logo img,
        .header-logo img {
            height: 41px;
        }

         .login-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 8px;
        gap: 4px;
    }

     .login-btn .login-text {
        display: none;
    }

    .login-btn .material-symbols-outlined {
        font-size: 16px;
    }
    }

    /* Mobile Small */
    @media (max-width: 360px) {
        .sm-navbar-container {
            height: 56px;
            gap: 8px;
        }

        .menu-btn,
        .sm-mobile-toggle {
            width: 38px;
            height: 38px;
        }

        .sm-logo img,
        .header-logo img {
            height: 25px;
        }


         .login-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    }



     .nav-hover-blur {
    position: fixed;
     top: 0; /* match your navbar height */
    left: 0;
    right: 0;
    bottom: 0;
   background: rgba(5, 13, 31, 0.55); 
   blur: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;

    z-index: 998;
    pointer-events: none;
}

body.nav-blur-active .nav-hover-blur {
    opacity: 1;
    visibility: visible;
}


/* ════════════════════════════════════════════════════════════
   LOGIN BUTTON
════════════════════════════════════════════════════════════ */
.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 180, 180, 0.4);
    background: rgba(0, 180, 180, 0.08);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    /* margin-left: auto; */
    z-index: 1001;
}

.login-btn:hover {
    background: rgba(0, 180, 180, 0.2);
    border-color: rgba(0, 180, 180, 0.7);
    transform: translateY(-1px);
}

.login-btn .material-symbols-outlined {
    font-size: 18px;
}
/* ════════════════════════════════════════════════════════════
   CONTACT US BUTTON (matches login-btn, differentiated accent)
════════════════════════════════════════════════════════════ */
.contact-btn {
    text-decoration: none;
}

@media (max-width: 576px) {
    .contact-btn .contact-text {
        display: none;
    }

    .contact-btn .material-symbols-outlined {
        font-size: 16px;
    }
}

/* ════════════════════════════════════════════════════════════
   LOGIN MODAL OVERLAY
════════════════════════════════════════════════════════════ */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 45, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MODAL BOX */
.login-modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0) scale(1);
}

/* CLOSE BUTTON */
.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e8edf5;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    color: #64748b;
}

/* RTL: Position close button on the left */
[dir="rtl"] .login-modal-close {
    right: auto;
    left: 16px;
}

.login-modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

.login-modal-close .material-symbols-outlined {
    font-size: 18px;
}

/* HEADER */
.login-modal-head {
    margin-bottom: 28px;
    text-align: center;
}

.login-modal-head h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 6px;
}

.login-modal-head p {
    font-size: 0.88rem;
    color: #64748b;
}

/* CARDS */
.login-modal-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-system-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.login-system-card:hover {
    border-color: #04A4CA;
    background: rgba(0, 180, 180, 0.04);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 180, 180, 0.1);
}

/* RTL: Reverse slide direction */
[dir="rtl"] .login-system-card:hover {
    transform: translateX(-4px);
}

/* ICON */
.login-system-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 180, 180, 0.1);
    border: 1px solid rgba(0, 180, 180, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.login-system-card:hover .login-system-icon {
    background: rgba(0, 180, 180, 0.18);
}

.login-system-icon .material-symbols-outlined {
    font-size: 22px;
    color: #04A4CA;
    font-variation-settings: 'FILL' 1;
}

/* TEXT */
.login-system-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.login-system-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--navy);
}

.login-system-desc {
    font-size: 0.75rem;
    color: #64748b;
}

/* ARROW */
.login-system-arrow {
    font-size: 18px !important;
    color: #04A4CA;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* RTL: Reverse arrow initial position */
[dir="rtl"] .login-system-arrow {
    transform: translateX(4px);
}

.login-system-card:hover .login-system-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .login-modal {
        padding: 30px 22px;
    }

    .login-modal-head h2 {
        font-size: 1.25rem;
    }
}
