
    :root {
      --matrix: #00ff66;
      --matrix-dim: rgba(0, 255, 102, 0.7);
      --matrix-dark: rgba(0, 255, 102, 0.3);
      --blood: #ff0033;
      --dark-bg: #0a0a0a;
      --darker-bg: #050505;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      background: #000;
      color: #e5e5e5;
      font-family: 'Roboto', sans-serif;
      overflow-x: hidden;
      line-height: 1.6;
      font-weight: 300;
    }

   #matrix{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;          /* was -1 */
  opacity: 0.30;
  pointer-events: none;
}


    .header {
      background: rgba(0, 10, 0, 0.8);
      border-bottom: 1px solid var(--matrix);
      padding: 1rem;
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(5px);
    }
    .nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
    .logo { font-family: 'Share Tech Mono', monospace; font-size: 1.8rem; color: var(--matrix); text-decoration: none; text-shadow: 0 0 10px var(--matrix); }
    .nav-links { display: flex; gap: 2rem; }
    .nav-links a { color: var(--matrix-dim); text-decoration: none; font-family: 'Share Tech Mono', monospace; position: relative; padding: 0.5rem 0; transition: all 0.3s; }
    .nav-links a:hover { color: var(--matrix); text-shadow: 0 0 10px var(--matrix); }
    .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--matrix); transition: width 0.3s; }
    .nav-links a:hover::after { width: 100%; }

    .container { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }

    .hero {
      padding: 3rem 0;
      margin-bottom: 3rem;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--blood);
    }
    .hero h1 { font-family: 'Share Tech Mono', monospace; font-size: 2.8rem; color: var(--matrix); margin-bottom: 1.5rem; text-shadow: 0 0 10px var(--matrix); text-transform: uppercase; }
    .hero p { max-width: 700px; margin: 1rem auto; font-size: 1.1rem; line-height: 1.7; color: #ccc; }

    .section {
      margin: 4rem 0;
      padding: 2.5rem;
      background: rgba(15, 15, 15, 0.7);
      border-left: 3px solid var(--matrix);
    }
    .section h2 { font-family: 'Share Tech Mono', monospace; color: var(--matrix); margin-bottom: 1.5rem; font-size: 1.8rem; }

    .quote {
      padding: 1.5rem;
      border-left: 2px solid var(--matrix);
      margin: 2rem 0;
      background: rgba(0, 20, 0, 0.1);
      font-style: italic;
      color: #ccc;
    }

    .fact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
      margin: 2.5rem 0;
    }
    .fact-card {
      padding: 1.5rem;
      border: 1px solid var(--matrix-dark);
      background: rgba(20, 0, 0, 0.5);
    }
    .fact-card h3 { color: var(--matrix); font-family: 'Share Tech Mono', monospace; margin-bottom: 1rem; font-size: 1.2rem; display: flex; align-items: center; }
    .fact-card h3 i { margin-right: 0.7rem; font-size: 1.3rem; }
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.book-card {
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid var(--matrix-dark);
  padding: 1.6rem;
  position: relative;
}

/* --- Book cover: fit image inside the box --- */

.book-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;          /* book-like shape */
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

/* THIS is the key part */
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* fit inside, no cropping */
  object-position: center;
  display: block;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--matrix), transparent);
  opacity: 0.4;
}

.book-meta h3 {
  font-family: 'Share Tech Mono', monospace;
  color: var(--matrix);
  margin-bottom: 0.4rem;
}

.book-tag {
  font-size: 0.75rem;
  color: var(--matrix-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.book-desc {
  margin: 1rem 0;
  color: #ccc;
  font-size: 0.95rem;
}

.book-actions {
  margin-top: 1.2rem;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

