@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "Playfair Display", serif;

}
html{
    font-size: 62.5%;
}
body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: #fff;
}
header {
   margin-top: 20px;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   position: 1rem 9%;
   padding: 20px 50px;
   background-color: transparent;
   filter: drop-shadow(10px);
   display: flex;
   justify-content: space-between;
   align-items: center;
   z-index: 100;
}
.logo{
    font-size: 3rem;
    color:rgb(142, 29, 125);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    margin-right: 20px;
  
}
.logo:hover{
    transform: scale(1.1);
}
nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 3rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar {
    display: flex;
    gap: 20px;
  }
  
  .navbar a {
    text-decoration: none;
    color: #fdf9fd;
    font-size: 18px;
  }
  
  /* شكل زر الهمبرغر */
  .menu-icon {
    font-size: 30px;
    cursor: pointer;
    display: none; /* نخفيه بالكمبيوتر */
  }
  
nav a:hover,
nav a:active{
    color: blueviolet;
    border-bottom: 3px solid rgb(83, 60, 105);
}

.logo.active{
    color:blueviolet;
    border-bottom: 3px solid #c462b7;
   
}
section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
    padding-bottom: 0.5rem solid #fff;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: 8rem;
    background-color: black;
}


.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: rgb(185, 68, 167);
}
h2 {
    font-size: 4rem;
   
}
.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-content p{
    font-size: 1.8rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #bbb;
    cursor: pointer;
    transition: 0.2rem linear;
    margin: 10% -20%;
}

.home-img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color:transparent;
    border: 0.2rem solid #fff;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem;
    transition: 0.3rem ease;
    color: rgb(207, 206, 207);
    

}
.social-icons a:hover{
    color: black;
    transform: scale(1.3)translateY(-5px);
    background-color:blueviolet;
    box-shadow: 0 0 25px rgb(11, 11, 11);
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color:blueviolet;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid rgb(10, 10, 8);
    transition: 0.3rem ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color:#c462b7;
    color: black;
    box-shadow: 0 0 25px rgb(162, 65, 182);

}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width:280px ;
}
.typing-text span{
    position: relative;

}
.typing-text span::before{
    content: "software Developer ";
    color: #92229f;
    animation: words 20s infinite;
}
.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100%+8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}
@keyframes cursor{
    to{
        border-left: 3px solid rgb(164, 67, 189);
    }
}
@keyframes words{
    0% ,20%{
        content: " Frontend Developer";
    }
    21%,40%{
        content: "passionate Programmer ";
    }
    41%,60%{
        content: "Creative Developer";
    }
    61%,80%{
        content: " UI/UX Enthusiast";
    }
    81%,100%{
        content: "Self-Taught Programmer";
    }

}
@keyframes typing {
    10%,15%,
    30%,35%,
    50%,55%,
    70%,75%,
    90%,95% {
    width: 0;
}
5%,20%,
25%,40%,
45%,60%,
65%,80%,85%{
    width: calc(100% + 8px);}
}
/*services section */
.services {
    background: rgb(15, 8, 13);
}
.services-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    gap: 2.5rem;
}
.service-box{
    background-color: #92229f;
    height: 250px;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease;
}
.service-box:hover{
    background: transparent;
    color: rgb(221, 185, 219);
    transform: scale(1.03);
    border: 1px solid rgb(142, 58, 132);
}
.service-box .service-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    min-height: 200px;
    justify-content: center;
    align-items: center;
    padding: 5rem;

}
.service-info h4 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.service-info p{
    font-size: 2rem;
}
/*skills section */
.skills {
    background: #070606;
}
.skills .container {
    background: rgb(174, 93, 148);
    color: #c462b7;
    border-radius: 1rem;
    padding: 2rem;
    width: 70%;
    margin: auto;
    margin-top: 2rem;
}
.skills .container .row{
    display: flex;
    grid-template-columns: repeat(6,1fr);
    flex-wrap: wrap;
    gap: 1.8rem;
}
 .skills .container .bar{
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 1rem;
    background: #0b0808;
    box-shadow: 0 4px 10px rgb(190, 101, 156);
    transition: 0.3s ease;
    cursor: pointer;
 }
 .skills .container .bar:hover{
    box-shadow: 0 4px 10px #c462b7;
    transform: scale(1.03);

 }
 .skills .container .bar .info{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
 }
 .skills .container .bar .info span{
    font-size: 2rem;
    font-weight: 500;
    margin-left: 0.5rem;
 }
 .skills .container .bar .info .oo{
    width: 100%;
    max-width: 60px; /* أو أي حجم يناسب التصميم */
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px; /* اختياري لإعطاء زوايا ناعمة */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* لمسة ظل حلوة */
 }
 
 

