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

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle {
  position: relative;
  height: 80px;
  width: 80px;
  background: rgba(202, 47, 130, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 100;
}

.toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.menu.active .toggle {
  transform: rotate(360deg);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.menu li {
  position: absolute;
  left: 0;
  list-style: none;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: rotate(calc(360deg / 8 * var(--i)));
  transform-origin: 170px;
  scale: 0;
  z-index: 10;
  transition-delay: calc(0.05s * var(--i));
}

.menu.active li {
  scale: 1;
}

.menu li a {
  position: relative;
  display: flex;
  transform: rotate(calc(360deg / -8 * var(--i)));
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 5px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.menu li:hover a {
  transform: rotate(calc(360deg / -8 * var(--i))) scale(1.15);
  background: var(--clr);
  box-shadow: 0 0 20px var(--clr), inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.menu li .tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(-360deg / 8 * var(--i)))
    translateX(100px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #333;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.menu li .tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.menu li:hover .tooltip {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(calc(-360deg / 8 * var(--i)))
    translateX(120px);
}

.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    transparent 70%
  );
  opacity: 0;
  animation: float 15s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) scale(1) rotate(360deg);
    opacity: 0;
  }
}

.title {
  position: absolute;
  bottom: 50px;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
  font-weight: 400;
  letter-spacing: 1px;
  width: 100%;
  padding: 0 20px;
}

.glass-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
}

.menu.active .glass-ring {
  animation: expandRing 2s ease-out infinite;
}

@keyframes expandRing {
  0% {
    width: 100px;
    height: 100px;
    opacity: 0.7;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

.ambient-light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(106, 17, 203, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -2;
  filter: blur(25px);
}

@keyframes gentlePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.7;
  }
}

.ambient-light {
  animation: gentlePulse 8s ease-in-out infinite;
}

.neon-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  z-index: -1;
}

.neon-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: rotate(calc(45deg * var(--i))) translateX(180px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3);
  opacity: 0;
}

.menu.active .neon-dot {
  animation: blink 2s infinite calc(0.1s * var(--i));
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
