/* ============================================================
   MICHAEL T. MURPHY — Author Website
   Design System & Global Styles
   Theme: Industrial Dark / Alien-Cyber Aesthetic
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette */
  --bg-primary:      #060a12;
  --bg-secondary:    #0c1220;
  --bg-tertiary:     #111d2e;
  --bg-card:         #0e1824;
  --bg-card-hover:   #132236;

  /* Accent colors */
  --accent-green:    #00ff88;
  --accent-cyan:     #00d4ff;
  --accent-orange:   #ff6b2b;
  --accent-magenta:  #ff2d78;

  /* Text colors */
  --text-primary:    #e0e6ed;
  --text-secondary:  #7b8da4;
  --text-heading:    #f0f4f8;
  --text-muted:      #4a5c72;

  /* Borders & surfaces */
  --border-subtle:   rgba(0, 212, 255, 0.08);
  --border-glow:     rgba(0, 255, 136, 0.25);
  --surface-glass:   rgba(12, 18, 32, 0.85);

  /* Fonts */
  --font-heading:    'Rajdhani', sans-serif;
  --font-body:       'Inter', sans-serif;
  --font-display:    'Orbitron', sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Widths */
  --max-width:  1200px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.6s ease;
}


/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.2;
}

::selection {
  background: rgba(0, 255, 136, 0.3);
  color: #fff;
}


/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-padding {
  padding: var(--space-3xl) 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ============================================================
   BACKGROUND EFFECTS — Scanline & Grid overlay
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 136, 0.015) 2px,
      rgba(0, 255, 136, 0.015) 4px
    );
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
}


/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-heading);
  text-decoration: none;
  position: relative;
}

.nav-logo span {
  color: var(--accent-green);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-xs);
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.06);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  min-width: 280px;
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-transform: none;
  line-height: 1.4;
  border-left: 3px solid transparent;
}

/* Active / current page item in dropdown */
.dropdown-menu a.active {
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.06);
  border-left-color: var(--accent-green);
  border-radius: 0 8px 8px 0;
}

/* Hover on non-active items — uses cyan to distinguish from active green */
.dropdown-menu a:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  border-radius: 0 8px 8px 0;
}

/* Active item hover — stays green, just slightly brighter bg */
.dropdown-menu a.active:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
  border-left-color: var(--accent-green);
}

.dropdown-menu a .book-menu-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 255, 136, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-lg);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: var(--space-lg);
  background: rgba(0, 255, 136, 0.05);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 25px rgba(0, 255, 136, 0.3);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0, 255, 136, 0.45);
  color: var(--bg-primary);
}

/* Grid / circuit decoration lines */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.15;
}

.hero-grid .h-line,
.hero-grid .v-line {
  position: absolute;
  background: var(--accent-cyan);
}

.hero-grid .h-line {
  height: 1px;
  width: 100%;
  opacity: 0.3;
}

.hero-grid .v-line {
  width: 1px;
  height: 100%;
  opacity: 0.3;
}


/* ============================================================
   BOOK CARDS (Home page featured section)
   ============================================================ */
.books-section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: 1px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-green);
  display: block;
  margin-bottom: var(--space-sm);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  border-color: rgba(0, 255, 136, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 136, 0.05);
}

.book-card-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.03) 0%, transparent 100%);
}

.book-card-image img {
  max-height: 360px;
  width: auto;
  border-radius: 6px;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition-normal);
}

.book-card:hover .book-card-image img {
  transform: scale(1.03);
}

.book-card-content {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.book-card-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-heading);
  margin-bottom: var(--space-md);
}

.book-card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.book-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-green);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.book-card-link:hover {
  gap: 0.8rem;
  color: var(--accent-cyan);
}

.book-card-link .arrow {
  transition: transform var(--transition-fast);
  font-size: 1.1rem;
}

.book-card-link:hover .arrow {
  transform: translateX(4px);
}


/* ============================================================
   CTA / AUTHOR TEASER (Home page)
   ============================================================ */
.author-teaser {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.author-teaser-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.author-teaser-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 136, 0.15);
}

.author-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition-normal);
}

.author-teaser:hover .author-teaser-image img {
  filter: grayscale(20%);
}

.author-teaser-text h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.author-teaser-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 600px;
}


/* ============================================================
   BOOK DETAIL PAGES
   ============================================================ */
.book-hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
}

.book-hero-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Book cover with floating shadow + 3D hover */
.book-cover-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 800px;
}

.book-cover-wrapper img {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.4),
    0 20px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.book-cover-wrapper:hover img {
  transform: rotateY(-5deg) rotateX(3deg) translateY(-8px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 255, 136, 0.06),
    8px 0 25px rgba(0, 0, 0, 0.2);
}

.book-cover-shadow {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 50px;
  background: radial-gradient(ellipse, rgba(0, 255, 136, 0.25) 0%, rgba(0, 212, 255, 0.08) 40%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
  animation: pulseGlow 3s ease-in-out infinite;
  transition: opacity 0.5s ease, width 0.5s ease;
}

.book-cover-wrapper:hover .book-cover-shadow {
  width: 85%;
  opacity: 1.3;
  animation: pulseGlowHover 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.08);
  }
}

