/* ===== Global ===== */
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #00ff9c;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.55;
  overflow-x: hidden;
}

/* ===== Code Rain Background ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(0, 255, 140, 0.15) 0%,
      rgba(0, 0, 0, 0.1) 100%
    );
  animation: matrixRain 1.8s linear infinite;
  opacity: 0.35;
  z-index: 0;
}

@keyframes matrixRain {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ===== Content Layer ===== */
header, section, h1, h2, h3, table, p, ul, li {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* ===== Headings ===== */
h1 {
  color: #00ffcc;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #00ffcc;
}

h2 {
  color: #00e6a8;
  font-size: 1.45rem;
  border-bottom: 1px solid #003322;
  padding-bottom: 0.3rem;
  margin-top: 2.5rem;
  text-shadow: 0 0 6px #00996a;
}

h3 {
  color: #00d497;
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* ===== Text ===== */
p, li {
  color: #00ff9c;
}

a {
  color: #66ffd9;
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 6px #66ffd9;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 12px #003322 inset;
}

th, td {
  padding: 0.65rem 0.9rem;
  border: 1px solid #003322;
  color: #00ffb3;
}

th {
  background: #001a12;
  color: #00ffcc;
  font-weight: 600;
  text-shadow: 0 0 4px #00ffcc;
}

tr:nth-child(even) {
  background: #000f0a;
}

tr:hover {
  background: #00261a;
  transition: background 0.15s ease-in-out;
}

/* ===== Abstract Block ===== */
.abstract {
  background: #000f0a;
  border-left: 4px solid #00ffcc;
  padding: 1.5rem;
  box-shadow: 0 0 10px #003322 inset;
}

/* ===== Code / Pre ===== */
pre, code {
  background: #001a12;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: #00ffcc;
  font-family: "JetBrains Mono", monospace;
  box-shadow: 0 0 6px #003322 inset;
}

/* ===== Images ===== */
img {
  max-width: 100%;
  display: block;
  margin: 1.5rem auto;
  border: 1px solid #003322;
  box-shadow: 0 0 10px #003322;
}
