*{
    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: 1000px;
    grid-template-columns: 350px 1fr;
    gap:40px;
    padding-top: 30px;
    margin: auto;
}
.sidebar{
    height: 90vh;
    background-color: #2a2a2a;
    border-radius: 16px;
    border: 1px solid #3a3a3a;
    padding: 20px;
    /* position: fixed;
    margin-right: 40px; */
    position: sticky;
    top: 40px;

}
.main-content{
    height: auto;
    background-color: #2a2a2a;
    border-radius: 16px;
    border: 1px solid #3a3a3a;
    padding-left: 40px;
    padding-right: 40px;
    /* margin-left: 40px; */
    padding-bottom: 40px;


/* profile section     */
}
.profile img{
    height: 100px;
    width: 100px;
    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: #FFBB00;
    border: 1px solid #3a3a3a;
    font-size: 0.8rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

.profile{
    text-align: center;   
    /* it centers the inline element */

}
.contact{
    margin-top: 30px;
    border-top:1px solid #3a3a3a;
    border-bottom:1px solid #3a3a3a;
    padding-top: 20px;

}
.label{
    font-weight: 500;
    font-size: 0.8rem;
    color: #a0a0a0;

}
.value{
    color: #e0e0e0;
    text-decoration: none;
}
.email,.phone{
    margin-bottom:15px;
}
.social{
    /* margin-top: 30px; */
    /* border-top:1px solid #3a3a3a;
    border-bottom:1px solid #3a3a3a; */
    padding-top: 20px;
    text-align: center;
  
}
.social img{
    height:24px;
    width: 24px;
    margin-left:7px ;
    filter: grayscale(1) invert(0.7);
    transition: filter 0.3s ease;
}

.social img:hover{
    filter: grayscale(0) ;
}

/* navigation */

#navigation{
    padding: 30px 20px;
    border-bottom: 2px solid #3a3a3a;
     padding-bottom: 20px;
     margin-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;
     

}
nav a:hover{
    color:#FFBB00;
}
.active{
    color: #FFBB00;
}
.heading{
    color: #e0e0e0;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.line{
    height: 5px;
    background-color: #FFBB00;
    margin-bottom: 10px;
}

.content{
    text-align: justify;
}

#about{
    margin-bottom: 30px;
}
.grid-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
    gap: 30px;
    grid-template-rows: 1fr 1fr;
}
.item{
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #3a3a3a;
    text-align: center;
    font-size: .8rem;
    background-color: #1e1e1e;
    margin-top: 30px;
    transition:transform 0.3s ease, boxshadow 0.3s ease;
}
.item img{
    height: 48px;
    width:48px;
    filter: invert(75%) sepia(50%) saturate(1000%) hue-rotate(350deg) brightness(110%) contrast(101%);
}

.item:hover{
    transform: scale(1.1);
    box-shadow: 0px 0px 10px 5px rgb(0 ,0, 0, 0.3);
}


/* education */

#education{
    margin-top: 20px;
}


.edtech{
    position: relative;
    margin-top: 20px;
}
.year{
    color:#a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.degree{
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 500;


}

.school{
    font-style: italic;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.work{
    color: #a0a0a0;

}

.edfirst,.edsecond{
    margin-bottom: 35px;
    position: relative;
    padding-left: 25px;

}

.goal{
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: 5px solid #FFBB00;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 5;
}
.edsecond{
    position: relative;
}

.liner{
    position: absolute;
    width: 2px;
    top: 0px;
    bottom: 0px;
    left: 5px;
    border: 2px solid #3a3a3a;
}

.project-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.notice{
    padding-left: 20px;
}

.project-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 30px;
    grid-template-rows: 1fr 1fr;
}
.project{
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #3a3a3a;
    text-align: center;
    font-size: .8rem;
    background-color: #1e1e1e;
    margin-top: 30px;
    transition:transform 0.3s ease, boxshadow 0.3s ease;
}
.project img{
    height: 48px;
    width:48px;
    filter: invert(75%) sepia(50%) saturate(1000%) hue-rotate(350deg) brightness(110%) contrast(101%);
}

.project:hover{
    transform: scale(1.1);
    box-shadow: 0px 0px 10px 5px rgb(0 ,0, 0, 0.3);
}

.project-link{
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #FFBB00;
    border: 1px solid #FFBB00;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-link:hover{
    background-color: #FFBB00;
    color: #1e1e1e;
    transform: translateY(-2px);
}
/* -------- Mobile Responsive -------- */
@media (max-width: 768px) {

    .main-container{
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .sidebar{
        position: static;   /* disable sticky on mobile */
        width: 100%;
        height: auto;
    }

    nav{
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-content{
        padding: 20px;
    }

    .profile img{
        height: 80px;
        width: 80px;
    }

    .grid-container{
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .project-container{
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px){

    .project-container{
        grid-template-columns: 1fr;
    }

    .project{
        padding:20px;
    }

    .project img{
        height:40px;
        width:40px;
    }

}