/* ===== PREMIUM HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #0f172a 100%);
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Semi-circle container */
.hero-semicircle {
  position: relative;
  width: 600px;
  height: 300px;
  border-radius: 300px 300px 0 0;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: semicircleFloat 6s ease-in-out infinite;
}

@keyframes semicircleFloat {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

/* Video background placeholder */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 300px 300px 0 0;
  overflow: hidden;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(2, 60, 133, 0.8) 0%,
      rgba(38, 89, 152, 0.6) 50%,
      rgba(114, 160, 212, 0.8) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.3) 100%);
}

.video-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.engineer-icon,
.hvac-icon,
.gear-icon {
  font-size: 48px;
  opacity: 0.7;
  animation: iconFloat 4s ease-in-out infinite;
}

.engineer-icon {
  animation-delay: 0s;
}

.hvac-icon {
  animation-delay: 1.3s;
}

.gear-icon {
  animation-delay: 2.6s;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
    opacity: 1;
  }
}

/* Company branding at center-bottom */
.hero-brand {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-inverse);
  z-index: 3;
}

.hero-logo {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-2);
  filter: brightness(0) invert(1);
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

  0%,
  100% {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }

  50% {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
}

.company-name {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  margin: 0 0 var(--space-2);
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.company-tagline {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Stats around the circle */
.hero-stats {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-slow);
  pointer-events: auto;
  min-width: 120px;
}

.stat:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
}

.stat-1 {
  top: 20%;
  left: 10%;
  animation: statFloat 4s ease-in-out infinite;
}

.stat-2 {
  top: 10%;
  right: 15%;
  animation: statFloat 4s ease-in-out infinite 1s;
}

.stat-3 {
  bottom: 30%;
  right: 5%;
  animation: statFloat 4s ease-in-out infinite 2s;
}

.stat-4 {
  bottom: 20%;
  left: 5%;
  animation: statFloat 4s ease-in-out infinite 3s;
}

@keyframes statFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scroll down arrow */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-down:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== MODERN SERVICES SECTION ===== */
.services {
  background: var(--bg-primary);
  position: relative;
}

/* خدماتنا: خط تحت العنوان */
.services .section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-12);
}

/* توسيط المحتوى */
.services .section-title {
  display: inline-block;
  position: relative;
  margin: 0 auto var(--space-4) auto;
}

/* إلغاء الخط العلوي العالمي داخل عنوان الخدمات حتى لا يتكرر مع خط رأس القسم */
.services .section-title::before {
  content: none;
  display: none;
}

.services .section-title::after {
  content: none;
  /* إلغاء الخط العالمي تحت العنوان داخل الخدمات */
  display: none;
}

.services .section-header::before {
  content: "";
  display: block;
  /* خط أزرق موحّد أسفل رأس القسم */
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5) auto;
}


.service-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.service-card:hover::before {
  opacity: 1;
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
}

.icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  /* يحوّلها أبيض بالكامل */
  display: block;
}


.icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.icon:hover svg {
  transform: scale(1.1);
  color: var(--text-inverse);
}

.ic-ac {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.ic-vrf {
  background: linear-gradient(135deg, var(--color-secondary), #4A90E2);
}

.ic-maint {
  background: linear-gradient(135deg, var(--color-accent), #a855f7);
}

.ic-consult {
  background: linear-gradient(135deg, var(--color-success), #059669);
}

.service-card h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.service-card .link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
  transition: all var(--transition-normal);
  padding: var(--space-2) 0;
  border-radius: var(--radius-md);
}

.service-card .link:hover {
  color: var(--color-primary-dark);
  transform: translateX(4px);
}

.service-card .link::after {
  content: "→";
  transition: transform var(--transition-normal);
}

.service-card .link:hover::after {
  transform: translateX(4px);
}

/* تثبيت زر التفاصيل أسفل الكارت */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .link {
  margin-top: auto;
  /* يدفع الزر للأسفل */
}

.services {
  padding: var(--space-20) 0;
  /* بدل ما كانت أكبر */
}



/* ===== MODERN PROJECTS SECTION ===== */
.projects {
  background: var(--bg-secondary);
  position: relative;
  padding: var(--space-20) 0;
}

.projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.projects-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  position: relative;
  z-index: 1;
}

.proj-card {
  background: var(--bg-primary);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
  perspective: 1000px;
}

.proj-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary-light);
}

