*{
    padding: 0;
    margin: 0;
}
html{
     scroll-behavior: smooth;
}

body{
    background-color: #1e1e1e;
    font-family: sans-serif;
    color: #a0a0a0;
   
}

.main-container{
    display:grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    max-width: 1200px;
    padding-top: 40px;
    margin: auto;
}
/* sidebar */
.sidebar{
    height: 83vh;
    background-color: #2a2a2a;
    border:1px solid #3a3a3a;
    border-radius: 16px;
    padding: 40px;
    position: sticky;
    top: 40px;
  
}
/* profile */
.profile {
    text-align: center;
}
.profile img{
    height: 120px;
    width: 120px;
    border:1px solid #ffbf00;
    border-radius: 50%;
}
.profile h2{
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
}
.profile p{
    background-color: #1e1e1e;
    padding: 5px 15px;
    color: #ffbf00;
    border: 1px solid #3a3a3a;
    font-size: 0.8rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

/* contact */
.contact, .social{
    margin-top: 30px;
    border-top: 2px solid #3a3a3a;
    padding-top: 20px;

}
.label{
    font-weight: 500px;
    font-size: 0.8rem;
    color: #a0a0a0;
}
.value{
    color: #e0e0e0;
    text-decoration: none;
}

.email,.phone{
    margin-bottom: 15px;
}

/* social */
.social {
    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: grayscale(0) invert(0);
}

/* Main Content */
.main-content{
    background-color: #2a2a2a;
    /* height: 90vh; */
    border:1px solid #3a3a3a;
    border-radius: 16px;
    padding: 40px;
}
/* main content */
/* navigation */
#navigation{
    
    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;
    transition: color 0.3s ease;


}
.active, nav a:hover{
    color: #ffbf00;
}

/* about me */
.heading{
    color: #e0e0e0;
    font-size: 2em;
    margin-bottom: 15px;
}

.line{
width: 60px;
height: 5px;
background-color: #ffbf00;
margin-bottom: 15px;
}
.content{
    text-align: justify;
    color: #a0a0a0;
    line-height: 140%;
}
#about{
    margin-bottom: 40px;
}

/* skills section */
.grid-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
}
.item{
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #3a3a3a;
    background-color: #1e1e1e;
    text-align: center;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}
.item img{
    height: 48px;
    width: 48px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(84%) saturate(516%) hue-rotate(358deg) brightness(104%) contrast(104%);
    margin-bottom: 15px;
}
.item h3{
    font-size: 1rem;
    font-weight: 500;
}
.item:hover{
    transform: scale(1.1);
    box-sizing: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

/* Education section */
#education{
margin-top: 30px;
}


.year{
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}
.degree{
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.college{
    font-style: italic;
    color: #a0a0a0;
    margin-bottom: 10px;

}
.learn{
    color: #a0a0a0;
}
.ed-first, .ed-second{
    margin-bottom: 30px;
    position: relative;
    padding-left: 25px;
}
.goal{
    height: 10px;
    width: 10px;
    border-radius: 50%;
    border: 3px solid #ffbf00;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.edtech{
    position: relative;
    margin-top: 20px;
}
.liner{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5px;
    width: 1px;
    border: 2px solid #3a3a3a;
}

/* portfolio section */
.project-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}
.project-container a{
    text-decoration: none;
}
.project{
    background-color: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s 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{
    line-height: 1.6;
    margin-bottom: 20px;
    color: #a0a0a0;
}
.card span{
    background-color: #2a2a2a;
    color: #ffbf00;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    margin-right: 5px;
}

/* media quarrey */
@media screen and (max-width:576px) {
    .main-container{
        grid-template-columns: 1fr;
    }
    .sidebar{
        position: static;
        height: auto;
    }
    .project-container{
        grid-template-columns: 1fr;
    }
}
@media only screen and (min-width: 576px) and (max-width: 750px) {
    .main-container{
        grid-template-columns: 1fr;
    }
    .sidebar{
        position: static;
        height: auto;
    }
    .project-container{
        grid-template-columns: 1fr 1fr;
        width: auto;
    }
}

@media screen and (min-width: 750px) {
.sidebar {
  margin-left: 30px;
}
}
@media screen and (min-width: 750px) and (max-width: 1000px){
    .project-container{
        grid-template-columns: 1fr;
    }
}