/* Your existing CSS remains the same */

/* Media query for mobile devices */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  nav {
    height: 12vh;
  }

  .nav-links {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    align-items: center;
  }

  .logo {
    font-size: 1.5rem;
  }

  .menu-links {
    width: 100%;
    text-align: center;
  }

  .menu-links a {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  nav {
    height: 10vh;
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hamburger-icon {
    height: 20px;
    width: 25px;
  }

  .menu-links a {
    font-size: 1rem;
    padding: 8px;
  }
}
@media only screen and (max-width: 768px) {
  
  .about-container {
    gap: 0rem;
    margin-bottom: 2rem;
  }

  .details-containers, .footer {
    padding: 5%;
    height: auto;
    width: 380px;
    display: flex;
    flex-direction: column;
    margin-left: -130px;
  }

  .content-wrapper {
    flex-direction: column;
    height: auto;
    display: flex;
  }

  .image-container, .image-containers {
    
    width: 100%;
    height: 300px; /* Adjust as needed */
    padding-top: 0;
    order: 1; /* This moves the image container to the top */
    
  }

  .text-content {
    padding: 2rem;
    max-width: 100%;
    text-align: center;
    order: 2; /* This ensures the text content comes after the image */
  }

  .experience-sub-title.project-titles,
  .description-large,
  .description-medium,
  .description-mediums {
    max-width: 100%;
    text-align: center;
  }

  .logo-img, .logo-imgs {
    margin: 0 auto 20px;
  }

  .project-btns, .project-btnss {
    width: 80%;
    margin: 20px auto;
    text-align: center;
  }

  .project-img, .project-imgs {
    border-top-right-radius: 2rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Reset any absolute positioning */
  .project-title, .project-btn {
    position: static;
    transform: none;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 768px) {
  .nav-links-container {
    flex-direction: column;
    gap: 2rem;
  }

  .navcontainer {
    width: 100%;
    justify-items: center;
  }

  footer p {
    margin-top: 2rem;
  }
}
@media only screen and (max-width: 768px) {
  #experience {
    /* padding: 30px 15px; */
    width: 380px;
    margin-left: 25px;
  }
  #experiences {
    /* padding: 30px 15px; */
    width: 380px;
    
  }
  .title {
    font-size: 2rem;
  }

  .experience-card {
    padding: 1.9rem;
    width: 380px;
    height: auto;
    margin-left: -20px;
    
  }

  .experience-sub-title {
    font-size: 1.5rem;
  }

  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  
    padding: 5%;
    height: auto;
    width: 780px;
    display: flex;
    flex-direction: column;
    margin-left: -130px;
  }

  .skill-item {
   
    flex-direction: column;
    text-align: center;
    margin-left: -190px;
    
  }

  .skill-item h3 {
    font-size: 1rem;
  }

  .skill-item p {
    font-size: 0.8rem;
  }
}