.proj-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.thumb {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* نفس تأثير التكبير عند التحويم */
.proj-card:hover .thumb img {
  transform: scale(1.1);
}

/* احتفظنا بنفس الكلاسات لكن ألغينا الخلفية */
.pattern,
.pattern::before,
.pattern.blue,
.pattern.steel,
.pattern.cobalt {
  background: none !important;
}

/* الطبقة الشفافة (overlay) كما هي */
.proj-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(2, 60, 133, 0.8) 0%,
      rgba(38, 89, 152, 0.6) 50%,
      rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: all var(--transition-slow);
}

.proj-card:hover .proj-overlay {
  opacity: 1;
}

.proj-content {
  color: var(--text-inverse);
  width: 100%;
}

.proj-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.proj-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.proj-tech {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proj-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(2, 60, 133, 0.05) 0%, rgba(38, 89, 152, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.proj-card:hover::after {
  opacity: 1;
}

/* ===== PROJECTS SLIDER (Carousel) ===== */
.projects-slider.swiper {
  position: relative;
  z-index: 1;
  padding: 10px 56px;
  /* مساحة للأسهم */
  overflow: hidden;
}

.projects-slider .swiper-wrapper {
  align-items: stretch;
  will-change: transform;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  gap: 16px;
}

.projects-slider .swiper-slide {
  height: auto;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 0.85;
  /* الجانبية أقل شفافية */
  filter: blur(1px) saturate(0.95);
  transform: scale(0.96);
  flex: 0 0 calc((100% - 32px) / 3);
}

.projects-slider .swiper-slide .proj-card {
  height: 100%;
}

/* الشريحة النشطة في الوسط أكبر وواضحة */
.projects-slider .swiper-slide.is-active {
  transform: scale(1.06);
  opacity: 1;
  filter: none;
}

/* إظهار التفاصيل كاملة في المنتصف وتقليلها جانبيًا */
.projects-slider .swiper-slide .proj-overlay {
  opacity: 0.85;
}

.projects-slider .swiper-slide.is-active .proj-overlay {
  opacity: 1;
}

/* إخفاء الوصف والتقنيات في الشرائح غير النشطة وإظهار العنوان فقط */
.projects-slider .swiper-slide:not(.is-active) .proj-content p,
.projects-slider .swiper-slide:not(.is-active) .proj-tech {
  display: none;
}

/* تغبيش خفيف للصورة الجانبية لتمييز المركز */
.projects-slider .swiper-slide:not(.is-active) .thumb img {
  filter: blur(1px) brightness(0.92);
  transform: scale(1.03);
}

/* معاينة عند التحويم على الجانبية */
@media (hover: hover) {
  .projects-slider .swiper-slide:not(.is-active):hover {
    filter: blur(0.5px) saturate(1);
    opacity: 0.9;
  }

  .projects-slider .swiper-slide:not(.is-active):hover .proj-overlay {
    opacity: 0.95;
  }
}

/* أسهم التنقل */
.proj-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.proj-prev {
  right: auto;
  left: 8px;
}

.proj-next {
  right: 8px;
  left: auto;
}

.proj-nav:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.proj-nav:disabled,
.proj-nav.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* نقاط التصفح */
.proj-pagination {
  position: relative;
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.proj-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(2, 60, 133, 0.25);
  opacity: 1;
  transition: all var(--transition-normal);
}

.proj-pagination .swiper-pagination-bullet-active {
  width: 20px;
  background: var(--color-primary);
}

/* إعدادات العرض */
/* Swiper سيضبط عدد العناصر عبر JS، هنا نحسّن المسافات */
.projects-slider .swiper-slide {
  padding: 4px;
}

/* استجابة مرنة: تحكم في عرض الشرائح (peeking) */
@media (max-width: 1024px) {
  .projects-slider .swiper-slide {
    flex: 0 0 45%;
  }
}

@media (max-width: 920px) {
  .projects-slider .swiper-slide {
    flex: 0 0 42%;
  }
}

@media (max-width: 640px) {
  .projects-slider .swiper-slide {
    flex: 0 0 82%;
  }
}

@media (max-width: 1024px) {
  .projects-slider {
    padding: 10px 48px;
  }
}

@media (max-width: 640px) {
  .projects-slider {
    padding: 6px 42px;
  }

  .projects-slider .swiper-slide-active {
    transform: scale(1.03);
  }
}

/* أوقف مؤثرات reveal داخل السلايدر لضمان انتقالات سلسة بلا إعادة تشغيل */
.projects-slider .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== MAP + INFO (تنسيق حديث محسّن) ===== */
.map-info {
  background: linear-gradient(to bottom, var(--bg-primary) 0%, rgba(249, 250, 251, 0.5) 100%);
  position: relative;
  padding: var(--space-20) 0;
  overflow: hidden;
}

.map-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(2, 60, 133, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(38, 89, 152, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.map-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1.2fr 2fr;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ===== الخريطة ===== */
.map-wrap {
  position: relative;
}

.map-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 10px 20px -4px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.map-container:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.map-frame {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}

.map-open-btn {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  z-index: 10;
}

.map-open-btn:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(2, 60, 133, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.map-open-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== الكارد ===== */
.info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(2, 60, 133, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.info-card:hover::before {
  opacity: 1;
}

/* علوي */
.info-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.info-header {
  position: relative;
  padding-bottom: var(--space-5);
}

.info-header h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  position: relative;
  display: inline-block;
}

.info-header-decoration {
  position: absolute;
  bottom: var(--space-3);
  right: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.info-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(249, 250, 251, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: all var(--transition-fast);
}

.info-line:hover {
  background: rgba(239, 246, 255, 0.8);
  border-color: rgba(2, 60, 133, 0.2);
  transform: translateX(-4px);
}

.info-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 60, 133, 0.15);
}

.info-icon {
  width: 20px;
  height: 20px;
  color: white;
}

.info-text-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.info-label {
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-base);
}

/* سفلي: Chips */
.info-bottom {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 2px solid rgba(229, 231, 235, 0.6);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 110px;
  justify-content: center;
  position: relative;
}

.contact-chip:focus-visible {
  outline: 3px solid rgba(2, 60, 133, 0.25);
  outline-offset: 2px;
}

.chip-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 6px;
  flex-shrink: 0;
}

/* التأكد من ظهور SVG */
.chip-icon svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

.chip-icon svg path {
  fill: #023C85 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* قواعد عامة لجميع SVG */
.contact-chip .chip-icon svg,
.contact-chip-whatsapp .chip-icon svg,
.contact-chip-phone .chip-icon svg,
.contact-chip-email .chip-icon svg {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

.contact-chip .chip-icon svg path,
.contact-chip-whatsapp .chip-icon svg path,
.contact-chip-phone .chip-icon svg path,
.contact-chip-email .chip-icon svg path {
  fill: #023C85 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* دعم الصور القديمة (fallback) */
.chip-icon img {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transition: transform var(--transition-fast);
  position: relative;
  z-index: 10;
}

.chip-text {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* تأثيرات hover - بسيطة جداً */
.contact-chip-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
}

.contact-chip-whatsapp:hover .chip-icon {
  background: rgba(255, 255, 255, 0.2);
}

.contact-chip-whatsapp:hover .chip-text {
  color: white;
}

.contact-chip-whatsapp:hover .chip-icon svg path {
  fill: white !important;
}

.contact-chip-phone:hover {
  background: #023C85;
  border-color: #023C85;
}

.contact-chip-phone:hover .chip-icon {
  background: rgba(255, 255, 255, 0.2);
}

.contact-chip-phone:hover .chip-text {
  color: white;
}

.contact-chip-phone:hover .chip-icon svg path {
  fill: white !important;
}

.contact-chip-email:hover {
  background: #EA4335;
  border-color: #EA4335;
}

.contact-chip-email:hover .chip-icon {
  background: rgba(255, 255, 255, 0.2);
}

.contact-chip-email:hover .chip-text {
  color: white;
}

.contact-chip-email:hover .chip-icon svg path {
  fill: white !important;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .map-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .info-card {
    min-height: unset;
    padding: var(--space-6);
  }

  .map-frame {
    height: 420px;
  }

  .info-bottom {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .contact-chip {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 100px;
    padding: 8px 12px;
  }

  .chip-text {
    font-size: 12px;
  }
}

@media (max-width: 820px) {
  .map-info {
    padding: var(--space-16) 0;
  }

  .map-frame {
    height: 380px;
  }

  .info-card {
    padding: var(--space-6);
  }

  .contact-chip {
    flex: 1 1 calc(50% - 8px);
    min-width: 100px;
    padding: 8px 10px;
  }

  .chip-text {
    font-size: 12px;
  }

  .chip-icon {
    width: 22px;
    height: 22px;
  }

  .chip-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .map-open-btn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }

  .map-open-btn span {
    display: none;
  }

  .map-open-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 640px) {
  .info-line {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .info-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  .info-icon {
    width: 18px;
    height: 18px;
  }

  .info-bottom {
    flex-direction: column;
    gap: var(--space-3);
  }

  .contact-chip {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    padding: 10px 14px;
    min-width: unset;
  }

  .chip-text {
    font-size: 13px;
  }

  .map-frame {
    height: 320px;
  }

  .info-card {
    padding: var(--space-5);
  }

  .info-header h3 {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .map-frame {
    height: 280px;
  }

  .info-card {
    padding: var(--space-4);
  }

  .contact-chip {
    padding: 8px 12px;
  }

  .chip-text {
    font-size: 12px;
  }

  .chip-icon {
    width: 22px;
    height: 22px;
  }

  .chip-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .chip-icon img {
    width: 18px;
    height: 18px;
  }
}


/* ===== PREMIUM CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: var(--space-20) var(--space-4);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(2, 60, 133, 0.02) 0%,
      rgba(114, 160, 212, 0.02) 100%);
  pointer-events: none;
}

.contact-container {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 10px 20px -4px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  animation: contactFadeIn 0.6s ease-out;
  overflow: hidden;
}

@keyframes contactFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), var(--color-secondary));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  z-index: 2;
  margin: 0;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-10);
  animation: slideDown 0.6s ease-out 0.1s both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-title {
  font-size: clamp(var(--text-2xl), 2.5vw, var(--text-3xl));
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.contact-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  opacity: 0.85;
}

.contact-form {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-form .form-group {
  margin-bottom: 0;
  animation: fadeInField 0.6s ease-out both;
}

.contact-form .name-group {
  animation-delay: 0.3s;
}

.contact-form .phone-group {
  animation-delay: 0.4s;
}

@keyframes fadeInField {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.contact-form .form-group:focus-within label {
  color: var(--color-primary);
}

.contact-form input[type="text"],
.contact-form textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  font-size: var(--text-base);
  font-family: var(--font-family-arabic);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-normal);
  position: relative;
}

.contact-form input[type="text"]::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-gray-400);
  font-weight: 400;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  background: var(--bg-primary);
  box-shadow:
    0 0 0 4px rgba(2, 60, 133, 0.08),
    0 2px 8px rgba(2, 60, 133, 0.1);
  transform: translateY(-1px);
}

.contact-form input[type="text"]:hover:not(:focus),
.contact-form textarea:hover:not(:focus) {
  border-color: var(--color-gray-300);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--leading-relaxed);
}

/* Phone Wrapper - Enhanced */
.phone-wrapper {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-primary);
  transition: all var(--transition-normal);
  direction: ltr;
}

.phone-wrapper:hover:not(:focus-within) {
  border-color: var(--color-gray-300);
}

.phone-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 4px rgba(2, 60, 133, 0.08),
    0 2px 8px rgba(2, 60, 133, 0.1);
  transform: translateY(-1px);
}

.country-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-right: 2px solid var(--color-gray-200);
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.phone-wrapper:focus-within .country-box {
  background: linear-gradient(135deg, rgba(2, 60, 133, 0.05) 0%, rgba(38, 89, 152, 0.05) 100%);
  border-right-color: var(--color-primary);
}

.country-box img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast);
}

.country-box:hover img {
  transform: scale(1.1);
}

.country-box select {
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  padding: 0;
  direction: ltr;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23023C85' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px;
  padding-right: var(--space-5);
  min-width: 55px;
  transition: color var(--transition-fast);
}

.country-box select:hover {
  color: var(--color-primary);
}

.phone-wrapper input[type="tel"] {
  flex: 1;
  border: none;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  background: transparent;
  outline: none;
  direction: ltr;
  font-family: var(--font-family-arabic);
}

.phone-wrapper input[type="tel"]::placeholder {
  color: var(--color-gray-400);
}

/* Submit Button - Premium */
.submit-btn {
  width: 100%;
  padding: var(--space-5) var(--space-8);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-family-arabic);
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: var(--space-2);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(2, 60, 133, 0.2),
    0 2px 4px -2px rgba(2, 60, 133, 0.1);
  letter-spacing: 0.02em;
}

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

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 8px 12px -2px rgba(2, 60, 133, 0.3),
    0 4px 6px -2px rgba(2, 60, 133, 0.2);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 2px 4px -1px rgba(2, 60, 133, 0.2),
    0 1px 2px -1px rgba(2, 60, 133, 0.1);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Alerts - Enhanced */
.alert {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  animation: alertSlideIn 0.4s ease-out;
  border: 1px solid transparent;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.2);
}

.alert.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.2);
}

