/* Base Styles */
body {
  background: #fafbfc;
  font-family: 'Cairo', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  animation: page-fade-in 1.2s cubic-bezier(.4,2,.6,1) 1;
}

@keyframes page-fade-in {
  0% {
    opacity: 0;
    transform: scale(0.98) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Container Layouts */
.container, .header-center, .hero, .products, .about, footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  border-radius: 0 0 16px 16px;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.header-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 0 0;
}

.toggle-dark {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #c49b3a;
}

.lang-select {
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #eee;
  padding: 0.3rem 1rem;
  color: #222;
  background: #f7f7f7;
}

/* Logo Styles */
.logo {
  width: 180px;
  height: 180px;
  margin: 1.5rem auto 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.logo-light,
.logo-dark {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
  transition: opacity 0.2s;
}

.logo-light { display: inline-block; }
body.dark-mode .logo-light { display: none !important; }
body.dark-mode .logo-dark { display: inline-block !important; }
.logo-dark { display: none; }

.logo-text {
  text-align: center;
  font-size: 2rem;
  color: #c49b3a;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

/* Navigation Styles */
nav ul.menu {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul.menu li {
  position: relative;
}

nav ul.menu li a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

nav ul.menu li a:hover,
nav ul.menu li a:focus {
  background: #f7f7f7;
  color: #c49b3a;
}

.dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background: #fff;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  border-radius: 8px;
  top: 2.5rem;
  min-width: 160px;
  z-index: 9999; /* زيادة من 10 إلى 9999 ليكون فوق search bar */
  padding: 0.5rem 0;
  transform: translateY(-15px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.4,2,.6,1), visibility 0.3s;
  list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: #222;
  border-radius: 0;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
  background: #f7f7f7;
  color: #c49b3a;
}

/* Modern Search Bar */
.search-container {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 9998; /* تقليل من 9998 ليكون تحت dropdown */
}

.search-bar {
  display: flex;
  border: 2px solid transparent;
  border-radius: 25px;
  padding: 12px 20px;
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.1), rgba(218, 165, 32, 0.05));
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(196, 155, 58, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.search-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #c49b3a, #daa520);
  border-radius: 25px;
  padding: 2px;
  z-index: -1;
  background-clip: padding-box;
}

.search-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196, 155, 58, 0.35);
}

.search-bar input {
  border: none;
  outline: none;
  flex-grow: 1;
  padding: 0 15px;
  font-family: 'Cairo', sans-serif;
  background: transparent;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
}

.search-bar input::placeholder {
  color: #666;
  font-weight: 400;
}

.search-bar button {
  background: linear-gradient(135deg, #c49b3a, #daa520);
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(196, 155, 58, 0.5);
}

/* Search Results */
.search-results {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(196, 155, 58, 0.3);
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  border: 1px solid rgba(196, 155, 58, 0.2);
}

.search-results.show {
  display: block;
  animation: searchFadeIn 0.3s ease-out;
}

@keyframes searchFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.search-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(196, 155, 58, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.1), rgba(218, 165, 32, 0.05));
  transform: translateX(5px);
}

.search-result-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c49b3a, #daa520);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.search-result-content {
  flex: 1;
}

.search-result-title {
  font-weight: 600;
  color: #c49b3a;
  margin-bottom: 5px;
  font-size: 1rem;
}

.search-result-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Products Navigation */
.products-nav {
  margin: 1rem 0 2rem 0;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
}

.products-nav-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.product-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.1), rgba(218, 165, 32, 0.05));
  border: 2px solid rgba(196, 155, 58, 0.3);
  border-radius: 20px;
  text-decoration: none;
  color: #c49b3a;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-width: 140px;
  text-align: center;
}

.product-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #c49b3a, #daa520);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18px;
}

.product-nav-item span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.product-nav-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 155, 58, 0.4);
  border-color: #c49b3a;
}

.product-nav-item:hover::before {
  opacity: 1;
}

.product-nav-item:hover span {
  color: white;
}

