* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #2c2c2e 0%, #1d1d1f 100%);
  color: #f5f5f7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #a61dff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
  z-index: 9999;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#content {
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.3s;
}

.hero {
  text-align: center;
  animation: slideUp 1s ease-out;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #a61dff;
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  color: #d1d1d6;
  margin-bottom: 30px;
}

.hero .btn {
  background: linear-gradient(135deg, #a61dff, #6a00ff);
  background-size: 200% 200%;
  animation: gradientFade 5s ease infinite;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(172, 55, 255, 0.4);
  display: inline-block;
}

.hero .btn:hover {
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #8e8e93;
  z-index: 1;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes gradientFade {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}