*{
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
}
body{
    background-color: #1e1e1e;
    font-family: sans-serif;
    color :#a0a0a0;
    line-height: 1.6;
}

.main-container{
    display: grid;
    max-width: 1200px;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding-top: 40px;
    margin: auto;
}
.sidebar{
    height: 90vh;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    position: sticky;
    top: 20px;
    height: auto;
    max-height: calc(100vh - 8px);
    overflow-y: auto;
    margin-bottom: 40px;
}
.main-content{
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    padding: 40px;
}
 .profile img{
    height: 120px;
    width: 120px;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
 }
 .profile h2{
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
    color: #e0e0e0;
 }
 .profile p{
    background-color: #1e1e1e;
    padding: 5px 15px;
    color: #ffbf0f;
    font-size: 0.8rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
 }
 .profile{
    margin-top: 40px;
    text-align: center;
 }
 .contect{
    margin-top: 30px;
    border-top: 2px solid #3a3a3a;
    padding: 30px;
 }
 .label{
    font-weight: 500;
    font-size: 0.8rem;
    color: #a0a0a0;
 }
 .value{
    color: #e0e0e0;
    text-decoration: none;
 }
.Email{
    margin-bottom: 10px;
}
.Phone{
    margin-bottom: 15px;
}
.Location{
    margin-bottom: 15px;
}
.social{
    border-top: 2px solid #3a3a3a;
    padding: 30px;
    text-align: center;
}
.social img{
    height: 24px;
    width: 24px;
    margin-left: 10px;
    filter: grayscale(1) invert(0.7);
    transition: filter 0.3s ease;
}
.social img:hover{
    filter: brightness(0) invert(0);
}


#nevigation{
     border-bottom: 2px solid #3a3a3a;
    margin-bottom: 20px;
    padding-bottom: 20px;
}
nav{
    display: flex;
    justify-content: flex-end;
    gap: 20px;
   
}
nav a{
    text-decoration: none;
    color: #a0a0a0;
    font-weight: 500;
    transform: color 0.3s ease;
}
#About{
    margin-top: 40px;
}
.About ,nav a:hover{
    color: #ffbf0f;
}

.heading{
    color: #e0e0e0;
    font-size: 2rem;
    margin-bottom: 15px;
}
.line{
    width: 60px;
    height: 5px;
    background-color: #ffbf0f;
    margin-bottom: 20px;
}
.content{
    text-align: justify;
}
#Skils{
    margin-top: 40px;
}


.grid-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 35px;
}
.item{
    padding: 20px;
    border-radius: 10px;
    border:  2px solid #3a3a3a;
    background-color: #1e1e1e;
    text-align: center;
    margin: 20px;
    transition: transform 0.3s ease, box-shadaw 0.3s ease;
}
.item img{
    height: 48px;
    width: 48px;
    filter: invert(75%) sepia(50%) saturate(1000%) hue-rotate(350deg) brightness(110%) contrast(101%);
    margin-bottom: 15px;
}
.item h3{
    font-size: 1rem;
    font-weight: 500;
}
.item:hover{
    transform: scale(1.1);
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.3);
}

#Education{
    margin-top: 30px;
}
.edc{
    position: relative;
    margin-top: 20px;
}
.year{
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}
.degree,.Intermediate,.Matriculation{
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #e0e0e0;
}
.college{
    font-style: italic;
    color: #a0a0a0;
    margin-bottom: 10px;
}
.edcFirst,.edcSecond,.edcThird{
    margin-bottom: 25px;
    padding-left: 25px;
    position: relative;
}
.goal{
    height: 10px;
    width: 10px;
    border: 3px solid #ffbf0f;
    border-radius: 50%;
    position: absolute;     
    top: 5px;
    left: 0px;
    z-index: 5;
}
.liner{
    position: absolute;
    width: 2px;
    top: 0px;
    bottom: 0px;
    border: 2px solid #3a3a3a;
    left: 5px;
}
.project-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}
.project{
    background-color: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5 ease;
}
.project:hover{
    transform: translateY(-10px);
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.3);
}
.project img{
    height: 180px;
    width: 100%;
    object-fit: cover;
}
.card{
    padding: 20px;
}
.card h3{
    color: #e0e0e0;
    margin-bottom: 10px;
}
.card p{
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
    
}
.card span{
    background-color:rgba(255, 191, 0, 0.1);
    color: #ffbf0f;
    padding: 4px 8px;
    font-size: 0.75rem;
    margin-right: 5px;
}


@media (max-width: 992px){

    .main-container{
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    .sidebar{
        width: 100%;
        position: static;
        height: auto;
    }

    .main-content{
        width: 100%;
        padding: 15px;
    }

    nav{
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 14px;
    }

    .heading{
        font-size: 1.6rem;
    }

    
    .grid-container{
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 15px;
    }

    .item{
        margin: 5px;
        padding: 12px;
    }

    
    .project-container{
        grid-template-columns: 1fr;
    }

    .project img{
        height: auto;
    }

    .card{
        padding: 15px;
    }
}

@media (max-width: 480px){

    .profile img{
        height: 70px;
        width: 70px;
    }

    .profile h2{
        font-size: 1.2rem;
    }

    .profile p{
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .heading{
        font-size: 1.4rem;
    }

    .main-content{
        padding: 10px;
    }

    nav{
        font-size: 12px;
        gap: 8px;
    }

    .grid-container{
        grid-template-columns: repeat(2, 1fr);
    }

    .item img{
        height: 30px;
    }

    .project img{
        height: 130px;
    }

    .card p{
        font-size: 0.9rem;
    }
}