/* ========================================
   NEW NEUMORPHISM ELEGANT NAVBAR
   ======================================== */

.neumorphism-navbar {
  position: fixed;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  width: 70px;
  height: auto;
  background: #e8e8e8;
  border-radius: 35px;
  box-shadow: 
    4px 4px 8px #d1d9e6,
    -4px -4px 8px #ffffff,
    inset 0 0 0 transparent;
  z-index: var(--z-fixed);
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.neumorphism-navbar:hover {
  width: 260px;
  border-radius: 25px;
  box-shadow: 
    6px 6px 12px #d1d9e6,
    -6px -6px 12px #ffffff,
    inset 0 0 0 transparent;
}

[dir="rtl"] .neumorphism-navbar {
  left: auto;
  right: 2rem;
}

/* Brand Section */
.nav-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.brand-link {
  width: 50px;
  height: 50px;
  background: #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 
    3px 3px 6px #d1d9e6,
    -3px -3px 6px #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.brand-text {
  opacity: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.neumorphism-navbar:hover .brand-link {
  width: calc(100% - 2rem);
  height: 50px;
  border-radius: 25px;
  justify-content: flex-start;
  padding: 0 1.5rem;
  box-shadow: 
    inset 4px 4px 8px #d1d9e6,
    inset -4px -4px 8px #ffffff;
}

[dir="ltr"] .neumorphism-navbar:hover .brand-link {
  justify-content: flex-start;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.neumorphism-navbar:hover .brand-text {
  opacity: 1;
  position: static;
  transform: none;
  margin-left: 1.5rem;
}

[dir="ltr"] .neumorphism-navbar:hover .brand-text {
  margin-left: 0.5rem;
}

.brand-link:hover {
  color: #014fb6;
  box-shadow: 
    inset 2px 2px 4px #d1d9e6,
    inset -2px -2px 4px #ffffff;
}

/* Navigation Menu */
.nav-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.nav-item {
  width: 50px;
  height: 50px;
  background: #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 
    2px 2px 4px #d1d9e6,
    -2px -2px 4px #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  cursor: pointer;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nav-text {
  opacity: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.neumorphism-navbar:hover .nav-item {
  width: calc(100% - 2rem);
  height: 50px;
  border-radius: 25px;
  justify-content: flex-start;
  padding: 0 1.5rem;
  box-shadow: 
    inset 3px 3px 6px #d1d9e6,
    inset -3px -3px 6px #ffffff;
}

[dir="ltr"] .neumorphism-navbar:hover .nav-item {
  justify-content: flex-start;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.neumorphism-navbar:hover .nav-text {
  opacity: 1;
  position: static;
  transform: none;
  margin-left: 1.5rem;
}

[dir="ltr"] .neumorphism-navbar:hover .nav-text {
  margin-left: 0.5rem;
}

.nav-item:hover,
.nav-item.active {
  color: #014fb6;
  box-shadow: 
    inset 2px 2px 4px #d1d9e6,
    inset -2px -2px 4px #ffffff;
  transform: scale(1.02);
}

.neumorphism-navbar:hover .nav-item:hover,
.neumorphism-navbar:hover .nav-item.active {
  transform: translateX(5px) scale(1.02);
}

[dir="rtl"] .neumorphism-navbar:hover .nav-item:hover,
[dir="rtl"] .neumorphism-navbar:hover .nav-item.active {
  transform: translateX(-5px) scale(1.02);
}

/* Language Toggle */
.nav-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.language-btn {
  width: 50px;
  height: 50px;
  background: #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 
    2px 2px 4px #d1d9e6,
    -2px -2px 4px #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lang-text {
  opacity: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.neumorphism-navbar:hover .language-btn {
  width: calc(100% - 2rem);
  height: 50px;
  border-radius: 25px;
  justify-content: flex-start;
  padding: 0 1.5rem;
  box-shadow: 
    inset 3px 3px 6px #d1d9e6,
    inset -3px -3px 6px #ffffff;
}

[dir="ltr"] .neumorphism-navbar:hover .language-btn {
  justify-content: flex-start;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.neumorphism-navbar:hover .lang-text {
  opacity: 1;
  position: static;
  transform: none;
  margin-left: 1.5rem;
}

[dir="ltr"] .neumorphism-navbar:hover .lang-text {
  margin-left: 0.5rem;
}

.language-btn:hover {
  color: var(--accent-purple);
  box-shadow: 
    inset 2px 2px 4px #d1d9e6,
    inset -2px -2px 4px #ffffff;
  transform: scale(1.02);
}

.neumorphism-navbar:hover .language-btn:hover {
  transform: translateX(5px) scale(1.02);
}

[dir="rtl"] .neumorphism-navbar:hover .language-btn:hover {
  transform: translateX(-5px) scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .neumorphism-navbar {
    display: none !important;
  }
  
  /* Mobile Navigation with Gradient */
  .mobile-nav-glassmorphism {
    background: linear-gradient(135deg, #014fb6 0%, #9857eb 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 20px rgba(1, 79, 182, 0.3);
  }
  
  .mobile-nav-item-glass {
    color: #ffffff;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-item-glass:hover,
  .mobile-nav-item-glass.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transform: translateY(-2px);
  }
  
  .mobile-nav-icon-glass {
    color: #ffffff;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-item-glass:hover .mobile-nav-icon-glass,
  .mobile-nav-item-glass.active .mobile-nav-icon-glass {
    color: #ffffff;
    transform: scale(1.1);
  }
  
  .mobile-nav-text-glass {
    color: #ffffff;
    font-weight: 500;
  }
  
  .mobile-nav-more-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .mobile-nav-more-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(1, 79, 182, 0.3);
  }
  
  .mobile-nav-more-item {
    color: #014fb6;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-more-item:hover {
    color: #9857eb;
    background: rgba(1, 79, 182, 0.1);
  }
}
