html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 10px !important;
}
/* carousel */
.carousel {
  position: relative;
  height: 800px;
  overflow: hidden;
  margin-top: 8px;
}
.carousel .list {
  position: absolute;
  width: 100%;
  max-width: 90%;
  height: 80%;
  left: 50%;
  transform: translateX(-50%);
}
.carousel .list .item {
  position: absolute;
  left: 0%;
  width: 70%;
  height: 100%;
  font-size: 15px;
  transition: left 0.5s, opacity 0.5s, width 0.5s;
}
.carousel .list .item:nth-child(n + 6) {
  opacity: 0;
}
.carousel .list .item:nth-child(2) {
  z-index: 10;
  transform: translateX(0);
}
.carousel .list .item img {
  width: 50%;
  position: absolute;
  right: 0;
  margin-top: 30px;
  top: 50%;
  transform: translateY(-50%);
  transition: right 1.5s;
}

.carousel .list .item .introduce {
  opacity: 0;
  pointer-events: none;
}
.carousel .list .item:nth-child(2) .introduce {
  opacity: 1;
  pointer-events: auto;
  width: 400px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.5s;
}
.carousel .list .item .introduce .title {
  font-size: 2em;
  font-weight: 500;
  line-height: 1em;
}
.carousel .list .item .introduce .topic {
  margin-top: 1em;
  font-size: 2em;
  font-weight: 500;
}
.carousel .list .item .introduce .des {
  font-size: small;
  color: #5559;
}
.carousel .list .item .introduce .seeMore {
  font-family: Poppins;
  margin-top: 1.2em;
  padding: 5px 0;
  border: none;
  border-bottom: 1px solid #555;
  background-color: transparent;
  font-weight: bold;
  letter-spacing: 3px;
  transition: 0.5s;
}
.carousel .list .item .introduce .seeMore:hover {
  background: #eee;
}
.carousel .list .item:nth-child(1) {
  transform: var(--item1-transform);
  filter: var(--item1-filter);
  z-index: var(--item1-zIndex);
  opacity: var(--item1-opacity);
  pointer-events: none;
}
.carousel .list .item:nth-child(3) {
  transform: var(--item3-transform);
  filter: var(--item3-filter);
  z-index: var(--item3-zIndex);
}
.carousel .list .item:nth-child(4) {
  transform: var(--item4-transform);
  filter: var(--item4-filter);
  z-index: var(--item4-zIndex);
}
.carousel .list .item:nth-child(5) {
  transform: var(--item5-transform);
  filter: var(--item5-filter);
  opacity: var(--item5-opacity);
  pointer-events: none;
}
/* animation text in item2 */
.carousel .list .item:nth-child(2) .introduce .title,
.carousel .list .item:nth-child(2) .introduce .topic,
.carousel .list .item:nth-child(2) .introduce .des,
.carousel .list .item:nth-child(2) .introduce .seeMore {
  opacity: 0;
  animation: showContent 0.5s 1s ease-in-out 1 forwards;
}
@keyframes showContent {
  from {
    transform: translateY(-30px);
    filter: blur(10px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0px);
  }
}
.carousel .list .item:nth-child(2) .introduce .topic {
  animation-delay: 1.2s;
}
.carousel .list .item:nth-child(2) .introduce .des {
  animation-delay: 1.4s;
}
.carousel .list .item:nth-child(2) .introduce .seeMore {
  animation-delay: 1.6s;
}
/* next click */
.carousel.next .item:nth-child(1) {
  animation: transformFromPosition2 0.5s ease-in-out 1 forwards;
}
@keyframes transformFromPosition2 {
  from {
    transform: var(--item2-transform);
    filter: var(--item2-filter);
    opacity: var(--item2-opacity);
  }
}
.carousel.next .item:nth-child(2) {
  animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}
@keyframes transformFromPosition3 {
  from {
    transform: var(--item3-transform);
    filter: var(--item3-filter);
    opacity: var(--item3-opacity);
  }
}
.carousel.next .item:nth-child(3) {
  animation: transformFromPosition4 0.9s ease-in-out 1 forwards;
}
@keyframes transformFromPosition4 {
  from {
    transform: var(--item4-transform);
    filter: var(--item4-filter);
    opacity: var(--item4-opacity);
  }
}
.carousel.next .item:nth-child(4) {
  animation: transformFromPosition5 1.1s ease-in-out 1 forwards;
}
@keyframes transformFromPosition5 {
  from {
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    opacity: var(--item5-opacity);
  }
}
/* previous */
.carousel.prev .list .item:nth-child(5) {
  animation: transformFromPosition4 0.5s ease-in-out 1 forwards;
}
.carousel.prev .list .item:nth-child(4) {
  animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}
