
.cards {
  display: flex;
  flex-wrap: nowrap;
  width:100%;
  height: 350px !important;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  z-index: 2;
  margin-top: 12%;
}

/* INDIVIDUAL CARD         
         Each card uses flex: 1 1 0 for equal distribution.
         min-width: 0 prevents flex items from overflowing.
         will-change hints browser for optimized animations.
*/
.card {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  cursor: pointer;
  transition: flex 0.5s ease;
  overflow: hidden;
  position: relative;
  will-change: flex;
}

/* Card expand effect - grows to 3x width on hover */
.card:hover {
  flex: 3;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

/* CARD LINK WRAPPER         
         Full-size clickable area for better UX.
         Inherits color to maintain text styling.
*/
.card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* CARD IMAGE         
         Grayscale filter creates visual hierarchy - 
         active/hovered card stands out in full color.
         Shimmer animation provides loading feedback.
*/
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(100%);
  will-change: transform, filter;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Shimmer loading animation - runs until image loads */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Image transforms on hover - zoom in and colorize */
.card:hover img {
  transform: scale(1.2);
  filter: grayscale(0%);
}

/* CARD OVERLAY (::after pseudo-element)         
         Z-INDEX: 1 (bottom layer of content)
         Gradient overlay appears on hover to improve
         text readability over images.
*/
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* CARD TITLE         
         Z-INDEX: 2 (middle layer)
         Centered badge that inverts colors on hover
         for a polished interactive feel.
*/
.card-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

/* Title style inversion and scale on hover */
.card:hover .card-title {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  transform: translate(-50%, -50%) scale(1.1);
}

/* CARD DESCRIPTION         
         Z-INDEX: 3 (top layer)
         Hidden below card, slides up on hover to reveal
         additional information about the card content.
*/
.card-desc {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Slide up animation reveals description */
.card:hover .card-desc {
  transform: translateY(0);
}

/* KEYBOARD ACCESSIBILITY         
         focus-visible ensures outline only appears for
         keyboard navigation, not mouse clicks.
         Provides equal experience for all users.
*/
.card a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.card a:focus-visible img {
  filter: grayscale(0%);
}

/* RESPONSIVE: MOBILE DEVICES (< 768px)         
         Cards stack vertically on smaller screens.
         All interactive states shown by default since
         hover isn't available on touch devices.
*/
@media (max-width: 468px) {
  .cards {
    flex-direction: column;
    height: auto;
  }

  .card {
    flex: none;
    width: 100%;
    height: 250px;
  }

  .card:hover {
    flex: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  }

  /* Always show overlay on mobile */
  .card::after {
    opacity: 1;
  }

  /* Always show description on mobile */
  .card-desc {
    bottom: 0;
    transform: translateY(0);
  }

  /* Show full color images on mobile */
  .card img {
    filter: grayscale(0%);
  }
}

/* TOUCH DEVICE SUPPORT         
         Provides :active states for touch interactions
         where hover is not available.
*/
@media (max-width: 468px) and (hover: none) {
  .card:active {
    flex: 2;
  }

  .card:active img {
    transform: scale(1.1);
  }
}

/*  REDUCED MOTION ACCESSIBILITY         
         Respects user's system preference for reduced motion.
         Disables all animations and transitions for users
         who may experience motion sickness or distraction.
*/
@media (prefers-reduced-motion: reduce) {
  .card,
  .card img,
  .card-title,
  .card-desc,
  .card::after {
    transition: none;
  }

  .card img {
    animation: none;
  }
}






.logo-section {
  padding: 60px 0;
  background: #f8f8f8;
  overflow: hidden;
}

.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: calc(250px * 10); /* logo width Ã— total logos */
  animation: scroll 25s linear infinite;
}

.logo1 {
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.logo1 img {
  max-width: 220px;
  opacity: 0.7;
  transition: 0.3s ease;
}

.logo1 img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.logo-slider:hover .logo-track {
  animation-play-state: paused;
}