@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* Global Styles */
* {
    box-sizing: border-box;
    border: none;
    outline: none;
    text-decoration: none;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: #1f242d;
    color: #fff;
    
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}
/* Header */
.header {
    display: flex;
    align-items: center; /* إضافة: لمحاذاة العناصر عمودياً بشكل أفضل */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 3rem;
    background-color: #1c222c;
    z-index: 1;
    justify-content: space-between;
    
    /* ----- التعديل الأساسي ----- */
    direction: rtl; /* تغيير الاتجاه ليتناسب مع اللغة العربية */
}

.header.sticky {
    border-bottom: .1rem solid rgba(10, 18, 31, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    cursor: default;
}

.logo img {
    height: 40px;
    /* margin-right بدلاً من استخدام الخاصية المنطقية التالية */
    margin-inline-end: 10px; 
}

.navbar {
    position: relative;
    z-index: 2;
    transition: 0.2s all ease-in-out;
    align-content: center;
}

.navbar a {
    display: inline-flex; /* لتحسين محاذاة الأيقونة والنص */
    align-items: center;  /* لمحاذاة الأيقونة والنص عمودياً */
    font-size: 1.7rem;
    color: #fff;
    
    /* margin-left بدلاً من استخدام الخاصية المنطقية التالية */
    margin-inline-start: 3rem; 
}

.navbar a:hover,
.navbar a.current {
    color: #00d5ff;
}

.navbar i {
    font-size: 18px;
    /* بدلاً من تحديد الهامش هنا، سنستخدم خاصية gap على الرابط نفسه */
    margin-inline-end: 8px; /* margin-right بدلاً من */
}

#menu-icon {
    font-size: 3.6rem;
    color: #fff;
    display: none;
    align-content: center;
}

/* Home Section */

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
}

.home-img img {
    width: 45vh;
    height: 45vh;
    margin-right: 100px;
    transition: transform 0.2s ease-out;
    border-radius: 50%;
    object-fit: cover;
    display: block;

    /* دوران تلقائي */
    animation: spin 5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



.home-content h3 {
    font-size: 3.2rem;
    font-weight: 600;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.9rem;
}

span {
    color: #00d5ff;
}

/* Social Media */
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid #00d5ff;
    border-radius: 50%;
    font-size: 2.5rem;
    color: #00d5ff;
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease-in-out;
}

.social-media a:hover {
    background-color: #00d5ff;
    color: #323846;
    box-shadow: 0 0 1rem #00d5ff;
}

/* Project Section */
.project {
    background: #323846;
}

.project h2 {
    margin-bottom: 4rem;
}

.project-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.project-box {
    width: calc(33.33% - 2.5rem);
    height: 200px;
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem #1f242d;
    overflow: hidden;
    display: flex;
    object-fit: cover;
}

.project-box img {
    width: 100%;
    transition: .5s ease;
}

.project-box:hover img {
    transform: scale(1.1);
}

.project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 45, 59, 0.8) 0%, rgba(0, 115, 191, 0.8) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(0); /* جعل الطبقة ظاهرة بشكل ثابت */
    transition: none; /* إزالة تأثير الحركة */
}

.project-layer h4 {
    font-size: 3rem;
}

.project-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}

.project-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background-color: #fff;
    border-radius: 50%;
}

.project-layer a i {
    font-size: 2rem;
    color: #323846;
}

/* Error Message */
.error {
    color: #9d3025;
    font-size: 16px;
    display: none;
}

/* About Section */
.about {
    text-align: justify;
    gap: 3rem;
    background-color: #1f242d;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    line-height: 1.2;
    text-align: left;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin-top: 1rem;
}

.contact-email,
.contact-number {
    font-size: 2rem;
    margin: 2rem 0;
}

.contact-number a {
    color: inherit;
    text-decoration: none;
}

.contact-span {
    font-weight: 600;
    color: #00d5ff;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #00d5ff;
    border-radius: 4rem;
    
    font-size: 1.6rem;
    color: #323846;
    font-weight: 600;
    transition: .4s ease-in-out;
}