.alert-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  flex-shrink: 0;
  animation: iconPop 0.3s ease-out 0.2s both;
}

@keyframes iconPop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.alert.success .alert-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--text-inverse);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.alert.error .alert-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--text-inverse);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Message Field Animation */
.contact-form .form-group:last-of-type {
  animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-section {
    padding: var(--space-12) var(--space-4);
  }

  .contact-container {
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-xl);
    overflow: hidden;
  }

  .contact-container::before {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .contact-title {
    font-size: var(--text-2xl);
  }

  .contact-title::after {
    width: 50px;
    height: 3px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .contact-form .form-group {
    margin-bottom: 0;
  }

  .phone-wrapper {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .country-box {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--color-gray-200);
    justify-content: space-between;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .phone-wrapper:focus-within .country-box {
    border-right: none;
    border-bottom-color: var(--color-primary);
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: var(--space-6) var(--space-5);
  }

  .contact-title {
    font-size: var(--text-xl);
  }

  .contact-subtitle {
    font-size: var(--text-sm);
  }

  .contact-form input[type="text"],
  .contact-form textarea,
  .phone-wrapper input[type="tel"] {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
}


.hero-section {
  position: relative;
  width: 100%;
  height: 480px;
  background: url("../images/workers.png") center/cover no-repeat;
  clip-path: ellipse(120% 85% at 50% 100%);
  overflow: hidden;
}


/* بنر الصفحة الرئيسية */

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 60, 130, 0.85), rgba(0, 60, 130, 0.4), transparent);
}

