
section {

  width: 100%;

}

.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  overflow: auto;
}

.image-container {
  flex-basis: 100%;
  text-align: center;
  animation: slide-in-left 1s ease-out;
  animation-delay: 0.5s; /* delay image animation by 2s */
  margin-bottom: 30px;
  opacity: 0; /* hide image initially */
  animation-fill-mode: forwards;
}

.image-container img {
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  opacity: 1; /* show image after animation */
}

.image-container img:hover {
  transform: scale(1.05);
}

h2 {
  text-align: center;
  animation: slide-in-top 1s ease-out;
  font-size: 48px;
  color: #333;
  margin-bottom: 50px;
}



.text-container {
  flex-basis: 100%;
  animation: slide-in-right 1s ease-out;
  animation-delay: 0.7s; /* delay text animation by 3s */
  height: auto;
  opacity: 0; /* hide text initially */
  animation-fill-mode: forwards;
}

.text-container h3 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.text-container p {
  font-size: 18px;
  line-height: 1.5;
  color: #666;
}

.text-container button {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  margin-top: 20px;
}

.text-container button:hover {
  background-color: #0056b3;
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}

@media screen and (max-width: 768px) {
  .flex-container {
    flex-direction: column;
  }
  .image-container, .text-container {
    flex-basis: 100%;
  }
  .image-container {
    margin-bottom: 30px;
  }
  .text-container {
    height: auto;
    margin-top: 30px;
  }
}

@media screen and (max-width: 768px) {
  .flex-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .image-container, .text-container {
    flex-basis: 100%;
  }
  .image-container {
    margin-bottom: 25px;

  }
  .text-container {
    height: auto;
    margin-top: 30px;
    font-size: 16px;
    text-align: center;
  }
  .text-container h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .section-title h2 {
    font-size: 20px;
    margin-bottom: 30px;
  }
  button {
    font-size: 16px;
    padding: 8px 16px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .text-container p {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
  }
  .flex-container img{
      max-width: 60%;
      height: auto;
}

}