@import url('https://fonts.googleapis.com/css2?family=Oi&family=Playpen+Sans+Arabic:wght@100..800&display=swap');
:root {
  --header-height: 2rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(236, 100%, 48%);
  --black-color: hsl(0, 0%, 0%);
  --white-color: hsl(0, 0%, 100%);
  --body-color: #121212;
  --nav-shadow: 0 4px 16px hsla(0, 0%, 0%, .3);
  --powder-blue:#a6c5d7;
  --sapphire:linear-gradient(90deg, #ff3a82, #5233ff);;
  --deep-navy:#000926;
  --lce-blue:#d6e6f3;
  --هنتاجه:rgb(21, 21, 21);


  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
}
/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
     
}


html {
  scroll-behavior: smooth;
   
  
}
body {
    font-family: "Playpen Sans Arabic", cursive, sans-serif;
    background-color: #050505;
    color: white;
    min-height: 100vh; /* تغيير من height إلى min-height */
    overflow-x: hidden; /* منع التمرير الأفقي */
 display: flex;
    flex-direction: column;
    margin: 0; 
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;
    max-width: 100%;
    position: relative;
}
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
   
}
.wrapper, .main-container {
    overflow: hidden;
}
/* استثناء حقول الإدخال إذا كنت تريد من المستخدم أن يكتب فيها */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
/* تحسين أداء الأنميشن */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}

.main-content {
    flex: 1; /* هذا السطر هو السحر، سيجعل المحتوى يمتد ليملأ أي فراغ قبل الفوتر */
}

button {
  outline: none;
  border: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}
/* scrollbar */
/* عرض الشريط */
::-webkit-scrollbar {
    width: 12px;
}
/* خلفية الشريط */
::-webkit-scrollbar-track {
    backdrop-filter: blur(0px);
    border-radius: 10px;
}
/* الجزء المتحرك (Thumb) */
::-webkit-scrollbar-thumb {
    background: #4facfe;
    border-radius: 10px;
}
/* الجزء المتحرك عند الوقوف عليه */
::-webkit-scrollbar-thumb:hover {
    background: #4facfe;
}

/* swiper */
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 60px !important; /* مساحة إضافية للنقاط تحت المربع */
    /* overflow: visible !important; للسماح للنقاط بالظهور خارج حدود السلايدر إذا لزم الأمر */
  }
  
  /* تغيير لون أزرار التنقل لتناسب تصميمك الأزرق */
  :root {
    --swiper-theme-color: #4facfe;
    --swiper-navigation-size: 25px;
  }

  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  /* تنسيق الشرطة الافتراضية (غير النشطة) */
.swiper-pagination-bullet {
    width: 25px !important;    /* عرض الشرطة */
    height: 4px !important;    /* سمك الشرطة */
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.2) !important; /* لون شفاف */
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

/* تنسيق الشرطة عند التفعيل (النشطة) */
.swiper-pagination-bullet-active {
    width: 50px !important;    /* تتمدد عند التفعيل */
    background: linear-gradient(90deg, #4facfe, #00f2fe) !important; /* لون متدرج */
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

/* ضبط مكان النقاط أسفل السلايدر */
.swiper-pagination {
     position: absolute !important;
    bottom: 50px !important; /* يضعها في أسفل منطقة الـ padding */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}



/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh; 
    /* تغيير من height إلى min-height */
    padding:  0; /* إضافة مسافة بين الأقسام لمنع الالتصاق */
    position: relative;
    
}
/* أول قسم في الصفحة بعد الهيدر */
section:first-of-type {
    margin-top: 80px; 
}
/*=============== HEADER & NAV ===============*/
.header {
   display: flex;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: space-evenly;
    
}


.title  {
    font-size: 1.5rem;
    color: var(--white-color);
    font-family: "Oi", serif;
    font-weight: 100;
}



.nav {
  height: var(--header-height);
  padding: .5rem 1rem .5rem .5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



.nav__logo { 
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin: 0 1rem;
    padding: .5rem;
}

.nav__logo span {
    color: #4facfe; /* لون مختلف للنقطة */
}



.nav__toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}


.nav__burger, 
.nav__close {
  position: absolute;
  transition: opacity .3s, transform .4s;
}

.nav__close {
  opacity: 0;
}
  .lang-toggle-1{
    font-family: 'Playpen Sans Arabic', Courier, monospace;
    background: none;
    font-size: .5rem;
    color: #fff;
     transition: transform .4s;
     margin: 0 1rem;
  }
 
  button#lang-toggle{
    font-family: 'Playpen Sans Arabic', Courier, monospace;
    background: none;
    font-size: 1rem;
    color: #fff;
     transition: transform .4s;
  }

 button#lang-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
  }
