/* Mobile-specific styles */
@media (max-width: 767px) {
  /* Disable 3D background on mobile */
  #vanta-bg {
    display: none !important;
  }

  /* Fix hero section padding and content width */
  #home {
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden;
    width: 100%;
  }

  /* Adjust typography for mobile */
  #name-heading {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }
  
  h2.text-4xl {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }
  
  .typewriter {
    white-space: normal !important;
    animation: none;
    border-right: none;
  }
  
  /* Fix paragraph width */
  #home p {
    max-width: 100%;
    width: 100%;
  }
  
  /* Fix buttons */
  #home .flex.flex-wrap.gap-4 {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  #home .flex.flex-wrap.gap-4 a {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    justify-content: center;
  }
  
  /* Add padding to all sections */
  .section-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Fix project cards */
  .project-card {
    width: 100%;
  }
  
  /* Fix modal on mobile */
  #project-modal-content {
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  /* Maintain aspect ratio in modal gallery on mobile */
  .modal-gallery-main {
    aspect-ratio: 16 / 9 !important; /* Force 16:9 aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  
  /* Adjust spacing for modal content */
  .modal-gallery-thumbs {
    height: 60px;
  }
  
  /* Ensure thumbnails maintain aspect ratio */
  .modal-gallery-thumbs .swiper-slide {
    aspect-ratio: 16 / 9;
    height: 100%;
  }
  
  /* Hide navigation arrows on mobile devices */
  .gallery-navigation,
  .swiper-button-next,
  .swiper-button-prev,
  .main-gallery-nav,
  .tech-swiper-button-prev,
  .tech-swiper-button-next {
    display: none !important;
  }
  
  /* Adjust padding for containers that had navigation arrows */
  .modal-gallery-thumbs-container {
    padding: 0 !important; /* Remove padding that was for navigation arrows */
  }
}