.product-nav-item.active {
  background: linear-gradient(135deg, #c49b3a, #daa520);
  color: white;
  border-color: #c49b3a;
  box-shadow: 0 6px 20px rgba(196, 155, 58, 0.5);
}

.product-nav-item.active span {
  color: white;
}

.product-nav-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #c49b3a;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

.product-nav-item:hover::after,
.product-nav-item.active::after {
  transform: translate(-50%, -50%) scale(1);
  background: white;
}

/* Button Styles */
.btn {
  background: #c49b3a;
  color: #fff;
  padding: 0.8rem 2.2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  font-weight: bold;
  animation: btn-pop 1.2s cubic-bezier(.4,2,.6,1) 1;
}

@keyframes btn-pop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.btn:hover {
  background: #a07c2a;
}

/* Download Buttons */
/* Modern Download Buttons - تصميم أبسط وأنظف مع خط أصغر */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px; /* تقليل من 6px إلى 5px */
  background: linear-gradient(135deg, #c49b3a 0%, #daa520 100%);
  color: white;
  padding: 9px 18px; /* تقليل من 10px 20px */
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem; /* تقليل من 0.95rem إلى 0.85rem */
  transition: all 0.3s ease;
  margin-top: 10px; /* تقليل من 12px إلى 10px */
  box-shadow: 0 4px 12px rgba(196, 155, 58, 0.3);
  border: none;
  min-width: 130px; /* تقليل من 140px إلى 130px */
  font-family: 'Cairo', sans-serif;
}

.download-btn:hover {
  background: linear-gradient(135deg, #b8913a 0%, #c49b3a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 155, 58, 0.4);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(196, 155, 58, 0.3);
}

.download-btn .icon {
  width: 12px; /* تقليل من 14px إلى 12px */
  height: 12px;
  transition: transform 0.3s ease;
}

.download-btn:hover .icon {
  transform: scale(1.1);
}

.download-btn span {
  font-weight: 600;
}

/* تحسين للشاشات المتوسطة */
@media (max-width: 768px) {
  .download-btn {
    padding: 8px 16px; /* تقليل أكثر للشاشات المتوسطة */
    font-size: 0.8rem; /* تقليل الخط أكثر */
    min-width: 120px; /* تقليل العرض الأدنى */
    gap: 4px;
  }
  
  .download-btn .icon {
    width: 11px;
    height: 11px;
  }
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 480px) {
  .download-btn {
    padding: 7px 14px; /* أصغر للهواتف */
    font-size: 0.75rem; /* خط أصغر للهواتف */
    min-width: 110px; /* عرض أصغر */
    gap: 3px;
    border-radius: 6px; /* زوايا أصغر */
  }
  
  .download-btn .icon {
    width: 10px; /* أيقونة أصغر */
    height: 10px;
  }
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  margin-bottom: 2rem;
  padding: 2.5rem 1.5rem;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-text h1 {
  font-size: 2.2rem;
  color: #c49b3a;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #444;
}

/* Enhanced Hero Slider */
.hero-slider {
  width: 100%;
  height: 550px;
  overflow: hidden;
  margin: 3rem 0;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(196, 155, 58, 0.15);
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 300px;
}

.swiper {
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.1), rgba(0, 0, 0, 0.3));
}

.slide-text {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  padding: 0;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  max-width: 100%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.swiper-slide .slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  will-change: transform;
  filter: brightness(0.9) contrast(1.1);
  background-color: rgba(0, 0, 0, 0.1);
}

.swiper-slide h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #fff, #c49b3a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.swiper-slide p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.6;
}

/* Modern Professional Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.95), rgba(218, 165, 32, 0.9));
  backdrop-filter: blur(15px);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 
    0 8px 25px rgba(196, 155, 58, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  color: white !important; /* تأكيد اللون الأبيض للسهم */
}

/* تأثير توهج عند التحويم */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from {
    box-shadow: 
      0 15px 35px rgba(196, 155, 58, 0.4),
      0 8px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 20px rgba(196, 155, 58, 0.6);
  }
  to {
    box-shadow: 
      0 15px 35px rgba(196, 155, 58, 0.4),
      0 8px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 30px rgba(196, 155, 58, 0.8);
  }
}

/* Professional Pagination */
.swiper-pagination-bullet {
  background: rgba(196, 155, 58, 0.4);
  opacity: 0.6;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #c49b3a, #daa520);
  opacity: 1;
  transform: scale(1.4);
  box-shadow: 
    0 4px 15px rgba(196, 155, 58, 0.5),
    0 0 20px rgba(196, 155, 58, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.swiper-pagination-bullet-active::before {
  width: 100%;
  height: 100%;
}

.swiper-pagination-bullet:hover {
  transform: scale(1.2);
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.8), rgba(218, 165, 32, 0.7));
}