.hero-section .hero-content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.hero-section .hero-logo {
  width: 140px;
  margin-bottom: 12px;
}

.hero-section .hero-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-section .hero-subtitle {
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 500;
  opacity: 0.9;
}

/*                                                   */
/*                                                   */
/*                                                   */
/*                                                   */
/* قسم العملاء */
/*                                                   */
/*                                                   */
/*                                                   */
/*                                                   */
/* ===== MODERN CLIENTS SECTION (متناسق مع الديزاين) ===== */
/*                                                   */
/*                                                   */
/*                                                   */
/*                                                   */
/* قسم العملاء */
/*                                                   */
/*                                                   */
/*                                                   */
/*                                                   */
/* ===== MODERN CLIENTS SECTION (متناسق مع الديزاين) ===== */
/* =========================================================
   Clients / Logos – Infinity Stream (CSS Only)
   متوافق مع startStream() — لا يعتمد على أي أنيميشن CSS
   ========================================================= */
:root {
  --client-section-pad: clamp(60px, 7vw, 100px);
  --client-row-h: 100px;
  /* ارتفاع صف الشعارات */
  --client-logo-h: 80px;
  /* ارتفاع الشعار */
  --client-mask-edge: 10%;
  /* عرض التلاشي على الأطراف */
  --client-hover-scale: 1.06;
}

