:root {
  --blue: #25aff4;
  --green: #00ff8c;
  --bg: #000;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  text-shadow: 0 0 8px rgba(37, 175, 244, 0.6), 0 0 16px rgba(37, 175, 244, 0.4);
  overflow-x: hidden;
  user-select: none;
}

/* ----- Layout ----- */
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 0 1rem;
  gap: 1rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.typing {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--blue);
  width: 0;
  animation: typing 4s steps(40, end) 0.6s forwards, blink 0.7s infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

.small {
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  margin-top: 0.6rem;
  opacity: 0.9;
}

/* ----- Contact ----- */
.contact {
  position: static;
  margin-top: 1.5rem;
}

.contact h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.6rem;
}

input {
  background: transparent;
  border: 1px solid rgba(37, 175, 244, 0.4);
  color: var(--blue);
  padding: 10px 12px;
  border-radius: 8px;
  width: 60%;
  outline: none;
  transition: all 0.3s;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(37, 175, 244, 0.5);
}

button {
  margin-left: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: rgba(37, 175, 244, 0.1);
  color: var(--blue);
  font-weight: 700;
  transition: all 0.3s;
}

button:hover {
  background: rgba(37, 175, 244, 0.2);
  box-shadow: 0 0 12px rgba(37, 175, 244, 0.7);
}

/* ----- Footer & Log ----- */
#ip-address {
  position: fixed;
  left: 10px;
  bottom: 10px;
  color: var(--green);
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(0, 255, 140, 0.7);
}

#log-panel {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 320px;
  max-height: 40vh;
  overflow: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(37, 175, 244, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
}

.log-entry { margin-bottom: 6px; }
.log-green { color: var(--green); }
.log-time { display: block; font-size: 0.75rem; opacity: 0.6; }

/* ----- Modal ----- */
.modal-bg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-bg.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: rgba(6, 10, 18, 0.9);
  border: 1px solid rgba(37, 175, 244, 0.3);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 320px;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
  #log-panel { width: 92%; right: 4%; bottom: 12px; font-size: 0.85rem; }
  input { width: 70%; }
  button { padding: 9px 14px; font-size: 0.85rem; }
}
