/* 
 * تصميم الهيدر المحسن - النسخة الاحترافية
 * مع لمسات فنية وإبداعية متقدمة
 */

/* شريط التحميل */
.loading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(26, 35, 126, 0.1);
  z-index: 9999;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--navy-blue),
    var(--dark-gold),
    var(--navy-blue)
  );
  background-size: 200% 100%;
  animation: progressLoad 2s ease-in-out, shimmer 1.5s infinite;
}

@keyframes progressLoad {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

/* شريط المعلومات العلوي المحسن */
.top-bar {
  background: linear-gradient(
    135deg,
    var(--navy-blue-dark) 0%,
    var(--navy-blue) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1000;
}

.top-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: slideShine 3s infinite;
}

@keyframes slideShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.contact-info {
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
  padding: 0.25rem 0;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-link {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.contact-link:hover {
  color: var(--light-gold) !important;
}

.contact-text {
  font-size: 0.9rem;
  font-weight: 400;
}

.working-hours {
  font-size: 0.85rem;
  opacity: 0.9;
}

.working-time {
  font-weight: 500;
}

.social-label {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 500;
}

.social-links {
  gap: 0.75rem;
}

.social-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all var(--transition-normal);
  transform: translate(-50%, -50%);
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link.whatsapp:hover {
  color: #25d366 !important;
}
.social-link.facebook:hover {
  color: #1877f2 !important;
}
.social-link.twitter:hover {
  color: #1da1f2 !important;
}
.social-link.linkedin:hover {
  color: #0077b5 !important;
}
.social-link.youtube:hover {
  color: #ff0000 !important;
}

/* الهيدر الرئيسي المحسن */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(26,35,126,0.02)"/></svg>')
    repeat;
  pointer-events: none;
}

.navbar {
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.main-header.scrolled .navbar {
  padding: 0.5rem 0;
}

/* الشعار المحسن */
.brand-enhanced {
  text-decoration: none;
  transition: all var(--transition-normal);
  padding: 0.5rem 0;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--navy-blue), var(--dark-gold));
}

.brand-logo {
  border-radius: 50%;
  transition: all var(--transition-normal);
  object-fit: cover;
}

.logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  opacity: 0;
  transition: all var(--transition-normal);
  border-radius: 50%;
}

.brand-enhanced:hover .logo-overlay {
  opacity: 1;
  animation: rotateSlow 2s linear infinite;
}

.brand-enhanced:hover .brand-logo {
  transform: scale(1.05);
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-blue);
  margin: 0;
  line-height: 1.2;
  transition: color var(--transition-normal);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--dark-gold);
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
}

/* أزرار الموبايل */
.mobile-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.mobile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.whatsapp-mobile {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.phone-mobile {
  background: linear-gradient(135deg, var(--navy-blue), var(--navy-blue-light));
}

.mobile-btn:hover {
  transform: scale(1.1);
  color: white;
}

/* زر القائمة المخصص */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 0.5rem;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.custom-toggler:focus {
  box-shadow: none;
  background: rgba(26, 35, 126, 0.1);
}

.toggler-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--navy-blue);
  margin: 4px auto;
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
  opacity: 0;
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* القائمة الرئيسية المحسنة */
.navigation-menu {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--border-radius-md);
  color: var(--text-primary) !important;
  font-weight: 600;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.nav-icon {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all var(--transition-normal);
}

.nav-text {
  position: relative;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dark-gold), var(--light-gold));
  transition: all var(--transition-normal);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-blue) !important;
  background: rgba(26, 35, 126, 0.05);
  transform: translateY(-2px);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
  width: 70%;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  opacity: 1;
  color: var(--dark-gold);
  transform: scale(1.1);
}