.clients-section {
  position: relative;
  background: var(--bg-primary, #0b1220);
  padding: var(--client-section-pad) 0;
  text-align: center;
  overflow: hidden;
}

.clients-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, .04) 0%,
      rgba(6, 182, 212, .04) 100%);
  pointer-events: none;
}

.clients-heading {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 900;
  color: var(--text-primary, #0f172a);
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.clients-heading::before {
  content: "";
  position: absolute;
  top: calc(-1 * (var(--space-5)));
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
}

.clients-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary, #6b7280);
  opacity: .5;
  margin: 0 0 50px;
  position: relative;
  z-index: 1;
}

/* صف الشعارات */
.logo-stream {
  position: relative;
  height: var(--client-row-h);
  overflow: hidden;
  margin: 0 auto 40px;
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      black var(--client-mask-edge),
      black calc(100% - var(--client-mask-edge)),
      transparent);
  mask-image: linear-gradient(to right,
      transparent,
      black var(--client-mask-edge),
      black calc(100% - var(--client-mask-edge)),
      transparent);
}

/* الشعار (يتم تحريكه أفقياً عبر JS) */
.logo-stream img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: var(--client-logo-h);
  width: auto;
  opacity: .65;
  filter: grayscale(0.1);
  transition: transform .25s ease, opacity .25s ease, filter .25s ease;
  will-change: left, transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.logo-stream img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-50%) scale(var(--client-hover-scale));
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .18));
}

