@import "./theme.css";

#app {
  padding: 10px 0;
}

/* Keyframes elásticos com estiramento e encolhimento suaves */
@keyframes elasticFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  50% {
    transform: translateX(-8%); /* overshoot maior para estirar */
    opacity: 1;
  }
  75% {
    transform: translateX(2%); /* encolhe com rebote */
  }
  90% {
    transform: translateX(-1%); /* pequeno rebote adicional */
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes elasticFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    transform: translateX(8%); /* overshoot maior para estirar */
    opacity: 1;
  }
  75% {
    transform: translateX(-2%); /* encolhe com rebote */
  }
  90% {
    transform: translateX(1%); /* pequeno rebote adicional */
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Estado inicial */
#app .col-xs-12.col-md-6 {
  opacity: 0;
}

#app .col-xs-12.col-md-6:first-child {
  transform: translateX(100%);
}

#app .col-xs-12.col-md-6:last-child {
  transform: translateX(-100%);
}

/* Animações quando visível */
#app.is-visible .col-xs-12.col-md-6:first-child {
  animation: elasticFromRight 2.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

#app.is-visible .col-xs-12.col-md-6:last-child {
  animation: elasticFromLeft 2.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Outros estilos */
#app h2 {
  position: relative;
  color: var(--primary-text);
  text-transform: none;
}

#app h2::after {
  position: absolute;
  content: "";
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}

#app p {
  font-family: "Montserrat", Sans-serif;
  font-size: 28px;
}

#app img {
  margin-top: 10px;
  background: var(--white-background);
  border-right: 0;
}

@media (max-width: 768px) {
  #app .about-text {
    margin-top: 10%;
  }
}

.d-flex {
  display: flex;
  align-items: center;
  align-content: center;
  flex-direction: row;
  justify-content: center;
}