/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --secondary: #d8d8d8;
    --background: #faf8f3;
    --card: #ffffff;
    --text: #f7ebeb;
    --text-muted: #ffffff;
    --border: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Particle Background */
.particle-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

/* WhatsApp Button */
.whatsapp-btn{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;

  width: 62px;
  height: 62px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;

  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: all .35s ease;
  cursor: pointer;
}

.whatsapp-btn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background: rgba(37, 211, 102, 0.35);
  animation: whatsappPulse 2s infinite;
  z-index:-1;
}

@keyframes whatsappPulse{
  0%{ transform: scale(1); opacity:.6; }
  70%{ transform: scale(1.6); opacity:0; }
  100%{ opacity:0; }
}

.whatsapp-btn:hover{
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active{
  transform: scale(.96);
}

.whatsapp-icon{
  width: 28px;
  height: 28px;
  display: block;
}

@media (max-width: 600px){
  .whatsapp-btn{
    width: 55px;
    height: 55px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-icon{
    width: 24px;
    height: 24px;
  }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.5s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.001);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.logo-subtitle {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.clients-section { padding: 80px 0; }

.clients-slider{
  position: relative;
  max-width: 1200px;          /* توسعة بسيطة */
  margin: 0 auto;
}

.clients-viewport{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px 64px;         /* مساحة أكبر + للأزرار */
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);

  /* تدرّج ناعم على الأطراف */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);

  cursor: grab;
}
.clients-viewport:active{ cursor: grabbing; }

.clients-track{
  display: flex;
  align-items: center;
  gap: 28px;                  /* زيادة المسافة بين الشعارات */
  width: max-content;
  will-change: transform;
}

.client-logo{
  flex: 0 0 auto;

  /* ✅ تكبير الكرت */
  width: 260px;
  height: 140px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);

  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
}

.client-logo img{
  /* ✅ تكبير الشعار داخل الكرت بدون قص */
  width: 92%;
  height: 92%;
  object-fit: contain;

  /* لأن خلفياتك صارت شفافة: لا نحتاج grayscale */
  filter: none;
  opacity: 1;

  transition: transform .25s ease;
}

.client-logo:hover{
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}
.client-logo:hover img{
  transform: scale(1.08);
}

/* أزرار التنقل */
.clients-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;               /* تكبير بسيط */
  height: 44px;
  border: 1px solid rgba(212,175,55,0.28);
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: rgba(44,36,22,0.9);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  z-index: 2;
}
.clients-nav:hover{
  transform: translateY(-50%) scale(1.08);
  border-color: rgba(212,175,55,0.60);
}
.clients-nav.prev{ left: 12px; }
.clients-nav.next{ right: 12px; }

/* ✅ ريسبونسف للجوال - clients slider */
@media (max-width: 768px){
  .clients-slider{ max-width: 100%; padding: 0 12px; }
  .clients-viewport{ padding: 16px 48px; }
  .clients-track{ gap: 18px; }
  .client-logo{ width: 180px; height: 100px; }
  .clients-nav{ width: 38px; height: 38px; font-size: 18px; }
}
@media (max-width: 480px){
  .clients-viewport{ padding: 12px 40px; }
  .client-logo{ width: 140px; height: 78px; }
  .clients-nav{ width: 34px; height: 34px; font-size: 16px; }
  .clients-nav.prev{ left: 6px; }
  .clients-nav.next{ right: 6px; }
}


.company-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.company-tagline {
    font-size: 12px;
    color: var(--text-muted);
}
.logo img {
  height: 60px;
  width: auto;
  transition: var(--transition);
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(250, 248, 243, 0.8), rgba(250, 248, 243, 0.7), var(--background));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 80px;
}

