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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  color: white;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  overflow: hidden;
  perspective: 1000px;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(20px);
  text-align: center;
  padding: 2rem;
  width: 90%;
  max-width: 650px;
  background: rgba(15, 12, 41, 0.6);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: float 6s ease-in-out infinite;
}

.content:hover {
  transform: translate(-50%, -50%) translateZ(30px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 255, 255, 0.4);
}

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

h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1.5s ease-in-out;
  background: linear-gradient(90deg, #00ffff, #a0e7ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  letter-spacing: 1px;
  line-height: 1.2;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

form {
  display: flex;
  gap: 0.8rem;
  animation: fadeIn 2.5s ease-in-out;
}

input[type="text"] {
  flex: 1;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  font-size: 1.1rem;
  background: rgba(10, 8, 30, 0.5);
  color: white;
  backdrop-filter: blur(6px);
  outline: none;
  transition: all 0.3s ease;
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input[type="text"]:focus {
  background: rgba(20, 15, 60, 0.7);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  border-color: rgba(0, 255, 255, 0.6);
}

button {
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00bcd4, #00796b);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

button:hover {
  background: linear-gradient(135deg, #00796b, #00bcd4);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.5);
}

button:active {
  transform: translateY(0) scale(0.98);
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  canvas {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .content {
    padding: 1.5rem;
    width: 95%;
  }

  form {
    flex-direction: column;
  }

  button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
}

.glow {
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}
