*{
    margin: 0;
    padding: 0;
}
body{
    background-color: rgb(241 237 237);
    color:  #ffffff;
    font-weight: bold;
}
#background {
    position: fixed;             /* يخلي الخلفية ثابتة في مكانها */
    top: 0;
    left: 0;
    width: 100vw;
    margin: 0 auto;
    height: 100vh;
    background-image: url("1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: -1;                 /* يخليها تحت كل العناصر */
}
#content {
    width: 80%;
    max-width: 1000px;   /* الحد الأقصى */
    margin: 70px auto;
    text-align: center;
}

#content img {
    width: 25%;          /* بدل 15% على الموبايل يصغر */
    max-width: 150px;    /* لا يزيد عن 150px */
    height: auto;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

#content::before {
    content: "";
    position: absolute;
    bottom: 365px;
    left: 49%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 16px solid azure;
    animation: float 3s ease-in-out infinite;
}

#paragraph p {
    width: 90%;          /* نسبة مناسبة لكل الشاشات */
    font-size: 3vw;      /* scalable حسب الشاشة */
    font-size: 40px;
    margin: 52px auto;
}
#expert {
    width: 90%;
    font-size: 4vw;      /* scalable */
    font-size: 23px;
    white-space: normal; /* يسمح بنزول النص لسطر جديد على الموبايل */
}

@keyframes typing {
    from { width: 0; }
    to { width: 80%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: rgb(234, 218, 218); }
}


#divbutton {
    flex-direction: row;
    flex-wrap: wrap;      /* ينزل الزر لو الشاشة صغيرة */
    justify-content: center;
    gap: 20px;            /* أقل مسافة للأجهزة الصغيرة */
}
#divbutton button {
    font-size: 16px;      /* أصغر على الموبايل */
    padding: 10px 16px;
}
/* زر الخدمات */
#divbutton .services {
    background: linear-gradient(135deg, #4CAF50, #2E7D32); /* أخضر أنيق */
    color: white;
}

/* زر واتساب */
#divbutton .whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E); /* ألوان واتساب */
    color: white;
}

/* أيقونة واتساب */
#divbutton .whatsapp img {
    width: 19px;
    height: 22px;
}

/* تأثير عند المرور */
#divbutton button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}










/* الناف بار */
#navbar {
    position: fixed;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5); /* أسود شفاف بنسبة 50% */
    padding: 10px;
    border-radius: 8px;
}


/* شكل الخطوط */
#navbar span {
    width: 30px;
    height: 4px;
    background: rgb(255, 255, 255);
    border-radius: 2px;
    transition: 0.4s;
}

/* التحويل لحرف X */
#navbar.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#navbar.active span:nth-child(2) {
    opacity: 0; /* يخفي الخط الأوسط */
}

#navbar.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* الروابط مخفية في البداية */
#navbar small {
    font-size: 21px;
    margin: 15px;
    display: none; /* نخفيهم */
    color: rgb(238, 229, 229);  /* لون النص */
}

/* لما الناف بار يبقى Active الروابط تظهر */
#navbar.active small {
    display: block;
}
/* تأثير الهوفر */
 #navbar small:hover {


     color: #ffffff; 
     
      transform: scale(1.1); 

      
       text-decoration: underline; 
      }
/* الخلفية */
#about {
    display: none;                /* مخفي في البداية */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* يخليه في النص */
    width: 73%;                   /* عرض مناسب */
    max-width: 600px;
    background: rgba(0,0,0,0.85); /* خلفية غامقة */
    color: white;
    padding: 30px;
    border-radius: 12px;
    font-size: 22px;
    text-align: center;
    line-height: 2;
    z-index: 1001;                /* فوق كل العناصر */
}



#overlay {
    display: none;                /* مخفي في البداية */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);   /* يعمل Blur قوي للخلفية */
    background: rgba(0,0,0,0.4);  /* غامق شفاف */
    z-index: 1000;                /* تحت نافذة #about */
}







#about h2 {
    margin-bottom: 15px;
    color: #FFD700; /* لون ذهبي للعنوان */
}

#about button.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E); /* ألوان واتساب */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

#about button.whatsapp img {
    width: 22px;
    height: 22px;
}

#about button.whatsapp:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

#about a {
    color: #FFD700;
    font-weight: bold;
    text-decoration: none;
}

#about a:hover {
    text-decoration: underline;
}