.hero-logo {
    font-size: 96px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 24px;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-title {
    font-size: 48px;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.diagonal-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 96px;
    background-color: var(--background);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

/* =============================================
   Hero Slider - Professional
   ============================================= */
/* =============================================
   Hero Slider - Enhanced Version
   ============================================= */
.hero-slide-logo {
    width: 90px;  /* 1. تصغير حجم الشعار */
    height: 90px; /* 1. تصغير حجم الشعار */
    object-fit: contain;
    margin-bottom: 15px; /* تقليل المسافة السفلية قليلاً */

    /* 2. تخفيف الظل ليصبح أكثر نعومة */
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.25));

    /* يمكنك أيضاً تجربة إزالة الظل بالكامل إذا أردت بساطة أكثر */
    /* filter: none; */

    opacity: 0; /* للتحريك */
    transform: scale(0.8);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh; /* يحافظ على ارتفاع الشاشة الكامل */
    min-height: 600px; /* يضمن ارتفاع مناسب على الشاشات الصغيرة */
    overflow: hidden;
    background: #0a0a1e; /* لون خلفية احتياطي */
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    /* تمت إزالة Transform من هنا للتحكم به بشكل منفصل لكل حركة */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* --- التحسين الرئيسي لعرض الصورة كاملة --- */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;

    /* 1. زيادة السطوع وتقليل التمويه */


    transform: scale(1.2);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 1.2s ease;
}


.hero-slide.active .hero-slide-bg {
    transform: scale(1.05); /* حركة تكبير بطيئة للصورة عند عرض الشريحة */
    opacity: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    /* استخدام نفس لون الخلفية الرئيسي للدمج بسلاسة */
    background: var(--slide-bg, linear-gradient(135deg, rgba(10,10,30,0.85) 0%, rgba(26,26,46,0.75) 100%));
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 120px 20px; /* تعديل الـ padding */
    max-width: 900px;
    margin: 0 auto;
    /* التأكد من أن المحتوى فوق كل شيء */
}

