/* --- Services Grid Section --- */
.services-grid-home {
  max-width: 1200px;
  margin: 0 auto 100px auto;
  padding: 0 20px;
}

.service-cards-grid-option4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  text-decoration: none;
}

.service-cards-grid-option4 .service-card-link {
  text-decoration: none;
}

.service-card-option4 {
  height: 180px;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-top-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.service-card-option4 a {
  text-decoration: none;
}

.service-card-option4:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-top-color: #007bff;
}

.service-card-option4 i {
  font-size: 3.5em;
  color: #007bff;
  margin-bottom: 20px;
}

.service-card-option4 h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #2c3e50;
}

.service-card-option4 p {
  font-size: 1em;
  color: #666;
  margin-bottom: 0;
}

/* --- Background images for each card  --- */

.service-card-option4.card-1 {
  background-image: url(assets/landfill2.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card-option4.card-2 {
  background-image: url(assets/waste.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card-option4.card-3 {
  background-image: url(assets/electronic-waste.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card-option4.card-4 {
  background-image: url(assets/landfill.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card-option4.card-5 {
  background-image: url(assets/mining.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card-option4.card-6 {
  background-image: url(assets/farm.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card-option4.card-7 {
  visibility: hidden;
}

.service-card-option4.card-8 {
  background-image: url(assets/arragate.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card-option4.card-9 {
  visibility: hidden;
}

.service-card-option4 h3,
.service-card-option4 p,
.service-card-option4 i {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 2;
}

/* Optional: Add a semi-transparent overlay for better text readability */
.service-card-option4 {
  position: relative;
  overflow: hidden;
}

.service-card-option4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Main Product Cards Section */
.main-products-section {
  max-width: 1200px;
  margin: 0 auto 100px auto;
  padding: 0 20px;
}

.product-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

.product-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #007bff;
  color: #fff;
  padding: 6px 15px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-content h3 {
  font-size: 2em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.product-tagline {
  font-size: 1.1em;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-description {
  font-size: 0.95em;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.product-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.product-features-list li {
  font-size: 0.9em;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-features-list li i {
  color: #28a745;
  font-size: 1.1em;
}

.button-secondary-product {
  display: inline-block;
  background-color: #eaf6ff;
  color: #007bff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-align: center;
  border: 2px solid #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.button-secondary-product:hover {
  background-color: #007bff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* --- Responsive Adjustments --- */
@media (min-width: 900px) {
  .product-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }

  .product-card-image {
    height: 180px;
  }

  .product-card-content {
    padding: 25px;
  }

  .product-card-content h3 {
    font-size: 1.8em;
  }

  .product-description {
    font-size: 0.9em;
  }

  .service-card-option4.card-7 {
    display: none;
  }
  .service-card-option4.card-9 {
    display: none;
  }
}

@media (max-width: 768px) {
  .services-grid-home,
  .about-us-home,
  .cta-home-option4 {
    margin-bottom: 80px;
    padding: 0 15px;
  }

  .service-cards-grid-option4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-decoration: none;
  }

  .service-card-option4 {
    padding: 30px;
  }

  .main-products-section {
    padding: 0 15px;
  }

  .product-cards-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .product-card-image {
    height: 200px;
  }
  .service-card-option4.card-7 {
    display: none;
  }
  .service-card-option4.card-9 {
    display: none;
  }
}

@media (max-width: 600px) {
  .section-header-centered h2 {
    font-size: 2.2em;
  }

  .section-intro-paragraph {
    font-size: 1em;
  }

  .service-cards-grid-option4 {
    grid-template-columns: 1fr;
  }

  .service-card-option4 i {
    font-size: 3em;
  }

  .service-card-option4.card-7 {
    display: none;
  }
  .service-card-option4.card-9 {
    display: none;
  }

  .cta-home-option4,
  .main-products-section,
  .services-grid-home {
    margin-bottom: 20px;
    margin-top: 20px;
  }
}