/* Dark mode للأزرار الاحترافية */
body.dark-mode .swiper-button-next,
body.dark-mode .swiper-button-prev {
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.9), rgba(218, 165, 32, 0.85));
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 25px rgba(196, 155, 58, 0.25),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark-mode .swiper-button-next:hover,
body.dark-mode .swiper-button-prev:hover {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.95), rgba(255, 215, 0, 0.9));
  box-shadow: 
    0 15px 35px rgba(196, 155, 58, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.dark-mode .swiper-pagination-bullet {
  background: rgba(196, 155, 58, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .swiper-pagination-bullet-active {
  box-shadow: 
    0 4px 15px rgba(196, 155, 58, 0.4),
    0 0 20px rgba(196, 155, 58, 0.25);
}

/* Mobile responsiveness للأزرار الاحترافية */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 48px;
    height: 48px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 1.4rem;
  }
  
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 42px;
    height: 42px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 1.2rem;
  }
  
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* تأثير إضافي للأزرار عند التفاعل */
.swiper-button-next:focus,
.swiper-button-prev:focus {
  outline: none;
  animation: focus-pulse 1.5s ease-in-out infinite;
}

@keyframes focus-pulse {
  0%, 100% {
    box-shadow: 
      0 8px 25px rgba(196, 155, 58, 0.3),
      0 4px 15px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 0 0 rgba(196, 155, 58, 0.7);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(196, 155, 58, 0.3),
      0 4px 15px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 0 8px rgba(196, 155, 58, 0.2);
  }
}

/* Products Grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
  perspective: 1000px;
}

.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card p {
  padding: 15px;
  text-align: center;
  background: rgba(0,0,0,0.7);
  margin: 0;
  color: white;
  transition: all 0.3s ease;
}

/* Glow Colors */
:root {
  --glow-1: #8A2BE2; /* Purple */
  --glow-2: #00BFFF; /* Blue */
  --glow-3: #FF1493; /* Pink */
}

/* Hover Effect */
.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.card:hover p {
  background: rgba(70, 0, 110, 0.8);
}

/* Active State */
.card.active {
  box-shadow: 0 0 30px var(--glow-1);
  border-color: var(--glow-1);
  transform: translateY(-10px) scale(1.05);
}

.card.active img {
  transform: scale(1.1) translateZ(20px);
  filter: drop-shadow(0 0 20px var(--glow-1)) brightness(1.1);
}

.card.active p {
  background: rgba(70, 0, 110, 0.9);
}

/* About Section */
.about {
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.05), rgba(218, 165, 32, 0.03));
  border-radius: 24px;
  padding: 3rem;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid rgba(196, 155, 58, 0.2);
  backdrop-filter: blur(10px);
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #c49b3a, #daa520);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  font-weight: 400;
}

.about strong {
  color: #c49b3a;
  font-weight: 600;
  font-size: 1.15rem;
}

.keywords {
  text-align: center;
  margin: 1.5rem 0 0.5rem 0;
  color: #656262;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

/* Footer */
footer {
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 12px rgba(44,62,80,0.07);
  padding: 2rem 1.5rem 1rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.footer-social {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer-social a svg {
  vertical-align: middle;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #23272a !important;
  color: #fff !important;
}

body.dark-mode,
body.dark-mode * {
  color: #fff !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .section-title,
body.dark-mode .subtext,
body.dark-mode .logo-text {
  color: #ffd700 !important;
}

body.dark-mode header,
body.dark-mode .container,
body.dark-mode .hero,
body.dark-mode .about,
body.dark-mode .products,
body.dark-mode footer {
  background: #2c3136 !important;
  color: #fff !important;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
}

body.dark-mode .card,
body.dark-mode .blog-article {
  background: #393e46 !important;
  color: #fff !important;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.18);
}

body.dark-mode nav ul.menu li a {
  color: #fff !important;
}

body.dark-mode nav ul.menu li a:hover {
  color: #ffd700 !important;
}

body.dark-mode nav ul.menu .dropdown-menu {
  background: #23272a !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 9999; /* تأكيد نفس القيمة */
}

body.dark-mode nav ul.menu .dropdown-menu li a {
  color: #ffd700 !important;
}

body.dark-mode nav ul.menu .dropdown-menu li a:hover {
  background: #333 !important;
  color: #fff !important;
}

body.dark-mode .btn,
body.dark-mode .slider-btn {
  background: #c49b3a !important;
  color: #23272a !important;
}

body.dark-mode .btn:hover,
body.dark-mode .slider-btn:hover {
  background: #ffd700 !important;
  color: #23272a !important;
}

body.dark-mode .download-btn {
  box-shadow: 0 8px 32px rgba(196, 155, 58, 0.3);
}

body.dark-mode .download-btn:hover {
  box-shadow: 0 16px 48px rgba(196, 155, 58, 0.5);
}

body.dark-mode .search-bar {
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.15), rgba(218, 165, 32, 0.08));
  box-shadow: 0 8px 32px rgba(196, 155, 58, 0.2);
}

body.dark-mode .search-bar input {
  color: #f0f0f0;
}

body.dark-mode .search-bar input::placeholder {
  color: #aaa;
}

body.dark-mode .search-results {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.9));
  border-color: rgba(196, 155, 58, 0.3);
}