.btn:active {
    transform: scale(0.9);
}

.btn:hover {
    box-shadow: none;
}

.btn i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    display: flex;
    height: 70px;
    align-items: center;
    padding: 2rem 9%;
    background-color: #2a2f3c;
}

.footer-text p {
    font-size: 1.6rem;
}

.footericonTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: #00d5ff;
    border-radius: .8rem;
    font-weight: 700;
}

.footericonTop a i {
    font-size: 2.4rem;
    color: #323846;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #00d5ff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007c6c;
}



/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2.5rem 3%;
    }
    
    section {
        padding: 10rem 3% 2rem;
    }
    
    .footer {
        padding: 2rem 3%;
    }

    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        transform: translateX(200%);
        width: 100%;
        z-index: -1;
        padding: 1rem 3%;
        background: #1f242d;
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        text-align: left;
    }
    
    .navbar.current {
        transform: translateX(0);
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
    }
    
    .home {
        flex-direction: column;
    }
    
    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h2 {
        font-size: 5rem;
    }
    
    .home-img {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .home-img img {
        width: 65%;
        height: auto;
         margin-left: 100px !important;
        transition: transform 0.1s ease-out;
    }
    
    .about-content {
        margin-top: 20px;
        flex-direction: column; 
        gap: 10px;
    }
    
    dotlottie-player {
        width: 350px !important;
        height: 350px !important;
        
    }
    
    .contact-number {
        text-decoration: none;
        color: #fff;
    }

    .project-container {
        flex-direction: column;
        gap: 2rem 0;
    }
    
    .project-box {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 400px) {
    html {
         min-height: auto;
        font-size: 50%;
        
    }
}

.footer-heading {
    font-size: 13px;
    margin: 0;
    color: #fff;
      direction: ltr;
    text-transform: none;
}

.footer-heading a {
    color: #00d5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

  .icon-container {
      display: flex;
      justify-content: center; /* يضمن توسيط المحتوى داخل الحاوية */
      align-items: center;
      gap: 15px;
      background-color: #1f242d;
      padding: 18px 10px;
      border-radius: 16px;
      
      direction: ltr; /* مهم لتفادي التحيز لليسار في flex عند استخدام RTL */
      margin: 20PX;
    
    }

    .icon-container a img {
      width: 50px;
      height: 50px;
      transition: transform 0.2s;
    }

    .icon-container a img:hover {
      transform: scale(1.1);
    }
  
       .custom-text {
     
      text-align: center;
    }

    .splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px); /* تأثير الضبابية */
  background-color: rgba(0, 0, 0, 0.5); /* خلفية شبه شفافة */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  animation: fadeOut 1s ease 2s forwards;
}

    .splash-image {
      width: 200px;
      height: 200px;
      background-image: url('/pic/home2.png'); /* استبدل هذا برابط صورتك المتحركة */
      background-size: contain;
      background-repeat: no-repeat;
      animation: zoomFlip 2s ease;
    }

    .splash-text {
      margin-top: 20px;
      font-size: 24px;
      opacity: 0;
      animation: fadeInText 1s ease 1s forwards;
    }

    @keyframes zoomFlip {
      0% {
        transform: scale(0) rotateY(0deg);
        opacity: 0;
      }
      50% {
        transform: scale(1.2) rotateY(180deg);
        opacity: 1;
      }
      100% {
        transform: scale(1) rotateY(360deg);
        opacity: 1;
      }
    }

    @keyframes fadeInText {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes fadeOut {
      to {
        opacity: 0;
        visibility: hidden;
      }
    }


/* =========================================
   تنسيقات النافذة المنبثقة (Modal) الجديدة
   ========================================= */

/* خلفية النافذة المنبثقة (الضبابية) */
.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 18, 31, 0.75); /* لون داكن يتماشى مع الموقع */
  backdrop-filter: blur(8px); /* تأثير الزجاج الضبابي */
  z-index: 9999;
  opacity: 0;
  animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
  to { opacity: 1; }
}

