/* --- Custom animation for header-nav-main --- */

body.uxbc-disable-scroll {
  max-height: 100vh;
  overflow: hidden;
}
.home .header-nav-main.nav-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1), transform 1s cubic-bezier(0.4,0,0.2,1);
}

.home .header-nav-main.nav-left.uxbc-nav-animate {
  opacity: 1;
  transform: translateX(0);
}

.home #logo img {
  height: 43px;
}

/* --- Animation for header-nav-main.nav-right: from right to center --- */
.home .header-nav-main.nav-right, .home .nav-right.mobile-nav {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1), transform 1s cubic-bezier(0.4,0,0.2,1);
}

.home .header-nav-main.nav-right.uxbc-nav-animate, .home .nav-right.mobile-nav.uxbc-nav-animate {
  opacity: 1;
  transform: translateX(0);
}

/* --- Border transition for header-main --- */
.home header.header .header-wrapper {
  border-bottom-color:#7143e3;
  transition: border-color 0.8s cubic-bezier(0.4,0,0.2,1);
}

.home .header-wrapper.uxbc-border-white {
  border-bottom-color: #fff !important;
}

.home .animation-logo { 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: 20px;
}

.home .animation-left-logo {
  animation: spinEarth 2s ease-in-out forwards;
}

@keyframes spinEarth {
  from {
    transform: rotateY(90deg); /* Bắt đầu từ 90 độ */
  }
  to {
    transform: rotateY(0deg); /* Xoay 90 độ quanh trục Y về vị trí ban đầu */
  }
}

.home .animation-right-logo {
  opacity: 0;
  transform: translateX(-27px);
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1), transform 1s cubic-bezier(0.4,0,0.2,1) !important;
}

.home .animation-right-logo.uxbc-right-animate {
  opacity: 1;
  transform: translateX(0);
}

.home .uxbc-initial-loader {
  z-index: 99;
}

/* Logo animate */

.uxbc-initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #7143e3;
  display: flex;
  justify-content: left;
  padding-left: 40px;
  align-items: flex-end;
  transition: transform 0.8s ease-in-out, height 0.8s ease-in-out;
  overflow: hidden;
  z-index: 9999;
}

.uxbc-initial-loader.uxbc-slide-up {
  transform: translateY(-100%);
  height: 0;
}

.uxbc-init-logo {
  position: absolute;
  top: 3vw;
  left: 2.5vw;
  width: 11vw;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.uxbc-init-logo.uxbc-show {
  opacity: 1;
  transform: translateY(0);
}

.uxbc-logo-text {
  font-size: 80px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  /* Căn chỉnh các chữ theo đáy */
  position: absolute;
  bottom: 38px;
  z-index: 100;
}

.uxbc-letter {
  opacity: 0;
  transform: translateY(100px);
  display: inline-block;
  font-weight: bold;
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.uxbc-letter img {
  display: block;
}

.uxbc-letter.uxbc-hide {
  transform: translateY(-100px);
  opacity: 0;
}

@keyframes uxbc-riseUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes uxbc-showFinalLogo {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
/* end logo animate */

@media screen and (min-width: 769px) {
  .home .header-logo-dark {
      position: absolute;
      opacity: 0;
  }
}