body.dark-mode .search-result-item {
  border-color: rgba(196, 155, 58, 0.15);
}

body.dark-mode .search-result-item:hover {
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.15), rgba(218, 165, 32, 0.08));
}

body.dark-mode .search-result-title {
  color: #daa520;
}

body.dark-mode .search-result-description {
  color: #aaa;
}

body.dark-mode .no-results {
  color: #999;
}

body.dark-mode .product-nav-item {
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.15), rgba(218, 165, 32, 0.08));
  border-color: rgba(196, 155, 58, 0.4);
  color: #daa520;
}

body.dark-mode .product-nav-item:hover {
  box-shadow: 0 8px 25px rgba(196, 155, 58, 0.3);
}

body.dark-mode .about {
  background: linear-gradient(135deg, rgba(196, 155, 58, 0.1), rgba(218, 165, 32, 0.05));
  border-color: rgba(196, 155, 58, 0.3);
}

body.dark-mode .about p {
  color: #ccc;
}

body.dark-mode .about strong {
  color: #daa520;
}

body.dark-mode .lang-select {
  background: #23272a !important;
  color: #ffd700 !important;
  border: 1px solid #ffd700 !important;
}

body.dark-mode .lang-select option {
  background: #23272a;
  color: #ffd700;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .container, .header-center, .hero, .products, .about, footer {
    padding: 0 0.5rem;
  }
  .hero {
    flex-direction: column;
    padding: 1.2rem 0.5rem;
  }
  .products {
    gap: 1rem;
  }
  .card {
    width: 95vw;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .products-nav {
    padding: 0 1rem;
  }
  
  .product-nav-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 120px;
    margin: 0.25rem;
  }
  
  .products-nav-container {
    gap: 0.5rem;
  }
  
  .search-results {
    max-width: 90%;
  }
  
  .download-btn {
    padding: 12px 24px; /* تقليل من 14px 28px */
    font-size: 0.9rem; /* تقليل من 0.95rem */
    margin-top: 15px; /* تقليل من 18px */
    min-width: 160px; /* تقليل من 180px */
    border-radius: 12px; /* تقليل من 14px */
  }
  
  .download-btn .icon {
    width: 14px; /* تبقى كما هي */
    height: 14px;
  }
  
  .search-bar {
    padding: 10px 16px;
    max-width: 90%;
  }
  
  .hero-slider {
    height: 450px;
    margin: 2rem 0;
    border-radius: 16px;
  }
  
  .swiper {
    border-radius: 16px;
  }
  
  .swiper-slide h2 {
    font-size: 2rem;
  }
  
  .swiper-slide p {
    font-size: 1.1rem;
  }
  
  .slide-text {
    padding: 20px;
    max-width: 92%;
    border-radius: 16px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 50px;
    height: 50px;
  }
  
  .about {
    padding: 2rem;
    border-radius: 16px;
  }
  
  .about h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .product-nav-item {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 100px;
    border-radius: 16px;
  }
  
  .products-nav-container {
    gap: 0.4rem;
  }
  
  .download-btn {
    padding: 10px 20px; /* تقليل من 12px 24px */
    font-size: 0.85rem; /* تقليل من 0.9rem */
    min-width: 140px; /* تقليل من 160px */
    gap: 5px; /* تقليل من 10px */
    border-radius: 10px; /* تقليل من 12px */
  }
  
  .download-btn .icon {
    width: 12px; /* تقليل من 14px */
    height: 12px;
  }
  
  .search-bar {
    padding: 8px 12px;
  }
  
  .hero-slider {
    height: 400px;
    border-radius: 12px;
  }
  
  .swiper {
    border-radius: 12px;
  }
  
  .swiper-slide h2 {
    font-size: 1.6rem;
  }
  
  .swiper-slide p {
    font-size: 1rem;
  }
  
  .slide-text {
    padding: 16px;
    border-radius: 12px;
  }
  
  .about {
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .about h2 {
    font-size: 1.8rem;
  }
}

/* ===== تحسين الأحجام للأجهزة المختلفة مع الحفاظ على التصميم ===== */

