
/**
 * XSUS STUDIO — SIX PRODUCT MODULES
 * Official Product Logo Integration
 * THE X IDENTITY
 *
 * Refinement:
 * - Reduced empty space above footer
 * - Preserved all six module cards
 * - Preserved logo sizes and visual effects
 */

/* MODULES SECTION */

.modules {
  max-width: 1200px;
  margin: 0 auto;
  padding: 35px 22px 55px;
}

/* SECTION HEADING */

.section-title {
  text-align: center;
  font-size: clamp(27px, 4vw, 35px);
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  margin-bottom: 35px;
}

/* PRODUCT GRID */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

/* PRODUCT CARDS */

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px;
  border: 1px solid #ffffff20;
  border-radius: 19px;

  background: linear-gradient(
    145deg,
    #14213bdf,
    #0b1024e8
  );

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #23dfff88;
  box-shadow: 0 12px 35px #00000035;
}

/* OFFICIAL PRODUCT LOGOS */

.card-icon {
  display: grid;
  place-items: center;

  width: 100%;
  height: 125px;
  margin-bottom: 22px;

  border-radius: 16px;
  background: transparent;
  overflow: hidden;
}

.card-icon img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transition: transform 0.25s ease;
}

.card:hover .card-icon img {
  transform: scale(1.05);
}

/* PRODUCT TITLES */

.card h3 {
  font-size: 21px;
  margin: 0 0 10px;
}

/* PRODUCT DESCRIPTIONS */

.card p {
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}

/* EXPLORE LINK */

.card span {
  color: var(--cyan);
  font-size: 13px;
  margin-top: auto;
}

/* TABLET */

@media (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 520px) {
  .modules {
    padding: 35px 18px 35px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .card-icon {
    height: 145px;
  }

  .card-icon img {
    max-width: 200px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .card,
  .card-icon img {
    transition: none;
  }

  .card:hover,
  .card:hover .card-icon img {
    transform: none;
  }
}