@keyframes pulseGlowHover {
  0%, 100% {
    opacity: 0.8;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.12);
  }
}

.book-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.book-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.book-author-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: var(--space-xl);
  font-weight: 500;
}

.book-short-desc {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-green);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}


/* ---------- Buy Buttons Section ---------- */
.buy-section {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-2xl);
}

.buy-section-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.buy-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 820px;
  margin: 0 auto;
}

.buy-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
              0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  min-height: 44px;
}

.buy-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.35),
              0 4px 6px rgba(0, 0, 0, 0.1);
}

.buy-btn-kobo-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.buy-btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.buy-btn-prefix {
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  color: #4b5563;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2px;
}

.buy-btn-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.2px;
  color: #111827;
  line-height: 1;
  white-space: nowrap;
}

.buy-btn-name.single-line {
  font-weight: 500;
  font-size: 1.25rem;
  color: #374151;
  white-space: nowrap;
}

.gplay-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: #5f6368;
  line-height: 1.05;
  white-space: nowrap;
}

.gplay-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.35rem;
  color: #039BE5; /* Matching standard cyan blue from Google Play logo */
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.buy-btn-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.buy-btn-brand {
  height: 28px;
  width: auto;
  object-fit: contain;
}


/* ---------- Long Description ---------- */
.book-details {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.book-details-inner {
  max-width: 780px;
  margin: 0 auto;
}

.book-details h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.book-long-desc {
  columns: 1;
}

.book-long-desc p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: var(--space-lg);
  text-align: justify;
}

.book-long-desc p:first-child {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.book-long-desc .pullquote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-green);
  border-left: 3px solid var(--accent-cyan);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: rgba(0, 255, 136, 0.03);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.about-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(100%) contrast(1.05);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6, 10, 18, 0.3) 0%,
      rgba(6, 10, 18, 0.5) 40%,
      rgba(6, 10, 18, 0.95) 85%,
      var(--bg-primary) 100%
    );
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-xl);
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.about-hero .author-role {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-green);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
}


/* ---------- About Bio Section ---------- */
.about-bio {
  position: relative;
  z-index: 1;
}

.about-bio-inner {
  max-width: 780px;
  margin: 0 auto;
}

.about-bio p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: var(--space-lg);
}

.about-bio p:first-child {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.about-bio p:first-child::first-line {
  color: var(--text-heading);
  font-weight: 500;
}

.bio-highlight {
  color: var(--accent-cyan) !important;
  font-weight: 500;
}

.bio-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), transparent);
  margin: var(--space-xl) 0;
  border: none;
}


/* ---------- About Books Grid ---------- */
.about-books {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.about-books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.about-book-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-xl) var(--space-lg);
  transition: all var(--transition-normal);
}

.about-book-card:hover {
  border-color: rgba(0, 255, 136, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.about-book-card a.cover-link {
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.about-book-card img.mini-cover {
  height: 220px;
  width: auto;
  border-radius: 6px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-normal);
}

.about-book-card:hover img.mini-cover {
  transform: scale(1.04);
}

.about-book-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.mini-buy-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.mini-buy-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05),
              0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  min-height: 38px;
}

.mini-buy-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 8px 16px rgba(0, 255, 136, 0.35),
              0 2px 4px rgba(0, 0, 0, 0.1);
}

.mini-gplay-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.mini-gplay-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: #5f6368;
  line-height: 1.05;
  white-space: nowrap;
}

.mini-gplay-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: #039BE5;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.mini-buy-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  color: #111827;
  white-space: nowrap;
}

.mini-buy-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.mini-buy-brand {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.mini-buy-kobo-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom span {
  color: var(--accent-green);
}


/* ============================================================
   RESPONSIVE — Tablet (< 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
    gap: 0;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.1rem;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 0 var(--space-md);
    display: none;
    margin-top: 0.5rem;
  }

  .dropdown.open .dropdown-menu {
    display: block;
    transform: none;
  }

  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-cover-wrapper {
    margin-bottom: var(--space-lg);
  }

  .book-cover-wrapper img {
    max-width: 260px;
  }

  .book-short-desc {
    text-align: left;
  }

  .buy-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-teaser-inner {
    flex-direction: column;
    text-align: center;
  }

  .author-teaser-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .about-books-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .about-hero {
    min-height: 50vh;
  }
}


/* ============================================================
   RESPONSIVE — Mobile (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .buy-buttons {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .buy-btn {
    padding: 1rem;
    min-height: 100px;
  }

  .buy-btn-logo {
    height: 28px;
  }

  .buy-btn-brand {
    height: 18px;
  }

  .book-info h1 {
    font-size: 1.6rem;
  }

  .mini-buy-buttons {
    grid-template-columns: 1fr 1fr;
  }
}


/* ============================================================
   ANIMATIONS — Keyframes
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
}

@keyframes scan-line {
  0% { top: -100%; }
  100% { top: 200%; }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}