.carousel.prev .list .item:nth-child(3) {
  animation: transformFromPosition2 0.9s ease-in-out 1 forwards;
}
.carousel.prev .list .item:nth-child(2) {
  animation: transformFromPosition1 1.1s ease-in-out 1 forwards;
}
@keyframes transformFromPosition1 {
  from {
    transform: var(--item1-transform);
    filter: var(--item1-filter);
    opacity: var(--item1-opacity);
  }
}

/* detail  */
.carousel .list .item .detail {
  opacity: 0;
  pointer-events: none;
}
/* showDetail */
.carousel.showDetail .list .item:nth-child(3),
.carousel.showDetail .list .item:nth-child(4) {
  left: 100%;
  opacity: 0;
  pointer-events: none;
}
.carousel.showDetail .list .item:nth-child(2) {
  width: 100%;
}
.carousel.showDetail .list .item:nth-child(2) .introduce {
  opacity: 0;
  pointer-events: none;
}
.carousel.showDetail .list .item:nth-child(2) img {
  right: 50%;
}
.carousel.showDetail .list .item:nth-child(2) .detail {
  opacity: 1;
  width: 50%;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  pointer-events: auto;
}
.carousel.showDetail .list .item:nth-child(2) .detail .title {
  font-size: 4em;
}
.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
  display: flex;
  gap: 10px;
  width: 100%;
  border-top: 1px solid #5553;
  margin-top: 20px;
}
.carousel.showDetail .list .item:nth-child(2) .detail .specifications div {
  width: 90px;
  text-align: center;
  flex-shrink: 0;
}
.carousel.showDetail
  .list
  .item:nth-child(2)
  .detail
  .specifications
  div
  p:nth-child(1) {
  font-weight: bold;
}
.carousel.carousel.showDetail .list .item:nth-child(2) .checkout button {
  font-family: Poppins;
  background-color: transparent;
  border: 1px solid #5555;
  margin-left: 5px;
  padding: 5px 10px;
  letter-spacing: 2px;
  font-weight: 500;
}
.carousel.carousel.showDetail
  .list
  .item:nth-child(2)
  .checkout
  button:nth-child(2) {
  background-color: #693eff;
  color: #eee;
}
.carousel.showDetail .list .item:nth-child(2) .detail .title,
.carousel.showDetail .list .item:nth-child(2) .detail .des,
.carousel.showDetail .list .item:nth-child(2) .detail .specifications,
.carousel.showDetail .list .item:nth-child(2) .detail .checkout {
  opacity: 0;
  animation: showContent 0.5s 1s ease-in-out 1 forwards;
}
.carousel.showDetail .list .item:nth-child(2) .detail .des {
  animation-delay: 1.2s;
}
.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
  animation-delay: 1.4s;
}
.carousel.showDetail .list .item:nth-child(2) .detail .checkout {
  animation-delay: 1.6s;
}
.arrows {
  position: absolute;
  bottom: 10px;
  width: 1140px;
  max-width: 90%;
  display: flex;
  justify-content: space-between;
  left: 50%;
  transform: translateX(-50%);
}
#prev,
#next {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-family: monospace;
  border: none;
  font-size: large;
  bottom: 20%;
  left: 10%;
  background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
  #prev,
  #next {
    width: 50px; /* Smaller size for mobile */
    height: 50px;
    font-size: medium;
  }
}

