:root {
  --bg-color: #050505;
  --text-main: #a9a9b3;
  --accent: #ff6b00; /* Stark amber alert color */
  --border-color: #333333;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Fira Code', monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Data Stream */
#hex-stream {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.5; /* Keeps the text dim and in the background */
}

/* Brutalist Layout */
.terminal-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid var(--border-color);
  background: rgba(5, 5, 5, 0.85);
}

h1, h2, h3 {
  color: #ffffff;
  font-weight: 700;
  text-transform: lowercase;
}

.prompt {
  color: var(--accent);
}

/* The Blinking CSS Cursor */
.cursor {
  display: inline-block;
  width: 12px;
  height: 1.1em;
  background-color: var(--text-main);
  vertical-align: bottom;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Mechanical Hover States */
a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: all 0.1s;
}

a:hover {
  background-color: var(--accent);
  color: var(--bg-color);
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

input[type="text"], 
input[type="email"], 
input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  background-color: #0a0a0a;       /* Kills the blinding white */
  color: var(--accent);            /* Types out in your amber accent */
  border: 1px solid var(--border-color);
  border-radius: 0;                /* Sharp brutalist edges */
  box-sizing: border-box;          /* Keeps padding from breaking widths */
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: var(--accent);     /* Glows amber when active */
}

button {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  border-radius: 0;
  cursor: pointer;
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  transition: background-color 0.1s, color 0.1s;
}

button:hover:not(:disabled) {
  background-color: var(--accent);
  color: var(--bg-color);          /* Inverts to solid amber with black text */
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Terminal hardware flicker effect */
@keyframes glitch-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { 
    opacity: 1; 
    text-shadow: 0 0 8px rgba(255, 132, 0, 0.6); 
  }
  20%, 22%, 24%, 55% { 
    opacity: 0.3; 
    text-shadow: none; 
  }
}

/* Classic blinking terminal cursor */
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.glitch-text {
  animation: glitch-flicker 5s infinite;
}

.cursor-blink {
  display: inline-block;
  width: 10px;
  animation: cursor-blink 1.2s infinite;
}

/* Floating Navigation */
#sys-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  font-family: 'Fira Code', monospace;
}

#sys-menu-toggle {
  background: #111;
  color: #ff8400;
  border: 1px solid #ff8400;
  padding: 8px 15px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9em;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 132, 0, 0.2);
  transition: all 0.2s ease-in-out;
}

#sys-menu-toggle:hover {
  background: #ff8400;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 132, 0, 0.6);
}

#sys-menu-panel {
  position: absolute;
  top: 45px;
  right: 0;
  left: auto; /* Aligns the left edge of the dropdown with the right side of the button */
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #333;
  border-left: 2px solid #ff8400; /* Moves the accent border to the left edge of the dropdown */
  padding: 10px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.8);
}

#sys-menu-panel.hidden {
  display: none;
}

#sys-menu-panel a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.85em;
  padding: 5px;
  transition: color 0.2s;
}

#sys-menu-panel a:hover {
  color: #ff8400;
  text-shadow: 0 0 5px rgba(255, 132, 0, 0.5);
}