@media (max-width: 768px) {

  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
  }

  /* Navbar */
  .navbar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .menu-toggle {
    display: block;
    cursor: pointer;
  }
  .menu-toggle .bar {
    background-color: #fff; /* White bars */
    height: 3px;
    width: 22px;
    margin: 4px 0;
    display: block;
  }

  /* Mobile nav links (hidden by default) */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
     background-color: transparent;
        backdrop-filter: blur(5px);
    top: 60px;
    left: 0;
    z-index: 1000;
  }

  /* When hamburger is clicked (menu open) */
  .nav-links.active {
    display: flex;
    
  }
  .nav-links.active a {
    color: #4a2c2a; /* White text inside menu */
    padding: 12px 20px;
    text-decoration: none;
  }
  /* .nav-links.active a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  } */

  /* Hero first carousel images - contain within view */
  .carousel-container img,
  .carousel-container .carousel img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
.carousel {
    transform: none !important;
  }
  .carousel .card {
    position: relative;
    opacity: 1;
    pointer-events: auto;
  }
  /* Marquee text */
  /* .marquee {
    overflow: visible !important;
    white-space: nowrap;
  } */

  /* PCARO gallery */

   
  #pcaro-container {
    /* Use a fixed height or a smaller viewport height to reduce space */
    height: 60vh; /* Reduced from 100vh */
  }

  #pcaro-galleryView {
    /* Match the new container height */
    height: 60vh; /* Reduced from 100vh */
  }

 


  #pcaro-leftView, 
  #pcaro-rightView {
    display: block !important;
    max-width: 40vw;
    height: 20vh;
    /* height: 30vh; give them visible height */
    background-size: cover; /* ensure image fills */
    background-position: center;
  }
  #pcaro-mainView {
    max-width: 80vw;
    height: 30vh; /* main image taller */
    background-size: cover;
    background-position: center;
  }

  
  #pcaro-marquee {
   
    z-index: 10; /* above the image */
 
  }

  /* Make sure #pcaro-mainView is position: relative so absolute marquee works */
  #pcaro-mainView {
    position: relative;
  }

  
  .gridclub,
  .gridclub-alt {
    display: flex;
    flex-direction: column;
    gap: 20px; /* spacing between image and text */
    text-align: center; /* better readability on small screens */
  }

  /* For the Vision section, force image above text */
  .gridclub-alt {
    flex-direction: column; /* ensure normal stacking */
  }
  .gridclub-alt .whatwedoimage {
    order: -1; /* move the image to the top */
  }

  .whatwedoimage img {
    max-width: 100%;
    height: auto;
  }

  .matter {
    padding: 0 15px; /* some horizontal padding for mobile */
  }



  @media (max-width: 768px) {
  footer {
    padding: 20px 10px;
  }

  footer .content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* footer .top {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  } */

  footer .logo-details {
    margin-bottom: 10px;
  }

  footer .media-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  footer .media-icons a {
    font-size: 1.2rem;
  }

  /* footer .link-boxes {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
  } */

  footer .link-boxes p {
    width: 100% !important;
    max-width: 350px;
    text-align: center;
  }

  footer .link-boxes ul {
    text-align: center;
    padding: 0;
  }

  footer .input-box input[type="button"] {
    width: 100%;
    max-width: 200px;
    padding: 8px;
    font-size: 1rem;
    border: none;
    background-color: #4a2c2a;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
  }
  footer .input-box input[type="button"]:hover {
    background-color: #6a3c38;
  }

  footer .bottom-details {
    margin-top: 20px;
    text-align: center;
  }

  footer .bottom_text {
    flex-direction: column;
    gap: 5px;
  }
}
 footer::before {
    top: 170px; /* A new value for mobile screens */
  }





  /* Footer mobile tidy */
  footer .link-boxes {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  footer .link-boxes p {
    width: 100% !important;
    margin-bottom: 10px;
  }


   /* Shoe Leather Page Specific styles */
  .shoeleather-section {
    padding: 20px 12px 24px 12px;
    border-radius: 0;
    box-shadow: none;
    margin-top: 20px;
  }
  .shoeleather-heading {
    font-size: 2.2rem;
    margin-top: 0;
    animation: none; /* Disable desktop animation for mobile */
    opacity: 1;
    transform: translateY(0);
  }
  .shoeleather-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: none; /* Disable desktop animation for mobile */
    opacity: 1;
    transform: translateY(0);
  }
  .shoeleather-product-grid {
    grid-template-columns: 1fr; /* Stack products on mobile */
    gap: 1.5rem;
    padding: 0;
  }
  .shoeleather-product {
    padding: 16px;
    box-shadow: 0 2px 10px rgba(61,47,43,0.1);
  }
  .shoeleather-product:hover {
    transform: none; /* Disable hover effects for touch devices */
    box-shadow: 0 2px 10px rgba(61,47,43,0.1);
  }
  .shoeleather-product-image img {
    transform: none !important; /* Disable hover effects for touch devices */
  }
  .shoeleather-product-name {
    font-size: 1rem;
    margin-top: 1rem;
  }

  /* Hero Section Mobile adjustments */
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .left-section {
    max-width: 100%;
  }
  .left-section h1 {
    font-size: 2rem;
  }
  .left-section h3 {
    font-size: 1.2rem;
  }
  .left-section p {
    font-size: 0.9rem;
  }
  .right-section img {
    max-width: 90%;
  }
  .hero {
    padding: 20px 0;
    min-height: auto;
  }

  /* Stats section mobile adjustments */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .stat-label {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .card.touch-hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }
}
