/************************************ABOUT SECTION***************************************/


*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none; 
    
}

header{
    position: fixed;
    top: 1rem;
    left: 43%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 37rem;
    /*backdrop-filter: blur(3px);*/
    /*padding: 0.5rem 1.5rem;*/
    border-radius: 9rem;
    z-index: 1000;
    width: 100%;
    top: 0;
    background-color: white;
    padding: 20px 40px;

}

.logo{
    color:black;
    width: 5rem;
    height: 4rem;
    padding: 2px;
    transition: 0.2s ease-in-out;
}

.logo:hover{
    transform: scale(1.1);
    
}

.nav-links{
    display: flex;
    gap: 2rem;
}

li a{
    position: relative;
    color: black;
    font-weight: 300;
}

li a::before{
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 1px;
    top: 19px;
    transition: 0.3s ease-in-out;
    background: black;

}

li a:hover::before{
    width: 100%;
}

#menu-icon{
    font-size: 2rem;
    display: none ;
}

section{
    padding: 11rem 3%;
    width: 100%;
    justify-content: center;
}

.about{
    display: flex;
    align-items: center;
    justify-content: center;

}

.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    flex-direction: row;
    
}

.about img{
    width: 230px;
    
}

.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1.5rem;
}

.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.7;
}

.info-box h1{
    font-size: 3rem;
    font-weight: 600;
}

.info-box span{
    background: rgb(252, 0, 0);
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.btn-group{
    display: flex;
    gap: 7rem;
}

.btn:hover{
    background-color: rgb(255, 0, 0);
    color: rgb(0, 0, 0);
}

.btn{
    width: 23rem;
    padding: 0.3rem 3.5rem;
    border: 1px solid black; 
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
    background-color: rgb(255, 255, 255);
    color:black; 
}

.btn-hover1{
    background-color: rgb(255, 0, 0);
    color: black;
    transform: scale(1.05); /* Slight zoom effect */
    
    
}

.socials{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-direction: row;
    
}

.socials i{
    
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3 ease-in-out;
}

.social i:hover{              /* when cursor on socials icons color is changed*/
    transform: scale(1.03);
}

/*************************************SKILLS SECTION*******************************/
.section-title{   
    font-family: Georgia, 'Times New Roman', Times, serif;          /*section title text resizing*/
    text-align: center;
    font-size: 3rem;
    font-weight: 500;
    padding: 25px;
}

.skills-grid{                 /*grid design & all*/
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(2, 1fr));*/
    gap: 1rem;
    max-width: 100%;
}

.skills-info {
    width: 190vh;
    /*height: 58vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

.skills-card{
    border: 1px solid black;
    background: white;            /*card design & all*/
    color: black;
    transition: all 0.3s ease-in-out;
    position: relative;
    padding: 70px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}
  
.skills-card:hover {     /* when cursor on card color change*/
    background: black;  
    color: white;
    transform: scale(1.03);
}
 
.skills-card i{           /*icons measurement*/
    font-size: 2rem;
    position: absolute;
    top: 10px;
    left: 10px;
    align-items: center;
    justify-content: center;
}

.skills-card i:hover{    /* when cursor on icons color change*/
    background: #000;
    color: #ff0000;
}

::-webkit-scrollbar{
    width: 20px;
}

::-webkit-scrollbar-track{
    background-color: gray;
}

::-webkit-scrollbar-thumb{
    background-color: black;
}

/*************************PROJECTS SECTION********************************/

.project-grid{

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(2, 1fr));
    
    max-width: 190%;
    width: 1150px;
    width: 190vh;
    /*height: 58vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.project-card {
    border: 1px solid black;
    background: white;            /*card design & all*/
    color: black;
    transition: all 0.3s ease-in-out;
    position: relative;
    padding: 70px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    width: 350px;
    height: 250px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    border: 1px solid black;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.project-card img {
    width: 100px; /* Adjust size as needed */
}

.project-card:hover {
    background: black;
    color: white;
    transform: scale(1.03);
}

.btn-group2{
    border: 1px solid rgb(0, 0, 0);
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    color: rgb(78, 75, 75);
}

.btn-group2:hover {
    background-color: rgb(255, 0, 0);
    border: 2px solid rgb(255, 255, 255);
    color: black;
}

.project-card h2{
    font-size: 2rem;
    font-weight: 500;
}

/**************************CONTACT SECTION****************************/

.contact{
    
    background-color: white;
    text-align: center;
} 
  .contact-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .input-group {
    text-align: left;
  }
  
  .input-group label {
    
    display: flex;
    margin-bottom: 3px;
  }
  
.input-group i{
    margin-right: 8px;
    color: #000000;
}

.input-group i:hover{
    color: #ff0000;
}
  
input[type="text"],input[type="email"],textarea{
    width: 100%;
    padding: 13px;
    border: 1px solid black;
    font-size: 1rem;
}
 
textarea{
    resize:horizontal;
    
  }

.btn{
    background-color: #000000;
    color: white;
    padding: 13px;
    border: 1px solid black;
    text-align: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    max-width: 900px;
    margin: 0 auto;
}
  
  .btn:hover {
    background-color: #ff0000;
    color: #fff;
    border: 1px solid black;
  }
  

footer{
    bottom: 0;
    left: 0;
    height: 7rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}


.copyright{
    font-size: 100;
}

/********************************Responsive Sections*******************************************/
@media (max-width: 992px) {
    .about .about-container,
    .skills-info,
    .project-grid {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
        align-items: center;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .skills-card,
    .project-card {
        width: 90%;
        max-width: 400px;
    }

    .skills-info,
    .project-grid {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        position: static;
        transform: none;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about img {
        width: 180px;
    }

    .info-box h1 {
        font-size: 2rem;
    }

    .info-box span {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 5rem 2rem;
    }

    .btn {
        width: 100%;
        padding: 0.5rem;
    }

    .contact-container {
        width: 100%;
    }

    input[type="text"], input[type="email"], textarea {
        font-size: 0.9rem;
    }
}

@media(max-width:600px){
    .header #menu-icon{
        display: block;
    }

    .nav-links{
        position: absolute;
        top: 100%;
        margin-top: 1rem;
        width: 100%;
        padding:  1rem;
        color: white;
        display: flex;
        flex-direction: column;
        text-align: center;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 3rem;
        display: none;
    }

    .nav-links li{
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .nav-links.active{
        display: block;
    }

    .header{
        padding: 1rem 5rem;
        gap: 8rem;
    }
    header .logo{
        font-size: 1.5rem;
    }

    .about-container img{
        width: 80vw;
    }

    .input-group input{
        padding: 0.5rem 3rem;
        width: 80%;
        font-size: 1.5rem;
    }

    .input-group input::placeholder{
        font-size: 1.5rem;
    }

    .footer
}