:root {
  --primary-color: #a0a0a0;
  --primary-backgroundColor: #181818;
}

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  background-color: #1f1f1f;
  color: var(--primary-color);
  font-family: sans-serif;
}
#main-container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  padding: 40px;
  margin: auto;
}
#sidebar {
  height: 90vh;
  background-color: var(--primary-backgroundColor);
  padding: 40px;
  position: sticky;
  top: 40px;
}
#main-content {
  background-color: var(--primary-backgroundColor);
  padding: 40px;
}
#sidebar,
#main-content {
  border: 1px solid rgb(58, 58, 58);
  border-radius: 16px;
}
/* Profile */
.profile {
  text-align: center;
  margin-top: 40px;
}
.profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
.profile h2 {
  font-size: 1.5rem;
  margin-top: 16px;
  color: #ffffff;
}
.profile p {
  font-size: 0.8rem;
  margin-top: 10px;
  background-color: #101010;
  padding: 8px 15px;
  display: inline-block;
  border-radius: 8px;
  border: 0.75px solid rgb(255, 191, 0);
  color: rgb(255, 191, 0);
}
.contact {
  border-top: 2px solid #4f4e4e;
  margin-top: 30px;
  padding-top: 10px;
}
.email,
.address {
  margin-block: 20px;
}
.label {
  font-size: 0.8rem;
  margin-bottom: 5px;
}
.value {
  font-size: 1rem;
}
.social-media {
  border-top: 2px solid #4f4e4e;
  margin-top: 30px;
  padding-top: 10px;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.social-media a img {
  margin-top: 10px;
  width: 24px;
  filter: grayscale(1) invert(0.7);
  transition: filter 0.3s ease;
}
.social-media a img:hover {
  filter: grayscale(0) invert(0);
}
/* Main Content */
#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: var(--primary-color);
  transition: color 0.3s ease;
}
.active {
  color: rgb(255, 191, 0);
}
nav a:hover {
  color: rgb(255, 191, 0);
}
#about {
  margin-top: 10px;
}
.heading {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #c0c0c0;
}
.line {
  width: 60px;
  height: 5px;
  background-color: rgb(255, 191, 0);
  margin-bottom: 20px;
}
.content {
  text-align: justify;
  font-size: 1rem;
  line-height: 1.5;
}
#skills {
  margin-top: 45px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.item {
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #3a3a3a;
  background-color: #101010;
  text-align: center;
  transition: transform 0.3s ease-in boxShadow 0.3 ease;
}
.item img {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}
.item h3 {
  font-size: 0.9rem;
  margin-top: 10px;
}
.item:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.3);
}
.html-img{
  filter: invert(44%) sepia(87%) saturate(1547%) hue-rotate(347deg) brightness(93%) contrast(95%);
}
.css-img{
filter: invert(34%) sepia(94%) saturate(1059%) hue-rotate(177deg) brightness(93%) contrast(96%);


}
.js-img{
filter: invert(83%) sepia(41%) saturate(3223%) hue-rotate(358deg) brightness(107%) contrast(101%);

}
.react-img{
  filter: invert(69%) sepia(94%) saturate(394%) hue-rotate(154deg) brightness(101%) contrast(99%);


}
.tailwindcss-img{
filter: invert(64%) sepia(71%) saturate(390%) hue-rotate(162deg) brightness(103%) contrast(97%);

}
.github-img{
  filter: invert(8%) sepia(5%) saturate(30%) hue-rotate(200deg) brightness(98%) contrast(0%);

}
#education {
  margin-top: 40px;
}
.edtech {
  position: relative;
  margin-bottom: 20px;
}
.year {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-bottom: 10px;
}
.degree {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #e0e0e0;
}
.place {
  font-style: italic;
  color: #a0a0a0;
  margin-bottom: 10px;
}
.work {
  color: #a0a0a0;
}

.edfirst,
.edsecond {
  position: relative;
  padding-left: 25px;
  margin-bottom: 30px;
}
.goal {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 4px solid rgb(255, 191, 0);
  background-color: #0000;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
}
.liner {
  position: absolute;
  width: 2px;
  top: 0;
  bottom: 0;
  left: 5px;
  border: 2px solid #3a3a3a;
}
.project-container{
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.projects{
  background-color: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #3a3a3a;
  overflow: hidden;
  transition: transform 0.5s ease , box-shadow 0.5s ease;
}
.projects:hover {
  transform: translateY(-10px);
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.3);
}
.projects img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}
.card {
  padding: 20px;
}

.card h4 {
  color: #e0e0e0;
  margin-bottom: 10px;
}

.card p {
  color: #a0a0a0;
  line-height: 1.1;
  margin-bottom: 15px;
}

.card span {
  background-color: rgba(255, 191, 0, 0.1);
  color: #ffbf00;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.75rem;
  margin-right: 5px;
}
/* Media Query */
@media  (max-width:1200px){
  #main-container{
    grid-template-columns:1fr;
    padding: 20px;
  }
  #sidebar{
    position: static;
    height: auto;
  }
}
@media (max-width:750px){
  .project-container{
    grid-template-columns:1fr;
  }
  #navigation nav{
    justify-content: center;
    flex-wrap: wrap;
  }
  #sidebar{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
  }
}