@media screen and (max-width: 1400px) {
  #profile {
    height: auto; /* Change height to auto for better responsiveness */
    margin-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: fit-content;
  }
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }
  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }
  #profile,
  .section-container {
    display: block;
  }
  .arrow {
    display: none;
  }
  section,
  .section-container {
    height: fit-content;
  }
  section {
    margin: 0 5%;
  }
  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }
  .about-containers {
    margin-top: 0;
  }
}

@media screen and (max-width: 600px) {
  #profile {
    height: auto; /* Allow the profile section to adjust its height based on content */
    margin-bottom: 0;
  }

  .section__pic-container {
    width: 200px;
    height: 200px; /* Ensure equal width and height for circular shape */
    border-radius: 50%; /* Make the container circular */
    overflow: hidden; /* Ensure image does not overflow container */
    margin-bottom: 1rem; /* Add margin to prevent text collision */
  }

  .section__pic-container img {
    width: 100%;
    height: 100%; /* Fill the container */
    object-fit: cover;
    border-radius: 50%; /* Maintain circular shape for the image */
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  .title {
    font-size: 2rem;
  }


.project {
  position: relative;
  overflow: hidden; /* Ensure that overflow is hidden */
}

.project-img {
  width: 100%;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  padding: 1rem; /* Add padding for better visibility */
  font-size: 0.8rem; /* Reduce font size */
  max-height: 200px; /* Adjust the max height as needed */
  overflow-y: auto; /* Enable vertical scrolling if content exceeds max height */
}

.project:hover .overlay {
  opacity: 1;
}

.overlay .project-title {
  margin: 0;
  font-size: 1rem; /* Increase font size for title */
  margin-bottom: 10px;
  max-width: 90%; /* Limit the width of project title */
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis for long titles */
  white-space: normal; /* Allow the title to wrap */
  word-wrap: break-word; /* Ensure that long words break properly */
  hyphens: auto; /* Enable hyphenation for long words */
}

.overlay .btn-container {
  display: flex;
  gap: 5px; /* Reduce gap between buttons */
}

.overlay .btn {
  padding: 8px 15px; /* Adjust button padding */
  border: none;
  cursor: pointer;
  background-color: #ff5722;
  color: white;
  text-align: center;
  border-radius: 5px;
  font-size: 0.8rem; /* Reduce button font size */
}

.details-container {
  margin-bottom: 10px; /* Add some bottom margin for spacing */
}



}