/* Tooltip يُدار بالـJS */
.logo-tip {
  position: fixed;
  z-index: 2147483647;
  /* فوق الكل */
  display: none;
  padding: 6px 10px;
  font: 600 12px/1.2 system-ui, Segoe UI, Roboto, Cairo, sans-serif;
  color: #0b3570;
  background: rgba(255, 255, 255, .95);
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
  pointer-events: none;
  transform: translate(-50%, 0);
}

.logo-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
}

/* لو التولتيب فوق الشعار */
.logo-tip.top::after {
  top: -12px;
  border-bottom-color: rgba(255, 255, 255, .95);
}

/* لو التولتيب تحت الشعار */
.logo-tip.bottom::after {
  bottom: -12px;
  border-top-color: rgba(255, 255, 255, .95);
}


/* سهم صغير اختياري */
.logo-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  border: 6px solid transparent;
  border-top-color: rgba(255, 255, 255, .95);
}


/* مؤثر خفيف وسط الصف */
.logo-stream::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, .08) 0%,
      transparent 60%);
  mix-blend-mode: overlay;
}

#logoStreamBottom {
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .logo-stream img {
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  :root {
    --client-row-h: 92px;
    --client-logo-h: 68px;
    --client-mask-edge: 12%;
  }

  .clients-sub {
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --client-row-h: 82px;
    --client-logo-h: 58px;
    --client-mask-edge: 14%;
  }

  .clients-sub {
    margin-bottom: 34px;
  }
}