body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    background-color: #080927;
    color: #e8d7ff;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.main-content {
  margin-left: 80px;   
  margin-right: 260px;
  padding: 20px;       
  position: relative;
  padding-left: 80px;
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
.sidebarleft,.sidebar{
  z-index: 1000;
}
.sidebarleft {
  position: fixed;
  left: 0;
  top: 0;
  width: 70px;
  height: 100vh;
  background-color: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  gap: 20px;
  z-index: 1000;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.leetcode-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  filter: invert(1); 
}

.icon, .download-icon {
  background-color: #1a1a1a;
  width: 40px;
  height: 40px;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.icon:hover, .download-icon:hover {
  background-color: #5a5a5a;
}

.download-icon {
  margin-top: auto;
  margin-bottom: 20px;
  background-color: #8000ff;
}


.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 220px;
  background-color: rgba(15, 15, 15, 0.7);
  padding-top: 40px;
  padding-left: 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  z-index: 100;
  backdrop-filter: blur(8px); 
}
.sidebar li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
  padding: 12px 0;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
}
.sidebar li:hover {
  color: #fff;
}

.bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #555;
  flex-shrink: 0;
}

.sidebar li.active {
  color: #c77dff;
  font-weight: bold;
}

.sidebar li.active .bullet {
  background-color: #c77dff;
  box-shadow: 0 0 6px #c77dff
}
#about {
    width: 100%;
    margin: 0;
    background-color:#080927 ;
    color: aliceblue;
    padding: 20px 10px;
    padding-right: 150px;
    text-align: left;
    box-sizing: border-box; 
    flex-wrap: wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} 
#about .starting{
    background: linear-gradient(90deg,#af90d7,#c178f5,#801d89,#f76b4f,#cd1d06);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    color: transparent;
    font-size: 40px;
    margin-bottom: 10px;
} 
#about .name{
    color: #fff;
    font-weight: bolder;
}
#about .tagline{
    color: #e0cdee;    
}
.qualities{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 5px;
    justify-content: center;
}
.tagline{
  padding-top: 10px;
  padding-bottom: 13px;
  font-size: 17px;
}

.tag{
    background-color: #22185f;
    color: #fff;
    padding: 13px;
    border-radius: 10px;
    border-style: solid;
    border-color: #492f7b;
    border-width: 2px;
    font-weight: 700;
}

.text{
  font-size: 15px;
  padding-top: 10px;
}

.text-content {
  flex: 1.2; 
  min-width: 300px;
}

.image-content {
  flex: 0.8; 
  max-width: 400px; 
  min-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;


}
.image-content img {
   width: 100%;
  max-width: 350px;
  max-height: 420px; /* change this to adjust height */
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid #8f44fd;
  box-shadow: 0 0 15px rgba(143, 68, 253, 0.4);
}

/* skills */
.skills-section {
  color: white;
  padding: 60px 20px;
  background-color: #0f0f20;
  max-width: 1200px;
  margin: 0 auto;
}

.skills-wrapper {
  display: flex;
  justify-content: center;
  
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;  
}


.skills-box {
  border: 1px solid #6c70e1;
  border-radius: 12px;
  padding: 18px;
  background-color: #1c1c2e;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skills-box:hover {
  transform: scale(1.02);
}

.skills-box h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #b3b3ff;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  background-color: #2c2f4a;
  border: 1px solid #6c70e1;
  color: white;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.tag:hover {
  background-color: #6c70e1;
  color: #000;
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
  }

  .skills-box {
    padding: 16px;
  }

  .skills-box h3 {
    font-size: 1.2rem;
  }

  .tag {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .skills-section {
    padding: 40px 15px;
  }

  .skills-tags {
    justify-content: flex-start;
  }

  .skills-box {
    text-align: left;
  }

  .tag {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

#education {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.educationtitle {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  position: relative;
  margin-bottom: 50px;
}

.educationtitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #a259ff;
  margin-top: 10px;
  border-radius: 2px;
}

