/* ===========================
   PRODUCTS HERO
=========================== */
.products-hero {
  background: linear-gradient(-45deg, #000000, #23988e, #0f3f3c, #000000);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;

  min-height: 22vh;
  /*padding: 20px;*/
  padding: 40px 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.products-hero-content {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr; /* Left paragraph, Right heading */
  gap: 40px;
  align-items: center;
  /*justify-items: center;*/ /* center all content horizontally */
}

/* Left column */
.products-hero-left p {
  font-size: 16px;
  color: #ffffff;
  opacity: 0.95;
  line-height: 1.7;
  text-align: center; /* center-align text */
}

/* Right column */
.products-hero-right h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  text-align: center; /* center-align heading */
}

/* ===========================
   PRODUCTS SECTION
=========================== */
.products-section {
  background: #0b0b0b;
  padding: 50px 20px;
  display: flex;
  justify-content: center; /* center the products container */
}

.products-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center; /* center each product card */
}

/* Product Card */
.product-card {
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: all 0.3s ease;
  width: 100%; /* fill available space */
  max-width: 350px; /* optional: limit max width */

  text-align: center; /* center-align heading */
}

.product-card:hover {
  transform: translateY(-6px);
}

/* Image */
.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}


.product-content {
  padding: 28px 20px; /* more padding for content */
}

/* Content */
.product-content h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: #ffffff;
}

.product-content p {
  font-size: 15px;
  color: #d0d0d0;
  line-height: 1.75;
  margin-bottom: 18px;
}

/* Button */
.product-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #23988e;
  color: #fff;
  text-decoration: none;
  border-radius: 22px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.product-btn:hover {
  background: #1a7269;
}

/* ===========================
   HERO SHAPES
=========================== */
.products-hero .hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.products-hero .hero-shapes .shape {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(35, 152, 142, 0.18);
  filter: blur(60px);
  animation-duration: 12s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* Left shape */
.products-hero .hero-shapes .left {
  left: -180px;
  top: 50%;
  transform: translateY(-50%);
  animation-name: slideLeft;
}

/* Right shape */
.products-hero .hero-shapes .right {
  right: -180px;
  top: 40%;
  animation-name: slideRight;
}

/* Shape Animations */
@keyframes slideLeft {
  0%   { transform: translate(-40px, -50%) scale(1); }
  50%  { transform: translate(80px, -55%) scale(1.15); }
  100% { transform: translate(-40px, -50%) scale(1); }
}

@keyframes slideRight {
  0%   { transform: translate(40px, 0) scale(1); }
  50%  { transform: translate(-90px, -20px) scale(1.2); }
  100% { transform: translate(40px, 0) scale(1); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 992px) {
  .products-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    justify-items: center;
  }

  .products-hero-left p,
  .products-hero-right h1 {
    text-align: center;
  }

  .products-hero-right h1 {
    font-size: 30px;
  }

  .products-hero-left p {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .products-hero {
    min-height: 26vh;
    padding: 25px 16px;
  }

  .products-hero-right h1 {
    font-size: 26px;
  }

  .products-hero-left p {
    font-size: 14px;
  }
}
