 * {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
 }

 body {
   font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
   background: linear-gradient(135deg, #111 0%, #000 100%);
   background-attachment: fixed;
   color: #ffffff;
   overflow-x: hidden;
 }

 html {
   scroll-behavior: smooth;
 }

 /* شريط تمرير */
 ::-webkit-scrollbar {
   width: 8px;
 }

 ::-webkit-scrollbar-track {
   background: #111;
 }

 ::-webkit-scrollbar-thumb {
   background: #666;
   border-radius: 4px;
 }

 ::-webkit-scrollbar-thumb:hover {
   background: #999;
 }

 .btn-primary {
   background: #ffffff;
   border: none;
   border-radius: 0.5rem;
   padding: 0.5rem 1.5rem;
   font-weight: 600;
   transition: all 0.3s ease;
   color: #000;
 }

 .btn-primary:hover {
   background: #ccc;
   transform: scale(1.05);
   color: #000;
 }

 /* المقاطع */
 .section {
   padding: 2.5rem 0;
 }

 .section-title {
   font-size: 3rem;
   font-weight: 700;
   text-align: center;
   margin-bottom: 1rem;
 }

 .section-subtitle {
   font-size: 1.2rem;
   color: #d1d5db;
   text-align: center;
   margin-bottom: 3rem;
 }

 .text-primary {
   color: #ffffff !important;
 }

 /* بطاقات زجاجية */
 .glass-card {
   background: rgba(20, 20, 20, 0.6);
   backdrop-filter: blur(12px);
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: 1rem;
   padding: 2rem;
   transition: all 0.5s ease;
   height: 100%;
 }

 /* محتوى صفحة من نحن */
 .about-lead {
   font-size: 1.05rem;
   line-height: 1.9;
   color: #e5e7eb;
 }

 .about-quote {
   font-weight: 800;
   font-style: italic;
   text-align: center;
   margin-top: 2rem;
   color: #ffffff;
 }

 .about-points li {
   margin-bottom: 1.25rem;
   font-size: 1.15rem;
   line-height: 1.7;
   color: #ffffff;
 }

 /* الخلفيات الشفافة */
 .bg-pattern-1,
 .bg-pattern-2 {
   background: transparent;
   backdrop-filter: none;
 }

 /* حركات */
 @keyframes fadeInUp {
   from {
     opacity: 0;
     transform: translateY(30px);
   }

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

 .animate-on-scroll {
   opacity: 0;
   transform: translateY(30px);
   transition: all 0.8s ease;
 }

 .animate-on-scroll.animated {
   opacity: 1;
   transform: translateY(0);
 }

 /* الأدوات */
 .hero-overlay {
   pointer-events: none;
 }

 #heroCarousel .carousel-control-prev,
 #heroCarousel .carousel-control-next {
   z-index: 3;
 }


 /* تجاوبية */
 @media (max-width: 768px) {
   .section-title {
     font-size: 2.2rem;
   }
 }

 /* الفريق */
 .team-card {
   text-align: center;
 }

 .team-photo {
   width: 120px;
   height: 120px;
   border-radius: 50%;
   margin: 0 auto 1rem;
   border: 4px solid rgba(255, 255, 255, 0.3);
   object-fit: cover;
 }

 .team-photo-large {
   width: 140px;
   height: 140px;
 }

 .team-name {
   font-size: 1.5rem;
   font-weight: 700;
   margin-bottom: 0.5rem;
 }

 .team-position {
   color: #ffffff;
   font-weight: 600;
   margin-bottom: 1rem;
 }

 .team-description {
   color: #d1d5db;
   line-height: 1.6;
   margin-bottom: 1.5rem;
 }

 /* الطاقم */
 .crew-card {
   text-align: center;
 }

 .crew-photo {
   width: 140px;
   height: 140px;
   border-radius: 50%;
   margin: 0 auto 1rem;
   border: 3px solid rgba(255, 255, 255, 0.3);
   object-fit: cover;
 }

 .crew-name {
   font-size: 1.1rem;
   font-weight: 700;
   margin-bottom: 0.5rem;
 }

 .crew-position {
   color: #ffffff;
   font-weight: 600;
   font-size: 0.95rem;
   margin-bottom: 0.8rem;
 }

 .crew-description {
   color: #d1d5db;
   font-size: 0.9rem;
   line-height: 1.5;
 }

 /* الشركاء والعملاء (شريط شعارات) */
 .partners-section {
   padding: 5rem 0;
 }

 .partners-wrap {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 16px;
 }

 .partners-title {
   text-align: center;
   font-weight: 800;
   margin-bottom: 1.25rem;
 }

 .partners-subtitle {
   text-align: center;
   color: #d1d5db;
   margin-bottom: 2rem;
 }

 .logo-marquee {
   position: relative;
   overflow: hidden;
   border-radius: 1rem;
   border: 1px solid rgba(255, 255, 255, 0.2);
   background: rgba(255, 255, 255, 0.6);
   backdrop-filter: blur(12px);
   mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
   -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
   padding: 24px 32px;
 }

 .logo-track {
   display: flex;
   gap: 48px;
   align-items: center;
   width: max-content;
   padding: 0;
   animation: partners-marquee var(--marquee-speed, 15s) linear infinite;
   will-change: transform;
 }

 .logo-marquee:hover .logo-track {
   animation-play-state: paused;
 }

 .logo-item {
   flex: 0 0 auto;
   display: grid;
   place-items: center;
   min-width: 140px;
   height: 80px;
   opacity: .9;
   transition: transform .25s ease, opacity .25s ease;
 }

 .logo-item:hover {
   transform: scale(1.06);
   opacity: 1;
 }

 .logo-item img {
   max-height: 60px;
   max-width: 160px;
   object-fit: contain;
 }

 @keyframes partners-marquee {
   from {
     transform: translateX(0);
   }

   to {
     transform: translateX(-50%);
   }
 }

 @media (max-width: 768px) {
   .logo-track {
     gap: 32px;
   }

   .logo-item {
     min-width: 120px;
     height: 70px;
   }

   .logo-item img {
     max-height: 50px;
     max-width: 140px;
   }

   .crew-photo {
     width: 100px !important;
     height: 100px !important;
     border-radius: 50%;
     margin: 0 auto 1rem;
     border: 3px solid rgba(255, 255, 255, 0.3);
     object-fit: cover;
   }
 }



 /* موبايل/تابلت: وسط الروابط وزر اللغة داخل الكولابس */
 @media (max-width: 991.98px) {
   .nav-wrap {
     width: 100%;
     flex-direction: column;
     align-items: center;
     /* بالنص */
     gap: .75rem;
     padding: .5rem 0;
   }

   .navbar-nav {
     flex-direction: column;
     align-items: center;
     /* بالنص */
     gap: .25rem;
   }

   .navbar .nav-link {
     padding: .6rem .25rem;
   }
 }

 [dir="rtl"] .me-2 {
   margin-left: .5rem !important;
   margin-right: 0 !important;
 }

 [dir="rtl"] .ms-2 {
   margin-right: .5rem !important;
   margin-left: 0 !important;
 }

 /* --- Marquee fix for RTL pages --- */
 [dir="rtl"] .logo-marquee,
 [dir="rtl"] .logo-track {
   direction: ltr;
   /* ثبّت اتجاه الماركي للـ LTR */
 }

 /* (اختياري) عكس التدرّج لتلاشي الحواف في RTL بحيث يكون اللطف من اليمين أيضاً */
 [dir="rtl"] .logo-marquee {
   -webkit-mask-image: linear-gradient(to left, transparent 0, black 8%, black 92%, transparent 100%);
   mask-image: linear-gradient(to left, transparent 0, black 8%, black 92%, transparent 100%);
 }

 /* تأكيدات للاستمرارية السلسة وعدم القص */
 .logo-track {
   white-space: nowrap;
   /* منع التفاف أي عنصر داخل الشريط */
 }

 .logo-item img {
   display: block;
   /* يمنع فراغات سطرية مجهِضة */
 }