/* Features Section */
#features {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto; /* Center the section */
}

#features h2 {
  font-size: 36px;
    font-weight: bold;
    color: #ff8800;
    margin-bottom: 20px; /* Reduced for consistency */
    position: relative;
    text-align: center;
}
#features h2::after {
  content: "FEATURES";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  font-weight: bold;
  color: rgb(247, 237, 227);
  z-index: -1;
}

#features > .container > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 cards per row */
  gap: 20px;
}

#features > .container > div > div {
  background-color: var(--highlight-light);
  padding: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  margin-top: 1rem;
}

#features > .container > div > div:hover {
  transform: translateY(-5px); /* Add hover effect for better interactivity */
}

#features > .container > div > div::after {
  content: "BinHaj";
  position: absolute;
  right: 5%;
  top: 6%;
  font-size: 4rem;
  font-weight: bolder;
  color: var(--highlight-dark);
  opacity: 0.1; /* Reduced opacity for a subtle background effect */
}

#features > .container > div > div > img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background-color: white;
  margin-bottom: 2rem;
}

/* Media Queries for Responsive Design */

/* For screens max-width: 1050px */
@media screen and (max-width: 1050px) {
  #features {
      padding: 3rem 0;
  }

  #features > .container > div {
      grid-template-columns: repeat(2, 1fr); /* Display 2 cards per row */
      gap: 1rem;
  }
}

/* For screens max-width: 635px */
@media screen and (max-width: 635px) {
  #features {
      padding: 2rem 0;
  }

  #features h2 {
      font-size: 25px; /* Slightly smaller font size */
      margin-left: 15px; /* Adjust for smaller screens */
  }
}

/* For screens max-width: 500px */
@media screen and (max-width: 500px) {
  #features > .container > div {
      grid-template-columns: repeat(1, 1fr); /* Display 1 card per row */
      gap: 1rem;
  }

  #features h2 {
      text-align: center; /* Center align the heading */
      font-size: 24px; /* Smaller font for better readability */
  }
}