/* Mega Menu المحسن */
.mega-dropdown .dropdown-menu {
  width: 100%;
  max-width: 800px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-top: 1rem;
  background: white;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-item {
  transition: all var(--transition-normal);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
}

.service-link:hover {
  background: rgba(26, 35, 126, 0.05);
  border-color: var(--navy-blue);
  transform: translateY(-2px);
  color: var(--navy-blue);
}

.service-icon-wrapper {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--navy-blue), var(--dark-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon {
  color: white;
  font-size: 1rem;
}

.service-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: inherit;
}

.service-desc {
  font-size: 0.8rem;
  color: var(--neutral-gray);
  margin: 0;
  line-height: 1.4;
}

.mega-menu-cta {
  background: linear-gradient(135deg, var(--navy-blue), var(--dark-gold));
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: white;
  margin-bottom: 1rem;
}

.cta-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-text {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Dropdown عادي */
.standard-dropdown {
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-md);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  font-weight: 500;
  border: none;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, var(--navy-blue), var(--navy-blue-light));
  color: white;
  transform: translateX(-5px);
}

.dropdown-icon {
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

/* أزرار التواصل في الهيدر */
.header-actions {
  gap: 1rem;
  align-items: center;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.btn-whatsapp:hover {
  background: #128c7e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-call {
  background: linear-gradient(135deg, var(--navy-blue), var(--navy-blue-light));
  color: white;
}

.btn-call:hover {
  background: var(--navy-blue-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
}

.btn-consultation {
  background: linear-gradient(135deg, var(--dark-gold), var(--light-gold));
  color: white;
}

.btn-consultation:hover {
  background: var(--dark-gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.3);
}

.btn-icon {
  font-size: 0.9rem;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  pointer-events: none;
  width: 100px;
  height: 100px;
}

.btn-ripple.active {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* محرك البحث */
.search-container {
  position: relative;
}

.search-trigger {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(26, 35, 126, 0.1);
  border-radius: 50%;
  color: var(--navy-blue);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-trigger:hover {
  background: var(--navy-blue);
  color: white;
  transform: scale(1.1);
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-content {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(-20px);
  transition: all var(--transition-normal);
}

.search-overlay.active .search-content {
  transform: translateY(0);
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 4rem 1rem 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: var(--border-radius-md);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--navy-blue);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.search-submit {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-blue);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.search-submit:hover {
  background: var(--navy-blue-dark);
  transform: translateY(-50%) scale(1.1);
}

.search-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--neutral-gray);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.search-close:hover {
  color: var(--danger);
  transform: scale(1.1);
}

/* مؤشر التقدم */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(26, 35, 126, 0.1);
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-blue), var(--dark-gold));
  width: 0%;
  transition: width 0.3s ease;
}

/* الأزرار العائمة المحسنة */
.floating-contact {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.floating-menu-trigger {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--navy-blue), var(--dark-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.floating-menu-trigger::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all var(--transition-normal);
  transform: translate(-50%, -50%);
}

.floating-menu-trigger:hover::before {
  width: 100%;
  height: 100%;
}

.floating-menu-trigger:hover {
  transform: scale(1.1) rotate(5deg);
}

.floating-menu-trigger.active {
  transform: rotate(45deg);
}

.floating-text {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.25rem;
  text-align: center;
}

.floating-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.floating-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.float-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.float-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.phone-btn {
  background: linear-gradient(135deg, var(--navy-blue), var(--navy-blue-light));
}

.email-btn {
  background: linear-gradient(135deg, var(--dark-gold), var(--light-gold));
}

.consultation-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.float-btn:hover {
  transform: scale(1.15) rotate(-5deg);
  color: white;
}

.float-text {
  font-size: 0.6rem;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.float-btn:hover .float-text {
  opacity: 1;
  visibility: visible;
  bottom: -25px;
}

/* زر العودة للأعلى */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--navy-blue), var(--dark-gold));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 1200px) {
  .contact-info {
    gap: 1.5rem;
  }

  .action-buttons {
    gap: 0.25rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .btn-text {
    display: none;
  }
}

@media (max-width: 992px) {
  .navbar-nav {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    margin-top: 1rem;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 1rem !important;
    margin-bottom: 0.25rem;
  }

  .header-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
    justify-content: center;
    flex-wrap: wrap;
  }

  .action-buttons {
    width: 100%;
    justify-content: center;
  }

  .btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem;
  }

  .btn-text {
    display: inline;
  }

  .search-container {
    margin-top: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .mega-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: 1px solid var(--medium-gray);
    margin-top: 0.5rem;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }

  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  body {
    padding-top: 80px;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .floating-contact {
    bottom: 20px;
    left: 20px;
  }

  .floating-menu-trigger,
  .float-btn {
    width: 50px;
    height: 50px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .search-content {
    width: 95%;
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .brand-container {
    gap: 0.5rem;
  }

  .logo-wrapper {
    width: 50px;
    height: 50px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .mobile-actions {
    gap: 0.25rem;
    margin-left: 0.5rem;
  }

  .mobile-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .custom-toggler {
    width: 35px;
    height: 35px;
  }

  .floating-menu-trigger,
  .float-btn {
    width: 45px;
    height: 45px;
  }

  .floating-contact {
    bottom: 15px;
    left: 15px;
  }
}

/* تحسينات الأداء */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* تحسينات الطباعة */
@media print {
  .top-bar,
  .floating-contact,
  .back-to-top,
  .search-overlay,
  .header-actions {
    display: none !important;
  }

  .main-header {
    position: static !important;
    box-shadow: none !important;
    background: white !important;
  }
}

/* Dark Mode Support (اختياري) */
/* Dark Mode Support (تكملة) */
@media (prefers-color-scheme: dark) {
  .main-header {
    background: rgba(33, 37, 41, 0.95);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-header.scrolled {
    background: rgba(33, 37, 41, 0.98);
  }

  .brand-title {
    color: white;
  }

  .brand-subtitle {
    color: var(--light-gold);
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--light-gold) !important;
    background: rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu {
    background: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-gold);
  }

  .search-content {
    background: #343a40;
    color: white;
  }

  .search-input {
    background: #495057;
    border-color: #6c757d;
    color: white;
  }

  .search-input:focus {
    border-color: var(--light-gold);
  }
}

/* تأثيرات إضافية للهيدر */
.header-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--light-gold),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.main-header:hover .header-glow {
  opacity: 1;
}

/* تحسينات إضافية للتفاعلية */
.nav-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(26, 35, 126, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: var(--border-radius-md);
  pointer-events: none;
}

.nav-item:hover::after {
  opacity: 1;
}

/* تأثيرات الكتابة */
.typing-effect {
  overflow: hidden;
  border-left: 2px solid var(--dark-gold);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--dark-gold);
  }
}

/* تأثيرات الجاذبية */
.magnetic-effect {
  transition: transform var(--transition-normal);
}

.magnetic-effect:hover {
  transform: scale(1.05);
}

/* تأثيرات النيون */
.neon-glow {
  text-shadow: 0 0 5px currentColor, 0 0 10px currentColor,
    0 0 15px currentColor, 0 0 20px var(--light-gold);
  animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* تحسينات الوصولية */
.screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.focus-visible:focus-visible {
  outline: 3px solid var(--navy-blue) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgba(26, 35, 126, 0.3) !important;
}

/* تحسينات الأداء */
.will-change {
  will-change: transform, opacity;
}

.gpu-acceleration {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* متحركات متقدمة */
@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* تطبيق الحركات */
.header-loading {
  animation: slideInFromTop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item {
  animation: slideInFromRight 0.6s ease-out;
  animation-fill-mode: both;
}

.nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-item:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-item:nth-child(3) {
  animation-delay: 0.3s;
}
.nav-item:nth-child(4) {
  animation-delay: 0.4s;
}
.nav-item:nth-child(5) {
  animation-delay: 0.5s;
}
.nav-item:nth-child(6) {
  animation-delay: 0.6s;
}

.brand-enhanced {
  animation: bounceIn 1s ease-out;
}

.header-actions {
  animation: slideInFromLeft 0.8s ease-out 0.5s both;
}

/* حالات التحميل */
.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.pulse-loader {
  animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.5;
  }
}

/* متحركات تفاعلية */
.wobble:hover {
  animation: wobble 0.6s ease-in-out;
}

@keyframes wobble {
  0% {
    transform: translateX(0%);
  }
  15% {
    transform: translateX(-25%) rotate(-5deg);
  }
  30% {
    transform: translateX(20%) rotate(3deg);
  }
  45% {
    transform: translateX(-15%) rotate(-3deg);
  }
  60% {
    transform: translateX(10%) rotate(2deg);
  }
  75% {
    transform: translateX(-5%) rotate(-1deg);
  }
  100% {
    transform: translateX(0%);
  }
}

.shake:hover {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

.rotate-3d:hover {
  animation: rotate3d 0.6s ease-in-out;
}

@keyframes rotate3d {
  0% {
    transform: perspective(400px) rotateY(0);
  }
  100% {
    transform: perspective(400px) rotateY(360deg);
  }
}

/* تأثيرات الضوء */
.light-effect {
  position: relative;
  overflow: hidden;
}

.light-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.light-effect:hover::before {
  left: 100%;
}

/* تحسينات الشبكة */
.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* تحسينات الخطوط */
.font-display-swap {
  font-display: swap;
}

/* تحسينات الصور */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* حماية من FOUC */
.no-js .main-header {
  opacity: 1 !important;
  transform: none !important;
}

/* تحسينات الأمان */
.secure-link {
  position: relative;
}

.secure-link::after {
  content: "🔒";
  position: absolute;
  top: -5px;
  left: -15px;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* تحسينات SEO */
.breadcrumb-enhanced {
  font-size: 0.85rem;
  background: none;
  padding: 0;
  margin: 0.5rem 0;
}

.breadcrumb-enhanced .breadcrumb-item + .breadcrumb-item::before {
  content: "←";
  color: var(--neutral-gray);
}

/* متحركات الصفحة */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-transition.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* تحسينات النمط المظلم المتقدم */
@media (prefers-color-scheme: dark) {
  .floating-contact {
    filter: brightness(0.9);
  }

  .back-to-top {
    filter: brightness(0.9);
  }

  .loading-progress {
    background: rgba(255, 255, 255, 0.1);
  }

  .progress-fill {
    background: linear-gradient(
      90deg,
      var(--light-gold),
      var(--navy-blue-light),
      var(--light-gold)
    );
  }
}

/* تحسينات الطباعة المتقدمة */
@media print {
  * {
    color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  .main-header {
    border-bottom: 2px solid #000 !important;
  }

  .brand-title {
    color: #000 !important;
  }

  .nav-link {
    color: #000 !important;
  }
}

/* تحسينات إضافية للتجاوب */
@media (max-width: 480px) {
  .brand-text {
    display: none;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .floating-menu-trigger {
    width: 50px;
    height: 50px;
  }

  .float-btn {
    width: 40px;
    height: 40px;
  }

  .search-content {
    padding: 1rem;
  }

  .search-input {
    font-size: 1rem;
    padding: 0.75rem 3rem 0.75rem 0.75rem;
  }
}

@media (max-width: 360px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-container {
    gap: 0.25rem;
  }

  .mobile-actions {
    display: none;
  }

  .floating-contact {
    bottom: 10px;
    left: 10px;
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

/* تحسينات الأداء المتقدمة */
.critical-resource {
  font-display: optional;
}

.non-critical {
  loading: lazy;
}

/* تحسينات التفاعل */
.interactive-element {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* تحسينات التباين */
@media (prefers-contrast: high) {
  .nav-link {
    border: 2px solid transparent;
  }

  .nav-link:focus {
    border-color: currentColor;
  }

  .btn {
    border-width: 3px;
  }
}

/* تحسينات الحركة المخفضة */
@media (prefers-reduced-motion: reduce) {
  .floating-menu-trigger,
  .float-btn,
  .nav-link,
  .btn {
    transition: none !important;
  }

  .loading-progress .progress-fill {
    animation: none !important;
  }
}

/* Utilities إضافية */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--navy-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* تحسينات أخيرة */
.header-complete {
  contain: layout style paint;
  content-visibility: auto;
}

/* انتهاء التصميم */