/* Navigation for mobile devices */
@media screen and (max-width: 800px) {
  .nav__menu {
    position: fixed;
    
    top: 1.5rem;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    margin-inline: 1rem;
    padding-block: 4rem;
    border-radius: 2rem;
    box-shadow: var(--nav-shadow);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s, opacity .3s;
      background: var(--body-color);
      border: 1px solid rgba(255, 255, 255, 0.1);
      
      z-index: 100;
     
  }
  .l1ogo  {
    display: none;
  }
   p {
    font-size: 1rem;
    
  }
  .particles-container ,.gradient-background {
    display: none;
  }
  .nav__Ramadan {
    display: none;
  }
  .header {
        flex-direction: row-reverse;
    justify-content: space-between;
  }
}

.nav__list {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.5rem;
}


.nav__link {
  font-weight: 600;
  display: flex;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  

}

.nav__link span {
  transition: transform .4s;
}

.nav__link span:nth-child(2) {
  position: absolute;
  transform: translateY(150%);
}

.nav__link:hover span:nth-child(1) {
  transform: translateY(-150%);
}

.nav__link:hover span:nth-child(2) {
  transform: translateY(0);
}

/* Show menu */
.show-menu {
  transform: translateY(5rem);
  opacity: 1;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(-90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(-90deg);
}



/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (min-width: 800px) {
  .container {
    margin-inline: auto;
  }

 

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    padding: .75rem 1rem;
  }
  .nav__logo {
      /* width: 100px; */
  height: 100%;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
    overflow: hidden;
  }
 
  .nav__toggle,.lang-toggle-1 {
    display: none;
  }
 
}

/*  */
.Ramadan {
   width: 100%;
   max-width: 100%; /* غيرها من 100vw إلى 100% */
   overflow: hidden;
   position: absolute;
   left: 0;
   top: 5.5pc;
}
.Ramadan img {
  width: 100%;
    object-fit: contain; /* يضمن عدم تمدد الصورة خارج الحدود */
}
.Ramadan-container {
      position: fixed; /* تثبيت في الشاشة */
    bottom: 10px;    /* المسافة من الأسفل */
    right: 30px;     /* المسافة من اليمين */
    z-index: 9999;   /* لضمان الظهور فوق كل العناصر */
}
.Ramadan-container img {
    width: 90px;
    height: 90px;
   

}

