    html {
      scroll-behavior: smooth;
      scroll-padding-top: 0; /* Adjust if you want a little space from the top */
    }

    body {
      font-family: Roboto, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f9f9f9;
      color: #333;
      height: 100%;
    }

    /* Section styling */
    section {
      padding-top: 2px;
      margin-bottom: 2px;
    }

    .alternate-bg {
      background-color: #f1f1f1;
      width: 100%; /* Make the background stretch across the full width */
      padding: 2px 0; /* Padding for the sections */
    }

    .container-resume {
      padding: 2rem;
      max-width: 1200px;
      margin: 0 auto;
      background-color: transparent;
    }

    iframe {
      width: 100%;
      height: 800px;
      border: none;
    }

  .biography-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .biography-section img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
  }

  .profile-picture {
  border: 4px solid white; /* White border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Soft shadow */
  border-radius: 50%; /* Keeps it circular */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animation */
}

/* Optional hover effect for more interactivity */
.profile-picture:hover {
  transform: scale(1.05); /* Slight pop */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow */
}


  .contact-info {
    flex: 1;
    margin-left: 20px;
  }

  .contact-info h2 {
    font-size: 2rem;
    color: #333;
  }

  .contact-info p {
    font-size: 1rem;
    color: #666;
    margin: 5px 0;
  }

  .social-links a {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease; /* Add smooth transition for hover effect */
    text-decoration: none; /* Remove underline */
  }

  .social-links a img {
    width: 30px; /* Set the width */
    height: 30px; /* Set the height */
  }

  .social-links a:hover img {
    transform: scale(1.2); /* Apply hover scale to the icon */
  }


  .about-section {
    margin-top: 20px;
    text-decoration: none;
  }

  .about-section a {
      text-decoration: none;
    }

  .project-tile {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: left;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    width: 100%;
    flex-direction: column; /* ADDED JUST NOW */
  }

  .project-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .project-image {
    width: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;

    max-width: 100%;
    height: auto;
  }

  .project-content {
    flex: 1;
    display: flex;
    flex-direction: row; /* ADDED JUST NOW flex-direction: row; */
    align-items: center;
  }

  .project-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
  }

  .project-description {
    font-size: 1rem;
    margin: 0.5rem 0;
  }

  .project-link {
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
    margin-top: auto;
  }

  .project-link:hover {
    text-decoration: underline;
  }

  .project-card-container {
    display: block;
    margin-bottom: 20px;
  }

  .project-content > div {
    margin-right: 20px;
  }

/* Mobile view adjustments */
@media (max-width: 768px) {
  .project-card-container {
    margin-bottom: 15px;
  }

  .project-tile {
    padding: 10px;
    height: auto; /* Adjust height if needed */
  }

  .project-description {
    padding-top: 10px;
    font-size: 14px; /* Smaller font size */
  }

  .project-title {
    font-size: 16px; /* Smaller title font */
  }

  .project-content {
    flex: 1;
    display: flex;
    flex-direction: column; /* ADDED JUST NOW flex-direction: row; */
    align-items: center;
  }

  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 10px; /* Smaller font size for skill badges */
  }

  .skill-badge {
    padding: 5px 10px;
    font-size: 10px; /* Smaller badge font */
  }

  .award-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
  }

  .award-description {
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }
}

  /* Navbar styles */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 10px 0;
    z-index: 1000;
  }


  .hide-progress-bar {
      display: none !important;
    }


  /* Make the navbar stick to the top */
  .sticky-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: adds a shadow effect */
  }

  /* Increase padding for the navbar items */
  .navbar-nav .nav-item {
    margin-left: 20px;
  }

  /* Make navbar items space further from the right side */
  .navbar-nav {
    padding-right: 40px; /* Adjust this value as necessary */
  }

  /* Ensure the navbar toggler appears for small screens */
  .navbar-toggler {
    border: 1px solid #fff; /* Optional: adds a border around the toggler */
  }

  .navbar-toggler-icon {
    background-color: #fff; /* Optional: makes the toggler icon visible */
  }