/* صندوق المحتوى */
.modal-content {
  background-color: #1f242d; /* نفس لون خلفية الموقع */
  padding: 35px 25px 25px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 450px; /* حجم مناسب للآيباد والشاشات الكبيرة */
  border: 1px solid rgba(0, 213, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 213, 255, 0.1);
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  animation: popInModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  direction: rtl; /* لضمان دعم اللغة العربية */
}

@keyframes popInModal {
  to { transform: translate(-50%, -50%) scale(1); }
}

/* عنوان النافذة */
.modal-title {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 25px;
  font-weight: 700;
}
.modal-title span {
  color: #00d5ff; /* تمييز الكلمة لتناسب ستايل الموقع */
}

/* زر الإغلاق */
.close {
  position: absolute;
  top: 15px;
  left: 15px; /* على اليسار لأن الاتجاه RTL */
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.close:hover {
  color: #fff;
  transform: rotate(90deg); /* حركة لطيفة عند التمرير */
}

/* شبكة الأزرار (تتجاوب تلقائياً مع حجم الشاشة) */
.button-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}

/* تصميم أزرار المواد كبطاقات */
.button-list button {
  display: flex;
  flex-direction: column; /* الأيقونة فوق النص */
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 10px;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #323846;
  border-radius: 15px;
  background-color: #2a2f3c;
  color: #ffffff;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
}

/* تأثير التمرير (Hover) على الأزرار */
.button-list button:hover {
  background-color: #323846;
  border-color: #00d5ff;
  transform: translateY(-5px); /* رفع الزر قليلاً */
  box-shadow: 0 8px 20px rgba(0, 213, 255, 0.15);
}

/* حجم الأيقونة الأساسي (للشاشات الكبيرة والآيباد) */
.button-list .icon {
  width: 55px;  /* تم التكبير من 40px إلى 55px */
  height: 55px; /* تم التكبير من 40px إلى 55px */
  transition: transform 0.3s ease;
}

/* تأثير التكبير الإضافي عند مرور الماوس */
.button-list button:hover .icon {
  transform: scale(1.15); 
}

/* تعديلات مخصصة لشاشات الجوال الصغيرة جداً */
@media (max-width: 400px) {
  .button-list {
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
  }
  .modal-content {
    padding: 30px 15px 20px;
  }
  .button-list button {
    padding: 15px 5px;
    font-size: 1.4rem;
  }
  
  /* حجم الأيقونة في الجوال */
  .button-list .icon {
    width: 45px;  /* تم التكبير من 32px إلى 45px */
    height: 45px; /* تم التكبير من 32px إلى 45px */
  }
}

/* Global Styles */

* {

  box-sizing: border-box;

  border: none;

  outline: none;

  text-decoration: none;

  scroll-behavior: smooth;

  margin: 0;

  padding: 0;

 font-family: 'Tajawal', sans-serif;

}



html {

  font-size: 62.5%;

  overflow-x: hidden;

}



body {

  background-color: #1f242d;

  color: #fff;

  

}



section {

  min-height: 100vh;

  padding: 10rem 9% 2rem;

}



/* Header */

.header {

  display: flex;

  position: fixed;

  top: 0;

   direction: ltr;

   

  left: 0;

  background-color: #1f242d;

  width: 100%;

  padding: 2.5rem 3rem;

  z-index: 1;

  justify-content: space-between;

  text-align: center;

}



.header.sticky {

  border-bottom: .1rem solid rgba(0, 0, 0, .2);

}



.logo {

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 2rem;

  font-weight: 600;

  color: #fff;

  cursor: default;

}



.logo img {

  height: 40px;

  margin-right: 10px;

}



.navbar {

  position: relative;

  z-index: 2;

  transition: 0.2s all ease-in-out;

  align-content: center;

}



.navbar a {

  font-size: 1.7rem;

  color: #fff;

  margin-left: 3rem;

}



.navbar a:hover,

.navbar a.current {

  color: #00d5ff;

}



.navbar i {

  margin-right: 8px;

  font-size: 18px;

}



