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

/* Body styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  overflow: hidden;
}

/* Container */
.container {
  padding: 30px 40px;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 25px rgba(0, 188, 212, 0.8);
  animation: fadeIn 1.5s ease-in-out;
}

/* Heading with typing effect */
h1 {
  font-size: 26px;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00bcd4;
  width: 0;
  animation: typing 2.5s steps(30, end) forwards, blink 0.8s infinite;
}

/* Subtitle */
p {
  font-size: 18px;
  opacity: 0.9;
  margin-top: 10px;
  animation: fadeSlide 2s ease-in-out forwards;
  animation-delay: 2.6s;
  opacity: 0;
}

/* Spinner */
.spinner {
  margin: 20px auto 0;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #00bcd4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  animation-delay: 2.6s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #00bcd4; }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); opacity: 1; }
  100% { transform: rotate(360deg); opacity: 1; }
}