*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
.header{
    width: 100%;
    min-height: 100vh;
   
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
   background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(op1.jpg);
    background-image: linear-gradient(rgba(0,0,0,0.5)rgba(0,0,0,0.8), url(op1.jpg));
   
}



nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
nav h1 {
    color:#fff;
   
}
.nav-link{
    
    flex: 1;
    text-align: right;
}
.nav-link ul {
     display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link ul li{
   
    padding: 10px 15px ;
    list-style: none;
    position: relative;
    
}
 .nav-link ul li a {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    font-size: 12px;

 }
 .nav-link ul li a:hover{
    color: #ffca28;
    transition: 0.3s;
 }
.nav-link ul li a ::after{
    content: " ";
    position: absolute;
    width: 0%;
    height: 2px;
    margin: auto;
    bottom: 0;
    left: 0;
    display: block;
    background-color: rebeccapurple;
    transition: 0.7s;
   
}
.nav-link ul li a:hover{
width: 100%;
}
.text{
    position: absolute;
    width: 90%;
    text-align: center;
    transform: translate(-50% , -50%);
    top: 50%;
    left: 50%;
    color: #fff;
}
.text h1{
    font-size: 20px;
    font-weight: 300;
}
.text p{
    font-size: 20px;
    margin: 30px 0;
}
.btn{
    color:#D2691E;
    width: 600;
    font-size: 16px;
    border-radius: 10px;
    padding: 10px 16px;
    text-decoration: none;
    background-color: #fff;
    border-bottom: 2px solid white;
}
.btn:hover{

    background-color: #464242;
    border: #fff;
   transition: 0.7s;
}
nav .fa-close{display: none;
}
 nav .fa-reorder{
    display: none;
 }   
@media (max-width: 700px) {
    nav h1{
        font-size: 20px;
        white-space: nowrap;
        flex: 1;
        text-align: left;
        margin-top: 10px;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .nav-link {
        width: 150px;
        height: 100vh;
        background: rgba(0,0,0,0.10);
        backdrop-filter: blur(9px);
        position: fixed;
        top: 0;
       right: -150px;
       transition: 0.5s;
        z-index: 2;
        padding-top: 10px; /* لإنزال العناصر من الأعلى */
     
    }

    .nav-link ul {
        display: block; /* هذا السطر مهم جداً لإلغاء الـ flex */
        padding-top: 10px ;
    }

    .nav-link ul li {
        display: block; /* لجعل كل عنصر يأخذ سطراً كاملاً */
        margin: 20px 0;
        text-align: left;
        padding-left: 30px;
        list-style: none;
    }

    .nav-link ul li a {
        color: white;
        text-decoration: none;
        font-size: 10px;
    }


.nav-link .fa-close{ display: block;
color: #fff;
margin: 15px;
cursor: pointer;
font-size: 24px;
}
nav .fa-reorder{
    display: block;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
}
.aswar-stats {
    background-color: #0b1120;
    padding: 80px 0;
    color: white;
    display: flex;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.stats-wrapper {
    display: flex;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    justify-content: space-around;
    border-radius: 5px;
}

.stat-box {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
}

.symbol {
    font-size: 2rem;
    font-weight: 800;
    color: #4fd1ed; /* لون لبني جميل للرموز */
}

.stat-divider {
    width: 2px;
    height: 70px;
    background-color: #4fd1ed;
    opacity: 0.5;
}

.stat-text {
    display: block;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/*الفوق جزء الارقام المتحركة */

/* الحاوية الكبرى */
.services-intro {
    background-color: #f8f9fa;
    padding: 100px 0 150px 0;
    position: relative;
}

.container-wrapper {
    position: relative;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* المربع الأبيض في الخلفية تماماً */


/* حاوية الصورة (التي تصعد للأعلى) */
.services-bg-container {
    position: relative;
    width: 95%;
    height: 550px;
    margin-top: -150px; /* التداخل مع الإحصائيات */
    margin-left: auto;
    border-radius: 100px; /* حواف دائرية ضخمة */
    overflow: visible; /* للسماح للكرت الأمامي بالبروز */
    z-index: 2;
}

.services-bg-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* الكرت الأبيض الأمامي (يميناً) */
.services-card-front {
    position: absolute;
    right: -30px; /* يبرز قليلاً لليمين */
    bottom: -50px; /* يبرز للأسفل */
    background-color: white;
    width: 400px;
    padding: 60px 50px;
    border-radius: 100px 100px 100px 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    z-index: 10;
    overflow: hidden;
}

/* الجزء الأزرق الداكن داخل الكرت */
.blue-accent-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background-color: #16203b; /* لون داكن فخم */
    clip-path: ellipse(75% 100% at 100% 50%);
}

/* تنسيق النصوص */
.card-text-content { position: relative; z-index: 11; }
.label { color: #94a3b8; letter-spacing: 3px; font-weight: 700; font-size: 0.80rem; }
.title { font-size: 2.5rem; color: #0b1120; margin: 20px 0; font-weight: 800; line-height: 1.1; }
.para { color: #555; line-height: 1.7; margin-bottom: 30px; font-size: 0.98rem; }
.link-btn { color: #0b1120; text-decoration: none; font-weight: 800; border-bottom: 2px solid #4fd1ed; padding-bottom: 5px; }

/* --- التجاوب مع الهاتف --- */
@media (max-width: 992px) {
    .white-bg-layer { display: none; }
    .services-bg-container { height: 350px; margin-top: -80px; width: 100%; border-radius: 40px; }
    .services-bg-container img { border-radius: 40px; }
    .services-card-front { position: relative; width: 95%; right: 0; margin: -50px auto 0; border-radius: 40px; padding: 40px 20px; }
    .title { font-size: 1.8rem; }
}

/* تنسيقات القسم العام والعناوين */
.services-section {
  padding: 60px 40px;
  background-color: #fff;
  font-family: sans-serif;
}

.section-subtitle {
  color: #888;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.section-title {
  color: #222;
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 40px;
  font-weight: bold;
}

/* حاوية الكروت وتوزيعها بشكل مرن */
.services-container {
  display: flex;
  gap: 25px; /* المسافة بين الكروت */
  justify-content: space-between;
  flex-wrap: wrap; /* لجعل الكروت تنزل لأسفل في الشاشات الصغيرة */
}

/* تصميم الكرت المفرد والانحناء الخاص به */
.service-card {
  flex: 1;
  min-width: 250px; /* أقل عرض مسموح للكرت قبل أن ينزل لسطر جديد */
  height: 350px; /* ارتفاع الكروت */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  
  /* السر هنا: الانحناء الدائري المميز في الزاوية العلوية اليمنى والسفلية اليسرى */
  border-radius: 20px 100px 20px 100px; 
}

/* طبقة الظل الداكنة فوق الصور ليتضح النص */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* تظليل أسود بنسبة 40% */
  display: flex;
  align-items: flex-end; /* وضع المحتوى في أسفل الكرت */
  padding: 30px;
  box-sizing: border-box;
}

/* تنسيق النصوص والأيقونات داخل الكرت */
.card-content {
  color: #fff;
}

.card-icon {
  font-size: 32px; /* حجم الأيقونة */
  margin-bottom: 15px;
}

.card-content h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
}

/* عندما يكون عرض الشاشة 768 بكسل أو أقل (الهواتف والأجهزة اللوحية) */
@media (max-width: 768px) {
  
  /* تغيير توزيع الكروت من أفقي إلى عمودي */
  .services-container {
    flex-direction: column; 
    gap: 20px; /* تقليل المسافة بين الكروت قليلاً */
  }

  /* تعديل مقاسات الكرت ليناسب شاشة الهاتف */
  .service-card {
    width: 100%; /* الكرت يأخذ كامل عرض شاشة الهاتف */
    height: 280px; /* تقليل الارتفاع قليلاً لكي لا يضطر المستخدم للتمرير كثيراً */
    
    /* تقليل الانحناءات الكبيرة لتبدو أجمل على الشاشات الصغيرة */
    border-radius: 15px 60px 15px 60px; 
  }

  /* تصغير حجم العناوين لتناسب الهاتف */
  .section-title {
    font-size: 22px;
    margin-bottom: 25px;
  }
}