.section1 {
  background-image: url(./images/about-sec1-bg.png);
  background-size: cover;
  height: 70vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.about-us {
  font-family: var(--font-family);
  color: var(--secondary-color);
  font-weight: 900;
  font-size: 40px;
}

.section-head-con {
  background: linear-gradient(135deg,
      rgba(14, 13, 35, 0.96),
      rgba(0, 104, 56, 0.7));
  width: 60%;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -100%;
  /* Start hidden to the left */
  animation: slideIn 1.5s forwards ease-out;
  /* Trigger the animation */
}

/* Animation for sliding the container in */
@keyframes slideIn {
  0% {
    left: -100%;
    /* Hidden */
  }

  100% {
    left: 0;
    /* Fully visible */
  }
}

@media only screen and (max-width: 768px) {
  .section1 {
    background-image: url(./images/about-sec1-bg.png);
    background-size: cover;
    height: 30vh;
    width: 100vw;
    /* Ensure the section takes full screen width */
    margin: 0;
    /* Remove any margins */
  }

  .about-us {
    font-size: 20px;
    /* Decrease the font size */
  }

  .section-head-con {
    width: 60%;
    height: 30vh;
    left: -100%;
    /* Start hidden to the left */
    animation: slideInMobile 1s forwards ease-out;
    /* Adjust animation timing */
  }

  /* Mobile-specific animation for sliding the container in */
  @keyframes slideInMobile {
    0% {
      left: -100%;
      /* Hidden */
    }

    100% {
      left: 0;
      /* Fully visible */
    }
  }
}


/* section2 */
.section2 {
  display: flex;
  justify-content: space-evenly;
  padding-top: 4%;
  padding-bottom: 2%;
}

.section2-h3 {
  text-align: center;
  font-family: var(--font-family);
  color: var(--secondary-color);
  font-size: 30px;
  font-weight: 600;
}

.line1 svg path:last-child,
.line2 svg path:last-child {
  stroke-dasharray: 390;
  /* This matches the length of the path */
}

.line1 svg path:last-child {
  stroke-dashoffset: 390;
  /* Initially hide the left line */
  animation: growLineRight 2s ease-in-out forwards;
}

.line2 svg path:last-child {
  stroke-dashoffset: -390;
  /* Start with the right line fully drawn */
  animation: growLineLeft 2s ease-in-out forwards;
}

@keyframes growLineRight {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes growLineLeft {
  to {
    stroke-dashoffset: 0;
  }
}

.section2-h3 {
  text-align: center;
  font-family: var(--font-family);
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: 600;
  opacity: 0;
  animation: fadeInText 2s ease-in-out forwards 1s;
  width: 75%;
  margin: auto;
}

@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

/* Mobile View */
@media only screen and (max-width: 768px) {
  .section2 {
    padding-top: 3%;
    padding-bottom: 2%;
    justify-content: center;
    /* Center the elements while maintaining layout */
    margin: 0;
    width: 100vw;
    /* Ensure the section takes full screen width */
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
  }

  .section2-h3 {
    font-size: 16px;
    /* Slightly reduce font size */
    width: 90%;
    /* Ensure the text container doesn't overflow */
    margin: 0 auto;
    /* Center the text */
  }

  .line1 svg,
  .line2 svg {
    width: 100%;
    /* Make sure SVGs are responsive */
    height: 50px;
    margin-left: 10px;
    /* Remove left margin for better alignment */
  }

  .line1 svg path:last-child,
  .line2 svg path:last-child {
    stroke-dasharray: 312;
    /* Adjust stroke-dasharray to match new width */
  }

  .line1 svg path:last-child {
    stroke-dashoffset: 312;
    /* Initially hide the line */
  }

  .line2 svg path:last-child {
    stroke-dashoffset: -312;
    /* Start with the line fully drawn */
  }
}


/* section3 */
.section3 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInSection 1.5s ease-in-out forwards;
  animation-delay: 2s;
}

@keyframes fadeInSection {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.found-paras-align>div,
.para-founder-img>div {
  opacity: 0;
  transform: translateY(50px);
}

.found-paras-align>div:nth-child(1) {
  animation: fadeInTextLeft 1.2s ease-out forwards;
  animation-delay: 1s;
}

.found-paras-align>div:nth-child(2) {
  animation: fadeInTextRight 1.2s ease-out forwards;
  animation-delay: 1.2s;
}

.para-founder-img>div:nth-child(1) {
  animation: fadeInTextLeft 1.2s ease-out forwards;
  animation-delay: 1.4s;
}

.para-founder-img>div:nth-child(2) {
  animation: fadeInTextLeft 1.2s ease-out forwards;
  animation-delay: 1.6s;
}

.founder {
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInImage 1.5s ease-out forwards;
  animation-delay: 1.8s;
  padding-bottom: 30px;
}

@keyframes fadeInTextLeft {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInTextRight {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInImage {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.founder-con {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section3-h3 {
  text-align: center;
  font-family: var(--font-family);
  color: var(--primary-color);
  font-size: 40px;
  font-weight: 900;
}

.found-paras-align {
  display: flex;
  align-items: flex-end;
  width: 90%;
  margin: auto;
  padding-top: 1%;
  padding-bottom: 2%;
}

.para-founder-img {
  display: flex;
  justify-content: space-around;
  padding-top: 2%;
  width: 90%;
  margin: auto;
}

.section3-para {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-color);
  text-align: justify;
}

.quote-h3 {
  text-align: center;
  font-family: var(--font-family);
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 600;
  margin-left: 15%;
}

.founder-para1 {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-color);
  width: 70%;
  text-align: justify;
}

@media screen and (min-width: 1650px) {
  .found-paras-align {
    display: flex;
    align-items: flex-end;
    width: 84%;
    margin: auto;
    padding-top: 1%;
    padding-bottom: 2%;
  }

  .para-founder-img {
    display: flex;
    justify-content: space-around;
    padding-top: 2%;
    width: 84%;
    margin: auto;
  }

  .section3-para {
    font-size: 20px;
  }

  .founder-para1 {
    font-size: 20px;
    text-align: justify;
  }
}

/* Mobile View */
@media only screen and (max-width: 768px) {
  .section3 {
    opacity: 1;
    /* Ensure it's visible on mobile */
    transform: none;
    /* Remove the vertical translation */
    animation: none;
    /* Remove the animation for simplicity */
    width: 100vw;
    /* Ensure the section takes full screen width */
    margin: 0;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
  }

  .section3-h3 {
    font-size: 24px;
    text-align: center;
    width: 80%;
    margin: auto;
  }

  .found-paras-align {
    flex-direction: column;
    /* Stack paragraphs vertically */
    align-items: center;
    /* Center align content */
    padding-top: 2%;
    padding-bottom: 2%;
    width: 90%;
    /* Ensure full-width alignment on mobile */
    margin: auto;
  }

  .para-founder-img {
    flex-direction: column;
    /* Stack image and text vertically */
    align-items: center;
    /* Center align content */
    padding-top: 2%;
    padding-bottom: 2%;
    width: 90%;
    /* Ensure full-width alignment on mobile */
    margin: auto;
  }

  .section3-para,
  .quote-h3,
  .founder-para1 {
    font-size: 14px;
    /* Reduce font size for better mobile readability */
    text-align: center;
    /* Center-align text */
    width: 90%;
    /* Adjust width for better alignment */
    margin: auto;
  }

  .founder-para1 {
    font-size: 14px;
    width: 90%;
    margin: auto;
    text-align: center;
    margin-bottom: 15px;
  }

  .founder {
    width: 100%;
    /* Make image full width */
    max-width: 300px;
    /* Limit the maximum width */
    height: auto;
    /* Maintain aspect ratio */
    padding-bottom: 20px;
    /* Adjust bottom padding */
    margin: auto;
    /* Center the image on the screen */
  }
}

/* section4 */
/* Initially hide section4 */
.section4 {
  opacity: 0;
  transform: translateY(50px);
  /* Move it slightly down to create an entrance effect */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  /* Increased duration for slower animation */
}

/* When the animate class is added, show the section and animate the cards */
.section4.animate {
  opacity: 1;
  transform: translateY(0);
  /* Move it to its final position */
}

/* Define keyframes for the 3D zoom-in effect for cards */
@keyframes zoomInFromInside {
  0% {
    transform: perspective(1000px) scale(1.5) rotateX(15deg) rotateY(15deg) translateZ(-100px);
    /* Start from inside */
    opacity: 0;
  }

  100% {
    transform: perspective(1000px) scale(1) rotateX(0) rotateY(0) translateZ(0);
    /* End at normal scale and position */
    opacity: 1;
  }
}

/* Apply animation to ethical cards when section has the animate class */
.section4.animate .ethical-card {
  animation: zoomInFromInside 2s ease-out forwards;
  /* Increased duration for slower animation */
}

/* Optional: Add a slight delay to each card for a staggered effect */
.section4.animate .ethical-card:nth-child(1) {
  animation-delay: 0.1s;
}

.section4.animate .ethical-card:nth-child(2) {
  animation-delay: 0.2s;
}

.section4.animate .ethical-card:nth-child(3) {
  animation-delay: 0.3s;
}

.section4.animate .ethical-card:nth-child(4) {
  animation-delay: 0.4s;
}

.section4.animate .ethical-card:nth-child(5) {
  animation-delay: 0.5s;
}

.ethical-img {
  width: 80px;
  height: 70px;
}

.cards-align {
  display: flex;
  align-items: center;
  width: 80%;
  padding: 1%;
  margin: auto;
  justify-content: center;
  flex-wrap: wrap;
}

/* Initial state for the cards before they are in view */
.ethical-card {
  width: 300px;
  height: 250px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
  padding: 1%;
  border-radius: 20px;
  background-color: #ffffff;
  margin: 0.8%;
  transform: perspective(1000px) scale(1.5) rotateX(15deg) rotateY(15deg) translateZ(-100px);
  /* Start from inside */
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

/* Add this class when the section is in view */
.animate .ethical-card {
  transform: perspective(1000px) scale(1) rotateX(0) rotateY(0) translateZ(0);
  /* End at normal scale and position */
  opacity: 1;
}

/* Optional: Add a slight delay to each card for a staggered effect */
.animate .ethical-card:nth-child(1) {
  transition-delay: 0.1s;
}

.animate .ethical-card:nth-child(2) {
  transition-delay: 0.2s;
}

.animate .ethical-card:nth-child(3) {
  transition-delay: 0.3s;
}

.animate .ethical-card:nth-child(4) {
  transition-delay: 0.4s;
}

.animate .ethical-card:nth-child(5) {
  transition-delay: 0.5s;
}

.ethical-head {
  text-align: left;
  font-family: var(--font-family);
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 600;
}

.ethical-para {
  text-align: left;
  font-family: var(--font-family);
  color: #000000;
  font-size: 16px;
  font-weight: 600;
}

/* larges screens */
@media screen and (min-width: 1650px) {
  .cards-align {
    display: flex;
    align-items: center;
    width: 70%;
    padding: 1%;
    margin: auto;
    justify-content: center;
    flex-wrap: wrap;
  }

  .ethical-card {
    width: 350px;
    height: 300px;
    margin: 2%;
  }

  .ethical-para {
    font-size: 20px;
  }
}

/* Mobile View */
@media only screen and (max-width: 768px) {
  .section4 {
    opacity: 1;
    /* Ensure it's visible on mobile */
    transform: none;
    /* Remove the vertical translation */
    transition: none;
    /* Remove the transition for simplicity */
    /* Adjust padding for better spacing on mobile */
  }

  .service-head {
    font-size: 24px;
    /* Reduce font size for mobile */
    text-align: center;
    /* Center align text */
  }

  .service-para {
    font-size: 16px;
    /* Reduce font size */
    text-align: center;
    /* Center align text */
    margin: 10px 0;
    /* Adjust margin for better spacing */
  }

  .cards-align {
    flex-direction: column;
    /* Stack cards vertically */
  }

  .ethical-card {
    width: 90%;
    /* Reduce width */
    max-width: 350px;
    /* Limit maximum width */
    height: auto;
    /* Adjust height automatically */
    margin: 10px 0;
    /* Add margin for spacing */
    padding: 10px;
    /* Adjust padding */
    transform: none;
    /* Remove 3D effect */
    opacity: 1;
    /* Ensure visibility */
    transition: none;
    /* Remove transition */
    align-items: center;
  }

  .ethical-img {
    width: 80px;
    /* Reduce image size */
    height: 60px;
    /* Reduce image size */
  }

  .ethical-head {
    font-size: 20px;
    /* Reduce font size */
    text-align: center;
    /* Center align text */
  }

  .ethical-para {
    font-size: 14px;
    /* Reduce font size */
    text-align: center;
    /* Center align text */
  }
}

/* section5 */
.service-head {
  font-size: 40px;
  font-family: var(--font-family);
  color: var(--primary-color);
  font-weight: 900;
  text-align: center;
  padding-top: 25px;
  padding-bottom: 15px;
}

.service-para {
  font-family: var(--font-family);
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}

.our-con {
  background-color: var(--primary-color);
  width: 95%;
  margin: auto;
  margin-top: 20px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 2s ease-out;
}

.mission-align {
  display: flex;
  justify-content: center;
  /* gap: 2%; */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.mission-text {
  padding: 20px;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}

.mission-img {
  padding: 20px;
  opacity: 0;
  transform: translateX(50px) rotateY(-10deg);
  transition: opacity 1.8s ease-out, transform 1.8s ease-out;
  height: 250px;
  width: 450px;
  border-radius: 35px;

}

.our-mission {
  font-size: 30px;
  font-family: var(--font-family);
  color: var(--secondary-color);
  font-weight: 900;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.our-para {
  font-family: var(--font-family);
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 400;
  opacity: 0;
  transition: opacity 1.2s ease-out;
  text-align: justify;
}

/* Trigger animations when in view */
.section5.scrolled-into-view .service-head,
.section5.scrolled-into-view .service-para,
.section5.scrolled-into-view .our-con,
.section5.scrolled-into-view .mission-align,
.section5.scrolled-into-view .mission-text,
.section5.scrolled-into-view .mission-img,
.section5.scrolled-into-view .our-mission,
.section5.scrolled-into-view .our-para {
  opacity: 1;
  transform: translateY(0);
  transform: translateX(0);
  transform: rotateY(0deg);
}

/* larger screens */
@media screen and (min-width: 1650px) {
  .our-con {
    width: 84%;
  }

  .our-mission {
    font-size: 24px;
  }

  .our-para {
    font-size: 20px;
  }
}

/* Mobile View */
@media only screen and (max-width: 768px) {
  .section5 {
    width: 100%;
  }

  .service-head {
    font-size: 24px;
    /* Reduce font size */
    padding-top: 15px;
    /* Adjust padding */
    padding-bottom: 0;
    /* Adjust padding */
  }

  .service-para {
    font-size: 14px;
    /* Reduce font size */
    margin: 10px 0;
    /* Adjust margin */
  }

  .our-con {
    margin-top: 10px;
    /* Reduce top margin */
    margin-bottom: 10px;
    /* Reduce bottom margin */
    padding: 10px;
    /* Add padding for spacing */
  }

  .mission-align {
    flex-direction: column;
    /* Stack vertically on mobile */
    gap: 10px;
    /* Adjust gap */
    text-align: center;
    /* Center align text */
  }

  .mission-text {
    padding: 10px;
    /* Reduce padding */
    transform: none;
    /* Remove transform */
    opacity: 1;
    /* Ensure visibility */
    text-align: center;
    /* Center align text */
  }

  .mission-img {
    width: 75%;
    transform: none;
    margin: 0 auto;
    opacity: 1;
    /* Center align image */
  }

  .our-mission {
    font-size: 24px;
    margin-top: -5px;
  }

  .our-para {
    font-size: 14px;
    /* Reduce font size */
  }
}