
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    overflow-x: hidden;
}
.background{
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(./img/meee-cover.jpeg);
    width: 100%;
    height: 100vh;
     background-size: cover;          
    background-position: center;   
    background-repeat: no-repeat; 
    position: relative;
}
.nav{
    background-color: rgba(0, 0, 0, 0.322);
    width: 100%;
    height: 80px;
    position: absolute;
    top: 0;
    left: 0;
     display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
}


.nav h3{
    color: rgb(249, 0, 50);
   font-family: "Lato", sans-serif;
     font-weight: 700;
     font-size: 25px;
     position: relative;
     top: 5px;
   

}
.nav ul{
    color: white;
    display: flex;
   
  
}

.nav-ul ul li{
padding: 30px;
list-style: none;
position: relative;


}
.nav-ul ul li:hover{
    color: rgb(246, 23, 68);
}
.me{
    color: rgb(255, 255, 255);
    position: relative;
    top: 50%;
    left: 50%;

    text-align: center;
     transform: translate(-50%, -50%);
}
.me h4{
 font-family: "Lato", sans-serif;
 font-size: 24px;
 font-weight: 600;
 padding-bottom: 10px;
 
}
.me h1{
    color: rgb(255, 48, 91);
     font-family: "Lato", sans-serif;
     font-weight: 800;
     font-size: 60px;
}
.me h6{
     font-family: "Lato", sans-serif;
     font-weight: 300;
     font-size: 20px;
}
.sec2{
    display: flex;
    align-items: flex-start;
    gap: 50px;
        margin: 80px auto; 
    margin: 40px;
  
}

.my-photo {
    position: relative;
    width: 400px;
    height: 500px;
    overflow: hidden;
}
.my-photo img{
width: 400px;
height: 500px;
object-fit: cover;
display: block;
transition: all 1s;
}
.layer{
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
     display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition:  1s;
}
.my-photo:hover .layer{
    bottom: 0;
}


.my-text {
    flex: 1;
}
.layer i {
    color: white;
    font-size: 22px;
    
    transition: 0.3s;
    z-index: 9999;
}

.layer i:hover {
    color: rgb(246, 23, 68);
}


.my-photo img .layer{

    background-color: rgba(129, 85, 85, 0.461);


}



.my-text {
    flex: 1;
}
.my-text h3{
    margin-top: 15px;
    color: rgb(246, 23, 68) ;
    font-size: 30px;
     font-family: "Lato", sans-serif;
     font-weight: 600;
     line-height: 25px;
}

.my-text p{
     margin-top: 20px;
     
}
.my-text h6{
    margin-top: 20px;
}
 /* خد مني وقت لحد ما وصلت ليها و دورت كتير عشان اخلي الباسفه بين العمودين قريبين من*/

.info-grid {
      
    margin-top: 20px;
  gap: 10px 40px;                              
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
        column-gap: 0px;  
    row-gap: 10px;
    width: fit-content;                     

}

.info-item {
    font-size: 16px;

}

.info-item strong {
    font-weight: bold;
    width: 90px;
}


.btn1{
    background-color: rgb(148, 74, 74);
    color: white;
    padding: 20px;
    margin-top: 20px;
}
.btn1:hover{
    background-color: #ff0000;
}

.btn2{
    background-color: rgb(148, 74, 74);
    color: white;
    padding: 20px;
    margin-left: 30px;
    margin-top: 20px;
}
.btn2:hover{
    background-color: #ff0000;
}



.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sec3{
    background-color: rgba(248, 209, 209, 0.508);
    width: 100%;
    height: 60vh;
     padding: 80px 0;
    text-align: center;
}
.contact h2{
     font-size: 40px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
}

.line{
    width: 80px;
    height: 2px;
    background-color: rgb(246, 23, 68);
    margin: 15px auto 40px;
    position: relative;
}


line::before,
.line::after{
    content: "";
    position: absolute;
    width: 120px;
    height: 1px;
    background-color: rgb(246, 23, 68);
    left: 50%;
    transform: translateX(-50%);
}

.line::before{
    top: -8px;
}

.line::after{
    bottom: -8px;              /*اتلغبط فيهم اوي شات ساعدني */
}







.services-container{
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 10%;
}
.service-box{
   
    padding: 40px 20px;
    transition: 0.5s;
    flex: 1;
}

.service-box i{
    font-size: 25px;
    color: rgb(240, 0, 48);
    margin-bottom: 20px;
}
.service-box p{
    color: #555;
  
}