a {
  text-decoration: none; /* يشيل الخط اللي تحت */
  color: white;          /* يخلي النص أبيض أو أي لون تختاره */
  /* background: #007bff;  */
  padding: 8px -3px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
}

a:hover {
  text-decoration: underline;  /* لون مختلف عند المرور بالماوس */
}



































/* ===== المعرض ===== */
#allbicture {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}


h1{
    text-align: center;
margin: 30px auto;
color: #000000;
}

#allbicture img {
  width: 250px;       /* عرض افتراضي للشاشات الكبيرة */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#allbicture img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===== Lightbox ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  width: 50%;
  height: auto;
  border-radius: 10px;
}

/* ===== الفلاتر والقائمة ===== */

#ithem div{
    color: #000000;
}
#filter {
  color: black;
  margin: -2px;
  padding: 6px;
  float: left;
  font-size: 25px;   /* حجم الأيقونة */
  cursor: pointer;
  transition: 0.3s;
}

#filter:hover {
  transform: scale(1.2);
}

#ithem {
  position: absolute;
  top: 59px;
  left: 20px;
  text-align: center;
  z-index: 9999;
  margin: 10px;
  padding: 8px;
  background-color: #f0e8e8;
  font-size: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#ithem #categoryby {
  background: linear-gradient(90deg, #99a1a8, #99a1a8);
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  border-radius: 6px;
  margin: 0;
  padding: 0;
}

#ithem div {
  margin: 12px;
  padding: 8px;
  border-radius: 6px;
  transition: 0.3s;
}

#ithem div:hover {
  background-color: #cab7b7;
  transform: scale(1.05);
  cursor: pointer;
}

/* ===== Media Queries ===== */

/* التابلت */
@media (max-width: 992px) {
  #allbicture img {
    width: 45%;
    height: auto;
  }
  #ithem {
    font-size: 14px;
    width: 80%;
    left: 10px;
  }
}

/* الموبايل */
@media (max-width: 600px) {
  #allbicture {
    flex-direction: column;
    align-items: center;
  }

  #allbicture img {
    width: 90%;
    max-width: 300px;
    height: auto;
  }

  #ithem {
    position: static; /* تنزل أسفل الصور */
    width: 95%;
    margin: 10px auto;
    font-size: 13px;
  }

  #filter {
    font-size: 20px;
  }
}









































.services {
  display: inline-block;
  padding: 8px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.services:hover {
  background: #0056b3;
  user-select: none;
}
.services a {
  text-decoration: none;   /* يشيل الخط */
  color: inherit;          /* يخلي اللون زي الزر */
}

.services a:hover {
  text-decoration: none;   /* يتأكد إنه مش بيرجع عند الهوفر */
}





@media (max-width: 600px) {
    #divbutton {
        flex-direction: row; /* بدل column */
        flex-wrap: wrap;     /* لو الشاشة ضيقة ينزل الزر للتاني */
        justify-content: center;
        gap: 10px;
    }
    #divbutton button {
        font-size: 16px;
        padding: 10px 16px;
    }
}











/* الهواتف الصغيرة */
@media (max-width: 600px) {

    #content img {
        width: 50%;
        max-width: 120px;
    }

    #paragraph p {
        font-size: 5vw;
    }

    #expert {
        font-size: 4vw;
    }

    #divbutton {
        flex-direction: column;
        gap: 15px;
    }

    #allbicture img {
        width: 100%;
        max-width: 200px;
    }

    #about {
        width: 90%;
        font-size: 18px;
        padding: 20px;
    }
}

/* التابلت */
@media (min-width: 601px) and (max-width: 1024px) {

    #content img {
        width: 35%;
        max-width: 140px;
    }

    #paragraph p {
        font-size: 4vw;
    }

    #expert {
        font-size: 3.5vw;
    }

    #divbutton {
        flex-direction: row;
        gap: 25px;
    }

    #allbicture img {
        width: 45%;
        max-width: 220px;
    }

    #about {
        width: 80%;
        font-size: 20px;
    }
}



/* المحتوى الرئيسي */
#content {
    width: 80%;
    max-width: 1000px;
    margin: 70px auto;
    text-align: center;
}

#content img {
    width: 25%;          /* شاشة كبيرة */
    max-width: 150px;
    height: auto;
    border-radius: 100%;
    animation: float 3s ease-in-out infinite;
}

