body {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  margin: 0;
  overflow: hidden;
  font-family: "Poppins", "Arial", sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px;
  max-width: 90%;
  margin-bottom: 100px;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 0 0 20px rgba(222, 236, 152, 0.9),
    0 0 30px rgba(224, 230, 149, 0.7);
  margin-top: -10rem;
  animation: pulse 2s infinite, glow 3s infinite alternate;
  letter-spacing: 3px;
  font-weight: 800;
  background: linear-gradient(to right, #e1ac8b, #e597b7, #f4a8c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, #f5b7cc, transparent);
  animation: shimmer 3s infinite linear;
}

.rainbow_btn {
  width: 220px;
  height: 65px;
  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  margin-top: 10rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.rainbow_btn:hover {
  transform: translateY(-7px) scale(1.05);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.8);
}

.rainbow_btn:active {
  transform: translateY(0) scale(0.98);
}

.rainbow_btn::before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -4px;
  left: -4px;
  background-size: 400%;
  z-index: -1;
  filter: blur(12px);
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  border-radius: 20px;
}

.rainbow_btn:active::after {
  background: #111;
}

.rainbow_btn:hover::before {
  opacity: 1;
}

.rainbow_btn::after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 20px;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.9),
      0 0 30px rgba(255, 20, 147, 0.7);
  }
  100% {
    text-shadow: 0 0 30px rgba(255, 105, 180, 1),
      0 0 40px rgba(255, 20, 147, 0.9), 0 0 70px rgba(255, 20, 147, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.floating-heart {
  position: absolute;
  width: 28px;
  height: 28px;
  background: transparent;
  opacity: 0;
  animation: float 15s linear infinite;
}

.floating-heart::before,
.floating-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.floating-heart::before {
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, #ff2a70, #ff7eb3);
  box-shadow: 0 0 15px #ff2a70;
}

.floating-heart::after {
  top: 0;
  left: -50%;
  background: linear-gradient(to bottom, #ff2a70, #ff7eb3);
  box-shadow: 0 0 15px #ff2a70;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  50% {
    transform: translate(100px, -300px) rotate(180deg) scale(1.3);
  }
  100% {
    transform: translate(200px, -600px) rotate(360deg) scale(0);
    opacity: 0;
  }
}

.code-snippets {
  position: absolute;
  bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 18px;
  z-index: 5;
  text-align: center;
  width: 100%;
  animation: fade 8s infinite;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.7);
}

@keyframes fade {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

.heart-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}

.instructions {
  position: absolute;
  bottom: 120px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  z-index: 4;
  text-align: center;
  width: 100%;
  font-style: italic;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  animation: sparkle 2s linear forwards;
  box-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

@keyframes sparkle {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

.pulse-ring {
  position: absolute;
  border: 2px solid #ff2a70;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  opacity: 0;
  animation: pulsate 3s ease-out infinite;
  z-index: 9;
}

@keyframes pulsate {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
