/* ============================   ABOUT   =========================== */

/* Estado inicial (antes de entrar na viewport) */
#about_me_section .about-text,
#about_me_section .about-photo {
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
}

/* Quando o observer marcar como visível */
#about_me_section .about-text.visible {
  animation: fadeInLeft .7s ease forwards;
}

#about_me_section .about-photo.visible {
  animation: fadeInRight .7s ease .1s forwards;
  /* leve delay para escalonar */
}

/* Animações */
/* Keyframes já estavam ok, mantive os seus */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#about_me_section {
  background: linear-gradient(to bottom,
      #F20574 -20%,
      /* topo */
      #1A2B60 50%,
      /* topo até meio */
      #F20574 50%,
      /* bottom começa no meio */
      #1A2B60 0%
      /* bottom */
    );

  color: whitesmoke;
  padding: 4rem 2rem;
  border-radius: 20px;
  margin: 2rem auto;
  max-width: 1000px;
  box-shadow: 0 8px 20px whitesmoke;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}

.about-text {
  flex: 1;
  min-width: 280px;
  text-align: justify;
}

.about-text h2,
.about-text h3 {
  color: whitesmoke;
}

.about-text p,
.about-text ul li {
  color: #f8f8f8;
  line-height: 1.6;
}

.about-highlights {
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-highlights div {
  flex: 1;
  min-width: 180px;
}

.about-photo {
  flex: 1;
  min-width: 240px;
  text-align: center;
}

.about-photo img {
  width: 100%;
  height: 100%;
  max-width: 400px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
  #about_me_section {
    flex-direction: column;
    padding: 3rem;
  }

  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-highlights {
    flex-direction: column;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .about-photo img {
    max-width: 300px;
  }
}


@media (min-width: 480px) {

  #about_me_section {
    width: 70%;
  }
}

/* Animações */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* ============================   END ABOUT   =========================== */