* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  font-family: 'Quicksand', sans-serif;
  background-color: rgb(12, 12, 30);
  color: rgb(255, 255, 255);
  overflow-x: hidden;
  letter-spacing: 0.5px;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

.mainContainer {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  background: radial-gradient(ellipse at bottom, rgba(12, 12, 30, 1) 0%, rgba(12, 12, 30, 0.9) 100%);
  padding: 20px;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-radial-gradient(circle at center, transparent 0, rgb(12, 12, 30) 50%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.1) 2%, transparent 4%);
  z-index: 1;
  animation: breathe 3s infinite alternate;
  opacity: 0.7;
}

@keyframes breathe {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.9;
  }
}

.profileCard {
  background: linear-gradient(145deg, rgba(106, 90, 205, 0.3), rgba(65, 105, 225, 0.3));
  border: 2px solid rgb(106, 90, 205);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 15px 50px rgba(106, 90, 205, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  z-index: 2;
}

.profileCard.hidden {
  opacity: 0;
  pointer-events: none;
}

.avatarContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.orbitRing {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid rgb(65, 105, 225);
  animation: orbitRing 4s linear infinite;
  opacity: 0.7;
}

@keyframes orbitRing {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.1);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.profileAvatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.4));
}

.username {
  font-size: 32px;
  color: rgb(255, 255, 255);
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  text-decoration: none;
}

.username:hover {
  text-decoration: underline;
}

.bio {
  color: rgb(91, 123, 220);
  margin-bottom: 20px;
  font-weight: 500;
}

.projectSection {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.projectsBtn,
.backBtn {
  background-color: rgb(65, 105, 225);
  color: rgb(255, 255, 255);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
  text-transform: capitalize;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

.projectsBtn:hover,
.backBtn:hover {
  background-color: rgb(82, 120, 225);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(65, 105, 225, 0.4);
}

.projectsContainer {
  background: linear-gradient(145deg, rgba(106, 90, 205, 0.3), rgba(65, 105, 225, 0.3));
  border: 2px solid rgb(106, 90, 205);
  border-radius: 30px;
  max-width: 500px;
  width: 90%;
  height: 70vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(106, 90, 205, 0.4);
}

.projectsListWrapper {
  padding: 20px 20px 0px 20px;
  height: calc(100% - 100px);
  overflow-y: auto;
}

.projectsListWrapper::-webkit-scrollbar {
  width: 8px;
}

.projectsListWrapper::-webkit-scrollbar-track {
  background: rgba(106, 90, 205, 0.1);
  border-radius: 10px;
}

.projectsListWrapper::-webkit-scrollbar-thumb {
  background: rgb(65, 105, 225);
  border-radius: 10px;
}

.projectsList {
  list-style-type: none;
  padding: 0;
  padding-bottom: 100px;
  width: 100%;
  margin: 0;
}

.projectsList li {
  background: rgba(106, 90, 205, 0.2);
  border: 1px solid rgb(65, 105, 225);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.projectsList li:hover {
  transform: scale(1.03);
  background: rgba(106, 90, 205, 0.3);
}

.projectsList .projectTitle {
  margin: 0 0 10px 0;
  font-weight: 600;
  color: rgb(255, 255, 255);
  font-size: 17px;
}

.projectsList .projectDescription {
  margin: 0;
  color: rgb(91, 123, 220);
  font-size: 14px;
}

.backBtnContainer {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgb(12, 12, 30) 50%);
  z-index: 11;
  pointer-events: none;
}

.backBtn {
  background-color: rgb(65, 105, 225);
  width: 90%;
  max-width: 300px;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .mainContainer {
    padding: 10px;
  }

  .profileCard,
  .projectsContainer {
    width: 95%;
    border-radius: 20px;
    padding: 20px;
  }

  .profileAvatar {
    width: 100px;
    height: 100px;
  }

  .orbitRing {
    width: 130px;
    height: 130px;
  }

  .username {
    font-size: 24px;
  }

  .bio {
    font-size: 14.4px;
  }

  .projectsBtn,
  .backBtn {
    max-width: 250px;
    padding: 10px 20px;
  }

  .projectsContainer {
    height: 75vh;
  }

  .projectsListWrapper {
    padding: 15px;
  }
}