/* General Styles for Mobile */
@media (max-width: 800px) {
  body {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Showcase Section Adjustments */
  #showcase {
    height: auto;
    padding: 2rem 0;
  }

  #showcase #navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
  }

  #showcase #navbar .logo {
    font-size: 1.5rem;
    margin-bottom: 0;
    order: 1;
  }

  #showcase #navbar ul {
    flex-direction: row;
    align-items: center;
    order: 2;
  }

  #showcase #navbar li {
    padding-left: 0.5rem;
    margin: 0;
  }

  #showcase #navbar a {
    font-size: 0.8rem;
    padding: 0.5rem;
    display: inline;
    text-align: left;
  }

  #showcase .show-content {
    padding-top: 2rem;
  }

  #showcase .show-content h3 {
    font-size: 1.5rem;
  }

  /* Gallery Section */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .gallery img {
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* chng for hover */
  .featured-project {
    position: relative !important;
    overflow: hidden !important;
}


/* til here  */

  /* Featured Projects Section */
  #home-a .process-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #home-a .process-container div {
    /* width: 80%; */
    margin: 1rem 0;
    text-align: center;
  }

  /* Adjust Image Container */
  .image-container {
    position: relative;
    width: 100% ;

     /* Ensure full width */
    margin: 0 auto;
    /* padding-bottom: 0 !important; */
     /* Remove aspect ratio */
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Project Section */
  #project-a .items {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #project-a .items .item {
    width: 100% !important; /* Ensure full width */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
  }

  /* About, Blog, Contact Sections */
  #about,
  #blog,
  #contact {
    padding: 0 0 3rem 0;
  }

  /* Footer */
  #main-footer ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #main-footer ul li {
    margin-top: 1rem;
    text-align: center;
  }

  /* Header Content adjustments */
  #paviheader .header-content,
  #tyagiheader .header-content,
  #ahirheader .header-content,
  #wakadheader .header-content,
  #casaheader .header-content {
    top: 20%;
  }

  #paviheader .header-content h1,
  #tyagiheader .header-content h1,
  #ahirheader .header-content h1,
  #wakadheader .header-content h1,
  #casaheader .header-content h1 {
    font-size: 1.5rem;
  }

  #paviheader .header-content p,
  #tyagiheader .header-content p,
  #ahirheader .header-content p,
  #wakadheader .header-content p,
  #casaheader .header-content p {
    font-size: 1rem;
  }

  /* Remove hover effect on mobile */
  #project-a .items img:hover {
    transform: none;
  }

  #project-a .items .item .text-title {
    font-size: 1rem;
    padding: 3px 5px;
  }

  #project-a .items img:hover {
    transform: scale(1.4); /* Adjust scale factor to control zoom level */
    opacity: 1 !important; /* Make sure opacity stays at 1 on hover, even if other styles try to change it */
  }
  
  #project-a .items img:active {
    transform: scale(1.4); /* Adjust scale factor to control zoom level */
    opacity: 1 !important; /* Make sure opacity stays at 1 on touch, even if other styles try to change it */
  }
}

/* Smaller Screens Adjustments */
@media (max-width: 678px) {
  #showcase #navbar .logo {
    font-size: 1.3rem;
  }

  #showcase #navbar a {
    font-size: 0.7rem;
  }

  #showcase .show-content h3 {
    font-size: 1.1rem;
  }

  /* Gallery Section - One column on very small screens */
  .gallery {
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
    padding: 5px;
  }

  /* Additional adjustments for smaller screens */
  #paviheader .header-content,
  #tyagiheader .header-content,
  #ahirheader .header-content,
  #wakadheader .header-content,
  #casaheader .header-content {
    top: 15%;
  }
}

/* Height Adjustments */
@media (max-height: 678px) {
  #showcase .show-content {
    padding-top: 2rem;
  }
}