/* Highlight style for CV link */
.cv-highlight {
  background-color: #007bff;
  color: #fff !important;
  border-radius: 999px;
  padding: 4px 18px;                /* Balanced size */
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  line-height: 1.5;                 /* Matches Bootstrap's nav-link line height */
  text-align: center;
  white-space: nowrap;
  margin-top: 4px; /* <-- vertical offset to align with other links */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Ensure hover keeps rounded look */
.cv-highlight:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  border-radius: 999px;
  text-decoration: none;
}





  /* Optional: Make navbar links spaced out more when collapsed */
  @media (max-width: 992px) {
    .navbar-nav {
      padding-right: 10px;
    }
  }

  nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.2rem;
  }

  nav a:hover {
    background-color: #575757;
    border-radius: 4px;
  }

  .navbar-toggler svg:hover {
    fill: #007bff; /* Add a hover effect */
  }

  .navbar-toggler:focus {
    outline: none;
    box-shadow: none; /* Optional: To also remove any shadow effect */
  }

  #work-experience {
    background-color: #f9f9f9;
    padding: 50px 0;
  }

  #work-experience {
    background-color: transparent;
    padding: 50px 0;
  }
.timeline {
  position: relative;
  margin: 30px 0;
  padding: 0;
  list-style-type: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px; /* Align with the center of the dots */
  top: 0;
  bottom: 0;
  width: 2px; /* Thickness of the line */
  background: repeating-linear-gradient(
    to bottom,
    #007bff, /* Line color */
    #007bff 5px,
    transparent 5px,
    transparent 10px
  );
  z-index: 1; /* Ensure it's behind the dots and cards */
}

.timeline-item {
  position: relative;
  margin: 20px 0;
  padding-left: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1; /* Ensure the dot is on top of the line */
}

.timeline-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 10px;
  width: 15px;
  height: 15px;
  border: 3px solid #007bff; /* Hollow dot with a blue border */
  border-radius: 50%;
  background-color: transparent; /* Hollow inside */
  z-index: 2; /* Ensure the dot is on top of the line */
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.timeline-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #585858;
  margin: 0;
}

.timeline-row {
  display: flex;
  justify-content: space-between; /* Makes title and date go to opposite sides */
  align-items: center; /* Vertically aligns items if needed */
}

.timeline-date {
  margin: 0;
  text-align: right; /* Aligns the date to the right */
  color: #585858;
}

.timeline-location {
  margin: 0;
  text-align: right; /* Aligns the location to the right */
  font-size: 1rem;
  font-weight: 600;
  color: rgba(0, 123, 255, 1.0); /* Blue color with 70% opacity */
}

.timeline-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 3; /* Ensure the dot is on top of the line */
  display: flex;
  flex-direction: column;
}

.timeline-content p {
  margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .timeline {
    padding-left: 15px; /* Reduce the padding on the left */
  }

  .timeline-item {
    padding-left: 20px; /* Reduce padding for mobile view */
    margin-bottom: 15px; /* Reduce space between items */
  }

  .timeline-dot {
    width: 12px; /* Make the dot smaller */
    height: 12px;
    left: 2px; /* Adjust dot position */
  }

  .timeline-content {
    margin-left: 20px; /* Adjust content position */
    padding: 10px; /* Reduce padding for mobile */
  }

  .timeline-title {
    font-size: 1.1rem; /* Reduce title font size */
  }

  .timeline-subtitle {
    font-size: 0.95rem; /* Slightly smaller subtitle font */
  }

  .timeline-location {
    font-size: 0.95rem; /* Smaller location text */
  }

  .timeline-date {
    font-size: 0.9rem; /* Reduce the size of the date */
  }

  .timeline-content p {
    font-size: 0.9rem; /* Smaller paragraph text for better readability */
  }
}

