/* =====================
  GLOBAL RESET + SAFETY
===================== */
* {
  box-sizing: border-box;
  font-family: 'Courier New', 'Courier', monospace;
  letter-spacing: 0.05em;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: #0a0e27;
  color: #00ff41;
  overflow-x: hidden;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

img {
  max-width: 100%;
  height: auto;
}

/* =====================
  HOME CONTAINER
===================== */
.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #000000;
  border: 2px solid #00ff41;
  box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.1);
}

/* =====================
  EBOOK CARD (TERMINAL)
===================== */
.ebook-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  color: #00ff41;
  z-index: 1;

  background: rgba(10, 14, 39, 0.9);
  border: 2px solid #00ff41;
  border-radius: 0;
  box-shadow: 
   0 0 30px rgba(0, 255, 65, 0.3),
   inset 0 0 30px rgba(0, 255, 65, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(0);
}

/* =====================
  LIQUID BUBBLES (GREEN GLOW)
===================== */
.ebook-card::before,
.ebook-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(35px);
  z-index: -1;
  animation: bubbleFloat 12s infinite ease-in-out;
}

.ebook-card::before {
  top: -60px;
  left: -60px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.3), transparent 60%);
}

.ebook-card::after {
  bottom: -70px;
  right: -70px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.25), transparent 60%);
  animation-delay: -6s;
}

/* =====================
  TEXT (TERMINAL STYLE)
===================== */
.ebook-card h1 {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  color: #00ff41;
  transition: text-shadow 0.4s ease;
}

.ebook-card h1::before {
  content: "> ";
  color: #00ff41;
}

.ebook-card p {
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  line-height: 1.7;
  color: #00dd33;
  margin: 0.5rem 0;
}

/* =====================
  PAGE HEADER
===================== */
.page-header {
  text-align: center;
  padding: 3rem 1.5rem;
  border-bottom: 2px solid #00ff41;
}

.page-header h1 {
  font-size: clamp(1.5rem, 6vw, 2.3rem);
  color: #00ff41;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  letter-spacing: 2px;
  margin: 0;
}

.page-header h1::before {
  content: "[ ";
}

.page-header h1::after {
  content: " ]";
}

.page-header p {
  margin-top: 0.6rem;
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  color: #00dd33;
}

.page-header p::before {
  content: "// ";
  color: #00aa22;
}

/* =====================
  MODULE WRAPPER
===================== */
.modules-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 2.5rem 1.5rem;
}

/* =====================
  MODULE
===================== */
.module {
  margin-bottom: 3.5rem;
  animation: glassReveal 0.8s ease both;
  border-left: 3px solid #00ff41;
  padding-left: 1.5rem;
}

/* =====================
  MODULE TITLE
===================== */
.module-title {
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  margin-bottom: 1.5rem;
  color: #00ff41;
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
  letter-spacing: 1px;
}

.module-title::before {
  content: "$ ";
  color: #00ff41;
  margin-right: 0.5rem;
}

/* =====================
  TOPIC GRID
===================== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

/* =====================
  TOPIC CARD
===================== */
.topic-grid a {
  width: 100%;
  position: relative;
  padding: 1.25rem 1.2rem;
  border-radius: 0;
  text-decoration: none;

  background: rgba(10, 14, 39, 0.7);
  border: 1px solid #00ff41;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);

  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  color: #00ff41;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(0);
  overflow: hidden;
}

.topic-grid a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 65, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.topic-grid a strong {
  font-size: clamp(0.95rem, 4vw, 1rem);
  color: #00ff41;
  letter-spacing: 1px;
  transition: text-shadow 0.3s ease;
}

.topic-grid a strong::before {
  content: ">> ";
}

.topic-grid a p {
  font-size: clamp(0.8rem, 3.5vw, 0.85rem);
  line-height: 1.6;
  color: #00dd33;
}

/* =====================
  DESKTOP HOVER
===================== */
@media (hover: hover) {
  .ebook-card:hover {
   box-shadow: 
    0 0 50px rgba(0, 255, 65, 0.5),
    inset 0 0 30px rgba(0, 255, 65, 0.1);
   transform: translateY(-8px);
  }

  .ebook-card:hover h1 {
   text-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
  }

  .topic-grid a:hover {
   background: rgba(10, 14, 39, 0.9);
   box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
   transform: translateY(-6px);
  }

  .topic-grid a:hover::before {
   left: 0;
  }

  .topic-grid a:hover strong {
   text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
  }
}

/* =====================
  ANIMATIONS
===================== */
@keyframes bubbleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -15px) scale(1.1); }
}

@keyframes glassReveal {
  from {
   transform: translateY(20px);
   filter: blur(10px);
  }
  to {
   transform: translateY(0);
   filter: blur(0);
  }
}

/* =====================
  MOBILE RESPONSIVE
===================== */
@media (max-width: 768px) {
  .container {
   padding: 1rem;
   min-height: auto;
  }

  .ebook-card {
   max-width: 100%;
   padding: 2rem 1.25rem;
  }

  .topic-grid {
   grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
   gap: 1rem;
  }

  .modules-wrapper {
   padding: 1.5rem 1rem;
  }

  .module {
   margin-bottom: 2.5rem;
  }

  .topic-grid a {
   padding: 1.5rem 1.25rem;
  }

  .page-header {
   padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .ebook-card h1 {
   font-size: 1.5rem;
  }
  
  .module-title {
   font-size: 1.2rem;
  }

  .topic-grid {
   grid-template-columns: 1fr;
   gap: 0.8rem;
  }

  .topic-grid a {
   padding: 1.25rem 1rem;
   font-size: 0.9rem;
  }

  .ebook-card {
   padding: 1.5rem 1rem;
  }
}

@media (max-width: 320px) {
  .page-header h1 {
   font-size: 1.3rem;
  }

  .ebook-card p {
   font-size: 0.8rem;
  }
}