#next {
  left: unset;
  right: 10%;
}
#back {
  position: absolute;
  z-index: 100;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  border-bottom: 1px solid #555;
  font-family: Poppins;
  font-weight: bold;
  letter-spacing: 3px;
  background-color: transparent;
  padding: 10px;
  /* opacity: 0; */
  transition: opacity 0.5s;
}
.carousel.showDetail #back {
  opacity: 1;
}
.carousel.showDetail #prev,
.carousel.showDetail #next {
  opacity: 0;
  pointer-events: none;
}
.carousel::before {
  width: 500px;
  height: 300px;
  content: "";
  background: linear-gradient(
    109.6deg,
    rgb(255, 230, 109) 11.2%,
    rgb(87, 232, 107) 100.2%
  );

  position: absolute;
  z-index: -1;
  border-radius: 20% 30% 80% 10%;
  filter: blur(150px);
  top: 50%;
  left: 50%;
  transform: translate(-10%, -50%);
  transition: 1s;
}
.carousel.showDetail::before {
  transform: translate(-100%, -50%) rotate(90deg);
  filter: blur(130px);
}
@media screen and (max-width: 991px) {
  /* ipad, tablets */
  .carousel .list .item {
    width: 90%;
  }
  .carousel.showDetail .list .item:nth-child(2) .detail .specifications {
    overflow: auto;
  }
  .carousel.showDetail .list .item:nth-child(2) .detail .title {
    font-size: 2em;
  }
}
@media screen and (max-width: 767px) {
  /* mobile */
  .carousel {
    height: 600px;
  }
  .carousel .list .item {
    width: 100%;
    font-size: 10px;
  }

  .carousel .list {
    height: 100%;
  }
  .carousel .list .item:nth-child(2) .introduce {
    width: 50%;
  }

  .carousel .list .item img {
    width: 40%;
  }
  .carousel.showDetail .list .item:nth-child(2) .detail {
    backdrop-filter: blur(10px);
    font-size: small;
  }
  .carousel .list .item:nth-child(2) .introduce .des,
  .carousel.showDetail .list .item:nth-child(2) .detail .des {
    height: 100px;
    overflow: auto;
  }
  .carousel.showDetail .list .item:nth-child(2) .detail .checkout {
    display: flex;
    width: max-content;
    float: right;
  }
}

.custom-container {
  margin-top: 200px; /* Adjust as needed */
  border-radius: 10px;
  background-color: #e5f5e044;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  max-width: 1140px; /* Adjust as needed based on Bootstrap breakpoints */
  margin: 100px auto;
}

.card {
  border: none;

  /* border-radius: 10px; */
  margin: 30px;
  border: 0 !important;
  background-color: #e5f5e000 !important;
}

.card-body {
  padding: 30px;
  text-align: center;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-text {
  color: #888;
  font-size: 16px;
}

.cardimg img {
  border-radius: 50%;
  height: 4rem;
  width: 4rem;
  margin: 20px;
}
.cardimg img {
  transition: transform 0.4s ease, box-shadow 0.4s ease; /* Smooth transition for image growth and glow */
}

.cardimg:hover img {
  transform: scale(1.1); /* Grow the image on hover */
  box-shadow: 0 0 20px 10px rgba(0, 255, 0, 0.8); /* Green glowing effect around the image */
}
.card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 1s ease-in-out;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}
/* Main container about company */
.accontainer {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 20px;
  display: flex;
  justify-content: space-between; /* Space between image and text */
  align-items: flex-start; /* Align items to the top */
  gap: 40px; /* Space between sections */
}

/* About company section on the right */
.about-company {
  width: 50%; /* Adjust width as needed */
  padding: 20px;
}

.about-company h1 {
  font-size: 44px;
  margin-bottom: 20px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
/* Initial state of the heading (off-screen to the left) */
.animated-heading {
  opacity: 0;
  transform: translateX(-100px); /* Start 100px off the left */
  transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
}

/* Class added when the heading comes into view */
.animated-heading.visible {
  opacity: 1;
  transform: translateX(0); /* Move into its original position */
}

/* Optional: Add keyframe animation for more complex effects */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(
      -100px
    ); /* Starting position off-screen to the left */
  }
  100% {
    opacity: 1;
    transform: translateX(0); /* Final position */
  }
}

/* If you want to use keyframes for the animation */
.animated-heading.visible {
  animation: slideInFromLeft 1s ease-out forwards;
}

.about-company p {
  margin-bottom: 10px;
  line-height: 1.6;
  font-weight: 400;
}

/* Button styling */
.btn {
  background-color: #000000;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #23f82e;
}
/* Initial state of the image (off-screen to the left) */
.animated-image {
  opacity: 0;
  transform: translateX(-100px); /* Start 100px off the left */
  transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
}

/* Class added when the image comes into view */
.animated-image.visible {
  opacity: 1;
  transform: translateX(0); /* Move into its original position */
}

/* Optional: Add keyframe animation for more complex effects */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(
      -100px
    ); /* Starting position off-screen to the left */
  }
  100% {
    opacity: 1;
    transform: translateX(0); /* Final position */
  }
}

/* If you want to use keyframes for the animation */
.animated-image.visible {
  animation: slideInFromLeft 1s ease-out forwards;
}

/* Image container on the left */
.image-container {
  width: 45%; /* Adjust width to control image size */
  display: flex;
  justify-content: center; /* Center the image horizontally */
}

/* Image wrapper (adjusted to medium size) */
.image-wrapper {
  position: relative;
  overflow: hidden;
  width: 80%; /* Image takes 80% of container's width */
  height: 450px; /* Adjust height to medium size */
  border-radius: 8px; /* Optional: rounded corners */
}

