@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=MedievalSharp&display=swap");

/* Music Selection Screen */
.music-selection-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a050f 0%, #1a0a2e 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.music-selection-screen.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.music-title {
  font-family: "Cinzel Decorative", cursive;
  font-size: 3rem;
  color: #e2d5ff;
  text-shadow: 0 0 15px rgba(179, 136, 255, 0.7);
  margin-bottom: 2rem;
  text-align: center;
}

.music-subtitle {
  font-family: "MedievalSharp", cursive;
  font-size: 1.5rem;
  color: #b388ff;
  margin-bottom: 4rem;
  text-align: center;
}

.music-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
}

.music-option {
  background: linear-gradient(145deg, #1e102e, #150a1f);
  border: 2px solid #4a1d96;
  border-radius: 12px;
  padding: 2rem;
  width: 220px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.music-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(123, 31, 162, 0.2) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-option:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(123, 31, 162, 0.4);
}

.music-option:hover::before {
  opacity: 1;
}

.music-option.selected {
  border-color: #e9d5ff;
  box-shadow: 0 0 25px rgba(179, 136, 255, 0.8);
}

.music-option i {
  font-size: 3rem;
  color: #7b1fa2;
  margin-bottom: 1rem;
}

.music-option h3 {
  font-family: "Cinzel Decorative", cursive;
  color: #e2d5ff;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.music-option p {
  font-family: "MedievalSharp", cursive;
  color: #b388ff;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

@font-face {
  font-family: "SentientLight";
  src: url("./../font/Sentient-Light.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SentientRegular";
  src: url("./../font/Sentient-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "SentientLight", cursive;
  background-color: #0a050f;
  color: #e2d5ff;
  overflow-x: hidden;
}

button {
  font-family: "SentientRegular", sans-serif;
}

.title-font {
  font-family: "Cinzel Decorative", cursive;
}

.crystal-bg {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a050f 50%, #1a0a2e 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,10 L50,30 L70,10 L80,30 L60,50 L80,70 L70,90 L50,70 L30,90 L20,70 L40,50 L20,30 Z" fill="none" stroke="%237b1fa2" stroke-width="0.5" opacity="0.1"/></svg>');
  background-size: cover, 100px 100px;
}

.glow-text {
  text-shadow: 0 0 8px rgba(179, 136, 255, 0.7);
}

.glow-box {
  box-shadow: 0 0 15px rgba(179, 136, 255, 0.5);
}

.glow-hover:hover {
  box-shadow: 0 0 20px rgba(179, 136, 255, 0.8);
}

.rune-border {
  border: 2px solid #4a1d96;
  position: relative;
}

.rune-border::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid rgba(179, 136, 255, 0.3);
  border-radius: inherit;
  pointer-events: none;
}

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.pulse {
  animation: pulse 3s ease infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.vial {
  background: linear-gradient(to bottom, #4a1d96 0%, #7b1fa2 50%, #4a1d96 100%);
  border-radius: 20px 20px;
  position: relative;
  overflow: hidden;
}

.vial::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

.bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: bubble-up 4s infinite ease-in;
}

@keyframes bubble-up {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-50px);
    opacity: 0;
  }
}

.roadmap-marker {
  position: relative;
}

.roadmap-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -25px;
  width: 12px;
  height: 12px;
  background: #7b1fa2;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px #7b1fa2;
}

.roadmap-marker.active::after {
  background: #e9d5ff;
  box-shadow: 0 0 15px #e9d5ff;
}

.mirror-frame {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1065 100%);
  border: 2px solid #4a1d96;
  position: relative;
}

.mirror-frame::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid rgba(179, 136, 255, 0.3);
  pointer-events: none;
}

.mirror-reflect {
  position: relative;
  overflow: hidden;
}