/* تنسيق أيقونة رمضان للهواتف (أصغر من 800px) */
@media (max-width: 800px) {
    .Ramadan-container {
       display: none;
    }

   
}





        .content-container {
            position: relative;
            z-index: 10;
            text-align: center;
            max-width: 600px;
            padding: 2rem;
            top: 0;
            overflow: hidden;
        }

        h1 {
            font-family: 'Playpen Sans Arabic', Courier, monospace;
            font-size: 3.5rem;
            font-weight: 900;
            margin-bottom: 1rem;
            background: linear-gradient(to right, #fff, #acacac);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
        }

        p {
            font-family:'Playpen Sans Arabic', Courier, monospace;
            font-size: 1.2rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 2rem;
        }

        .btn {
            font-family: 'Playpen Sans Arabic', Courier, monospace;
            background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
            backdrop-filter: blur(20px);
              border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 40px;
            font-weight: bold;
            font-size: 16px;
            color: #fff;
            gap: 15px;
            cursor: pointer;
            transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0.8rem 2rem;
           
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(255, 58, 130, 0.4);
        }

        .gradient-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            /* overflow: hidden; */
        }

        .gradient-sphere {
            position: absolute;
            border-radius: 50%;
            filter: blur(60px);
        }

        .sphere-1 {
            width: 40vw;
            height: 40vw;
            background: linear-gradient(40deg, rgba(255, 0, 128, 0.8), rgba(255, 102, 0, 0.4));
            top: -10%;
            left: -10%;
            animation: float-1 15s ease-in-out infinite alternate;
        }
        .sphere-5 {
            width: 40vw;
            height: 40vw;
            background: linear-gradient(40deg, rgba(255, 0, 128, 0.8), rgba(255, 102, 0, 0.4));
            top: -10%;
            right: -10%;
            animation: float-1 15s ease-in-out infinite alternate;
        }

        .sphere-2 {
            width: 45vw;
            height: 45vw;
            background: linear-gradient(240deg, rgba(72, 0, 255, 0.8), rgba(0, 183, 255, 0.4));
            bottom: -20%;
            right: -10%;
            animation: float-2 18s ease-in-out infinite alternate;
        }

        .sphere-3 {
            width: 30vw;
            height: 30vw;
            background: linear-gradient(120deg, rgba(133, 89, 255, 0.5), rgba(98, 216, 249, 0.3));
            top: 60%;
            left: 20%;
            animation: float-3 20s ease-in-out infinite alternate;
        }

         .sphere-4 {
            width: 45vw;
            height: 45vw;
            background: linear-gradient(240deg, rgba(72, 0, 255, 0.8), rgba(0, 183, 255, 0.4));
            bottom: -20%;
            left: -10%;
            animation: float-2 18s ease-in-out infinite alternate;
        }

        .noise-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.05;
            z-index: 5;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        }

        @keyframes float-1 {
            0% {
                transform: translate(0, 0) scale(1);
            }
            100% {
                transform: translate(10%, 10%) scale(1.1);
            }
        }
        @keyframes float-5 {
            0% {
                transform: translate(0, 0) scale(1);
            }
            100% {
                transform: translate(10%, 10%) scale(1.1);
            }
        }

        @keyframes float-2 {
            0% {
                transform: translate(0, 0) scale(1);
            }
            100% {
                transform: translate(-10%, -5%) scale(1.15);
            }
        }
        @keyframes float-4 {
            0% {
                transform: translate(0, 0) scale(1);
            }
            100% {
                transform: translate(-10%, -5%) scale(1.15);
            }
        }

        @keyframes float-3 {
            0% {
                transform: translate(0, 0) scale(1);
                opacity: 0.3;
            }
            100% {
                transform: translate(-5%, 10%) scale(1.05);
                opacity: 0.6;
            }
        }

        .grid-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: 40px 40px;
            background-image: 
                linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            z-index: 2;
        }

        .glow {
            position: absolute;
            width: 40vw;
            height: 40vh;
            background: radial-gradient(circle, rgba(72, 0, 255, 0.15), transparent 70%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            animation: pulse 8s infinite alternate;
            filter: blur(30px);
        }

        @keyframes pulse {
            0% {
                opacity: 0.3;
                transform: translate(-50%, -50%) scale(0.9);
            }
            100% {
                opacity: 0.7;
                transform: translate(-50%, -50%) scale(1.1);
            }
        }

      /* أضف هذا الكلاس لأي div تريد التأثير داخله */
  
.particle-section {
   display: flex; /* تفعيل الفليكس لتعمل خصائص التوسيط */
    flex-direction: column; /* ترتيب العناصر بشكل عمودي */
    justify-content: center;
    align-items: center;
    position: relative;
    
    /* قمنا بإلغاء min-height للسماح للقسم بأخذ حجم المحتوى فقط */
    /* إذا كنت تحتاج مسافة بسيطة أسفله، استخدم الـ padding بدلاً من min-height */
    padding-bottom: 30px;
}



.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
        .particle {
            position: absolute;
            background: white;
            border-radius: 50%;
            opacity: 0;
            pointer-events: none;
        }
        
        /* */
    .title-container  {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px; /* زيادة العرض قليلاً */
    margin: 0 auto;
    padding: 1rem;
}
        .title-h1 {
          font-size: 40px ;  
          font-weight: 900;
          padding-top: 3pc;
        }

        /* Floating WhatsApp Button */
        /* الحاوية الأساسية */
.whatsapp-container {
    position: fixed; /* تثبيت في الشاشة */
    bottom: 30px;    /* المسافة من الأسفل */
    left: 30px;     /* المسافة من اليمين */
     
    z-index: 9999;   /* لضمان الظهور فوق كل العناصر */
}

/* الرابط (الزر) */
.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

/* الأيقونة داخل الرابط */
.whatsapp-svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* تأثير عند تمرير الماوس */
.whatsapp-link:hover {
    transform: scale(1.1); /* تكبير بسيط */
    background-color: #1ebea5; /* درجة أغمق قليلاً */
}

/* إضافة نبض خلف الـ div */
.whatsapp-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: pulse-effect 2s infinite;
}