#menu-icon {

  font-size: 3.6rem;

  color: #fff;

  display: none;

  align-content: center;

}



/* Home Section */



.home {

  display: flex;

  justify-content: center;

  align-items: center;

  text-align: justify;

}



.home-img img {

  width: 45vh;

  height: 45vh;

  margin-left: 100px;

  transition: transform 0.2s ease-out;



 

  border-radius: 50%;

  object-fit: cover;

  display: block;



}







.home-content h3 {

  font-size: 3.2rem;

  font-weight: 700;

}



.home-content h3:nth-of-type(2) {

  margin-bottom: 2rem;

}



.home-content h1 {

  font-size: 5.6rem;

  font-weight: 700;

  line-height: 1.3;

}



.home-content p {

  font-size: 2.1rem;
  line-height: 1.6;

}



span {

  color: #00d5ff;

}



/* Social Media */

.social-media a {

  display: inline-flex;

  justify-content: center;

  align-items: center;

  width: 4rem;

  height: 4rem;

  background: transparent;

  border: .2rem solid #00d5ff;

  border-radius: 50%;

  font-size: 2.5rem;

  color: #00d5ff;

  margin: 3rem 1.5rem 3rem 0;

  transition: .5s ease-in-out;

}



.social-media a:hover {

  background-color: #00d5ff;

  color: #323846;

  box-shadow: 0 0 1rem #00d5ff;

}



/* Project Section */

.project {

  background: #323846;

}



.project h2 {

    margin-top: -6rem;



  margin-bottom: 6rem;

}



.project-container {

  display: flex;

  justify-content: space-evenly;

  align-items: center;

  flex-wrap: wrap;

  gap: 2.5rem;

}



.project-box {

  display: block;

  text-decoration: none;

  color: inherit;

  width: calc(33.33% - 2.5rem);

  height: 200px;       /* الصندوق ثابت الطول */

  position: relative;

  border-radius: 2rem;

  box-shadow: 0 0 1rem #1f242d;

  overflow: hidden;

}



.project-box img {

  width: 100%;

  height: 100%;       /* يملأ ارتفاع الصندوق */

  object-fit: cover;     /* يقص الصورة بحيث تغطي كامل الصندوق */

  transition: .5s ease;

}



.project-box:hover img {

  transform: scale(1.1);

}





.project-layer {

  position: absolute;

  bottom: 0;

  left: 0;

  height: 100%;

  width: 100%;

  background: linear-gradient(180deg, rgba(0, 45, 59, 0.8) 0%, rgba(0, 115, 191, 0.8) 100%);

  display: flex;

  justify-content: center;

  align-items: center;

  flex-direction: column;

  text-align: center;

  padding: 0 1rem;

  transform: translateY(0);

}



.project-layer h4 {

  font-size: 2rem;

}



.project-layer p {

  font-size: 1.4rem;

  margin: .2rem 0 1rem;

}



.project-layer a {

  display: inline-flex;

  justify-content: center;

  align-items: center;

  width: 5rem;

  height: 5rem;

  background-color: #fff;

  border-radius: 50%;

}



.project-layer a i {

  font-size: 2rem;

  color: #323846;

}



/* Error Message */

.error {

  color: #9d3025;

  font-size: 16px;

  display: none;

}



/* About Section */

.about {

  text-align: justify;

  gap: 3rem;

  background-color: #1f242d;

}



.about-content {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 100px;

}



.heading {

  text-align: center;

  font-size: 4.5rem;

}



.about-content h2 {

  line-height: 1.2;

  text-align: left;

}



.about-content h3 {

  font-size: 2.6rem;

}



.about-content p {

  font-size: 1.6rem;

  margin-top: 1rem;

}



.contact-email,

.contact-number {

  font-size: 2rem;

  margin: 2rem 0;

}



.contact-number a {

  color: inherit;

  text-decoration: none;

}



.contact-span {

  font-weight: 600;

  color: #00d5ff;

}



/* Button Styles */

