.carousel-item img {
  position: relative;
}
.carousel-item h1 {
  position: absolute;
  z-index: 1;
  width: 50%;
  top: 0;
  padding: 10rem 3rem;
  font-size: 4rem;
  color: var(--secondary);
  font-family: "Protest Riot", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.cust_card {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 5rem 0rem;
}
.cust_card > div {
  width: 20rem;
  height: 7rem;
  padding: 1rem;
  border-radius: 15px;
  display: flex;
}
.cust_card img {
  margin: 0 1rem;
  width: 5rem;
  border-radius: 10px;
}
.cust_card p {
  color: grey;
}
.products {
  margin: 5rem 0rem;
}
.products button {
  width: 8rem;
  height: 3rem;
  border-radius: 10px;
  background-color: var(--primary);
  border: none;
}
.products button a {
  color: white;
  text-decoration: none;
}
.product_btn {
  display: flex;
  justify-content: space-between;
  margin: auto;
  padding: 3rem;
}
.cards a{
  text-decoration: none;
  color: black;

}
.products .cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: auto;
  padding: 2rem 0rem;
}
.product_card {
  border: none;
  width: 25rem;
  height: 30rem;
  margin: 2rem;
  border-radius: 5px;
  border: 1px solid rgb(194, 193, 193);

}
.product_card:hover {
  box-shadow: 0px 0px 30px rgb(194, 192, 192);
}
.product_detail p {
  margin: 2rem;
  color: var(--primary);
  font-size: 15px;
  border: 2px dashed;
  padding: 10px;
}
.product_card img {
  width: 100%;
  margin: auto;
  border-radius: 15px 15px 0 0;
}
.product_detail h1 {
  font-size: 1.3rem;
  padding: 4rem 0rem 0rem 1rem;
  margin: 0rem 1rem; 
}
.about_us {
  margin: 12rem 0rem;
  background-color: var(--secondary);
  display: flex;
  justify-content: space-around;
  position: relative;
}
.about_us::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 30rem;
  background-color: var(--secondary);
  transform: skewY(3deg) translateY(-5rem);
  transform-origin: top left;
  z-index: -1;
}
.about_us::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30rem;
  background-color: var(--secondary);
  transform: skewY(3deg) translateY(5rem);
  transform-origin: top left;
  z-index: -1;
}
.about_img,
.about_content {
  width: 50%;
  padding: 2rem;
}

.about_img img {
  width: 100%; /*  about us image sixe */
  height: 30rem;
}
.testimonial {
  margin: 5rem 0;
}
.testi_card {
  width: 20rem;
  border: 2px solid;
  border-radius: 15px;
  height: 15rem;
  margin: 2rem;
  padding: 1rem;
}
.contact_us {
  margin: 5rem 2rem;
  border: 1px solid var(--primary);
  border-radius: 15px;
  padding: 5rem 2rem;
}
.contact_us_info {
  width: 30%;
  padding-left: 5rem;
}
.contact_us_info h1 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}
.contact_us_info p {
  color: grey;
}

.contact_us_info svg {
  box-shadow: 0 0 5px var(--primary);
  padding: 1rem;
  width: 4rem;
  border-radius: 50%;
}
.contact_us_form {
  width: 70%;
  background-color: rgb(238, 238, 238);
  border-radius: 15px;
  padding: 2rem;
}
.contact_us_form h1 {
  font-size: 2rem;
}
.contact_us_form input[type="text"],
.contact_us_form input[type="email"] {
  width: 40%;
  margin: 2rem;
  border-radius: 15px;
  height: 3rem;
  outline: none;
  border: 0.1px solid lightgray;
  padding: 1rem;
}
.contact_us_form textarea {
  width: 90%;
  margin: 2rem;
  border-radius: 15px;
  height: 10rem;
  outline: none;
  border: 0.1px solid lightgray;
  padding: 1rem;
}
.contact_us_form input[type="submit"] {
  padding: 1rem;
  border-radius: 15px;
  border: none;
  background-color: var(--primary);
  outline: none;
  color: white;
}
.page-title {
  margin: 5rem 0rem;
  height: 10rem;
  border-radius: 0 0 8rem 0;
  background-color: var(--secondary);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.page-title h1 {
  margin-left: 5rem;
  color: white;
}

/* Styles for mobile devices */
@media screen and (max-width: 768px) {
  .carousel-item h1 {
    font-size: 1.2rem;
    width: 80%;
    padding: 3rem 3rem;
  }
  .cust_card {
    width: 100vw;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cust_card > div {
    width: 20rem;
    height: 5rem;
    margin: 10px;
  }
  .cust_card img {
    margin-left: 0rem;
    width: 3rem;
  }
  .cust_card p {
    display: none;
  }
  .cust_card h4 {
    font-size: 1rem;
  }
  .products button {
    width: 6rem;
    height: 2rem;
  }
  .product_card {
    margin: 2rem;
  }
  .about_us {
    flex-direction: column;
  }
  .about_img,
  .about_content {
    width: 100%;
  }
  .about_img img {
    height: 20rem;
  }

  .contact_us_info {
    width: 100%;
    padding-left: 2rem;
  }
  .contact_us_form {
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
  }
  .contact_us_form input[type="text"],
  .contact_us_form input[type="email"] {
    width: 100%;
    margin: 2rem 0rem;
  }

  .contact_us_form h1 {
    text-align: center;
  }

  .contact_us_form textarea {
    width: 100%;
    margin: 2rem 0rem;
  }
}

/* Styles for laptops */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .carousel-item h1 {
    font-size: 2.2rem;
    padding: 5rem 3rem;
  }
  .cust_card {
    width: 100vw;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cust_card > div {
    height: 6rem;
    margin: 10px;
  }
  .cust_card img {
    margin-left: 0rem;
    width: 3rem;
  }
  .cust_card p {
    display: none;
  }
  .about_us {
    flex-direction: column;
  }
  .about_img,
  .about_content {
    width: 100%;
  }
  .about_img img {
    height: 35rem;
  }
  .contact_us_info {
    width: 100%;
    padding-left: 2rem;
    display: flex ;
    flex-wrap: wrap;
    }
  .contact_us_info div{
    margin: 4rem;
  }
  .contact_us_form {
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
  }
  .contact_us_form input[type="text"],
  .contact_us_form input[type="email"] {
    width: 100%;
    margin: 2rem 0rem;
  }

  .contact_us_form h1 {
    text-align: center;
  }

  .contact_us_form textarea {
    width: 100%;
    margin: 2rem 0rem;
  }
}