/* الحركة للصور */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* الفقرة */
#paragraph p {
    width: 90%;
    max-width: 800px;
    margin: 52px auto;
    text-align: center;
    font-size: 3vw;   /* scalable حسب الشاشة */
    font-size: 40px;
}
#expert {
    width: 100%;
    max-width: 800px;        /* أقصى عرض للسطح المكتب */
    font-size: 23px;         /* ثابت تقريبا */
    white-space: nowrap;      /* يخلي النص في صف واحد دايمًا */
    overflow: hidden;         /* يخفي النص اللي لسه ما اتكتبش */
    text-align: center;
    border-right: 1px solid; /* مؤشر الكتابة */
    direction: rtl;
    animation: typing 4s steps(20), blink 0.75s step-end 10 forwards;
}

/* Media Queries لتصغير النص على الموبايل */
@media (max-width: 600px) {
    #expert {
        font-size: 4vw;       /* scalable */
        white-space: nowrap;  /* ثابت */
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    #expert {
        font-size: 3.5vw;
    }
}

/* الأزرار */
#divbutton {
    display: flex;
    flex-wrap: wrap;       /* تنزل لو الشاشة صغيرة */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

#divbutton button {
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.3s;
}

/* زر الخدمات */
#divbutton .services {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

/* زر واتساب */
#divbutton .whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

/* أيقونة واتساب */
#divbutton .whatsapp img {
    width: 19px;
    height: 22px;
}

/* تأثير عند المرور */
#divbutton button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ===== Media Queries للأجهزة الصغيرة والمتوسطة ===== */

/* الهواتف */
@media (max-width: 600px) {
    #content img {
        width: 50%;
        max-width: 120px;
    }

    #paragraph p {
        font-size: 5vw;
    }

    #expert {
        font-size: 4vw;
    }

    #divbutton {
        flex-direction: column;
        gap: 15px;
    }

    #divbutton button {
        font-size: 16px;
        padding: 10px 16px;
    }
}

/* التابلت */
@media (min-width: 601px) and (max-width: 1024px) {
    #content img {
        width: 35%;
        max-width: 140px;
    }

    #paragraph p {
        font-size: 4vw;
    }

    #expert {
        font-size: 3.5vw;
    }

    #divbutton button {
        font-size: 17px;
        padding: 11px 18px;
    }
}


#content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 70px auto;
    text-align: center;
}


#content::before {
    content: "";
    position: absolute;
    bottom: 45%;            /* بدل px ثابت */
    left: 49%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 16px solid azure;
    animation: float 3s ease-in-out infinite;
    z-index: 2;             /* فوق الصور */
}

@media (max-width: 600px) {
    #content::before {
        bottom: 35%;        /* أقرب للصور */
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 12px solid azure;
    }
}

@media (max-width: 600px) {
    #divbutton {
        flex-direction: row; /* بدل column */
        flex-wrap: wrap;     /* لو الشاشة ضيقة ينزل الزر للتاني */
        justify-content: center;
        gap: 10px;
    }
    #divbutton button {
        font-size: 16px;
        padding: 10px 16px;
    }
}



/* ===== typing effect responsive ===== */

/* الموبايل */
@media (max-width: 600px) {
    #expert {
        width: 100%;           /* يأخذ كل عرض المحتوى */
        font-size: 4vw;
        white-space: normal;   /* يسمح للنص بالنزول لأسطر متعددة */
        overflow: hidden;      /* يخفي النص اللي لم يظهر بعد */
        border-right: 1px solid; /* مؤشر الكتابة */
        direction: rtl;
        text-align: center;
        animation: typingMobile 6s steps(50, end), blink 0.75s step-end infinite;
    }
}

/* التابلت */
@media (min-width: 601px) and (max-width: 1024px) {
    #expert {
        width: 100%;
        font-size: 3.5vw;
        white-space: nowrap;   /* يبقى في صف واحد */
        overflow: hidden;
        border-right: 1px solid;
        direction: rtl;
        text-align: center;
        animation: typing 4s steps(20, end), blink 0.75s step-end 10 forwards;
    }
}

/* سطح المكتب */
#expert {
    width: 100%;
    max-width: 800px;
    font-size: 23px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 1px solid;
    direction: rtl;
    text-align: center;
    animation: typing 4s steps(20, end), blink 0.75s step-end 10 forwards;
}

/* ===== Keyframes ===== */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typingMobile {
    from { width: 0; }
    to { width: 100%; }  /* على الموبايل يكتب النص كله على عدة أسطر */
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: rgb(234, 218, 218); }
}
