@import "./theme.css";

#about {
  padding: 100px 0;
  overflow-x: hidden; /* Evita o scroll horizontal */
}

#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
  color: var(--primary-text);
  padding-top: 1%;
}

#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
  color: var(--primary-text);
  text-transform: none;
}

#about h2::after {
  position: absolute;
  content: "";
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}

#about p {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
}

#about .paragraph {
  font-family: "Montserrat", sans-serif;
  font-variant: normal;
  font-size: 15px;
  text-align: justify;
  text-indent: 2em;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

#about .pd {
  padding-top: 15px;
}

#about img {
  width: 400px;
  margin-top: 10px;
  margin-left: 60px;
  background: var(--white-background);
  border-right: 0;
}

#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}

#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: var(--primary-text);
  font-size: 11px;
  font-weight: 300;
  padding-right: 8px;
}

/* Keyframes mais elásticos */
@keyframes elasticFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  70% {
    transform: translateX(12%); /* overshoot maior */
    opacity: 1;
  }
  85% {
    transform: translateX(-4%); /* rebote */
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes elasticFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  70% {
    transform: translateX(-12%); /* overshoot maior */
    opacity: 1;
  }
  85% {
    transform: translateX(4%); /* rebote */
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Estado inicial */
#about h2,
#about h3,
#about .about-text {
  opacity: 0;
  transform: translateX(-100%);
}

#about img {
  opacity: 0;
  transform: translateX(100%);
}

/* Quando a seção fica visível */
#about.is-visible h2,
#about.is-visible h3,
#about.is-visible .about-text {
  animation: elasticFromLeft 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

#about.is-visible img {
  animation: elasticFromRight 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@media (max-width: 768px) {
  #about img {
    margin: 50px 0;
    margin-left: 0;
  }
}
