/* تنسيق عام */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  color: white;
  position: relative;
  min-height: 100vh;
  background: transparent;
}

header {
  background: rgba(0,0,0,0.7);
  padding: 1em;
  text-align: center;
  position: relative;
  z-index: 10;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff00ff;
}

main {
  max-width: 900px;
  margin: 2em auto;
  background: rgba(0,0,0,0.5);
  padding: 1em 2em;
  border-radius: 10px;
  position: relative;
  z-index: 10;
}

footer {
  background: rgba(0,0,0,0.7);
  padding: 1em;
  text-align: center;
  position: relative;
  z-index: 10;
}

input[type="email"] {
  padding: 0.6em;
  width: 250px;
  border-radius: 5px;
  border: none;
  margin-right: 10px;
  font-size: 1em;
}

button {
  padding: 0.6em 1.2em;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  background: #00ffff;
  color: black;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button:hover {
  background: #00bbcc;
}

#result {
  margin-top: 1em;
  white-space: pre-wrap;
}

#loading {
  margin-top: 1em;
  font-weight: bold;
  color: yellow;
}

/* خلفية متحركة على full screen canvas */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: black;
}

.typing {
  display: inline-block;
  border-right: .15em solid orange;
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.2em;
  animation: typing 4s steps(30, end) 1, blink-caret 0.75s step-end infinite;
  width: 0;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange; }
}