.mirror-reflect::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(179, 136, 255, 0.2) 100%
  );
  transform: scaleY(-1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7b1fa2;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Sticky Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(10, 5, 15, 0.85);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sticky-header.scrolled {
  padding: 10px 0;
  background-color: rgba(26, 10, 46, 0.95);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: rgba(26, 10, 46, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: right 0.4s ease-in-out;
  overflow-y: auto;
  padding-top: 80px;
  border-left: 1px solid rgba(123, 31, 162, 0.3);
}

.mobile-menu.open {
  right: 0;
}

/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sword Fight Icon Animation */
.sword-fight-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.sword-fight-icon .sword {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #e2d5ff;
  transition: all 0.3s ease;
}

.sword-fight-icon.open .sword-1 {
  top: 12px;
  transform: rotate(45deg);
}

.sword-fight-icon.open .sword-2 {
  opacity: 0;
}

.sword-fight-icon.open .sword-3 {
  top: 12px;
  transform: rotate(-45deg);
}

.sword-fight-icon .sword-1 {
  top: 6px;
  transform: rotate(0deg);
}
.sword-fight-icon .sword-2 {
  top: 12px;
  transform: rotate(0deg);
}
.sword-fight-icon .sword-3 {
  top: 18px;
  transform: rotate(0deg);
}

/* New Potion Effects */
.potion-mist {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.mist-particle {
  position: absolute;
  background: radial-gradient(
    ellipse at center,
    rgba(123, 31, 162, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(15px);
  animation: mist-move 20s infinite linear;
}

@keyframes mist-move {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.3;
  }
  100% {
    transform: translate(100px, -50px) scale(1.5);
    opacity: 0;
  }
}

.elixir-splash {
  position: absolute;
  background: radial-gradient(
    ellipse at center,
    rgba(179, 136, 255, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(5px);
  animation: splash-fade 8s infinite ease-in-out;
}

@keyframes splash-fade {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

.cauldron-bubble {
  position: absolute;
  background: rgba(179, 136, 255, 0.2);
  border-radius: 50%;
  filter: blur(2px);
  animation: bubble-pop 6s infinite ease-in-out;
}

@keyframes bubble-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 0.5;
  }
  70% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

.dark-elixir {
  position: absolute;
  background: radial-gradient(
    ellipse at center,
    rgba(68, 0, 102, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(10px);
  animation: elixir-pulse 15s infinite ease-in-out;
}

@keyframes elixir-pulse {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* Knight Armor Glow */
/* .knight-glow {
  filter: drop-shadow(0 0 10px rgba(179, 136, 255, 0.7));
  transition: filter 0.3s ease;
}

.knight-glow:hover {
  filter: drop-shadow(0 0 20px rgba(179, 136, 255, 0.9));
} */

/* Sword Animation */
@keyframes sword-glow {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

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

/* Goblin Eyes */
.eye-glow {
  box-shadow: 0 0 15px rgba(123, 31, 162, 0.8);
  animation: eye-pulse 4s infinite ease-in-out;
}

@keyframes eye-pulse {
  0% {
    box-shadow: 0 0 10px rgba(123, 31, 162, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(123, 31, 162, 1);
  }
  100% {
    box-shadow: 0 0 10px rgba(123, 31, 162, 0.6);
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 5, 15, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1065 100%);
  border: 2px solid #4a1d96;
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #e2d5ff;
  font-size: 1.5rem;
  cursor: pointer;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.start-button {
  display: none;
  margin-top: 2rem;
  text-align: center;
}

/* Clan Shield */
.clan-shield {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><path d="M50,10 C70,10 85,25 85,45 C85,65 70,80 50,80 C30,80 15,65 15,45 C15,25 30,10 50,10 Z" fill="%234a1d96"/><path d="M50,15 C68,15 82,29 82,45 C82,61 68,75 50,75 C32,75 18,61 18,45 C18,29 32,15 50,15 Z" fill="%237b1fa2"/><path d="M50,20 C66,20 79,33 79,45 C79,57 66,70 50,70 C34,70 21,57 21,45 C21,33 34,20 50,20 Z" fill="%239c27b0"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 15px rgba(123, 31, 162, 0.6));
  transform: scale(1.5);
}

/* Alchemy Lab */
.lab-equipment {
  position: relative;
  background: linear-gradient(145deg, #1e102e, #150a1f);
  border: 1px solid #4a1d96;
  border-radius: 10px;
  overflow: hidden;
}

.lab-equipment::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 30% 30%,
      rgba(123, 31, 162, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(179, 136, 255, 0.1) 0%,
      transparent 40%
    );
}

/* Scroll Text */
.scroll-text {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect x="0" y="0" width="100" height="100" fill="%231a0a2e" opacity="0.7"/></svg>');
  border: 1px solid #4a1d96;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  position: relative;
}

.scroll-text::before,
.scroll-text::after {
  position: absolute;
  height: 40px;
  width: 10px;
  background: #7b1fa2;
  top: 10%;
  border-radius: 5px;
  opacity: 0.3;
}

.scroll-text::before {
  left: 10%;
}

.scroll-text::after {
  right: 10%;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-content .flex {
    justify-content: center;
  }

  .goblin-knight {
    margin-top: 3rem;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .roadmap-marker::after {
    left: -15px;
  }

  .tokenomics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* .knight-glow {
    max-width: 80%;
    margin: 0 auto;
  } */

  .modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .tokenomics-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons button {
    width: 100%;
  }

  .roadmap-content {
    padding-left: 2rem;
  }
}

@media (max-width: 480px) {
  .title-font {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .roadmap-content {
    padding-left: 1rem;
  }

  .roadmap-marker::after {
    left: -10px;
    width: 8px;
    height: 8px;
  }

  /* .knight-glow {
    max-width: 100%;
  } */

  .modal-content {
    padding: 1rem;
  }

  .clan-grid {
    grid-template-columns: 1fr;
  }
}
