/* public/styles.css */

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #050505; /* Deep black-grey */
  color: #e0e0e0;
  font-family: 'Courier New', Courier, monospace; /* Tech feel */
  overflow: hidden; /* Prevent scrollbars */
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* CUSTOM SCROLLBAR (Global) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(5, 5, 5, 0.4);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ffcc;
  box-shadow: 0 0 10px #00ffcc;
}

/* CANVAS BACKGROUND */
#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* FOREGROUND CONTENT */
.container {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(5, 5, 5, 0.6);
  padding: 2rem 4rem;
  border: 1px solid #333;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.1);
}

/* 404 Specific Container Styling */
.container-error {
  border-color: #ff3333;
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.2);
}

/* TYPOGRAPHY */
h1 {
  font-size: 4rem;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1rem;
  color: #00ffcc; /* Cyan tech color */
  margin-bottom: 2rem;
  display: block;
  min-height: 1.2em; /* Keep space for typewriter effect */
}

.subtitle-error {
  color: #ff3333; /* Red alert color */
}

/* BUTTON STYLING */
.btn {
  display: inline-block;
  text-decoration: none;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  padding: 10px 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn:hover {
  background: #00ffcc;
  color: #050505;
  box-shadow: 0 0 20px #00ffcc;
}

.btn-home {
  color: #ff3333;
  border-color: #ff3333;
}

.btn-home:hover {
  background: #ff3333;
  color: #050505;
  box-shadow: 0 0 20px #ff3333;
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .container { padding: 1.5rem; width: 90%; }
}