/*eduction section */

.education .timeline {
    position: relative;
    background: #070606; /* خلفية القسم */
}

.education .timeline::after {
    content: ''; /* إنشاء الشحطة */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; /* وضع الشحطة في المنتصف */
    width: 6px; /* عرض الشحطة */
    background: #c462b7; /* لون الشحطة */
    margin-left: -3px; /* لجعل الشحطة في المنتصف تماماً */
    z-index: 0; /* تأكد من أن الشحطة خلف المحتوى */
}


.education .container{
    padding: 10px 40px ;
    position: relative;
    background-color: inherit;
    width: 50%;

}
.education .container::after{
    content: '\f501';
    position: absolute;
    width: 25px;height: 25px;
    line-height: 25px;
    right: -17px;
    background-color: #fff;
    border: 4px solid #c462b7;
    top: 15px;
    border-radius: 50%;
    z-index: 100;
    font-size: 1.89rem;
    text-align: center;
    font-weight: 600;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    
    color:#c462b7;
}
.education .left{
    left: 0;

}
.education .right{
    left: 50%;

}
.education .left::before{
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #c462b7;
    border-width: 10px 0 10px 10px ;
    border-color: transparent transparent transparent rgb(186, 64, 160);
    

}
.education .right::before{
  content: '';
  height: 0;
  position: absolute;
  top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid rgb(3, 16, 5);
    border-width: 10px  10px 10px  0;
    border-color: transparent rgb(186, 64, 160) transparent transparent ;


}
 .education .right::after{
    left: -16px;
    
 }
 .education .content {
    background: #c462b7;
    position: relative;
    border-radius: 6px;
    
 }
.education .content .tag{
    font-size: 1.5rem;
    padding-left: 1.5rem;
    padding-top: 1.5rem;
}
.education .content .decs{
    margin-left: 1.5rem;
    padding-bottom: 1rem;
}
.education .content .tag h2{
    font-size: 2rem;
    font-weight: 600;
    color: #0b0808;
}
.education .content .decs p{
    font-size: 1.3rem;
    font-weight: 500;
    color: #070606;
}

.contact form .btn{
    margin-top: 2rem;
}

 /* Styling for Experience Section */
.experience-section {
    background-color: #0b0303;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 900px;
  }
  
  /* Title Styling */
  .heading {
    text-align: center;
    font-size: 36px;
    color: #ece9e5;
    margin-bottom: 40px;
  }
  
  /* Experience Item Styling */
  .experience-item {
    background-color: #070505;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Hover effect for each experience item */
  .experience-item:hover {
    transform: translateY(-5px);
    background-color: #7d236f;
    color: white;
    box-shadow: 0 8px 16px rgba(236, 234, 234, 0.2);
  }
  
  /* Styling for the heading inside each experience item */
  .experience-item h3 {
    font-size: 24px;
    color:#7d236f;
    margin-bottom: 10px;
  }
  
  /* Styling for the description */
  .experience-item p {
    color: #7d236f;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  .experience-item:hover h3,
.experience-item:hover p {
  color: #e8e7e2; /* Change this to the color you prefer */
}
  
  /* Certificate link styling */
  .certificate-link {
    display: inline-flex;
    align-items: center;
    color:#7d236f;
    text-decoration: none;
    font-size: 14px;
  }
  
  .certificate-link i {
    margin-left: 5px;
    font-size: 18px;
  }
  
  /* Hover effect for certificate link */
  .certificate-link:hover {
    color: #f0edf0;
    text-decoration: underline;
  } 
  #about-me h2 {
    font-size: 3rem;
    color: #9f23ab;
    margin-bottom: 15px;
}

#about-me p {
    font-size: 2.1rem;
    color: #f1ebeb;
    line-height: 1.8;
}

/* Contact Section */
#contact h2 {
    font-size: 3rem;
    color: #7d236f;
    margin-bottom: 15px;
}

#contact p {
    font-size: 2.1rem;
    color: #f8f0f0;
    line-height: 1.8;
}
/*Footer section  */
.footer{
margin: 0;
    position: relative;
    bottom: 0;
    width: 100%;
    
    background-color: #0a090a;
}
.footer .social {
    display: flex;
    justify-content: center; 
    align-items: center;
    flex-wrap: wrap; 
}
.footer .social a {
    font-size: 20px;
    color: #9d5598;
    border: 2px solid rgb(239, 235, 235);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 10px;
    transition: 0.3s ease;

    
    

}
.footer .social a:hover{
    transform: scale(1.2)translateY(-5px);
    background: #cd82cd;
    color: #0e0c0e;
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: #9d5598;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
    
}
.footer ul li a:hover{
border-bottom: 3px solid rgb(231, 146, 224);
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: rgb(172, 68, 158);
}

