/* Parallax Background */
.parallax {
  background-image: url('/images/supermarket-banner-with-food.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Hover Scale Effect */
.hover-scale:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.client-logo {
  width: 300px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}

.client-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
  height: 220px;
  padding-bottom: 8px;
}

.client-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

/* Partner logo specific styling for better centering */
#partners .client-logo-wrapper {
  justify-content: center;
  align-items: center;
  text-align: center;
}

#partners .client-logo {
  display: block;
  margin: 0 auto;
}

/* Center the entire partner cards */
#partners .flex.justify-center {
  justify-content: center;
  align-items: center;
}

#partners a {
  display: flex;
  justify-content: center;
}

.client-name {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin-top: auto;
}

.justify-text {
  text-align: justify;
}

/* Service images - consistent sizing for all screen sizes */
#services img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
}

/* Mobile menu styles */
.mobile-menu {
  display: none;
}

.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block !important;
  }
  .desktop-menu {
    display: none !important;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 99999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  /* Show mobile nav when active class is added */
  .mobile-nav.active {
    max-height: calc(100vh - 72px);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }
  
  .mobile-nav ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mobile-nav li {
    width: 100%;
    text-align: center;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-nav li:last-child {
    border-bottom: none;
  }
  .mobile-nav a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
  }
  .mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
  }
  
  /* Improve mobile responsiveness for other sections */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Adjust hero section for mobile */
  #home .bg-white {
    padding: 1rem !important;
    margin: 0.5rem;
    max-width: 95vw;
    width: 95vw;
  }
  
  #home img {
    max-width: 80vw !important;
  }
  
  #home p {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Adjust grid layouts for mobile */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Services grid - 2 columns on medium screens, 1 on mobile */
  #services .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  @media (max-width: 640px) {
    #services .grid {
      grid-template-columns: 1fr !important;
    }
  }
  
  /* Adjust client logos for mobile */
  .client-logo {
    width: 200px !important;
    height: 80px !important;
  }
  .client-logo-container { height: 180px; }
  
  .flex.space-x-8 {
    flex-direction: column;
    gap: 1rem;
  }
  
  .flex.space-x-8 > * {
    margin: 0;
  }
}