/* تحسينات للتابلت والشاشات المتوسطة */
@media (max-width: 1024px) {
  .container, .header-center, .hero, .products, .about, footer {
    max-width: 95%;
    padding: 0 1rem;
  }
  
  .hero-slider {
    height: 480px;
  }
  
  .logo {
    width: 160px;
    height: 160px;
  }
}

/* تحسينات للهواتف الكبيرة */
@media (max-width: 768px) {
  /* Logo والعناصر الأساسية */
  .logo {
    width: 140px;
    height: 140px;
  }
  
  .logo-text {
    font-size: 1.8rem;
  }
  
  /* القائمة */
  nav ul.menu {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  nav ul.menu li a {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* البحث */
  .search-bar {
    max-width: 95%;
    padding: 10px 16px;
  }
  
  /* Hero section */
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
  
  /* Hero slider */
  .hero-slider {
    height: 380px;
    margin: 2rem 0;
  }
  
  .swiper-slide h2 {
    font-size: 2.2rem;
  }
  
  .swiper-slide p {
    font-size: 1.1rem;
  }
  
  /* أزرار التنقل */
  .swiper-button-next,
  .swiper-button-prev {
    width: 45px;
    height: 45px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 1.3rem;
  }
  
  /* المنتجات */
  .products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 15px;
  }
  
  .card img {
    height: 170px;
  }
  
  /* أزرار التحميل */
  .download-btn {
    padding: 9px 16px;
    font-size: 0.8rem;
    min-width: 120px;
  }
  
  .download-btn .icon {
    width: 11px;
    height: 11px;
  }
  
  /* قسم عن الشركة */
  .about {
    padding: 2rem 1.5rem;
  }
  
  .about h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .product-nav-item {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 100px;
    border-radius: 16px;
  }
  
  .products-nav-container {
    gap: 0.4rem;
  }
  
  .download-btn {
    padding: 10px 20px; /* تقليل من 12px 24px */
    font-size: 0.85rem; /* تقليل من 0.9rem */
    min-width: 140px; /* تقليل من 160px */
    gap: 5px; /* تقليل من 10px */
    border-radius: 10px; /* تقليل من 12px */
  }
  
  .download-btn .icon {
    width: 12px; /* تقليل من 14px */
    height: 12px;
  }
  
  .search-bar {
    padding: 8px 12px;
  }
  
  .hero-slider {
    height: 300px;
    margin: 1.5rem 0;
  }
  
  .swiper-slide h2 {
    font-size: 1.8rem;
  }
  
  .swiper-slide p {
    font-size: 0.95rem;
  }
  
  .slide-text {
    padding: 16px;
    border-radius: 12px;
  }
  
  .about {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .about h2 {
    font-size: 1.6rem;
  }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 360px) {
  .logo {
    width: 100px;
    height: 100px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .hero-slider {
    height: 250px;
  }
  
  .swiper-slide h2 {
    font-size: 1.4rem;
  }
  
  .swiper-slide p {
    font-size: 0.8rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 0.9rem;
  }
  
  .download-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    min-width: 90px;
  }
  
  .download-btn .icon {
    width: 8px;
    height: 8px;
  }
}

/* تحسينات للوضع الأفقي */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-slider {
    height: 250px;
  }
  
  .hero {
    padding: 1rem;
  }
  
  .about {
    padding: 1.5rem;
  }
}

/* تحسينات خاصة بـ iPhone */
@media only screen and (max-width: 414px) and (-webkit-min-device-pixel-ratio: 2) {
  .hero-slider {
    height: 320px;
  }
  
  .products {
    padding: 12px;
  }
}

/* تحسينات لضمان وضوح النصوص */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  /* تحسين التباين */
  .swiper-slide h2,
  .swiper-slide p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
}

/* تحسين اللمس للأجهزة المحمولة */
@media (hover: none) and (pointer: coarse) {
  /* إزالة hover effects للأجهزة اللمسية */
  .card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
  }
  
  .product-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 155, 58, 0.4);
  }
  
  .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 155, 58, 0.4);
  }
  
  /* تأكد من حجم مناطق اللمس */
  .swiper-button-next,
  .swiper-button-prev {
    min-width: 44px;
    min-height: 44px;
  }
  
  nav ul.menu li a {
    min-height: 44px;
  }
  
  .product-nav-item {
    min-height: 44px;
  }
  
  .download-btn {
    min-height: 40px;
  }
}

/* تحسين الأداء للأجهزة المحمولة */
@media (max-width: 768px) {
  /* تحسين التمرير */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* تقليل التأثيرات المكلفة */
  .card {
    will-change: transform;
  }
  
  .swiper-slide {
    will-change: transform;
  }
}
