.header-container,
header {
  flex-direction: column;
  display: flex;
}
body,
nav ul {
  padding: 0;
  margin: 0;
}
header,
nav ul,
nav ul li {
  display: flex;
}
#background-video,
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0;
}
body,
nav,
nav ul {
  margin: 0;
}
.center-text,
.ia {
  -webkit-text-fill-color: transparent;
}
.discord-button,
nav ul li a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.discord-button,
.language-option,
.social-link,
nav ul li a {
  text-decoration: none;
}
body {
  font-family: Arial, sans-serif;
  background-color: #000;
  overflow-x: hidden;
  overflow-y: auto;
}
header {
  position: fixed;
  top: 0;
  left: 20px;
  width: auto;
  align-items: center;
  padding: 12px 0;
  background: 0 0;
  z-index: 5;
}
.header-container {
  align-items: center;
  gap: 40px;
}
.logo {
  width: 80px;
  margin-left: 0;
  transition: transform 0.5s;
}
.logo:hover {
  transform: rotate(360deg);
}
nav ul {
  list-style: none;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
nav ul li {
  position: relative;
  height: 100px;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: 0.6s ease-out forwards fadeInDown;
}
nav ul li a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  transition: 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg) translateZ(0);
  transform-origin: center center;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2px;
}
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
  transition: transform 0.3s;
  transform-origin: right;
  transform: scaleX(0);
}
nav ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.ia {
  background: linear-gradient(
    90deg,
    #fff 0,
    #d3d3d3 25%,
    #000 50%,
    #c7c7c7 75%,
    #292929 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  animation: 5s linear infinite rgbAnimation;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}
#background-video {
  width: 100%;
  object-fit: cover;
  z-index: -3;
  filter: blur(2px);
  animation: 1.5s ease-out forwards fadeInZoom;
}
.overlay {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -2;
  animation: 1.5s ease-out 0.1s forwards fadeInZoom;
}
.character-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}
.character-img {
  display: block;
  height: 100vh;
  max-height: none;
  width: auto;
}
@keyframes rgbAnimation {
  0%,
  100% {
    background-position: 0 0;
  }
  50% {
    background-position: 100% 100%;
  }
}
.text-container {
  position: absolute;
  top: 45%;
  left: 51%;
  transform: translate(-50%, -50%);
  z-index: 0;
  text-align: center;
  max-width: 90vw;
}
.center-text {
  font-family: Kanit, sans-serif;
  font-size: min(18vw, 240px) !important;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  background: linear-gradient(
    90deg,
    #fff 0,
    #d3d3d3 25%,
    #181818 50%,
    #c7c7c7 75%,
    #292929 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
}
@keyframes circularGradient {
  0%,
  100% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15),
      0 0 30px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25),
      0 0 50px rgba(255, 255, 255, 0.1);
  }
}
@keyframes spinHalo {
  to {
    transform: rotate(360deg);
  }
}
.discord-text {
  display: inline-block;
}
.discord-button-container {
  position: absolute;
  top: calc(45% + 150px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.discord-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: radial-gradient(circle at center, #1c1c1c, #0f0f0f, #0a0a0a);
  background-size: 300% 300%;
  font-size: 20px;
  padding: 12px 28px;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08),
    inset 0 0 12px rgba(255, 255, 255, 0.04);
}
.discord-button::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0)
  );
  filter: blur(18px);
  opacity: 0.45;
  animation: 8s linear infinite spinHalo;
}
.discord-button i {
  font-size: 22px;
}
.discord-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s;
}
.discord-button:hover .discord-arrow {
  transform: translateX(3px);
}
.social-links-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 26px;
}
.social-link {
  font-size: 25px;
  color: rgba(255, 255, 255, 0.829);
  transition: color 0.3s, transform 0.2s;
}
#audio-toggle-btn,
.language-switcher-button {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background-color 0.3s, transform 0.2s;
  color: #fff;
}
.social-link.discord:hover {
  color: #7289da;
}
.social-link.youtube:hover {
  color: red;
}
.social-link.tiktok:hover {
  color: #ff0050;
}
.social-link.linktree:hover {
  color: #39e09b;
}
.audio-control-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1001;
}
#audio-toggle-btn {
  border: none;
  border-radius: 50%;
  font-size: 20px;
}
#audio-toggle-btn:hover,
.language-switcher-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
#audio-icon {
  display: block;
}
::-webkit-scrollbar {
  display: none;
}
.language-switcher-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}
.language-switcher-button {
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}
.language-dropdown-menu {
  position: absolute;
  top: 50%;
  right: 55px;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  padding: 8px 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.language-dropdown-menu.visible {
  opacity: 1;
  visibility: visible;
}
.language-option {
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.language-option:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  header {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }
  .logo {
    width: 60px;
  }
  .text-container {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    width: 100%;
    text-align: center;
  }
  .center-text {
    font-size: min(15vw, 80px) !important;
    white-space: normal;
  }
  .discord-button-container {
    top: calc(40% + min(15vw, 80px) + 20px);
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
  }
  .discord-button {
    font-size: 16px;
    padding: 10px 24px;
    white-space: nowrap;
  }
  .character-img {
    height: 65vh;
    max-height: none;
  }
}
@media (max-width: 480px) {
  .logo {
    width: 50px;
  }
  .character-img {
    height: 55vh;
  }
  .center-text {
    font-size: min(18vw, 60px) !important;
  }
  .discord-button-container {
    top: calc(40% + min(18vw, 60px) + 20px);
  }
  .social-links-container {
    bottom: 10px;
    right: 10px;
    gap: 15px;
  }
  .social-link {
    font-size: 20px;
  }
  .audio-control-container {
    bottom: 55px;
    right: 10px;
  }
  #audio-toggle-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
@media (min-width: 1400px) {
  .center-text {
    font-size: min(12vw, 240px) !important;
  }
  .character-img {
    height: 100vh;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(1.15);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.logo {
  opacity: 0;
  animation: 0.8s ease-out 0.15s forwards fadeInDown;
}
nav ul li:first-child {
  animation-delay: 0.2s;
}
nav ul li:nth-child(2) {
  animation-delay: 0.3s;
}
nav ul li:nth-child(3) {
  animation-delay: 0.4s;
}
nav ul li:nth-child(4) {
  animation-delay: 0.5s;
}
nav ul li:nth-child(5) {
  animation-delay: 0.6s;
}
.language-switcher-container {
  opacity: 0;
  animation: 0.8s ease-out 0.25s forwards fadeInDown;
}
.audio-control-container {
  opacity: 0;
  animation: 0.8s ease-out 0.3s forwards fadeInDown;
}
.social-links-container {
  opacity: 0;
  animation: 0.8s ease-out 0.7s forwards fadeInUp;
}
.character-img {
  opacity: 0;
  animation: 1s ease-out 0.4s forwards fadeInUp;
}
.center-text {
  opacity: 0;
  animation: 5s linear infinite rgbAnimation,
    0.8s ease-out 0.35s forwards fadeInDown;
}
.discord-button {
  opacity: 0;
  animation: 0.8s ease-out 0.5s forwards fadeInUp;
}
