* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #101010;
  color: #fff;
}

.vtc-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.vtc-section-padding-bottom {
  padding-bottom: calc(100vw * (58 / 1920));
}

.vtc-section .vtc-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-4 {
  background: url("../images/bg-ss4.webp") no-repeat;
  background-size: cover;
  background-position: center;
}

.vtc-section.vtc-visible {
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.6s ease-in-out;
}

.vtc-section.vtc-visible .vtc-container {
  opacity: 1;
  transform: scale(1);
}

.vtc-footer {
  width: 100%;
  height: 100%;
  background: url("../images/bg_footer.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Optional: Scrollbar style */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.vtc-nav-bottom {
  position: fixed;
  width: 100%;
  background: url("../images/bottom.png") no-repeat;
  background-size: 100% 100%;
  background-position: top center;
  bottom: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.vtc-nav-bottom.vtc-active {
  visibility: visible;
  animation: bounceSettleUp 950ms cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes bounceSettleUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
    filter: blur(2px) contrast(120%);
  }

  60% {
    transform: translateY(0%);
    opacity: 1;
    filter: blur(0px) contrast(100%);
  }

  75% {
    transform: translateY(16%);
  }

  85% {
    transform: translateY(-8%);
  }

  92% {
    transform: translateY(5%);
  }

  97% {
    transform: translateY(-2%);
  }

  100% {
    transform: translateY(3%);
    opacity: 1;
    filter: blur(0px) contrast(100%);
  }
}

.ser-slider-wrap {
  position: relative;
  display: flex;
  padding-top: calc(((100vw / 8) * 1.35) * 3 / 2);
}

/* start the slider code */
.ser-slider-container {
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
}

.ser-slider-track {
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}

.ser-box {
  flex: 0 0 auto;
  width: calc(100vw / 8);
  border-radius: 10px;
  overflow: hidden;
  transition: width 0.4s ease, height 0.4s ease;
}

.ser-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ser-box.ser-center {
  width: calc((100vw / 8) * 1.35);
  transform: perspective(600px) rotateY(0deg) scale(1) translateY(0px);
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.25), 0 2px 8px 0 rgba(0, 0, 0, 0.18);
  z-index: 2;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ser-box.ser-left {
  transform: perspective(600px) rotateY(18deg) scale(0.98) translateY(0);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ser-box.ser-right {
  transform: perspective(600px) rotateY(-18deg) scale(0.98) translateY(0);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Xóa hiệu ứng nghiêng cũ */
.ser-box:not(.ser-center):not(.ser-left):not(.ser-right) {
  transform: none;
  box-shadow: none;
}

@keyframes idle-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.animate-idle-float {
  animation: idle-float 1.5s ease-in-out infinite;
}

/* Custom bounce-glow animation for hover */
@keyframes bounce-glow {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(255, 223, 0, 0.5));
  }

  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(255, 223, 0, 0.9));
  }
}

.hover\:animate-bounce-glow:hover {
  animation: bounce-glow 1.5s infinite;
}

.btn-img {
  position: relative;
  width: 320px;
  height: 75px;
}

.btn-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease;
}

.btn-img img.hover-img {
  opacity: 0;
}

.btn-img:hover img.default-img {
  opacity: 0;
}

.btn-img:hover img.hover-img {
  opacity: 1;
}