@media screen and (max-width: 480px) {
  .timeline-title {
    font-size: 1rem; /* Further reduce title font size on very small screens */
  }

  .timeline-subtitle {
    font-size: 0.85rem; /* Further reduce subtitle font */
  }

  .timeline-location,
  .timeline-date {
    font-size: 0.85rem; /* Further reduce text size */
  }

  .timeline-content {
    margin-left: 5px; /* Reduce margin for very small screens */
    padding: 8px; /* Further reduce padding */
  }
}


.footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 0.25rem 0; /* Extremely reduced padding */
  margin-top: auto;
  z-index: 999;
}

.footer a {
  color: #ced4da;
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.custom-footer-text {
  font-size: 0.9rem;
}

@media screen and (max-width: 480px) {
    .custom-footer-text {
      font-size: 0.7rem;
    }
}


    /* Image centered vertically on the scroll */
    .centered-image {
      position: absolute; /* Position the image absolutely in relation to the document */
      top: 50%; /* Place it in the vertical middle of the page */
      right: 0; /* Place it on the right edge of the screen */
      transform: translateY(-50%); /* Offset the image to ensure it's centered perfectly */
      z-index: -1; /* Ensure it's behind the content */
      max-width: 40%; /* Limit the image width */
      max-height: 70vh; /* Limit the image height */
    }

    /* Style the progress bar container */
    .progress-bar-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px; /* Fixed height */
      background-color: transparent;
      z-index: 1050; /* Ensure it's above the navbar */
      margin-top: 56px; /* Adjust for navbar height 56px */
    }

    /* Style the progress bar itself */
    .progress-bar {
      height: 4px;
      background-color: rgba(30, 95, 255, 0.7); /* Blue color with 70% opacity */
      width: 0%; /* Start with 0% width */
      transition: width 0.1s ease; /* Smooth transition for width change */
    }

  .award-tile {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .award-tile:hover {
    transform: scale(1.025);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .award-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 1px;
    margin-right: 1rem;
  }

  .award-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .award-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
  }

  .award-description {
    font-size: 1rem;
    margin: 0.5rem 0;
  }

  .award-link {
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
    margin-top: auto;
  }

  .award-link:hover {
    text-decoration: underline;
  }

  .award-card-container {
    display: block;
    margin-bottom: 2px;
  }

  .award-content > div {
    margin-right: 20px;
  }

.skills-list {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap; /* Ensures skills wrap to the next line if needed */
    gap: 0.5rem; /* Adds spacing between badges */
}

