html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Orbitron', sans-serif;
  color: white;
}

html.no-scroll, body.no-scroll {
  overflow: hidden !important;
  touch-action: none !important;
}

.anime-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.anime-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hamburger-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  cursor: pointer;
  width: 40px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.line {
  height: 4px;
  width: 30px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.open .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open .line2 {
  opacity: 0;
}

.hamburger-menu.open .line3 {
  transform: rotate(-45deg) translate(9px, -9px);
}

/* Remove hover effect on lines when menu is open, only apply when not open */
.hamburger-icon:hover .line {
  background-color: #00eaff;
  box-shadow: 0 0 8px #00eaff80;
  width: 34px;
  transition: background 0.2s, box-shadow 0.2s, width 0.2s;
}

.hamburger-menu.open .hamburger-icon:hover .line {
  background-color: white;
  box-shadow: none;
  width: 30px;
  /* Do not override transform or opacity, let cross animation work */
}

/* Ensure transform and opacity for cross always animate */
.hamburger-menu.open .line1,
.hamburger-menu.open .line2,
.hamburger-menu.open .line3 {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.hamburger-menu.open .line1,
.hamburger-menu.open .line3 {
  width: 30px; /* Prevents hover from stretching lines in cross state */
  background-color: white;
  box-shadow: none;
}

.hamburger-menu.open .line2 {
  background-color: white;
  box-shadow: none;
}

.hamburger-menu:hover, .hamburger-icon:hover {
  background: rgba(0, 234, 255, 0.10);
  box-shadow: 0 2px 8px #00eaff33;
  backdrop-filter: blur(3px);
  border-radius: 10px;
  transform: scale(1.07);
}

.menu-links {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 10px 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.menu-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(3px);
  margin: 0 0.2rem;
}

.menu-links a:hover {
  background: rgba(0, 234, 255, 0.18);
  color: #00eaff;
  box-shadow: 0 2px 8px #00eaff33;
  transform: scale(1.07);
}

.menu-links.show {
  display: flex;
}


.menu-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.container {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-top: 20vh;
}

.title {
  font-size: 4rem;
  animation: fadeInDown 2s ease-out;
}

.subtitle {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  animation: fadeInDown 2.5s ease-out;
}

.links {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.links a {
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.links a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .links a {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

@media (max-width: 600px) {
  html, body {
    font-size: 15px;
    overflow-x: hidden;
  }
  .anime-bg video {
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
  }
  .hamburger-menu {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
  }
  .hamburger-icon {
    height: 20px;
  }
  .line {
    height: 3px;
    width: 26px;
  }
  .menu-links {
    top: 48px;
    right: 0;
    left: 0;
    width: 95vw;
    margin: 0 auto;
    border-radius: 12px;
    padding: 12px 0;
    gap: 8px;
    font-size: 1.1rem;
    align-items: center;
  }
  .menu-links a {
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem;
    width: 90vw;
    text-align: center;
    margin: 0 auto;
    border-radius: 10px;
  }
  .container {
    padding: 10vw 2vw 0 2vw;
    min-width: 0;
    width: 100vw;
    box-sizing: border-box;
  }
  .title {
    font-size: 2rem;
    margin-top: 2rem;
    word-break: break-word;
  }
  .subtitle {
    font-size: 1.1rem;
    margin-top: 0.5rem;
  }
  .links {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
  }
  .links a {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    width: 90vw;
    text-align: center;
    border-radius: 10px;
  }
  .footer {
    font-size: 0.9rem;
    padding-bottom: 8px;
    position: fixed;
    left: 0;
    bottom: 0;
    margin-top: 0;
    background: none;
    width: 100vw;
    text-align: center;
    color: rgb(255,255,255);
    z-index: 1;
    pointer-events: none;
  }
}

.footer {
  position: fixed;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: rgb(255, 255, 255);
  z-index: 1;
  pointer-events: none;
}
