@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "poppins", serif;
}
body {
    background-color: #222831;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 10px;
    padding: 0 0.5rem;
    background-color: #393e46;
}

.baar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.baar ul li {
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.baar a {
    text-decoration: none;
    color: white;
}

.baar a:hover {
    color: #00adb5;
}

hr {
    opacity: 50%;
}

.real {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5rem auto;
    max-width: 1200px;
    border-radius: 10px;
    padding: 0 1rem;
    background-color: #393e46;
}

.real arrow {
    position: absolute;
    transform: translateX(-5.5rem) translateY(1.5rem);
} 

.text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.name {
    font-size: 2rem;
    color: white;
}

.title {
    font-size:4rem;
    color: rgb(20, 146, 119);}

.butun {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.hireMe {
    padding: 1rem 2rem;
    border-radius: 24px;
    background-color: #00adb5;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}
.hireMe:hover {
    background-color: #00adb5;
    color: white;
    transform: scale(1.05);
}

.cv {
    
    padding: 1rem 2rem;
    border-radius: 24px;
    display: flex;
    gap: 1rem;
    background-color: #00adb5;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.cv:hover {
    background-color: #00adb5;
    color: white;
    transform: scale(1.05);
}


.about_me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5rem auto;
    max-width: 1200px;
    border-radius: 10px;
    padding: 0 1rem;
    background-color: #393e46;
    gap: 10rem;
}

.textContainer {
    display: flex;
    flex-direction: column;
}

.textTitle {
    display: flex;
    align-items: center;
    font-size: 2rem;
    gap: 0.5rem;
}
.aboutname {
    font-size: 4rem;
    color: white;
}
.abouttitle {
    font-size: 4rem;
    color: rgb(20, 146, 119);
}
.abouttext {
    display: flex;
    flex-direction: column;
    text-align: justify;
    font-size: 1.5rem;
    color: white;
    margin-top: 2rem;
    opacity: 70%;
}

.my_works {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5rem auto;
    max-width:1200px;
    border-radius: 10px;
    padding: 10 10rem;
    background-color: #393e46;
}

.worksContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: left;
    margin: 5rem auto;
    max-width: 1200px;

}

.projectTitle {
    display: flex;
    align-items: center;
    justify-content: left;
    font-size: 2rem;
    gap: 0.5rem;
}
.my_works ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.my_works li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0 1rem;
    padding: 1rem;
    border-radius: 10px;
    background-color: #00adb5;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}


.my_works li img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.my_works li img:hover {
    transform: scale(1.05);
}


.contact {
    display: flex;

    background-color: #393e46;
}
.contactContainer {
    display: flex;
    flex-direction: column; /* اجعل العناصر تظهر في أعمدة */
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 10px;
    padding: 0 1rem;
    background-color: #393e46;
    color: white;
}
.contacttitle {
    display: flex; /* اجعل العناصر تظهر في صف واحد */
    align-items: center; /* محاذاة العناصر عموديًا */
    justify-content: center; /* محاذاة العناصر أفقيًا */
    gap: 5px; /* مسافة صغيرة بين الكلمات */
    margin-bottom: 10px;
    font-size: 2rem;
}
.contact {
    display: flex;
    flex-direction: column; /* اجعل العناصر تظهر في أعمدة */
    align-items: center;
    justify-content: center;
    gap: 1rem; /* مسافة بين العناصر */
    margin-right: 0; /* أزل المسافة الجانبية */
}
.contact h3,
.contact a {
    color: #eeeeee;
    text-decoration: none;
  }
.emailAndPhone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  
  .socialMedia {
    display: flex;
    flex-direction: row; /* اجعل الأيقونات تظهر في صف واحد */
    align-items: center;
    justify-content: center;
    gap: 3rem;
}
.socialMedia a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background-color: rgba(57, 62, 70, 0.5);
    backdrop-filter: blur(4px);
    padding: 1rem;
  }
.socialMedia img {
    width: 24px;
    height: 24px;
  }

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 10px;
    padding: 0 1rem;
    background-color: #393e46;
}

.buttonStyle {
    padding: 1rem 2rem;
    border-radius: 24px;

    color: white;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
}


@media (max-width: 1023px) {
    header {
        margin-left: 1rem;
        margin-right: 1rem;
      }
      .real {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
      }
      .heroImg {
        width: 400px;
      }
      .name,
      .title {
        font-size: 2rem;
      }
      .arrow {
        display: none;
      }
      .about_me {
        flex-direction: column-reverse;
        align-items: center;
        gap: 2rem;
      }
      .textContainer {
        align-items: center;
        margin: 0rem 5rem;
        gap: 1rem;
      }
      .aboutname,
      .abouttitle {
        font-size: 2rem;
      }
      .lightbulb {
        width: 60px;
      }
      .aboutMeimg {
        width: 400px;
      }
      .my_works {
        padding: 0;
      }
      .worksContainer {
        padding: 5rem 0rem;
        gap: 3rem;
      }
      .projectTitle {
        margin-left: 1rem;
      }
      .works ul {
        flex-direction: column;
        gap: 1rem;
      }
      .contactContainer {
        margin: 10rem 5rem;
        gap: 2rem;
      }
      .contact {
        flex-direction: column;
        gap: 1rem;
        margin-right: 0;
      }
    
        .contacttitle {
            font-size: 2rem;
        }
}