.btn {

  display: inline-block;

  padding: 1rem 2rem;

  background-color: #00d5ff;

  border-radius: 4rem;

  

  font-size: 1.6rem;

  color: #323846;

  font-weight: 600;

  transition: .4s ease-in-out;

}



.btn:active {

  transform: scale(0.9);

}



.btn:hover {

  box-shadow: none;

}



.btn i {

  margin-right: 0.5rem;

}



/* Footer */

.footer {

  display: flex;

  justify-content: center; /* توسيط أفقي */

  align-items: center;   /* توسيط عمودي */

  height: 50px;

  background-color: #323846;

}



.footer-text {

  color: #fff; /* مثال لتلوين النص */

}







/* Scrollbar Styles */

::-webkit-scrollbar {

  width: 5px;

}



::-webkit-scrollbar-track {

  background-color: rgba(0, 0, 0, 0.1);

  border-radius: 8px;

}



::-webkit-scrollbar-thumb {

  background: #00d5ff;

  border-radius: 10px;

}



::-webkit-scrollbar-thumb:hover {

  background: #007c6c;

}







/* Responsive Design */

@media (max-width: 768px) {

  html {

    font-size: 55%;

  }



  .header {

    padding: 1.5rem 3%;

  }

  

  section {

    padding: 10rem 4% 2rem;

  }

  

/* للجوال (شاشات أقل من 768px مثلاً) */



@media (max-width: 768px) {

  .project-box {

    width: calc(50% - 1rem); /* عمودين */

    height: 180px; /* تصغير الارتفاع شوي إذا تحب */

  }



  .project-container {

    flex-wrap: wrap;     /* مهم: يخليهم صفوف */

    justify-content: center; /* توسيط */

    flex-direction: row;   /* خليه صفوف مش عمود */

    gap: 1rem;

  }

  #menu-icon {

    display: block;

  }

  

  .navbar {

    position: absolute;

    top: 100%;

    left: 0;

    transform: translateX(200%);

    width: 100%;

    z-index: -1;

    padding: 1rem 3%;

    background: #1f242d;

    border-top: .1rem solid rgba(0, 0, 0, .2);

    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);

    text-align: left;

  }

  

  .navbar.current {

    transform: translateX(0);

  }

  

  .navbar a {

    display: block;

    font-size: 2rem;

    margin: 2rem 0;

  }

  

  .home {

    flex-direction: column;

  }

  

  .home-content h3 {

    font-size: 2.4rem;

  }



  .home-content h2 {

    font-size: 5rem;

  }

  

  .home-img {

    display: flex;

    justify-content: center;

    width: 100%;

    margin-top: 40px;

  }

  

  .home-img img {

    width: 55%;

    height: auto;

    margin-left: 0;

    transition: transform 0.1s ease-out;

  }

  

  .about-content {

    margin-top: 20px;

    flex-direction: column; 

    gap: 10px;

  }

  

  dotlottie-player {

    width: 350px !important;

    height: 350px !important;

    

  }

  

  .contact-number {

    text-decoration: none;

    color: #fff;

  }





  



}



@media (max-width: 400px) {

  html {

    min-height: auto;

    font-size: 50%;

    

  }

}

}

.footer-heading {

  font-size: 13px;

  margin: 0;

  color: #fff;

   direction: ltr;

  text-transform: none;

}



.footer-heading a {

  color: #00d5ff;

  text-decoration: none;

  transition: color 0.3s ease;

}



 .icon-container {

   display: flex;

   justify-content: center; /* يضمن توسيط المحتوى داخل الحاوية */

   align-items: center;

   gap: 15px;

   background-color: #1f242d;

   padding: 18px 10px;

   border-radius: 16px;

   

   direction: ltr; /* مهم لتفادي التحيز لليسار في flex عند استخدام RTL */

   margin: 20PX;

  

  }



  .icon-container a img {

   width: 50px;

   height: 50px;

   transition: transform 0.2s;

  }



  .icon-container a img:hover {

   transform: scale(1.1);

  }

 

   .custom-text {

  

   text-align: center;

  }