/* Image styling */
.image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Shine effect pseudo-element */
.image-wrapper::before {
  position: absolute;
  top: 0;
  left: -100%;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transform: skewX(17deg);
  z-index: 1;
  transition: left 0.8s ease; /* Smooth transition for the shine effect */
}

/* Shine effect on hover */
.image-wrapper:hover::before {
  left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .accontainer {
    flex-direction: column;
    gap: 30px;
  }

  .about-company,
  .image-container {
    width: 100%;
  }

  .image-wrapper {
    height: 250px; /* Adjust height for smaller screens */
  }
}
/* our product */
.product-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.product-card {
  text-align: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}
.product-h2 {
  color: #2ab97e;
}
/* Define the animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Class to trigger the animation */
.animate-fade-up {
  animation: fadeUp 1s ease-out forwards;
}

/* Base styles for the hero section */
/* Bootstrap adjustments and animations */
.fade-in-image {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-title {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-text {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Bootstrap image adjustments */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Visibility triggers for animations */
.fade-in-image.visible,
.slide-in-title.visible,
.slide-in-text.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.video-banner-container {
  position: relative;
  width: 100%;
  height: 95vh; /* Default for larger screens */
  overflow: hidden;
}

.video-banner-container video {
  width: 100%;
  height: 100%; /* Ensures full coverage */
  object-fit: cover; /* Prevents cropping */
}

/* Mobile view adjustments */
@media (max-width: 768px) {
  .video-banner-container {
    width: 100%;
    height: 56.25vw; /* 16:9 aspect ratio (9 / 16 * 100) */
  }

  .video-banner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures full visibility */
  }
}

.rounded-circle {
  height: 100px !important;
  width: 100px !important;
} /* Make all columns equal width */

/* Ensure the columns are equally spaced and aligned */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 100px;
}

.row > .col {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Ensure columns stretch to match the height */
  flex: 1 1 0%; /* Ensure equal width for each column */
  padding: 0 10px; /* Optional: Add some space between columns */
} /* Banner overlay styling */
/* Banner overlay styling - Full-width strip */
.banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 100%;
  padding: 1rem 0;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

/* Tablet View */
@media (max-width: 1024px) {
  .banner-overlay {
    font-size: 1.3rem;
    padding: 0.8rem 0;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .banner-overlay {
    font-size: 1.1rem;
    padding: 0.6rem 0;
  }
}

/* Small Mobile View */
@media (max-width: 480px) {
  .banner-overlay {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
}

/* Ensure that each certification-box has the same height */
.certification-box {
  text-align: center;
  border: 2px solid #ccc;
  padding: 20px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute content evenly */
  height: 100%; /* Make sure the box takes the full height of the column */
  width: 100%; /* Ensure the box takes full width of the column */
  box-sizing: border-box;
}

.certification-box img {
  width: 100px;
  height: 60px;
  object-fit: contain; /* Maintain image aspect ratio without stretching */
  flex-grow: 1; /* Allow image to grow, but don’t let it break the box */
}

/* Ensure that content like text doesn't stretch the height of the box */
.certification-box h3 {
  margin-top: 15px;
  margin-bottom: 0;
}

/* Animation on page load */
.certification-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

/* Staggered delay for each item */
.certification-item:nth-child(1) {
  animation-delay: 0.1s;
}
.certification-item:nth-child(2) {
  animation-delay: 0.2s;
}
.certification-item:nth-child(3) {
  animation-delay: 0.3s;
}
.certification-item:nth-child(4) {
  animation-delay: 0.4s;
}
.certification-item:nth-child(5) {
  animation-delay: 0.5s;
}
.certification-item:nth-child(6) {
  animation-delay: 0.6s;
}
.certification-item:nth-child(7) {
  animation-delay: 0.7s;
}
.certification-item:nth-child(8) {
  animation-delay: 0.8s;
}
.certification-item:nth-child(9) {
  animation-delay: 0.9s;
}
.certification-item:nth-child(10) {
  animation-delay: 1s;
}
.certification-item:nth-child(11) {
  animation-delay: 1.1s;
}
.certification-item:nth-child(12) {
  animation-delay: 1.2s;
}

/* Fade-in effect */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effect */
.certification-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Adjust layout for smaller screens */
@media (max-width: 767px) {
  .row-cols-sm-2 {
    row-gap: 10px;
  }
}
button {
  user-select: none; /* Prevents text selection */
  cursor: pointer; /* Ensures a pointer cursor on hover */
}
