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

body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  overflow: hidden;
  position: relative;
}


.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(0, 255, 153, 0.1), 
    rgba(0, 204, 255, 0.1), 
    rgba(153, 51, 255, 0.1),
    rgba(255, 51, 153, 0.1));
  animation: waveAnimation 20s ease-in-out infinite;
  border-radius: 50%;
}

.wave:nth-child(2) {
  animation-delay: -5s;
  animation-duration: 25s;
  background: linear-gradient(135deg, 
    rgba(255, 51, 153, 0.05), 
    rgba(51, 255, 153, 0.05),
    rgba(153, 51, 255, 0.05));
}

.wave:nth-child(3) {
  animation-delay: -10s;
  animation-duration: 30s;
  background: linear-gradient(225deg, 
    rgba(0, 204, 255, 0.08), 
    rgba(255, 153, 51, 0.08));
}

@keyframes waveAnimation {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  25% { transform: translate(-60%, -40%) rotate(90deg) scale(1.2); }
  50% { transform: translate(-40%, -60%) rotate(180deg) scale(0.8); }
  75% { transform: translate(-55%, -45%) rotate(270deg) scale(1.1); }
}


.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.particle.type1 {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #00ff99, transparent);
  animation: float1 15s infinite linear;
}

.particle.type2 {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #00ccff, transparent);
  animation: float2 12s infinite linear;
}

.particle.type3 {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ff3399, transparent);
  animation: float3 18s infinite linear;
}

@keyframes float1 {
  0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(50px) rotate(360deg); opacity: 0; }
}

@keyframes float2 {
  0% { transform: translateY(100vh) translateX(0) rotate(0deg) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(90vh) translateX(0) rotate(36deg) scale(1); }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(-30px) rotate(720deg) scale(0); opacity: 0; }
}

@keyframes float3 {
  0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; filter: hue-rotate(0deg); }
  10% { opacity: 1; }
  50% { filter: hue-rotate(180deg); }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(20px) rotate(-360deg); opacity: 0; filter: hue-rotate(360deg); }
}

.connections {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff99, transparent);
  animation: connectionMove 8s infinite linear;
  opacity: 0.6;
}

@keyframes connectionMove {
  0% { transform: translateX(-100%) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateX(200vw) rotate(180deg); opacity: 0; }
}

.main-content {
  position: relative;
  z-index: 10;
  animation: mainEnter 2s ease-out;
}

@keyframes mainEnter {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotateX(90deg);
    filter: blur(20px);
  }
  50% {
    transform: translateY(0) scale(1.1) rotateX(45deg);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}

h1 {
  font-size: 4em;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #00ff99, #00ccff, #ff3399, #ffff00);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowText 3s ease-in-out infinite, breathe 4s ease-in-out infinite, shake 0.5s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(0, 255, 153, 0.8);
  position: relative;
}

@keyframes rainbowText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1) rotateZ(0deg); }
  50% { transform: scale(1.05) rotateZ(2deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-2px) rotateZ(-1deg); }
  20% { transform: translateX(2px) rotateZ(1deg); }
  30% { transform: translateX(-1px) rotateZ(-0.5deg); }
  40% { transform: translateX(1px) rotateZ(0.5deg); }
  50% { transform: translateX(0); }
}

.matrix-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.matrix-char {
  position: absolute;
  color: #00ff99;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  animation: matrixRain 10s linear infinite;
}

@keyframes matrixRain {
  0% { transform: translateY(-100vh); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  animation: typewriter 3s steps(50) 1s both, colorShift 5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #00ff99;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes colorShift {
  0%, 100% { color: rgba(255, 255, 255, 0.9); }
  25% { color: rgba(0, 255, 153, 0.9); }
  50% { color: rgba(0, 204, 255, 0.9); }
  75% { color: rgba(255, 51, 153, 0.9); }
}

.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: buttonsAppear 1s ease-out 2s both;
}

@keyframes buttonsAppear {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(90deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.button {
  display: inline-block;
  padding: 20px 50px;
  border-radius: 50px;
  background: linear-gradient(45deg, #00ff99, #00ccff);
  background-size: 300% 300%;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: buttonFloat 6s ease-in-out infinite, buttonGlow 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 255, 153, 0.4);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.button-text {
  display: inline-block;
  position: relative;
}

.button:nth-child(1) { animation-delay: 0s, 0s; }
.button:nth-child(2) { animation-delay: 2s, 1s; }
.button:nth-child(3) { animation-delay: 4s, 2s; }

@keyframes buttonFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  25% { transform: translateY(-10px) rotateY(5deg) rotateX(5deg); }
  50% { transform: translateY(5px) rotateY(-5deg) rotateX(-5deg); }
  75% { transform: translateY(-5px) rotateY(3deg) rotateX(3deg); }
}

@keyframes buttonGlow {
  0%, 100% { 
    box-shadow: 0 10px 30px rgba(0, 255, 153, 0.4);
    background-position: 0% 50%;
  }
  50% { 
    box-shadow: 0 15px 40px rgba(0, 204, 255, 0.6);
    background-position: 100% 50%;
  }
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.button:hover {
  transform: translateY(-15px) scale(1.1) rotateY(10deg);
  background: linear-gradient(45deg, #00ccff, #ff3399);
  box-shadow: 0 25px 50px rgba(0, 255, 153, 0.8);
  animation-play-state: paused;
}

.button:hover::after {
  width: 300px;
  height: 300px;
}

.button:active {
  transform: translateY(-5px) scale(1.05);
}

.button:hover {
  animation: distort 0.3s ease-in-out;
}

@keyframes distort {
  0%, 100% { transform: translateY(-15px) scale(1.1) rotateY(10deg); }
  25% { transform: translateY(-15px) scale(1.15) rotateY(15deg) skewX(5deg); }
  75% { transform: translateY(-15px) scale(1.05) rotateY(5deg) skewX(-5deg); }
}

footer {
  position: absolute;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  z-index: 10;
  animation: footerPulse 4s ease-in-out infinite, footerAppear 1s ease-out 3s both;
}

@keyframes footerPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes footerAppear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.6; transform: translateY(0); }
}

body {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #00ff99, transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: cursorPulse 2s ease-in-out infinite;
}

@keyframes cursorPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 0.4; }
}
@keyframes explode {
  to {
    transform: translate(var(--x), var(--y));
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}

@keyframes fall {
  to { transform: translateY(100vh); opacity: 0; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.5em; }
  .buttons-container { width: 90%; }
  .button { width: 100%; padding: 15px 30px; }
}
