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

/* từ dưới lên  */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* từ trên xuống */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* từ trái sang phải */
@keyframes slideRight {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* từ phải sang trái */
@keyframes slideLeft {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes swing {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) rotate(5deg);
  }
  50% {
    transform: translateX(-50%) rotate(0deg);
  }
  75% {
    transform: translateX(-50%) rotate(-5deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

@keyframes rotate {
  to {
    transform: translate(3px, 0) rotate(-3deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0; /* Bắt đầu mờ hoàn toàn */
  }
  100% {
    opacity: 1; /* Kết thúc với độ mờ là 1 (hiển thị đầy đủ) */
  }
}

/* Hiệu ứng fade in cho text - chữ hiển thị từ từ */
@keyframes fadeInText {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* Hiệu ứng zoom in */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hiệu ứng bounce - nảy */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

/* Hiệu ứng flip - lật */
@keyframes flipInX {
  from {
    transform: perspective(400px) rotateX(90deg);
    opacity: 0;
  }
  to {
    transform: perspective(400px) rotateX(0);
    opacity: 1;
  }
}

/* Hiệu ứng heart beat - đập tim */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* Hiệu ứng shimmer - lấp lánh */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Hiệu ứng float - bay lơ lửng */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Hiệu ứng shake - rung lắc */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

.content-right-header span,
.content-right-header a {
  transform: translateX(1000px);
  animation: slideLeft 0.8s forwards;
}
.text-khoi-van-phong span,
.text-khoi-van-phong a {
  transform: translateX(1000px);
  animation: slideLeft 0.2s forwards;
}
.content-right-header span:nth-child(1),
.content-right-header a:nth-child(1) {
  animation-delay: 0.1s;
}
.content-right-header span:nth-child(2),
.content-right-header a:nth-child(2) {
  animation-delay: 0.2s;
}
.content-right-header span:nth-child(3),
.content-right-header a:nth-child(3) {
  animation-delay: 0.3s;
}
.content-right-header span:nth-child(4),
.content-right-header a:nth-child(4) {
  animation-delay: 0.4s;
}
.content-right-header span:nth-child(5),
.content-right-header a:nth-child(5) {
  animation-delay: 0.5s;
}
.content-right-header span:nth-child(6),
.content-right-header a:nth-child(6) {
  animation-delay: 0.6s;
}

/* .header-active {
  animation: slideUp 1s ease forwards;
} */

.section.active {
  animation: slideUp 1.5s ease forwards;
}
.text-active {
  animation: slideUp 3s ease forwards;
}

.slide-up.active {
  animation: slideUp 2s ease forwards;
}
.slide-down.active {
  animation: slideDown 2s ease forwards;
}
.slide-left.active {
  animation: slideLeft 2s ease forwards;
}
.slide-left-no-active {
  animation: slideLeft 2s ease forwards;
}
.slide-right.active {
  animation: slideRight 2s ease forwards;
}
.slide-right-no-active {
  animation: slideRight 2s ease forwards;
}
.fade.active {
  animation: fadeIn 1.5s ease forwards;
}
.fade-in-text {
  opacity: 0;
}
.fade-in-text.active {
  animation: fadeInText 1.5s ease forwards;
}
.rotate.active {
  animation: rotate 1.5s ease forwards;
}
.zoom-in.active {
  animation: zoomIn 1.5s ease forwards;
}
.zoom-in-no-active {
  animation: zoomIn 1.5s ease forwards;
}

.bounce.active {
  animation: bounce 1.5s ease;
}

.flip-in.active {
  animation: flipInX 1.5s ease forwards;
}

.heart-beat {
  animation: heartBeat 1.5s ease infinite;
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.shake.active {
  animation: shake 0.5s ease;
}
