/* Modern Navbar Styles for IHSAAN OASIS */

/* Navbar Container */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 15px 0;
}

/* Sticky navbar styles */
.site-nav.scrolled {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-nav.scrolled .logo,
.site-nav.scrolled .site-menu > li > a,
.site-nav.scrolled .language-switcher button {
  color: #333 !important;
}

.site-nav.scrolled .language-switcher button {
  border-color: rgba(0, 0, 0, 0.2);
}

.site-nav.scrolled .burger span {
  background-color: #333;
}

/* Logo Section */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-wrapper:hover .logo-image {
  transform: scale(1.05);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
  color: #fff;
}

/* Menu Background Wrapper */
.menu-bg-wrap {
  background: transparent;
  border-radius: 10px;
  padding: 10px 0;
}

/* Navigation Menu */
.site-navigation .site-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation .site-menu > li {
  display: inline-block;
  margin: 0 8px;
}

.site-navigation .site-menu > li > a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.site-navigation .site-menu > li > a:hover,
.site-navigation .site-menu > li.active > a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-nav {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.btn-nav-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}

.btn-nav-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-nav-primary {
  background-color: var(--bs-primary);
  color: #fff;
  border: 1px solid var(--bs-primary);
}

.btn-nav-primary:hover {
  background-color: #476d56;
  border-color: #476d56;
  color: #fff;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher form {
  margin: 0;
}

.language-switcher button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.language-switcher button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* Mobile Menu Toggle */
.burger {
  width: 28px;
  height: 28px;
  position: relative;
  cursor: pointer;
  display: none;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.burger span:nth-child(1) {
  top: 6px;
}

.burger span:nth-child(2) {
  top: 13px;
}

.burger span:nth-child(3) {
  bottom: 6px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 13px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 13px;
}

/* Mobile Menu */
.site-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.site-mobile-menu.active {
  transform: translateX(0);
}

.site-mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-mobile-menu-close {
  cursor: pointer;
  font-size: 24px;
  color: #333;
}

.site-mobile-menu-body {
  padding: 20px;
}

.site-mobile-menu-body .site-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-mobile-menu-body .site-menu li {
  margin-bottom: 10px;
}

.site-mobile-menu-body .site-menu li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.site-mobile-menu-body .site-menu li a:hover,
.site-mobile-menu-body .site-menu li.active a {
  background-color: #f8f9fa;
  color: var(--bs-primary);
}

/* Mobile Actions */
.mobile-actions {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-actions .btn-nav {
  width: 100%;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .burger {
    display: block;
  }
  
  .site-navigation .site-menu,
  .nav-actions {
    display: none;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .logo-image {
    height: 35px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 10px 0;
  }
  
  .logo-wrapper {
    gap: 8px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .logo-image {
    height: 30px;
  }
}

/* RTL Support */
[dir="rtl"] .site-navigation .site-menu > li {
  margin: 0 8px;
}

[dir="rtl"] .logo-wrapper {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .site-mobile-menu {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .site-mobile-menu.active {
  transform: translateX(0);
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}