/* ================ Tecnologia =============== */

.tecnologia {
  background-color: #0d1320;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.tecnologia h2 {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: #f1e8ff;
  font-weight: 700;
}

.tecnologia .subtitulo {
  font-size: 1em;
  color: #d0cce0;
  margin-bottom: 30px;
}

.tecnologia hr {
  width: 90%;
  margin: 20px auto;
  border: 0;
  height: 1px;
  background-color: #444c5c;
}

.tecnologia .texto {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  text-align: justify;
}

.tecnologia .texto p {
  flex: 1 1 400px;
  line-height: 1.8;
  color: #d4d4d4;
  font-size: 1.05em;
}

/* Inicialmente invisíveis e deslocados */

.tecnologia h2,
.tecnologia .subtitulo,
.tecnologia hr,
.tecnologia .texto p {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-duration: 600ms;
  animation-timing-function: ease;
  animation-delay: 0s;
  will-change: opacity, transform;
}

/* Animações ativadas com a classe .animate */

.tecnologia.animate h2 {
  animation-name: fadeSlideDown;
  animation-delay: 0.2s;
}

.tecnologia.animate .subtitulo {
  animation-name: fadeSlideRight;
  animation-delay: 0.4s;
}

.tecnologia.animate hr {
  animation-name: fadeScaleX;
  animation-delay: 0.6s;
  transform-origin: left;
}

.tecnologia.animate .texto p:nth-child(1) {
  animation-name: fadeSlideLeft;
  animation-delay: 0.8s;
}

.tecnologia.animate .texto p:nth-child(2) {
  animation-name: fadeSlideLeft;
  animation-delay: 1.0s;
}

/* === Keyframes === */

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeScaleX {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}