
@font-face {
    font-family: 'nastaliq';
    src: url('./nastaliq.ttf') format('truetype');
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
}


body {
    font-family: 'nastaliq', 'Poppins', sans-serif;
}


section {
    position: relative;
    padding: 50px 0;
}

section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80%;
    height: 2px;
    background: orangered;
    transform: translateX(-50%);
}
section.home::after,
section.contact-form::after,
section.projects-section::after {
    content: none; 
}

 /* background: linear-gradient(135deg, #1e1e1e, #ff4500);
    color: white;
    border-radius: 5px; */

/* header Section_______________ */


  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 10px 12%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 1000;
}

.logo {
    font-size: 25px;
    font-weight: 600;
    color: white;
    transition: 0.3s ease;
    cursor: pointer;
    position: absolute;
    left: 80px;
}

.logo:hover {
    color: orangered;
    text-shadow: 0 0 25px orangered, 0 0 50px orangered;
    transform: scale(1.1);
}

span {
    color: orangered;
}


.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-grow: 1;
   
}

.navbar a {
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease-in-out;
  
}

.navbar a.active {
    color: orangered;
    border-bottom: 3px solid orangered;
}

.navbar a:hover {
    color: orangered;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-left: 10px;
    position: absolute;
    right: 30px;
}

.social-icons a {
    color:#ffffff;
    font-size: 22px;
    transition: 0.3s ease;
}

.social-icon.github:hover {
    transform: scale(1.2);
    color: orangered;
}

.social-icon.linkedin:hover {
    transform: scale(1.2);
    color: cornflowerblue;
}

.social-icon.facebook:hover {
    transform: scale(1.2);
    color: dodgerblue;
}


.hamburger {
    display: none;
    font-size: 25px; 
    cursor: pointer;
    margin-left: auto;
    color: white;
    transition: color 0.3s ease-in-out;
}
.hamburger.active {
    color: white; 
}

@media (max-width: 768px) {
    .hamburger {
        display: block; 
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 180px; 
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        padding: 8px;
        text-align: center;

    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        padding: 0;
        position: relative;
        bottom: 100px;
    }

    
    .social-icons {
        display: none;
        justify-content: center;

       
    }

    .social-icons.active {
        display: flex; 
        justify-content: center;
    }
}


@media (min-width: 768px) {
    .navbar {
        display: flex;
      


    }

    .social-icons {
        display: flex;
       

    }
} 
@media (max-width: 768px) {
    .social-icons {
        position: fixed; 
        right: 38px;
        bottom: 20px;
       
        
       
    }
}





/* Home  Section_____________________________________ */
.home {
    width: 100%;
    min-height: 100vh;
    background-color: rgb(241, 241, 241);
    display: flex;
    align-items: center;
    gap: 7em;
    padding: 80px 12% 0;
    margin-top: 30px;

}

.home-content {
    max-width: 800px;
   
}

.home-content h3 {
    font-size: 42px;
}

.home-content h1 {
    font-size: 55px;
    line-height: 1.15;
   
}

.home-content p {
    padding: 20px 0;
    line-height:1.6 ;
    
}

.image-box img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    position: relative;
    bottom: 60px;
    
    

}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: orangered;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.6);
    width: 50px;
}

@media (max-width: 768px) {
    .home {
      flex-direction: column;
      text-align: center;
      margin-top: 0;
    }
   
    
  }


/* About me Section____________________________ */

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12% 8%;
    gap: 10em;
    background-color: black;
}

  

 
.about-img img{
    position: relative;
   object-fit: cover;
    box-shadow: 0 0 25px orangered
              , 0 0 50px orangered;
              border-radius: 50%;
              width: 300px;
              height: 300px;
                cursor: pointer;
                width: 300px;
                
}
.about-img img:hover{
    transform: scale(1.1);
    
}
.about-content h2{
    text-align: left;
    color: white;
    font-size: 42px;

}
.about-content h3{
    font-size: 62px;
    color: white;
}
.about-content p{
    color: white;
    font-size: 20px;
    margin: 2em 0 3em;
    line-height: 1.6;
}
.btn-2 {
    padding: 15px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-2 {
    background-color: orangered;
    color: white;
    border: 2px solid black;
}

.btn-2:hover {
    background-color: white;
    color: orangered;
} 

/*  Education Section __________________________ */
.education {
    background-color: #000;
    color: white;
    padding: 80px 12%;
    text-align: center;
   
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    color: orangered;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 100%;
    background-color: orangered;
    left: 22px;
    top: 50px;
}

.icon-Ed {
    width: 50px;
    height: 50px;
    background: orangered;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    z-index: 10;
}

.content {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 8px;
    width: 100%;
    text-align: left;
}

.content h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: white;
}