.skill-badge {
    display: inline-block;
    background-color: #007bff; /* Default background color */
    color: #fff; /* Text color */
    padding: 0.3rem 0.6rem;
    border-radius: 20px; /* Rounded corners for badges */
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.skill-badge:hover {
    background-color: #0056b3; /* Slightly darker blue on hover */
    transform: scale(1.1); /* Grows slightly on hover */
}

.biography-section img {
  width: 100%; /* Ensures the image scales responsively */
  height: auto; /* Maintains aspect ratio */
  max-width: 180px; /* Sets a maximum size for the image */
  border-radius: 50%; /* Makes the image a circle */
  object-fit: cover; /* Ensures the image fills the container properly */
  aspect-ratio: 1 / 1; /* Forces the container to maintain a square shape */
}

@media (max-width: 576px) {
  .biography-section img {
    max-width: 140px; /* Slightly smaller size on mobile */
  }
}

/* Special class for MathJax */
.mathjax-container {
  overflow-x: auto; /* Enables horizontal scrolling */
  overflow-y: hidden; /* Prevents vertical scrolling */
  min-height: 50px; /* Allow the div to grow based on content */
}

.mathjax-container p {
  white-space: nowrap; /* Ensures the equation does not wrap */
  margin: 0; /* Optional: removes any default margin */
}

/* For small screens (less than 768px), hide the GIF if it needs to wrap */
@media (max-width: 1400px) {
  .biography-section .gif-container {
    display: none; /* Hides the GIF when it overflows to the next line */
  }
  .centered-image {
    display: none;
  }
}
@media (max-width: 767px) {
  .mathjax-container p {
    font-size: 0.9em; /* Smaller font size for mobile */
    transform: scale(0.8); /* Optionally scale down further */
    transform-origin: left top; /* Ensure scaling looks natural */
  }
}
@media (max-width: 480px) {
  .mathjax-container p {
    font-size: 0.8em; /* Smaller font size for mobile */
    transform: scale(0.7); /* Optionally scale down further */
    transform-origin: left top; /* Ensure scaling looks natural */
  }

  .award-title {
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0;
  }

  .award-description {
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }
}
@media (max-width: 375px) {
  .mathjax-container p {
    font-size: 0.77em; /* Smaller font size for mobile */
    transform: scale(0.67); /* Optionally scale down further */
    transform-origin: left top; /* Ensure scaling looks natural */
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#cvFileViewer {
  opacity: 0;
  transition: opacity 0.6s ease;
  border: none;
  pointer-events: none; /* Prevent interaction while hidden */
}

#cvFileViewer.fade-in {
  opacity: 1;
  pointer-events: auto;
}




/* === Dark Theme === */
[data-bs-theme="dark"] body {
  background-color: #121212;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .alternate-bg,
[data-bs-theme="dark"] .timeline-content,
[data-bs-theme="dark"] .project-tile,
[data-bs-theme="dark"] .award-tile {
  background-color: #1e1e1e;
  color: #e0e0e0;
  box-shadow: 0 3px 6px rgba(255, 255, 255, 0.1); /* Updated */
}

/* Hover enhancements for dark mode shadows */
[data-bs-theme="dark"] .project-tile:hover,
[data-bs-theme="dark"] .award-tile:hover,
[data-bs-theme="dark"] .timeline-item:hover {
  box-shadow: 0 5px 13px rgba(255, 255, 255, 0.16); /* Added */
}

[data-bs-theme="dark"] nav,
[data-bs-theme="dark"] .footer {
  background-color: #1f1f1f;
  color: #e0e0e0;
}

[data-bs-theme="dark"] nav a {
  color: #e0e0e0;
}

[data-bs-theme="dark"] nav a:hover {
  background-color: #333;
}

[data-bs-theme="dark"] .timeline-dot {
  border-color: #90caf9;
}

[data-bs-theme="dark"] .timeline::before {
  background: repeating-linear-gradient(
    to bottom,
    #90caf9,
    #90caf9 5px,
    transparent 5px,
    transparent 10px
  );
}

[data-bs-theme="dark"] .timeline-location {
  color: #90caf9;
}

[data-bs-theme="dark"] .project-link,
[data-bs-theme="dark"] .award-link {
  color: #90caf9;
}

[data-bs-theme="dark"] .skill-badge {
  background-color: #1565c0;
}

[data-bs-theme="dark"] .skill-badge:hover {
  background-color: #0d47a1;
}

[data-bs-theme="dark"] .profile-picture {
  border-color: #e0e0e0;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); /* Added */
}

[data-bs-theme="dark"] .profile-picture:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15); /* Added */
}

[data-bs-theme="dark"] .cv-highlight {
  background-color: #2196f3;
  color: #fff !important;
}

[data-bs-theme="dark"] .cv-highlight:hover {
  background-color: #1565c0;
}

[data-bs-theme="dark"] .social-links a:hover img {
  filter: brightness(1.3);
}

[data-bs-theme="dark"] .progress-bar {
  background-color: rgba(144, 202, 249, 0.7);
}

[data-bs-theme="dark"] .timeline-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #b3b3b3;
  margin: 0;
}

[data-bs-theme="dark"] .timeline-date {
  margin: 0;
  text-align: right;
  color: #b3b3b3;
}