.features {
  display: flex;
  justify-content: space-between;
  background-color: rgb(255, 255, 255);
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1%;
  animation-name: slide1;
  animation-duration: 0.8s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.parallax-text h2 {
  font-size: 3vh;
  color: rgb(52, 189, 220);
}

@keyframes slide1 {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-item {
  padding-bottom: 20px;
  text-align: center;
  flex: 1;
  background-color: #ffffff;
  height: fit-content;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 1;
}

.feature-item:hover {
  background: linear-gradient(179.1deg, rgb(41, 147, 174) 2.3%, rgb(152, 241, 241) 98.3%);
  transform: scale(1.1);
  z-index: 2;
  border-radius: 20px;
}

.feature-item img {
  max-width: 60px;
  margin-top: 20px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;

}

/* Adding animation */
@keyframes moveUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
    /* Adjust this value for the distance you want to move */
  }

  100% {
    transform: translateY(0);
  }
}

.feature-item:hover img {
  animation: moveUpDown 1s infinite;
  /* Adjust the animation duration as needed */
}


.feature-item img:hover {
  transform: translateY(-10px);
}


.feature-item h3 {
  color: #333;
  font-size: 1.7vh;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-item p {
  color: #373737;
  line-height: 1.6;
  font-size: 1.6vh;
  font-weight: 350;
}

.line {
  width: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  /* The color of the line */
  align-items: center;
  margin: 0 10px;
  /* Spacing around the lines */
}

/* You may need additional styling depending on your design. */
@media only screen and (max-width: 1600px) {
  .features {
    width: 700px;
  }

}

@media only screen and (max-width: 840px) {
  .features {
    width: 650px;
  }

  .parallax-text h2 {
    font-size: 2.5vh;

  }
}



/* Responsive styling */
@media only screen and (max-width: 768px) {
  .features {
    flex-wrap: wrap;
    flex-direction: column;
    width: 300px;
    /* Wrap items onto multiple lines at smaller screens  */

    /* Remove right margin for full-width at smaller screens */
  }

  .feature-item {
    flex: 0 0 auto;
    /* Allow items to shrink and grow equally */
  }

  .line {
    display: none;
  }
}

@media only screen and (max-width: 659px) {

  .features {
    width: 300px;
  }
}

.features .feature-item {
  text-decoration: none;
  /* Remove underline */
  color: inherit;
  /* Inherit the color from the parent */
}

.features .feature-item:hover {
  text-decoration: none;
  /* Add underline on hover if desired */
}


.onasp {
  margin-left: 9%;
  margin-right: 9%;
}

@media (max-width: 659px) {
  .onasp {
    margin-left: -20%;
    margin-right: -20%;
    text-align: justify;
  }

}

/* Parallax Container */
.parallax-container {
  position: relative;
  overflow: hidden;
  height: 300px;
  /* Adjust the height */
}

/* Parallax Effect for Image */
.parallax {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.parallax-img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 0, 0);
  /* Enhance performance on some browsers */
  z-index: -1;
  /* Ensure the image stays behind the text */
  filter: brightness(60%);
}

/* Parallax Text */
.parallax-text {
  position: relative;
  /* Updated to relative */
  z-index: 10;
  /* Ensure text is above the image */
  color: white;
  /* Adjust text color */
  text-align: center;
  /* Centering text */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Aesthetic Line */
.aesthetic-line {
  width: 50%;
  /* Adjust line width */
  margin-top: 20px;
  /* Adjust spacing from text */
  border: 1px solid white;
  /* Adjust line color and thickness */
}



.rp {
  color: black;
}