.modal {
  display: none; /* مخفية في البداية */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  z-index: 999;
}

.modal-content {
  background-color: #161b23;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* هذا ما يجعلها في المنتصف */
}

.button-list button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 6px;

  /* اللون الأساسي */
  background-color: #1e2a38; /* أزرق داكن جداً */
  color: #ffffff;
  transition: background 0.3s ease, transform 0.2s ease;
}

.button-list button:hover {
  /* تدرج بسيط عند المرور */
  background: linear-gradient(135deg, #1e2a38, #2c3e50);
  transform: translateY(-2px); /* حركة بسيطة لإحساس التفاعل */
}

.button-list .icon {
  width: 20px;
  height: 20px;
  color: #a0c4ff; /* أيقونات بلون أزرق فاتح متناسق */
}


/* لتوسيط العنصر في الصفحة */
.scroll-down-container {
  position: absolute;
  left: 50%;
  bottom: 30px; /* يمكنك تعديل المسافة من الأسفل */
  transform: translateX(-50%);
  text-align: center;
  color: #333; /* لون النص */
  cursor: pointer;
  transition: opacity 0.5s ease; /* تأثير التلاشي عند الإخفاء */
  z-index: 1000;
}

/* تصميم النص */
.scroll-down-container span {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-family: sans-serif; /* نوع الخط */
}

/* تصميم السهم */
.arrow {
  width: 15px;
  height: 15px;
  border: 2px solid #afafaf; /* لون وسمك السهم */
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  margin: 0 auto;
}

/* إضافة الحركة للسهم (صعود وهبوط) */
.arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  40% {
    transform: translateY(-15px) rotate(-45deg);
  }
  60% {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* تأثير وميض مؤشر الكتابة */
.cursor {
    display: inline-block;
    color: #333; /* يمكنك تغيير لون المؤشر ليناسب تصميم موقعك */
    animation: blink 0.7s infinite;
    font-weight: bold;
    margin-right: 2px; /* مسافة بسيطة لأن الاتجاه من اليمين لليسار */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#eid-notif {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    z-index: 99999;
    background: rgba(25, 15, 45, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 210, 60, 0.35);
    border-radius: 20px;
    padding: 14px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    box-shadow:
      0 0 0 1px rgba(255,200,50,0.15),
      0 8px 32px rgba(0,0,0,0.45),
      0 0 40px rgba(255,170,0,0.12);
    min-width: 220px;
    max-width: 90vw;
    cursor: pointer;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity   0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  #eid-notif.show {
    transform: translateX(-50%) translateY(0);
  }

  #eid-notif.hide {
    transform: translateX(-50%) translateY(-120px);
    opacity: 0;
  }

  .eid-n-icon {
    font-size: 26px;
    animation: eidRock 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px #ffd700);
  }
  @keyframes eidRock {
    0%,100% { transform: rotate(-10deg); }
    50%      { transform: rotate(10deg); }
  }

  .eid-n-label {
    font-size: 11px;
    color: rgba(255,200,80,0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .eid-n-title {
    font-family: 'Amiri', serif;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(90deg, #ffe566, #ffd700, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: eidGlow 2s ease-in-out infinite;
  }
  @keyframes eidGlow {
    0%,100% { filter: drop-shadow(0 0 4px rgba(255,215,0,0.4)); }
    50%      { filter: drop-shadow(0 0 12px rgba(255,215,0,0.9)); }
  }

  .eid-n-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
  }
  .eid-n-dots span {
    width: 5px; height: 5px;
    border-radius: 50%;
    animation: eidDotPop 1.4s ease-in-out infinite;
  }
  .eid-n-dots span:nth-child(1){ background:#ffd700; animation-delay:0s; }
  .eid-n-dots span:nth-child(2){ background:#c44dff; animation-delay:.2s; }
  .eid-n-dots span:nth-child(3){ background:#4dd8ff; animation-delay:.4s; }
  @keyframes eidDotPop {
    0%,100%{ transform:scale(1); opacity:.5; }
    50%    { transform:scale(1.6); opacity:1; }
  }