/* Custom CSS to display 3 cards in a single line for Services and Featured Projects sections */

/* Services Section - Force 3 columns on all screen sizes */
#services .grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

/* Featured Projects Section - Force 3 columns on all screen sizes */
#portfolio .grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) {
  #services .grid,
  #portfolio .grid {
    gap: 1.5rem !important;
  }
}

/* Responsive adjustments for mobile - stack vertically on small screens */
@media (max-width: 768px) {
  #services .grid,
  #portfolio .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Ensure cards fit properly in the grid */
#services .grid > div,
#portfolio .grid > div {
  width: 100%;
  min-width: 0;
}

/* Increase client logo sizes for better visibility */
/* Target the client logos section */
section:has(h2:contains('Clients')) img,
section img[alt*='logo'],
section img[alt*='Logo'],
section img[src*='logo'],
section img[src*='Logo'] {
  max-height: 120px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Specifically target the carousel/slider logos */
.keen-slider img,
[class*='slider'] img,
[class*='carousel'] img {
  max-height: 120px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  filter: grayscale(0) !important;
  opacity: 1 !important;
}

/* Increase logo container sizes */
.keen-slider__slide,
[class*='slide'] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  min-height: 150px !important;
}

/* Ensure logos are crisp and clear */
img[src*='webp'],
img[src*='png'],
img[src*='jpg'] {
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
}