@keyframes pulse-effect {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* تنسيق زر الواتساب للهواتف (أصغر من 800px) */
@media (max-width: 800px) {
    .whatsapp-container {
        bottom: 20px;    /* تقريب الزر من الأسفل قليلاً */
        left: 20px;      /* تقريب الزر من الحافة الجانبية */
    }

    .whatsapp-link {
        width: 50px;     /* تصغير العرض من 60px إلى 50px */
        height: 50px;    /* تصغير الطول من 60px إلى 50px */
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); /* ظل أنعم للموبايل */
    }

    .whatsapp-svg {
        width: 28px;     /* تصغير حجم الأيقونة لتناسب الزر الجديد */
        height: 28px;
    }

    /* اختيار اختياري: إيقاف تأثير النبض (Pulse) إذا كان يشتت المستخدم على الشاشات الصغيرة */
    /* .whatsapp-container::after {
        display: none;
    } */
}
/* تنسيق الخلفية العامة */
.background {
    position: relative;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 10;

}

/* الحاوية التي تجمع المربعات بجانب بعضها */
.background-container {
  display: flex;
  flex-wrap: wrap; /* للسماح للمربعات بالنزول لسطر جديد في الشاشات الصغيرة */
  gap: 20px;      /* المسافة بين المربعات */
  justify-content: center;
  max-width: 1200px;
}

/* تصميم المربع الزجاجي المنفرد */
.glass-box {
  width: 300px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15); /* شفافية بيضاء */
  backdrop-filter: blur(12px);         /* تأثير الضبابية */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease; /* تأثير عند تمرير الماوس */
  z-index: 10;
}

/* تأثير بسيط عند تمرير الماوس (Hover) */
.glass-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.25);
}


   .big-number {
            font-size: 90px;
            font-weight: 900;
            color: transparent;
            -webkit-text-stroke: 1px rgba(255,255,255,0.1);
            line-height: 0.8;
        }

.tech-section {
  padding: 50px 20px;
  background: #0f172a; /* خلفية داكنة لإبراز الزجاج */
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}

.title {
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
  font-size: 28px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* بدلاً من Margin، نستخدم Padding لحماية الحواف */
  width: 100%;     /* لضمان أنه يملأ المساحة المتاحة فقط */
}

/* بطاقة التصميم الزجاجي الموحدة */
.tech-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  z-index: 2;
  /* ... نفس تنسيقك ... */
  min-width: 0; /* ضروري جداً للعناصر داخل الـ Grid */
  overflow: hidden; /* يضمن عدم خروج أي شيء من داخل البطاقة */
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: #4facfe;
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.1);
}

/* حاوية الأيقونة */
.tech-icon-container {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1); /* خلفية بسيطة للأيقونة */
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.tech-icon-container img {
  width: 100%;
  height: auto;
}

.tech-info h3 {
  color: #fff;
  margin: 0;
  font-size: 18px;
}

.level-tag {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  display: block;
  margin-top: 2px;
}
/* التنسيق الخاص بشاشات الهاتف (أصغر من 800px) */
@media (max-width: 800px) {
    .tech-grid {
        /* جعل البطاقات تظهر كعمودين بدلاً من واحد إذا كانت المساحة تسمح، أو عمود واحد */
        grid-template-columns: 1fr;
        gap: 12px; /* تقليل المسافة بين البطاقات لتوفير مساحة */
        padding: 0 15px; /* إضافة مسافة من الجوانب لكي لا تلتصق البطاقات بحافة الشاشة */
    }

    .tech-card {
        padding: 12px; /* تقليل الحشو الداخلي للبطاقة */
        gap: 10px; /* تقليل المسافة بين الأيقونة والنص */
        border-radius: 15px; /* جعل الحواف أنعم قليلاً لتناسب الشاشات الصغيرة */
    }

    .tech-icon-container {
        width: 40px; /* تصغير حجم حاوية الأيقونة */
        height: 40px;
        padding: 8px;
    }

    .tech-info h3 {
        font-size: 15px; /* تصغير حجم الخط للعناوين */
    }

    .level-tag {
        font-size: 11px; /* تصغير حجم نص المستوى */
    }
    .big-number {
      font-size: 50px ;
    }
 
}

