* {
    margin: 0; 
    padding: 0 ;
    font-family: 'Segoe UI' ;


}


.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
  }
  

nav{
     width: 100%;
    z-index: 9999;
    position: fixed;
    height: 55px;
    background:#fff;
    /* border: 2px 2px 2px black; */
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.405);

}
li:hover{
    background: rgb(212, 210, 210);
}
nav .logo:hover{
    background: rgb(212, 210, 210);


}

nav .logo{
    float:left;
    margin: 7px 20px;
    padding-left: 15px;
    letter-spacing: 4px;
    padding: 9px;

}
nav ul{
    float:right;
}
span{
    padding: 0 5px;
    font-weight:700;
}
nav ul li{
    list-style: none;
    display: inline-block;
    justify-content: space-between;
    margin:5px 15px ;
    letter-spacing: 4px;
    padding: 9px;
    font-weight:450;

    

}

header{
    width: 100%;
    display: flex;
    background-image: url(./images/architect.jpg);
    background-size: cover;
    height: 700px;
    position: relative;
}

header .p9{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    font-size: 40px;
    letter-spacing: 6px;
    color:white;
    font-weight: 500;
    font-weight: bold;
}
header p span{
    padding: 5px;
    background: rgba(0, 0, 0, 0.671);
}


.projects , .about , .cards , .contact {
    margin: 30px 30px;
}
.contact h2 ,.projects h2 ,.about h2 {
    font-size: 40px;
    font-weight:400;
}
.contact p{
    font-size: 20px;
    margin: 20px 0px;
}

hr{
    margin: 40px 0px;
}


hr{
    opacity: 20%;
    display: block;
    width: 100%;}
 
.projects {
    display: flex;
    flex-wrap: wrap; /* يسمح بلف العناصر إذا لم تكن المساحة كافية */
    gap: 20px; /* مسافة بين العناصر */
    justify-content: space-between; /* توزيع العناصر بالتساوي */
}

.project-item {
    flex: 1 1 calc(25% - 20px); /* عرض كل عنصر 25% مع مراعاة المسافة */
    box-sizing: border-box; /* لضمان حساب الحواف والمسافات بشكل صحيح */
    text-align: center; /* لتوسيط النص والصورة */
    position: relative;

}

.project-item img {
    width: 100%; /* اجعل الصور تأخذ عرض العنصر */
    height: auto; /* للحفاظ على نسبة العرض إلى الارتفاع */
}

.project-item .title {
    position: absolute;
    display: inline-block;
    background: rgba(0, 0, 0, 0.866);
    color: #fff;
    font-size: 18px;
    padding: 15px;
    
}
.cards{
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* السماح بلف العناصر إذا لم تكن المساحة كافية */
    margin: 30px 0; /* مسافة أعلى وأسفل القسم */
    display: flex;
    gap: 20px;

}

.cards .card {
    flex: 1 1 calc(25% - 90px); عرض كل عنصر 25% مع مراعاة المسافة
    box-sizing: border-box; /* لضمان حساب الحواف والمسافات بشكل صحيح */
    text-align: center; /* توسيط النص داخل العنصر */
    background: #f9f9f9; /* لون خلفية العنصر (اختياري) */
    padding: 15px; /* مسافة داخلية */
    border-radius: 8px; /* حواف مستديرة (اختياري) */
}

.cards img{
    width: 100%;
    height: auto;
}





h3{
    font-weight: 600;

}
h6{
    font-style: normal;
    font-weight: 100;
    font-size: 16px;
    margin: 15px 0px;
}
.cards p{
padding-bottom:24px ;
}
form{
    height: 300px;
    display:grid;
    gap: 20px;
    box-sizing: border-box;
    margin-bottom: 150px;
}

/* عشان تكبر الكلمة الشفافة اللي جوا  */
::placeholder{ 
    font-size: 18px;

}
.my-input{
    padding: 20px;
}

form button[type="submit"] {
    margin-right: auto; /* يدفع الزر لليسار */
    color:white;
    background: black;
    border: none;
    font-size: 20px;
    padding: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
}
.btn{
    width: 100%;
    background: #f4f3f3;
    padding: 10px 0px;
    margin: 0;
    color:black;
    font-size: 18Px;
    border:5px;
    display: block; 
    margin: 0 auto; 


}
.btn:hover{
    background:#d5d3d3 ;
    cursor: pointer;
}
.map-img{
    box-sizing: border-box;
    width: 100%;
}


footer {
    text-align: center;
    padding: 30px;
    background-color: black;
    color: white;
    font-size: 20px;
  }
  footer a{
    color: #fff;
  }


  