/* ===== SYSTEM ARCHIVE — GLOBAL STYLES ===== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Share+Tech+Mono&display=swap');

/* ===== BASE ===== */
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% 50%, #0b0813 0%, #000 80%);
  color: #efeaff;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Starfield Background */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent url('images/stars.png') repeat;
  background-size: 800px;
  animation: starDrift 120s linear infinite;
  opacity: 0.25;
  z-index: 0;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 40% 40%, rgba(130, 100, 200, 0.08), rgba(0,0,0,0.8) 80%);
  z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(180,160,255,0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200,180,255,0.4);
}

/* ===== SECTION FRAMEWORK ===== */
section {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: 100px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Titles */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
h1 {
  color: #f2eaff;
  font-size: 2.2em;
  text-shadow: 0 0 25px #d3b8ff;
}
h2 {
  font-size: 1.1em;
  color: #c9b6ff;
  opacity: 0.8;
  font-weight: 400;
}

/* ===== LOG + TEXT MODULE ===== */
.lore {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 25px 30px;
  text-align: left;
  line-height: 1.7em;
  margin-bottom: 30px;
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 12px rgba(180,140,255,0.1);
}

.log-entry {
  opacity: 0;
  color: #d9cfff;
  font-size: 0.95em;
  margin-bottom: 15px;
  white-space: pre-wrap;
  transition: opacity 0.4s ease;
}
.log-entry.visible {
  opacity: 1;
}

/* Typing cursor effect (optional aesthetic detail) */
.log-entry::after {
  content: "▋";
  color: rgba(200,180,255,0.8);
  animation: blink 1s step-start infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ===== BUTTONS ===== */
button, .back-btn {
  background: rgba(80, 60, 160, 0.25);
  border: 1px solid rgba(200, 180, 255, 0.3);
  border-radius: 10px;
  color: #f8f7ff;
  padding: 10px 25px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
  text-decoration: none;
}

button:hover, .back-btn:hover {
  background: rgba(130, 100, 220, 0.4);
  box-shadow: 0 0 15px rgba(200, 160, 255, 0.4);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Back container */
.return-link {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 25px 30px;
  backdrop-filter: blur(3px);
  margin-top: 40px;
}
.hidden { display: none; }

/* ===== IMAGES ===== */
.portrait img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(200,180,255,0.3);
  box-shadow: 0 0 25px rgba(180,140,255,0.25);
  margin-bottom: 25px;
}

/* ===== STARFIELD ANIMATION ===== */
@keyframes starDrift {
  from { background-position: 0 0; }
  to { background-position: -1000px 1000px; }
}

/* ===== LOADING SEQUENCE (optional use) ===== */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  color: #c9b6ff;
  z-index: 999;
  animation: fadeOut 1.2s ease forwards;
  animation-delay: 2.5s;
}
@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}
