.about-section {
  background-color: #f8f9fa;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.about-text {
  width: 70%;
  float: left;
}

.about-text h2,
.about-text h3,
.about-text p {
  opacity: 0;
  transform: translateY(150px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.about-text h2.active,
.about-text h3.active,
.about-text p.active {
  opacity: 1;
  transform: translateY(0);
}


.about-text p.active:nth-of-type(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
}

.about-text p.active:nth-of-type(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.8s;
}

.about-text p.active:nth-of-type(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1s;
}

.about-text h2 {
  font-size: 3.2rem;
  font-weight: bold;
  font-style: italic;
  color: #004aad;
}

.about-text h3 {
  font-size: 1.9rem;
  font-weight: bold;
  font-style: italic;
  color: #898584;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.4rem;
  width: 100%;
  color: #333;
  line-height: 1.6;
}

/* .about-text span:hover {
  transform: scale(1.2);
  color: #004aad;
} */

/* .about-text span:hover {
  transform: translateY(-5px);
  color: #26cb2d;
} */

.about-image {
  width: 40%;
  float: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  right: 0;
  top: 60%;
  overflow: hidden;
  height: 100%;
  transform: translateY(150px);
  opacity: 0;
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.about-image.active {
  transform: translateY(0);
  opacity: 1;
}



.about-image img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 1900px) {
.about-section {
  padding: 100px 0;
  min-height: 720px; 
}

.about-image {
  top: 5%; 
  transform: translateY(150px);
  
}

.about-text h2 {
  font-size: 4rem;
}

.about-text h3 {
  font-size: 2.2rem;
}

.about-text p {
  font-size: 1.6rem;
}

.about-image img {
  max-height: 100%;
  object-fit: cover;
}
}

@media (max-width: 1900px) {
.about-section {
  padding: 100px 0;
  min-height: 600px;
}

.about-image {
  top: 1%; 
  transform: translateY(150px);
  
}

.about-text h2 {
  font-size: 3rem;
}

.about-text h3 {
  font-size: 1.8rem;
}

.about-text p {
  font-size: 1.4rem;
}

.about-image img {
  max-height: 100%;
  object-fit: cover;
}
}

@media (max-width: 991px) {
  .about-section {
    padding: 60px 0px;
    min-height: 350px;
  }
  .about-text h2 {
    font-size: 3rem;
  }
  
  .about-text h3 {
    font-size: 1.7rem;
  }
  
  .about-text p {
    font-size: 1.1rem;
  }

  .about-text,
  .about-image {
    width: 100%;
    float: none;
    position: static;
    opacity: 1;
    transform: none;
    
  }

  .about-image {
    margin-top: 30px; 
    display: flex;
    justify-content: center;
    transform: none;
    opacity: 1;
  }

  .about-image img {
    max-width: 90%;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .about-image {
    margin-top: 140px;
    margin-bottom: -200px;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-image {
  top: 1%;
  }

  .about-image img{
      display: block;
      margin: 0 auto;
  }
}
