.dimensions {
  position: relative;
  
  
}

.dimensions::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dimensions > .container {
  position: relative;
  z-index: 1;
}

.dimensions-header {
  max-width: 560px;
  margin-bottom: 4.5rem;
}

.dimensions-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.dimensions-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.dimensions-grid {
  position: relative;
}

.dimensions-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 80%;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.06),
    transparent 70%
  );
  opacity: 0.35;
  pointer-events: none;
}


.dimensions {
  position: relative;
  overflow: hidden;
}

.dimensions-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(76,184,160,0.12), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255,184,107,0.12), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(110,211,163,0.12), transparent 50%);
  z-index: 0;
}

.dimensions .container {
  position: relative;
  z-index: 1;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
  justify-items: center;
}

.dimension-card {
  max-width: 220px;   /* 👈 control width */
  width: 100%;
  margin: 0 auto;     /* 👈 center inside grid cell */
}

.dimension-card {
  position: relative;
  padding: 2.2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.06);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.dimension-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.1);
}

.dimension-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at top,
      rgba(76,184,160,0.25),
      transparent 60%),
       radial-gradient(
      circle at bottom,
      rgba(255,184,107,0.25),
      transparent 60%
    );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.dimension-card:hover::before {
  opacity: 1;
}

.dimension-card lottie-player {
  width: 165px;
  height: 165px;
  margin: 0 auto 1.4rem;
}

.dimensions {
  animation: softFade 1s ease both;
}

@keyframes softFade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .dimensions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dimensions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dimensions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .dimensions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* 👈 KEY */
    gap: 2rem;
  }

  .dimension-card {
    flex: 0 1 220px;           /* fixed visual width */
  }
}

@media (max-width: 480px) {
  .dimension-card {
    padding: 1.8rem 1.2rem;
  }

  .dimension-card lottie-player {
    width: 130px;
    height: 130px;
  }
}

.section-header.center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header.center h2 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-header.center p {
  font-size: 1rem;
  color: #000;
  margin-top: 0.75rem;
}