/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-small {
  height: 70px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-small:hover {
  transform: scale(1.1) rotate(5deg);
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  direction: ltr; /* Default LTR direction */
}

.language-switcher {
  display: flex;
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 25px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 167, 53, 0.3);
}

.lang-btn i {
  font-size: 0.9rem;
}

.lang-text {
  font-weight: 600;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Active navigation item */
.nav-menu a.active {
  color: var(--gold);
}

.nav-menu a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--gold);
  transition: all 0.3s ease;
}

/* RTL Support for Navigation */
[dir="rtl"] .navbar {
  direction: rtl; /* Set RTL direction on navbar */
}

[dir="rtl"] .navbar .container {
  flex-direction: row-reverse;
  direction: rtl; /* Ensure container respects RTL */
}

[dir="rtl"] .nav-menu {
  flex-direction: row; /* Keep natural order - RTL direction will place Home on right */
  direction: rtl; /* RTL direction for menu container */
}

[dir="rtl"] .nav-menu li {
  direction: ltr; /* Keep text direction LTR for English text even in RTL layout */
  unicode-bidi: embed; /* Ensure proper text direction */
}

[dir="rtl"] .nav-menu a {
  direction: ltr; /* Keep link text direction LTR */
  unicode-bidi: embed; /* Ensure proper text direction */
}

[dir="rtl"] .nav-menu a::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: 2rem;
}

