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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1a365d;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8fafc;
  position: relative;
}

.sidebar {
  width: 250px;
  padding: 2rem;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
}

.nav-content ul {
  list-style: none;
  margin-top: 20vh;  /* Start navigation 20% down the screen */
}

.nav-content ul li {
  margin-bottom: 1.5rem;
}

.nav-content ul li a {
  color: #1a365d;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-content ul li a:hover {
  color: #2b6cb0;
}

.name-header {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 100;
}

.name-header h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #1a365d;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.name-header:hover{
  cursor: default;
}

.content {
  margin-left: 250px;
  padding: 2rem;
  width: calc(100% - 250px);
  background-color: #f8fafc;
  margin-top: 20vh;  /* Start content 20% down the screen */

  display: flex;
  gap: 15px;
  flex-direction: column;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid black;
  z-index: 1;
  width: 85%;
  position: relative;
}

.tsparticles-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.tsparticles {
  z-index: 0;
  position: absolute;
  width: 95%;
  height: 100%;
}

.bio-content {
  display: flex;
  gap: 2rem;
  align-items: start;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 4px solid #ffffff;
}

.bio-text {
  flex: 1;
}

h2 {
  font-size: 1.8rem;
  color: #1a365d;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.4rem;
  color: #1a365d;
}
h4 {
  font-size: 1.1rem;
  color: #1a365d;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #2d3748;
}

.footer {
  width: 100%;
  height: 50px;
  
  display: flex;
  flex-direction: row;
  border-top: 1px solid black;
  background-color: #e3e3e3;
}
.footerSection > p {
  margin-bottom: 0;
}
.footerSection{
  width: 100%;
  justify-content: center;
  margin-right: 10px;
}
#acknowledgements {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-content: center;
  align-items: center;
}
.allcredit {
  display: flex;
  justify-content: flex-end;
  align-content: center;
  align-items: center;
}
.contentToRight {
  display: flex;
  justify-content: flex-end;
  align-content: flex-start;
  align-items: flex-start;
  
}
.fiftyFifty {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 20px;
  margin-right: 40px;
}

a:visited{
  color: blue;
}
a{
  text-decoration: none;
}
#xpCardContainer{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.xpCard {
  display: grid;
  grid-template-columns: 15% 85%;
  gap: 20px;
  margin-right: 20px;
  padding: 10px;

  background-color: #f5f5f5;
  border-radius: 9px;
}
#projectCardContainer{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.projectCard {
  display: grid;
  grid-template-columns: 20% 30% 50%;
  align-items: center;
  justify-content: center;
  gap: 20px;

  width: 80%;

  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 20px;
  border-top-right-radius: 25px;

  padding: 10px;
}
.blockPicture {
  border-radius: 15px;
  /* border: 1px solid black; */
  margin: 5px;
  width: 70px;
  height: 70px;
  padding: 10px;
}
.titleDescription{
  display: flex;
  flex-direction: column;
}

.descriptionBackdrop{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 2;

  display: none;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}
.descriptionCard{
  background-color: white;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 3;

  width: 40%;
  height: fit-content;

  border: 1px solid black;
  border-radius: 5px;
}
#descriptionCardContent{
  white-space: pre-wrap;
  padding: 10px;
}

.flexRowDiv{
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.animated-gradient {
  background: linear-gradient(300deg, rgb(210, 229, 236, 0.15), rgb(155, 122, 169, 0.15), rgb(63, 63, 131, 0.15));
  background-size: 180% 180%;
  animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .content {
    margin-left: 0;
    width: 100%;
    margin-top: 2rem;
  }
  
  .bio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .name-header {
    position: relative;
    top: 0;
    right: 0;
    text-align: center;
    margin-bottom: 2rem;
  }
}