/* لتنسيق أفضل للهواتف الصغيرة جداً (أقل من 400px) */
@media (max-width: 400px) {
    .tech-grid {
        /* تحويلها لعمود واحد لضمان وضوح المحتوى */
        grid-template-columns: 1fr;
    }
}

/* CSS محسّن للتنسيق الجديد */
.services-section {
  padding: 80px 20px;
  background: #0f172a;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header .title {
  color: #fff;
  font-size: 32px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-header .subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;   
   min-width: 0;        
   box-sizing: border-box; 
   margin: 0 auto;
    
}.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  
  /* الحلول الجذرية */
           /* تأكد أنه يأخذ 100% من عرض الأب */
  min-width: 0;          /* يمنع الـ grid من التمدد خارج الأب */
  box-sizing: border-box; /* التأكد من أن الحواف داخل العرض */
  padding: 0 20px;       /* مسافة آمنة من الجوانب */
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  z-index: 2;

}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: #4facfe;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 45px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.3));
}

.service-card h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 15px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

/* تحسين التجاوب للهواتف */
@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 1000px;
  }

  .service-icon {
  font-size: 35px;
  margin-bottom: 20px;
  
}

.service-card h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 15px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.8;
}
}

/*  */
/* الحاوية الرئيسية - Banner */
        .project-banner {
      position: relative;
    max-width: 900px;
    min-height: 450px;
    margin: 0 auto;
    margin-bottom: 40px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
        z-index: 1;
        }


        /* الجزء الأيمن: نصوص المشروع */
        .content-side {
            flex: 1.2;
            z-index: 2;
            padding-right: 20px;
        }

        .category-tag {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            font-weight: bold;
            color: #4facfe; /* لون أزرق تقني */
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .project-title {
            font-size: 42px;
            font-weight: 800;
            margin: 0 0 20px 0;
            color: #fff;
        }

        .description {
            color: #94a3b8;
            line-height: 1.8;
            font-size: 17px;
            max-width: 480px;
            min-height: 70px;
            margin-bottom: 30px;
        }

        /* التقنيات المستخدمة بدلاً من السعر */
        .tech-stack {
            display: flex;
            gap: 10px;
            margin-bottom: 40px;
        }

        .tech-item {
            background: rgba(79, 172, 254, 0.1);
            color: #4facfe;
            padding: 5px 15px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
            border: 1px solid rgba(79, 172, 254, 0.2);
        }

        /* الزر والرقم */
        .footer-action {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .cta-button {
            font-family: 'Playpen Sans Arabic', Courier, monospace;
            background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
            backdrop-filter: blur(20px);
            padding: 15px 40px;
            border-radius: 40px;
            font-weight: bold;
            font-size: 16px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .cta-button:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
        }

     

        /* الجزء الأيسر: عرض المشروع (Mockup) */
        .image-side {
            flex: 1;
            position: relative;
            display: flex;
            justify-content: center;
        }

        /* تأثير الوهج خلف المشروع */
        .glow-effect {
            position: absolute;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, transparent 70%);
            z-index: 1;
        }

        /* صورة معاينة المتصفح أو التطبيق */
        .project-mockup {
            width: 110%;
            z-index: 3;
            border-radius: 20px;
            transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
            box-shadow: 25px 25px 50px rgba(0,0,0,0.5);
            transition: 0.5s ease;
        }

        .project-banner:hover .project-mockup {
            transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
        }

      
        @media (max-width: 800px) {
            .project-banner { 
              flex-direction: column; 
              padding: 25px;  
               max-width: 600PX;
               min-height: 350px; 
               margin: 1rem;
              }
            .image-side { margin-top: 50px; order: -1; }
            .project-mockup { width: 100%; transform: none; }
            .tech-item {
              font-size: 10px;
            }
               .cta-button {
      font-size: 10px ;
      padding: 15px 30px ;
    }

    

        .project-title {
            font-size: 20px;
        
          
        }

        .description {
            
            font-size: 12px;
            margin-bottom: 20px;
            
        }
        }

     

/*  */

.contact-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
   padding: 10px 20px;
  direction: rtl;
  z-index: 10;
}