.content p, .content ul {
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
}

ul {
    padding-left: 20px;
}

ul li {
    list-style: none;
    position: relative;
}

.education-list li::before {
    content: "•";
    color: orangered;
    position: absolute;
    left: -15px;
    font-size: 20px;
}

/*  Skills Section______________________________-- */


.skills {
    background: #000;
    color: white;
    text-align: center;
    padding: 60px 20px;
    height: 530px;
    
    
   
}
.skills h2 {
   position: relative;
    font-size: 36px;
      top: 20px; 
    
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px; 
    margin-top: 120px;
}

.skills-container img {
    width: 70px;
    height: auto;
    transition: transform 0.3s ease-in-out;
    cursor: pointer; 
   
}

.skills-container img:hover {
    transform: scale(1.2);
}


.skills-container img[alt="GitHub"] {
    filter: brightness(0) invert(1);
}
 

@media (max-width: 480px) { 
    .skills-container {
        grid-template-columns: repeat(3, 1fr); 
    }
}


/* Projects Section ____________ */


.projects-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #0c0c0c, #1a1a1a);
   
}
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}
.section-title span {
    color: orangered;
}
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top:30px;
}

.project-card {
    background: #222;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(255, 69, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 90%;
    margin: 20px auto; 
    padding: 10px; 
}


 .project-card img {
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    max-width: 600px; 
    display: block; 
    margin: 0 auto; 
}

.project-info {
    padding: 15px;
    color: #fff;
    flex-grow: 1; 
   
}
.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.project-info p{
    line-height: 1.6;
}
.project-tech {
    margin-top: 10px;
}
.project-tech span {
    display: inline-block;
    background: orangered;
    color: white;
    padding: 8px 10px;
    border-radius: 5px;
    margin: 10px 10px;
    font-size: 0.8rem;
}
.project-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    background: #222;
    border-top: 1px solid rgba(255, 69, 0, 0.5);
    border-radius: 0 0 10px 10px;
    
}
.project-links a {
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transform: scale(0.7); 
    transition: transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: 10px;
    
}
.project-links a:hover {
    background: orangered; 
    

    
}
@media (max-width: 768px) {
    .projects-container {
        gap: 25px;
    }
}
/*  Cantact Me Section_____________________*/
.contact-form h2{
    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 36px;
}
.contact-form form{
    max-width: 50em;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 1em;
}
.contact-form form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-form form .input-box input ,
.contact-form form textarea{
    width: 100%;
    padding: 1.5em;
    font-size: 18px;
    color: black;
    background-color: rgb(241, 241, 241);
    border-radius: .8rem;
    margin: 1rem 0;
    resize: none;

}

.contact-form .btn-3{
    padding: 15px 28px;
    background-color: black;
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
    margin-top: 0.5em;
}
 .contact-form .btn-3:hover{
    background-color: white;
    color: black;
    border: 2px solid black;

}

/* Foooter Section ___________________ */
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: black;
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: white;
}
.footer .social a{
    font-size: 24px;
    color: white;
    border: 2px solid orangered;
    width: 40px;
    height: 40px;
    line-height: 38px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 8px;
    box-shadow: inset 0 0 10px orangered ,
                      0 0 10px orangered;
                      transition: 0.3s ease;


}
.footer .social a:hover{
    transform: scale(1.2) translateY(-10px);
    color: orangered;
    border: 2px solid orangered;

}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;

}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}
.footer ul li a:hover{
    border-bottom: 3px solid orangered;
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: white;
}
@media (max-width: 768px) {
        .about {
        flex-direction: column;
        text-align: center;
        }

}