/* --- تحسينات حركات المحتوى --- */
/* سيتم التحكم بالحركات عبر JavaScript لإضافة تنوع */
.hero-badge, .hero-slide-logo, .hero-slide-title, .hero-slide-subtitle, .hero-slide-btns {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* حالات أولية للحركة (قبل الظهور) */
.anim-fade-up { transform: translateY(40px); }
.anim-fade-down { transform: translateY(-40px); }
.anim-fade-left { transform: translateX(40px); }
.anim-fade-right { transform: translateX(-40px); }
.anim-zoom-in { transform: scale(0.8); }
.anim-zoom-out { transform: scale(1.2); }

/* حالة الظهور (بعد التفعيل) */
.hero-slide.active .hero-badge,
.hero-slide.active .hero-slide-logo,
.hero-slide.active .hero-slide-title,
.hero-slide.active .hero-slide-subtitle,
.hero-slide.active .hero-slide-btns {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* تأخيرات متتالية لظهور العناصر بشكل جميل */
.hero-slide.active .hero-badge { transition-delay: 0.3s; }
.hero-slide.active .hero-slide-logo { transition-delay: 0.4s; }
.hero-slide.active .hero-slide-title { transition-delay: 0.5s; }
.hero-slide.active .hero-slide-subtitle { transition-delay: 0.7s; }
.hero-slide.active .hero-slide-btns { transition-delay: 0.9s; }


/* --- بقية الأنماط (الأسهم، النقاط، شريط التقدم) --- */
/* لا حاجة لتغييرها، الكود الحالي ممتاز */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.hero-nav:hover { background: rgba(212, 175, 55, 0.8); border-color: #d4af37; }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
[dir="rtl"] .hero-prev { left: auto; right: 20px; }
[dir="rtl"] .hero-next { right: auto; left: 20px; }
[dir="rtl"] .hero-next svg { transform: scaleX(-1); }
[dir="rtl"] .hero-prev svg { transform: scaleX(-1); }

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}
.hero-dot.active {
    background: #d4af37;
    transform: scale(1.2);
    box-shadow: 0 0 10px #d4af37;
}

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9;
}
.hero-progress-bar {
    width: 0;
    height: 100%;
    background: #d4af37;
    transition: width 0.1s linear;
}

/* Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-nav:hover {
    background: var(--primary, #d4af37);
    border-color: var(--primary, #d4af37);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav svg { width: 22px; height: 22px; }

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    width: 28px;
    border-radius: 5px;
    background: var(--primary, #d4af37);
    border-color: var(--primary, #d4af37);
}

/* Progress Bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.15);
    z-index: 10;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary, #d4af37), #f0d060);
    transition: width 0.05s linear;
}

@media (max-width: 768px) {
    .hero-slider-section { min-height: 400px; height: 100svh; }
    .hero-nav { width: 38px; height: 38px; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
    .hero-slide-logo { width: 70px; height: 70px; }
    .hero-dots { bottom: 80px; }
    .hero-slide-content { padding-top: 80px; padding-bottom: 100px; }
    .hero-slide-btns { gap: 10px; }
    .hero-slide-btns .btn { padding: 12px 20px; font-size: 14px; }
}
@media (max-width: 480px) {
    .hero-slider-section { min-height: 350px; }
    .hero-nav { display: none; }
    .hero-slide-logo { width: 60px; height: 60px; }
    .hero-dots { bottom: 60px; }
    .hero-slide-content { padding-top: 70px; padding-bottom: 80px; }
    .hero-badge { font-size: 0.75rem; padding: 4px 14px; }
}

/* Stats Section */
.stats-section {
    padding: 64px 0;
    background-color: var(--background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.stat-card {
    text-align: center;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 16px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--card);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    align-items: center;
}

.section-title {
    font-size: 48px;
    color: var(--text);
    margin-bottom: 16px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin-bottom: 24px;
}

.about-text {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--card);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    width: 128px;
    height: 128px;
    border-radius: 12px;
    z-index: -1;
}

.decoration-1 {
    bottom: -24px;
    right: -24px;
    background-color: rgba(212, 175, 55, 0.2);
}

.decoration-2 {
    top: -24px;
    left: -24px;
    background-color: rgba(44, 36, 22, 0.1);
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: var(--background);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .title-underline {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.value-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.value-card h3 {
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--card);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--card);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-link {
    transform: translateX(-8px);
}



.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    width: 32px;
    background-color: var(--primary);
    border-radius: 6px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--card);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background-color: var(--card);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-details h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details p {
    color: var(--text-muted);
}

.contact-form-container {
    background-color: var(--card);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 16px;
    animation: shimmer 3s ease-in-out infinite;
}

.footer-col h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-col p {
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 16px;
}

.modal-description {
    color: var(--text);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 16px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--secondary);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        background-color: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-logo {
        font-size: 64px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .client-card {
        flex: 0 0 100%;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* English Language Styles */
body.en {
    direction: ltr;
    font-family: 'Playfair Display', serif;
}

body.en .hero-title,
body.en .section-title,
body.en h1, body.en h2, body.en h3 {
    font-family: 'Playfair Display', serif;
}

body.en p, body.en a, body.en button, body.en input, body.en textarea {
    font-family: 'Cairo', sans-serif;
}


/* =========================
   Global Background Video (Full Site)
   ========================= */
.bg-video-wrap{
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05);
}

.bg-video-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

/* Sections transparent so the video stays visible */
html, body{
  background: transparent !important;
}

.hero-section,
.stats-section,
.about-section,
.values-section,
.services-section,
.clients-section,
.contact-section{
  background: transparent !important;
}

/* Diagonal divider should not hide the video */
.diagonal-divider{
  background: rgba(250,248,243,.18) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Glass surfaces for readability (keeps brand feel) */
.card,
.value-card,
.service-card,
.client-card,
.contact-card,
.contact-form-container,
.modal-content{
  background: rgba(255,255,255,.10) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14) !important;
}

/* Text contrast tweaks on top of video */
.section-title,
.hero-title{
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero-subtitle,
.section-subtitle,
.about-text,
.service-card p,
.card p{
  text-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Navbar link colors: white over video, brand colors after scroll */
.navbar:not(.scrolled) .nav-link{
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.navbar:not(.scrolled) .nav-link::after{
  background-color: rgba(255,255,255,.85);
}

.navbar.scrolled .nav-link{
  color: var(--text);
  text-shadow: none;
}

.navbar.scrolled .nav-link::after{
  background-color: var(--primary);
}

/* Mobile menu glass so video remains visible */
@media (max-width: 768px){
  .nav-menu{
    background: rgba(255,255,255,.12) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.14);
  }
}

/* Footer: keep it readable but still show the video */
.footer{
  background: rgba(44,36,22,.70) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* أزرار التنقل */


/* النقاط */
.slider-indicators{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.slider-indicator{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: .35;
  background: currentColor;
}

.slider-indicator.active{
  opacity: 1;
  width: 18px;
}
/* =======================================================
   Ads Section - DYNAMIC Infinite Carousel (Final & Complete Code)
   ======================================================= */

/* 1. تصميم القسم الرئيسي
------------------------------------*/
.ads-section {
    padding: 80px 0;
    overflow: hidden; /* ضروري لإخفاء الشريط الزائد عن الشاشة */
    position: relative;
}

/* 2. حاوية الشريط المتحرك
------------------------------------*/
.ads-carousel-container {
    width: 100%;
    margin-top: 50px;
    position: relative;
    /* هذا التأثير يضيف تدرجاً شفافاً على الجوانب لإخفاء حواف دخول وخروج البطاقات */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* 3. مسار الحركة (الجزء المتحرك)
------------------------------------*/
.ads-carousel-track {
    display: flex;

    /* المتغيرات التي سيقوم JavaScript بتعبئتها تلقائياً */
    width: var(--track-width);
    animation: scroll var(--animation-duration) linear infinite;
}

/* إيقاف الحركة مؤقتاً عند مرور مؤشر الماوس فوق الشريط */
.ads-carousel-container:hover .ads-carousel-track {
    animation-play-state: paused;
}

/* 4. تعريف الحركة اللانهائية
------------------------------------*/
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* سيتم حقن مسافة التحريك الصحيحة هنا بواسطة JavaScript */
        transform: translateX(var(--scroll-distance));
    }
}

/* 5. تصميم بطاقة الإعلان المفردة
------------------------------------*/
.ad-card {
    width: 320px;
    margin: 0 20px; /* مسافة 20px على كل جانب من البطاقة */
    flex-shrink: 0; /* يمنع البطاقة من الانكماش أو التمدد */

    /* تصميم زجاجي عصري */
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* إعدادات الانتقال للتأثيرات الناعمة */
    text-decoration: none;
    color: white;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* تأثيرات احترافية عند مرور الماوس فوق البطاقة */
.ad-card:hover {
    transform: translateY(-12px) scale(1.03); /* ترتفع للأعلى وتكبر قليلاً */
    border-color: rgba(201, 162, 39, 0.7);
    box-shadow: 0 25px 50px -12px rgba(201, 162, 39, 0.25);
    z-index: 10; /* تظهر فوق البطاقات المجاورة لها */
}

/* 6. عناصر داخل البطاقة
------------------------------------*/

/* شارة العرض (Badge) */
.ad-card-badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px; /* يعمل بشكل صحيح مع اللغتين العربية والإنجليزية */
    background: linear-gradient(135deg, #c9a227, #a07d1a);
    color: #1a1a2e;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* حاوية الصورة */
.ad-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: rgba(0, 0, 0, 0.2); /* لون يظهر إذا كانت الصورة لا تملأ الحاوية */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الصورة نفسها (مع ضمان عرضها كاملة) */
.ad-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* يعرض الصورة كاملة دون قص */
    transition: transform 0.5s ease;
}

/* تكبير الصورة داخل البطاقة عند التمرير */
.ad-card:hover .ad-card-image img {
    transform: scale(1.1);
}

/* أيقونة بديلة في حال عدم وجود صورة */
.ad-card-placeholder-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(160,125,26,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-card-placeholder-icon i {
    width: 50px;
    height: 50px;
    color: #c9a227;
    opacity: 0.7;
}

/* قسم المحتوى النصي */
.ad-card-content {
    padding: 25px;
    flex-grow: 1; /* يضمن أن هذا القسم يملأ المساحة المتبقية لدفع الرابط للأسفل */
    display: flex;
    flex-direction: column;
}

.ad-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #c9a227;
}

.ad-card-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1; /* يدفع الرابط للأسفل ويجعل كل البطاقات بنفس الارتفاع */
}

/* رابط "اعرف المزيد" */
.ad-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c9a227;
    font-weight: bold;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.ad-card:hover .ad-card-link {
    gap: 15px; /* السهم يبتعد قليلاً عند التمرير */
}

.arrow-icon {
    width: 18px;
    height: 18px;
}

/* عكس اتجاه السهم للغة العربية باستخدام data attribute */
.arrow-icon[data-lang="ar"] {
    transform: scaleX(-1);
}