@keyframes zoom-loop {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.btn-img:hover {
  animation: zoom-loop 1s ease-in-out infinite;
}

/* Arrow burst: scale nhỏ ra to, di chuyển từ phải qua trái, to ra mờ dần và lặp lại */
.arrow-anim {
  animation: arrowBurstMove 1.5s linear infinite;
  will-change: transform, opacity, filter;
  filter: blur(0px) brightness(1.2);
}

.arrow-anim:nth-child(1) {
  animation-delay: 0s;
}

.arrow-anim:nth-child(2) {
  animation-delay: 0.3s;
}

.arrow-anim:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes arrowBurstMove {
  0% {
    opacity: 0;
    transform: translateX(100%) scale(0.5);
    filter: blur(2px) brightness(1.5);
  }

  18% {
    opacity: 1;
    transform: translateX(0%) scale(1);
    filter: blur(0px) brightness(1.2);
  }

  45% {
    opacity: 1;
    transform: translateX(-10%) scale(1);
    filter: blur(0.5px) brightness(1.1);
  }

  75% {
    opacity: 0.3;
    transform: translateX(-40%) scale(1.25);
    filter: blur(2px) brightness(0.8);
  }

  100% {
    opacity: 0;
    transform: translateX(-80%) scale(1.35);
    filter: blur(4px) brightness(0.6);
  }
}

/* Arrow burst right: scale nhỏ ra to, di chuyển từ trái qua phải, to ra mờ dần và lặp lại */
.arrow-right-anim {
  animation: arrowBurstMoveRight 1.5s linear infinite;
  will-change: transform, opacity, filter;
  filter: blur(0px) brightness(1.2);
}

.arrow-right-anim:nth-child(1) {
  animation-delay: 0s;
}

.arrow-right-anim:nth-child(2) {
  animation-delay: 0.3s;
}

.arrow-right-anim:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes arrowBurstMoveRight {
  0% {
    opacity: 0;
    transform: translateX(-100%) scale(0.5);
    filter: blur(2px) brightness(1.5);
  }

  18% {
    opacity: 1;
    transform: translateX(0%) scale(1);
    filter: blur(0px) brightness(1.2);
  }

  45% {
    opacity: 1;
    transform: translateX(10%) scale(1);
    filter: blur(0.5px) brightness(1.1);
  }

  75% {
    opacity: 0.3;
    transform: translateX(40%) scale(1.25);
    filter: blur(2px) brightness(0.8);
  }

  100% {
    opacity: 0;
    transform: translateX(80%) scale(1.35);
    filter: blur(4px) brightness(0.6);
  }
}

.mode-btn.active .game-mode-title {
  opacity: 1;
}

.animation-nv1-effect {
  transform: translateY(50%) scale(3.5);
  right: 48%;
  bottom: 0%;
  opacity: 1;
}

.animation-nv1-effect.hide {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.animation-bg {
  transform: translateY(20%) scale(3.5);
  transform-origin: bottom center;
  transition: opacity 0.6s ease-in-out, filter 0.6s ease-in-out;
  opacity: 1;
  filter: brightness(1) blur(0);
}

.animation-bg.hide {
  animation: bg-flash-out 0.8s ease-in-out forwards;
}

/* Hiệu ứng phát sáng và mờ dần */
@keyframes bg-flash-out {
  0% {
    opacity: 1;
    filter: brightness(1.5) blur(0px);
  }

  30% {
    opacity: 0.7;
    filter: brightness(2) blur(1px);
  }

  60% {
    opacity: 0.4;
    filter: brightness(1.8) blur(2px);
  }

  100% {
    opacity: 0;
    filter: brightness(2.5) blur(3px);
  }
}

.bg-flash-overlay {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  animation: flash-pulse 0.6s ease-in-out forwards;
}

@keyframes flash-pulse {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 0.8;
  }

  60% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
  }
}

.animation-bg-loaded {
  transform: scale(1);
  transform-origin: center;
  transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animation-nv1-effect-loaded {
  bottom: 13%;
  right: 45.8%;
  transform: scale(1);
  transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1),
    bottom 1.8s cubic-bezier(0.25, 1, 0.5, 1),
    right 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Logo: trượt từ trên xuống */
.animation-logo {
  top: 15%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50px);
  transition: all 1.5s ease-out;
}

.animation-logo-loaded {
  top: 25%;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.animation-mouse-scroll {
  opacity: 0;
  bottom: -5%;
  visibility: hidden;
  transform: translateY(50px);
  transition: all 1.6s ease-out 0.4s;
}

.animation-mouse-scroll-loaded {
  opacity: 1;
  bottom: 1%;
  visibility: visible;
  transform: translateY(0);
  transition: all 1.6s ease-out 0.4s;
}

/* Bottom action: trượt từ dưới lên */
.animation-bottom-action {
  bottom: 5%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  transition: all 1.6s ease-out 0.4s;
  /* delay chút để mượt */
}

.animation-bottom-action-loaded {
  bottom: 15%;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Nút nổi bên phải */
.animation-float-button {
  top: 20%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 1.5s ease-out 0.8s;
  /* delay rõ hơn */
}

.animation-float-button-loaded {
  top: 25%;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tab-thumb:hover,
.tab-thumb.active {
  opacity: 1 !important;
  border: 2px solid #facc15 !important;
  border-radius: 0 !important;
}

.tab-content {
  display: none;
  transition: all 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

.mouse {
  width: 28px;
  height: 45px;
  border: 2px solid white;
  margin: 0 auto;
  border-radius: 30px;
}

.mouse-wheel {
  overflow: hidden;
  margin-top: 5px;
}

.mouse-wheel span {
  display: block;
  margin: 5px auto;
  width: 5px;
  height: 5px;
}

.mouse-wheel .wheel {
  border: 2px solid white;
  border-radius: 5px;
  width: 0;
}

.mouse-wheel .arrow {
  border-bottom: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(45deg);
  animation: scrollDown 1.7s infinite ease-in-out;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(45deg);
  }

  50% {
    opacity: 0;
    transform: translateY(5px) rotate(45deg);
  }

  75% {
    opacity: 0;
    transform: translateY(0) rotate(45deg);
  }

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

.overlay_blue {
  animation: OpacityEffect 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55) 350ms
    infinite alternate forwards;
}

.overlay_red {
  animation: OpacityEffect 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite
    alternate forwards;
}

@keyframes OpacityEffect {
  0% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.55;
  }
}

.scroll-heading .scroll-effect {
  opacity: 0;
  transform: translateY(-100px) scale(0.92) rotateX(10deg);
  filter: blur(10px);
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 1s ease,
    filter 0.9s ease;
  transform-origin: top center;
  will-change: transform, opacity, filter;
}

.scroll-heading-active .scroll-effect {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
  filter: blur(0);
}

#fp-nav span {
  background: white !important;
}

.vtc-footer .footer-inner {
  min-height: 160vh;
  /* hoặc 200vh tùy nội dung */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