.timeline {
  position: relative;
   margin-left: 40px;
  padding-left: 20px; 
  border-left: 2px solid #d2a2f4;
}

.marker {
 position: relative;
  margin-bottom: 20px;
  padding-left: 10px;
  color: #b558f6;
  font-weight: bold;

}

.marker span {
  display: block;
  color: #d8c6ef;
  font-weight: 700;
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 10px;
}

.marker::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -28px;  
  width: 14px;
  height: 14px;
  background-color: #9e2fed;
  border-radius: 50%;
  transform: translateY(-50%); 
  z-index: 2;

}

.timeline::before {
content: none; 
}

.content {
  background-color: #1c1c1c;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  width: 100%;
}

.content:hover {
  transform: translateY(-4px);
}

.content h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}

.content p {
  color: #ddd;
  margin: 4px 0;
  font-size: 15px;
}

.content p strong,
.content p span {
  color: #a259ff;
  font-weight: 600;
}


#achievements {
  background-color: #0c0728;
  width: 100%;
  margin: auto;
  border: 4px solid #22185f;
  border-radius: 10px;
  padding: 40px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.titleachievement {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 40px;
  border-bottom: 4px solid #a259ff;
  display: inline-block;
  text-align: center;
  color: white;
}

.achievementcards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.achievementcards {
  width: 300px;
  background-color: rgba(246, 236, 253, 0.08);
  border: 2px solid #a259ff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievementcards:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.achievementtitle {
  font-size: 22px;
  font-weight: bold;
  background: linear-gradient(180deg, #41d9a1, #28c7ac, #1ca4c3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.outof, .event, .org, .date {
  font-size: 16px;
  margin-bottom: 8px;
}

.outof {
  color: ghostwhite;
  font-weight: normal;
}

.event {
  color: rgb(147, 201, 245);
  font-weight: 500;
}

.org {
  color: rgb(237, 88, 105);
  font-weight: 500;
}

.date {
  color: #e1e1e1;
  font-weight: 400;
}
@media (max-width: 768px) {
  .achievementcards {
    width: 100%;
  }
}


.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

#about .text-content {
  flex: 1;
  min-width: 300px;
}

#about .image-content {
  flex: 1;
  max-width: 400px;
  min-width: 300px;
}

#about .image-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  #about .text-content, #about .image-content {
    padding: 10px;
  }
}

.card-image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
}

.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 90%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
   z-index: 1;
}

.card-image-wrapper:hover .card-hover-overlay {
  opacity: 1;
}

.hover-link {
  background-color: #ffffff22;
  color: white;
  padding: 10px 16px;
  margin: 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.hover-link:hover {
  background-color: #ffffff44;
}

.hover-link i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.project-img {
  width: 100%;
  max-width: 100%;
  display: block;
  height: 200px; 
  object-fit: cover;
  border-radius: 10px;
}

.custom-card {
  width: 95%;
  min-height: 420px;
  background-color: #1B1828 ;
  color: whitesmoke;
  overflow-wrap: break-word;
}
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}


#projects{
  background-color: #07031e;
  width: 100%;
  margin: auto;
  border-style: solid;
  border-radius: 7px;
  border-color: #100b35;
  border-width: 3px;
  padding: 30px 30px;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.project{
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  border-bottom: 4px solid #a259ff;
  display: inline-block;
  text-align: center;
}
.tech-stack{
  text-align: center;
  font-weight: bold;
}


 .contact-card {
      background-color: #1b1d22;
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
      position: relative;
    }

    .contact-card::after {
      content: '';
      height: 4px;
      width: 100%;
      position: absolute;
      bottom: 0;
      left: 0;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      background: linear-gradient(to right, #c32aff, #ff6347);
    }

    .profile-img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 50%;
      border: 3px solid rgb(8, 25, 56);
    }

    .contact-info i {
      color: #b94ff9;
      margin-right: 10px;
    }

    .footer {
      text-align: center;
      padding: 20px;
      font-size: 16px;
      color: white;
    }

    .footer i {
      color: red;
    }