/* معلومات التواصل */
.contact-title {
  color: #fff;
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-desc {
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.8;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #cbd5e1;
  transition: 0.3s;
}

.info-item:hover {
  color: #4facfe;
}

.icon-box {
  width: 45px;
  height: 45px;
  background: rgba(79, 172, 254, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4facfe;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: 0.4s;
}

.social-icon:hover {
  background: #4facfe;
  border-color: #4facfe;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* تصميم الفورم الزجاجي */
.contact-form-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: 0.3s;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
  border-color: #4facfe;
  background: rgba(255, 255, 255, 0.08);
}

.input-group select option {
  background: #0f172a;
  color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 16px;
 
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.4s;
  font-family: 'Playpen Sans Arabic', Courier, monospace;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
   backdrop-filter: blur(20px);
 
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(79, 172, 254, 0.4);
}
/* تصميم القائمة المنسدلة الزجاجية */
.glass-select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03); /* شفافية منخفضة جداً */
    backdrop-filter: blur(15px); /* تأثير الضبابية خلف الزجاج */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* إطار نحيف جداً */
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    appearance: none; /* إخفاء سهم المتصفح الافتراضي */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

/* عند التحويم أو التركيز */
.glass-select:focus {
    border-color: #4facfe; /* توهج أزرق عند الاختيار */
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.2);
}

/* تنسيق الخيارات (المنيو نفسه) */
/* ملاحظة: المتصفحات لا تسمح بـ blur داخل الـ option، لذا نجعل خلفيتها داكنة */
.glass-select option {
    background: #0f172a; 
    color: #fff;
    padding: 10px;
}

/* تنسيق السهم المخصص */
.select-arrow {
    position: absolute;
    top: 50%;
    left: 20px; /* بما أنك تستخدم RTL */
    transform: translateY(-50%);
    pointer-events: none; /* لكي لا يعيق الضغط على القائمة */
    transition: 0.3s;
}

.glass-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg); /* تدوير السهم عند الفتح */
}

/* الموبايل */
@media (max-width: 800px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-title {
    font-size: 28px;
    text-align: center;
  }
  .contact-desc {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}


/*  */


.site-footer {
    position: relative;
    width: 100%;
    clear: both; /* لضمان عدم تداخله مع عناصر عائمة */
    margin-top: auto; /* يدفعه للأسفل إذا كنت تستخدم flexbox على الـ body */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 40px 40px 0 40px ;
    border-radius: 30px  30px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer p, 
.site-footer span, 
.site-footer a,
.site-footer [data-i18n] {
    color: #ffffff !important; /* أبيض صريح لضمان أعلى تباين */
    opacity: 0.9; /* لو عايز هدوء شوية بس ما تقلش عن 0.8 */
}

/* النص الصغير بتاع الحقوق غالباً بيكون أهت حاجة، خليه واضح */
.site-footer .footer_rights, 
[data-i18n="footer_rights"] {
    color: #f3f4f6 !important; /* رمادي فاتح جداً (Gray-100) */
}
/* توهج أزرق خافت في الخلفية */
.footer-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  /* background: radial-gradient(ellipse, rgba(79, 172, 254, 0.1) 0%, transparent 70%); */
  z-index: 0;
  pointer-events: none;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; /* مساحة أكبر للنبذة */
  gap: 40px;
  position: relative;
  z-index: 1;
  
}

.footer-logo {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo span {
  color: #4facfe; /* النقطة الزرقاء المميزة في شعارك */
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 15px;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
}

.footer-col {
  width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: block;
    cursor: pointer;
    transition: 0.4s;
    font-family: 'Playpen Sans Arabic', Courier, monospace;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
}

/* خط صغير تحت العناوين */
.footer-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 30px;
  height: 2px;
  background: #4facfe;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

/* تأثير التحريك عند مرور الماوس (إزاحة خفيفة لليسار) */
.footer-links a:hover {
  color: #4facfe;
  transform: translateX(-5px); 
}

/* أيقونات التواصل */
.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px; /* شكل مربع بحواف دائرية ليناسب الحداثة */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.social-btn:hover {
  background: #4facfe;
  border-color: #4facfe;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* الشريط السفلي للحقوق */
.footer-bottom {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 25px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.highlight {
  color: #4facfe;
  font-weight: bold;
}

/* تجاوب للموبايل والتابلت */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr; /* عمودين في التابلت */
  }

}

@media (max-width: 800px) {
  .footer-container {
    grid-template-columns: 1fr; /* عمود واحد في الموبايل */
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* تحميل  */

.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.logo {
    display: inline-block;
    /* هذا التأثير سيجعل النص يضيء ويخفت */
    animation: glow-pulse 1.5s infinite ease-in-out;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        opacity: 0.5;
        text-shadow: none;
    }
}