body {
  /* margin-top: 100px; */
  margin:0 200px;
}

.intro {
  margin-top: 20px;

}

p {
  text-align: justify;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  
  nav li {
    display: inline-block;
    margin: 0 10px;
    border-right: 1px solid #ccc;
    padding-right: 10px;
  }
  
  nav li:last-child {
    border-right: none;
    padding-right: 0;
  }
  
  nav a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
  }
  
  nav a:hover {
    background-color: #333;
    color: #fff;
  }
  
  .intro {
    display: flex;
    align-items: normal;
  }
  
  .intro img {
    height: auto; 
    width: 50px; /* set the size of the image */
    
    margin-right: 20px; /* add some margin to the right to separate the image from the text */
  }


  .social-media {
    display: flex;
    flex-direction: row;
  }
  
  ul {
    list-style-type: none;
    margin: 10;
    padding: 0;
  }
  
  li {
    margin-right: 20px;
  }
  
  .social-media li {
    display: inline-block;
    margin: 10 0px;
  }
  
  .social-media a {
    display: block;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: contain;
    text-indent: -9999px;
  }
  
  .social-media a:hover {
    opacity: 0.7;
  }
  

  /* .sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }
   */

  .timeline li {
    display: block;
    margin-bottom: 8px; /* optional spacing between items */
  }
  
  .timeline li * {
    display: inline-block;
  }
  
  .timeline li p {
    margin: 0; /* set margin to 0 */
  }

  .timeline li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.timeline li .date {
  flex: 0 0 100px;
}

.timeline li p {
  margin-left: 20px;
}

  .paper-details {
    display: inline-block;
    width: calc(100% - 150px); /* adjust the width as per your requirements */
    vertical-align: top;
  }
  
  .paper-image {
    display: inline-block;
    width: 150px; /* adjust the width as per your requirements */
    vertical-align: top;
  }

  .personal-projects {
    margin-top: 50px; /* Adds space above the section */
  }
  
  .personal-projects h2 {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
  }
  
  .project {
    display: flex;
    align-items: center;
    margin-bottom: 30px; /* Space between projects */
  }
  
  .project-image {
    width: 100px; /* Adjust image size */
    height: 100px; /* Adjust image size */
    margin-right: 20px; /* Adds space between image and description */
    border-radius: 8px; /* Optional: Makes the image edges rounded */
  }
  
  .project-details {
    flex: 1;
  }
  
  .project-details h3 {
    font-size: 20px;
    color: #333;
  }
  
  .project-details p {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
  }
  
  .project-link {
    font-size: 16px;
    color: #007BFF;
    text-decoration: none;
  }
  
  .project-link:hover {
    text-decoration: underline;
  }
  

/* # Highlight the timeline */

ul {
  list-style-type: none;
  padding: 0;
  font-family: 'Arial', sans-serif; /* Clean, modern font */
}

li {
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 3px solid #ddd; /* Subtle left border for modern design */
  transition: all 0.3s ease-in-out; /* Smooth hover effects */
}

.date {
  font-weight: bold;
  color: #444; /* Subtle dark color for the date */
}

.highlight {
  color: #1a73e8; /* Soft blue, modern and clean */
  font-weight: bold;
  text-decoration: none; /* Remove underline for a cleaner look */
  border-bottom: 1px solid #ddd; /* Subtle underline effect */
  transition: all 0.2s ease-in-out; /* Smooth hover effect for highlights */
}

.highlight:hover {
  color: #007aff; /* Slightly darker blue on hover for interactivity */
  border-bottom: 1px solid #007aff; /* More visible underline on hover */
}

p {
  font-size: 16px;
  line-height: 1.5;
  color: #555; /* Soft gray for paragraph text */
}

li:hover {
  background-color: #f7f7f7; /* Subtle background highlight on hover */
  border-left: 3px solid #1a73e8; /* Accent border on hover */
}

/* Pop-up styling */
.popup {
  position: absolute; 
  display: none;
  opacity: 0;
  width: auto;
  height: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
  overflow: auto;
  padding: 15px;
  z-index: 1000;
  box-sizing: border-box;
}

/* New flex container for the popup content */
.popup-content {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

/* Image container - left side (50%) */
.popup-image-container {
  flex: 0 0 50%; /* Fixed 50% width */
  max-height: 100%;
}

/* Caption container - right side (50%) */
.popup-caption-container {
  flex: 0 0 50%; /* Fixed 50% width */
  display: flex;
  align-items: center; /* Vertically center the text */
}

#popup-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  max-height: 100%;
  margin: 0;
}

.popup-caption {
  font-size: 14px;
  color: #333;
  text-align: left;
  font-family: 'Monaco', monospace;
  line-height: 1.5;
  overflow-y: auto;
  max-height: 100%;
}

/* Add a subtle hover effect to timeline items that have popup data */
.timeline li[data-image] {
  cursor: pointer;
  position: relative;
}

.timeline li[data-image]:hover {
  background-color: rgba(26, 115, 232, 0.05);
}

.timeline li[data-image]::after {
  content: '🖼️';
  margin-left: 6px;
  font-size: 14px;
  opacity: 0.6;
}

/* Media queries for better responsive behavior */
@media (max-width: 768px) {
  body {
    margin: 0 20px; /* Adjust main body margins on mobile */
  }
  
  .popup {
    padding: 12px;
    width: calc(100% - 40px);
    max-width: 450px;
  }
  
  /* Stack image and caption vertically on mobile */
  .popup-content {
    flex-direction: column;
  }
  
  .popup-image-container,
  .popup-caption-container {
    flex: 1 0 100%;
  }
  
  .popup-caption {
    font-size: 13px;
    margin-top: 10px;
  }
}

/* GIF slidein */