.service-box h3{
    font-family: "Lato", sans-serif;
    margin-bottom: 10px;
}

.service-box:hover{
    background-color: white;

}






.sec4{
    padding: 80px 0;
    text-align: center;
    background-color: #f1f1f1;
}

.portfolio-header h2{
    font-size: 40px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
}

.portfolio-menu{
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.portfolio-menu p{
    font-weight: 500;
    cursor: pointer;
}

.portfolio-menu .active{
    color: rgb(246, 23, 68);
}

.portfolio-container{
    max-width: 900px;   /* أقل من 1100px لأنه صورتين فقط */
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    justify-items: center;
}

.portfolio-box{
    position: relative;
    background-color: #eee;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.portfolio-box img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-box:hover img{
    transform: scale(1.05);
}

.portfolio-layer{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: 0.5s;
}

.portfolio-box:hover .portfolio-layer{
    opacity: 1;
}




.sec5-container{
    background-color: rgba(248, 209, 209, 0.508);

     width: 100%;
    height: 40vh;

    display: flex;
       align-items: center;
       justify-content: center;
   
}
 .items{
 
            display: flex;
   gap: 150px;             
    text-align: center;
    color: #d12d2d;
    font-size: 20px;
 }









 .sec7-container{

 width: 100%;
    height: 100vh;
      padding-top: 60px;

}
.Blog-header{
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
}
.item-blogs span{
color: #555;
padding: 5px;

}
 
.Blogs{
    display: flex;
    justify-content: center;
       align-items: flex-start;
  height: auto;
  gap: 40px;
  padding: 0 20px;
    background-color: rgb(255, 255, 255);
     width: 100%;
}
   
.item-blogs{
     flex: 1 1 30%;
        min-width: 280px; /* أقل عرض للكارت */
    max-width: 400px;
 
    text-align: start;
    background-color: #eee;
    padding: 20px;
    transition: 0.4;
}
.item-blogs:hover{
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.item-blogs img{
    width: 100%;
    height: 250px;
     object-fit: cover;

}


.item-blogs button{
    background-color: #55555500;
    border: 0;
    text-align: start;
    padding-left: 10px;
}
.item-blogs h4{
     font-family: "Lato", sans-serif;
     padding: 5px;
}

.item-blogs p{
   color: rgba(188, 170, 170, 0.671);
   font-size: small;
   padding: 10px;
}


textarea {
  width: 80%;
  height: 120px;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}


button {
  width: 80%;
  padding: 12px;
  background: #eb506f;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #ff0033;
}


.contact-section{
    padding: 80px 0;
    text-align: center;
    background: #f1f1f1;
}

.contact-header h2{
    font-size: 40px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-header .line{
    width: 80px;
    height: 2px;
    background-color: rgb(246, 23, 68);
    margin: 0 auto 40px;
}

.contact-icons a{
    display: inline-block;
    margin: 0 20px;
    font-size: 40px;
    color: #ff305b;
    transition: 0.3s;
}

.contact-icons a:hover{
    color: #e6003d;
    transform: scale(1.2);
}




.footer{
  background: #333;
  color: white;
  text-align: center;
  padding: 40px 0;
}

.footer-social{
  margin-bottom: 15px;
}

.footer-social i{
  margin: 0 10px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.footer-social i:hover{
  color: #ff305b;
}

.footer span{
  color: #ff305b;
}
.contact-header{
    text-align: center;
}

.project-section{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    margin: 120px 0;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* شكل زخرفي خفيف */
.project-section::before{
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,48,91,0.08);
    border-radius: 50%;
    top: -40px;
    left: -40px;
    z-index: -1;
}

.project-img img{
    width: 600px;   /* كبرنا الصورة */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: 0.4s;
}

.project-img img:hover{
    transform: scale(1.03);
}

.project-text{
    max-width: 500px;
    text-align: left;
}

.project-text h2{
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
}

.project-text h2::after{
    content: "";
    width: 60px;
    height: 3px;
    background: #ff305b;
    display: block;
    margin-top: 10px;
}

.project-text p{
    line-height: 1.9;
    color: #555;
    font-size: 17px;
}


.view-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff305b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
      z-index: 10;
    position: relative;
}

.view-btn:hover {
    background-color: #e6003d;
}
.portfolio-layer {
    z-index: 1; /* أقل من الزر */
}