/* Styling for the Projects Section */
.projects-section {
    background-color: rgb(172, 68, 158);
    padding: 40px 20px;
  }
  
  .projects-title {
    text-align: center;
    color: rgb(172, 68, 158);
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  /* Projects Container */
  .projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  /* Project Card Styling */
  .project-card {
    background: rgb(172, 68, 158);
    padding: 20px;
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(129, 124, 124, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Hover effect on the project cards */
  .project-card:hover {
    transform: translateY(-5px);
   
  }
  
  .project-title {
    color: #0d0c0c;
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .project-description {
    color: #0b0a0a;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .project-tech {
    font-size: 14px;
    color: #120f0f;
    margin-bottom: 15px;
  }
  
  .project-buttons {
    margin-top: 15px;
  }
  
  /* Buttons styling */
  .project-btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  
  .live-btn {
    background-color:  rgb(172, 68, 158);
    color: #050404;
  }
  
  .code-btn {
    background-color: #f8f5f7;
    color: #0a0808;
  }
  
  /* Hover effect on buttons */
  .project-btn:hover {
    background-color: rgb(7, 6, 7);
    color: #fff;
  }
  








@media(max-width:1285px){
 html{
    font-size: 55%;
 }
 .services-container{
    padding-bottom: 7rem;
    grid-template-columns: repeat(2,1fr);
    margin: 0 5rem;
 }

}
@media(max-width:991px){
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .services{
        padding-bottom: 7rem;
    }
    .footer{
        padding:2rem 3% ;
    }
}
@media(max-width:995){
    nav{
        position: absolute;
        display: none;
        right: 0;top: 100%;

        width: 40%;
        border-left: 3px solid rgb(134, 32, 147);
        border-bottom: 3px solid rgb(128, 47, 163);
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: black;
        border-top: 0.1rem solid rgb(22, 12, 26);
    }
    
    nav .active{
        display: block;
    }
    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
 nav a:hover,
nav a.active{
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid  rgb(255, 10, 173);


}
}

@media(max-width:1000px){
    .home{
        gap: 4rem;
    }
}
@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 1rem 4rem;
    }
    .home.home-content h3{
        font-size: 2,5rem;
    }
    .home-content h1{
        font-size: 5rem;

    }
    .home-img img{
        width: 70vh;
        margin-top: 4rem;
    }
   
}
@media(max-width:895px){
    .services h2{
        margin-bottom: 3rem;
    }
    .services-container{
        grid-template-columns: repeat(1,1fr);
    }
}
@media(max-width:991px){
    section{
        padding: 10rem 3% 2rem;
    }
    .services{
        padding-bottom: 7rem;
    }
    nav {
        margin: 0;
    }
}


@media (max-width: 910px) {
    .home-img{
        display: none;
    }
    .menu-icon {
      display: block;
    }
  
    .navbar {
      flex-direction: column;
      align-items: flex-start; /* يخلي الروابط تبدا من الطرف */
      background-color: #eb6de542;
      position: absolute;
      top: 60px;
      right: 20px; /* تبقى بجانب الشاشة مش تغطيها كلها */
      width: 200px; /* عرض صغير */
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(240, 239, 240, 0.1);
      display: none;
    }
  
    .navbar.active {
      display: flex;
    }
  }
  

  
@media(max-width:600px){
    .logo{
        padding: 0;
        margin: 0 0 0 0;
        top: 0;
        right: 0;
    }

    
    .skills .container{
        margin: 0;
        padding: 0;
    }
    .skills .container .row{
        grid-template-columns: repeat(2,1fr);
        margin: 1rem;
        padding: 2rem 0.2rem 2rem 0.2rem;
        gap: 1rem;
    }
    .skills .container{
        margin-top: 5px;
        width: 100%;
    }
    .education .timeline{
        margin-top: 2rem;
    }
    .education .timeline::after{
        left: 31px;
    }
    .education .container{
        width: 100%;
        padding-left: 8rem;
        padding-right: 2rem;
    }
    .education .container::after{
        font-size: 2.2rem;
    }
    .education .container::before{
        left: 61px;
        border: medium solid rgb(125, 48, 122);
        border-width: 10px 10px 10px 0;
        border-color: transparent orchid transparent transparent;
    }
    .education .left::after{
        left: 15px;
    }
    .education .right::after{
        left: 15px;
    }
    .education .right{
        left: 0%;
    }


}

