/* ---------- BASE ---------- */
body::-webkit-scrollbar-thumb {
    background-color: #FB7E1A;
    border-radius: 5px;
}

body::-webkit-scrollbar {
    width: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    background: #071A3D;
    color: #fff;
}

html[dir="rtl"] body {
    font-family: "Cairo", Inter, sans-serif;
}

.serif {
    font-family: "Cormorant Garamond", serif;
}

html[dir="rtl"] .serif {
    font-family: "Cairo", serif;
    font-weight: 700;
}

.grid-bg {
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hero-line {
    position: absolute;
    left: -5%;
    right: -5%;
    top: 45%;
    height: 300px;
    pointer-events: none;
}

.hero-line svg {
    width: 100%;
    height: 100%;
}

/* ---------- GLASS (cards) ---------- */
.glass {
    backdrop-filter: blur(16px);
    background: rgba(25, 33, 63, .72);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- ROUNDED + SCROLL GLASS NAVBAR ---------- */
.navbar-wrapper {
    position: sticky;
    top: 1.2rem;
    z-index: 50;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1.5rem;
    transition: all 0.2s ease;
}

.navbar-inner {
    max-width: 1280px;
    width: 100%;
    border-radius: 60px;
    padding: 0.7rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    background: rgba(25, 33, 63, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
    transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* when scrolled → denser glass */
.navbar-inner.scrolled {
    background: rgba(18, 30, 65, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.7);
    border-color: rgba(212, 175, 55, 0.15);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    color: #cbd5e1;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-links li {
    cursor: default;
    transition: color 0.2s;
    list-style: none;
}

.nav-links li:hover {
    color: #f1f5f9;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: #D4AF37;
}

.brand-text {
    line-height: 1.2;
}

.brand-text .name {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
}

.brand-text .sub {
    font-size: 10px;
    letter-spacing: 1px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 400;
}

html[dir="rtl"] .brand-text .sub {
    letter-spacing: 0.5px;
    text-transform: none;
}

.btn-gold {
    background: #D4AF37;
    color: #0b1a38;
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 40px;
    transition: 0.2s;
    font-size: 0.9rem;
    border: none;
    white-space: nowrap;
    cursor: pointer;
}

.btn-gold:hover {
    transform: scale(1.03);
    background: #e0c04a;
}

.icon-moon {
    width: 44px;
    height: 44px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: default;
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4px;
    gap: 2px;
    cursor: pointer;
}

.lang-switch button {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.45rem 0.85rem;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.lang-switch button.active {
    background: #D4AF37;
    color: #0b1a38;
}

@media (max-width: 640px) {
    .lang-switch button {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .navbar-inner {
        padding: 0.5rem 1.2rem;
        border-radius: 40px;
    }

    .brand-text .sub {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .btn-gold {
        padding: 0.4rem 1.2rem;
        font-size: 0.75rem;
    }

    .icon-moon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .nav-left {
        gap: 0.8rem;
    }

    .nav-right {
        gap: 0.6rem;
    }
}

/* hero image fallback */
.hero-img-fallback {
    background: #142a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-family: serif;
    font-size: 2rem;
}
