/* =========================
   NAVBAR
========================= */
.navbar {
  height: 90px;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(6, 182, 212, 0.2);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-left  { flex: 1; display: flex; justify-content: flex-start; }
.nav-center { flex: 2; display: flex; justify-content: center; gap: 40px; align-items: center; }
.nav-right-wrapper { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

.nav-logo-img { height: 200px; width: auto; display: block; transition: var(--transition); }
.logo:hover .nav-logo-img { transform: scale(1.05); }

.nav-center a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  opacity: 0.8;
  transition: var(--transition);
}
.nav-center a:hover { opacity: 1; color: var(--teal); }

.btn-primary {
  background: var(--gradient);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  transition: var(--transition);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(37, 99, 235, 0.3); }

.mobile-menu-btn { display: none; color: white; font-size: 28px; cursor: pointer; }

/* ── Language switcher ── */
.btn-lang {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.btn-lang:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
[dir="rtl"] .btn-lang,
.btn-lang:lang(ar) {
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-size: 16px;
  padding: 6px 16px;
}

/* =========================
   RTL — Navbar
========================= */
[dir="rtl"] .nav-wrapper      { flex-direction: row-reverse; }
[dir="rtl"] .nav-left         { justify-content: flex-end; }
[dir="rtl"] .nav-right-wrapper { justify-content: flex-start; }
[dir="rtl"] .nav-center       { flex-direction: row-reverse; left: auto; right: 0; }

/* =========================
   RESPONSIVE — Navbar
========================= */
@media (max-width: 992px) {
  .mobile-menu-btn { display: block; }
  .nav-center {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 24px 30px;
    gap: 18px;
    text-align: center;
    border-bottom: 2px solid var(--teal);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    z-index: 999;
  }
  .nav-center.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .nav-right-wrapper .btn-primary { padding: 10px 18px; font-size: 14px; }

  [dir="rtl"] .nav-center { left: auto; right: 0; text-align: right; }
}

@media (max-width: 640px) {
  .nav-logo-img { height: 140px; }
  .nav-right-wrapper { gap: 10px; }
}

@media (max-width: 480px) {
  .nav-right-wrapper .btn-lang { display: none; }
  .nav-logo-img { height: 110px; }
}
