/* ============================================
   THE HOLLOWING TRILOGY - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Exo+2:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

:root {
  --bg-deep:    #06090f;
  --bg-dark:    #0d1420;
  --bg-mid:     #121c2e;
  --accent-blue:  #00c8ff;
  --accent-purple:#a855f7;
  --accent-gold:  #f59e0b;
  --accent-red:   #e11d48;
  --text-bright:  #f1f5f9;
  --text-main:    #cbd5e1;
  --text-muted:   #64748b;
  --border:       rgba(0,200,255,0.15);
  --glow-blue:    0 0 20px rgba(0,200,255,0.3);
  --glow-purple:  0 0 20px rgba(168,85,247,0.3);
  --glow-gold:    0 0 20px rgba(245,158,11,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

h2.section-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 1rem;
}

h2.section-title span {
  color: var(--accent-blue);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

section {
  padding: 6rem 0;
}

/* ---- Divider ---- */
.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  margin: 1rem auto 2rem;
  border-radius: 2px;
}

/* ---- Button ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #0070ff);
  color: #fff;
  box-shadow: var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0,200,255,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
}

.btn-outline:hover {
  background: rgba(0,200,255,0.1);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #000;
  box-shadow: var(--glow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(245,158,11,0.6);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(6, 9, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

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

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: 0.15em;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-blue); }

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/media/Space_Station_7_Rings.png');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.25) saturate(0.8);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,9,15,0.2) 0%,
    rgba(6,9,15,0.1) 40%,
    rgba(6,9,15,0.8) 80%,
    var(--bg-deep) 100%
  );
  z-index: 1;
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--d, 3s) ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.2; transform: scale(0.8); }
  to   { opacity: 1;   transform: scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 7rem 1.5rem 6rem;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,200,255,0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
  text-shadow: 0 0 60px rgba(0,200,255,0.2);
  line-height: 1.05;
}

.hero-title .highlight {
  color: var(--accent-blue);
  text-shadow: var(--glow-blue);
}

.hero-subtitle-series {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-main);
  font-style: italic;
  font-weight: 300;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-scroll svg {
  color: var(--accent-blue);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   HOOK SECTION
   ============================================ */
#hook {
  padding: 5rem 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hook-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hook-quote {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-bright);
  line-height: 1.5;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 2rem;
}

.hook-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.3rem;
  font-size: 4rem;
  color: var(--accent-blue);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.6;
}

.hook-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ============================================
   ABOUT THE SERIES
   ============================================ */
#about,
#books,
#characters,
#author,
#notify {
  scroll-margin-top: 80px;
}

#about {
  background: var(--bg-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-image-wrap img {
  width: 100%;
  display: block;
  filter: brightness(0.9) saturate(0.85);
  transition: filter 0.4s;
}

.about-image-wrap:hover img { filter: brightness(1) saturate(1); }

.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,9,15,0.7) 100%);
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.8rem;
  z-index: 1;
  flex-wrap: wrap;
}

.badge {
  background: rgba(6,9,15,0.85);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 0.5rem;
}

.about-text .divider { margin-left: 0; }

.about-text p {
  color: var(--text-main);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.about-text p strong { color: var(--text-bright); }

/* ============================================
   THE THREE BOOKS
   ============================================ */
#books {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.book-card {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow-blue);
}

.book-number {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

.book-accent-bar {
  height: 4px;
  width: 100%;
}

.book-card:nth-child(1) .book-accent-bar { background: linear-gradient(90deg, var(--accent-blue), #0070ff); }
.book-card:nth-child(2) .book-accent-bar { background: linear-gradient(90deg, var(--accent-purple), #7c3aed); }
.book-card:nth-child(3) .book-accent-bar { background: linear-gradient(90deg, var(--accent-gold), #d97706); }

.book-card-body {
  padding: 2rem;
}

.book-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.book-card:nth-child(1) .book-label { color: var(--accent-blue); }
.book-card:nth-child(2) .book-label { color: var(--accent-purple); }
.book-card:nth-child(3) .book-label { color: var(--accent-gold); }

.book-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--text-bright);
}

.book-question {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.book-desc {
  font-size: 0.93rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.book-themes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.book-theme {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.book-theme::before {
  content: '→';
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 0.05rem;
}

.book-card:nth-child(1) .book-theme::before { color: var(--accent-blue); }
.book-card:nth-child(2) .book-theme::before { color: var(--accent-purple); }
.book-card:nth-child(3) .book-theme::before { color: var(--accent-gold); }

/* ============================================
   THE HOLLOWING (antagonist teaser)
   ============================================ */
#hollowing-teaser {
  background: var(--bg-deep);
  padding: 5rem 0;
}

.hollowing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hollowing-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.hollowing-image img {
  width: 100%;
  display: block;
  filter: brightness(0.7) saturate(0.6) hue-rotate(200deg);
}

.hollowing-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(6,9,15,0.8));
  pointer-events: none;
}

.hollowing-text h2 {
  text-align: left;
  margin-bottom: 0.5rem;
}

.hollowing-text .divider { margin-left: 0; }

.hollowing-text p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

/* ============================================
   CHARACTERS
   ============================================ */
#characters {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.char-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 3/4;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.6);
}

.char-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.4s, transform 0.4s;
}

.char-card:hover img {
  filter: brightness(1) saturate(1);
  transform: scale(1.04);
}

.char-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,9,15,0.95) 100%);
  pointer-events: none;
}

.char-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.char-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.char-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.char-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.5;
}

.char-card:hover .char-detail {
  max-height: 80px;
  opacity: 1;
}

/* ============================================
   MENTOR CARD (Dr. Solomon)
   ============================================ */
.mentor-card {
  background: var(--bg-mid);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(168,85,247,0.08);
}

.mentor-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  gap: 1.5rem;
}

.mentor-card-header {
  max-width: 600px;
}

.mentor-image-wrap {
  width: 260px;
  height: 320px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(168,85,247,0.25);
  flex-shrink: 0;
}

.mentor-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(0.9) saturate(0.85);
  transition: filter 0.4s;
}

.mentor-card:hover .mentor-image-wrap img {
  filter: brightness(1) saturate(1);
}

.mentor-card-text {
  max-width: 600px;
}

/* ============================================
   AUTHOR
   ============================================ */
#author {
  background: var(--bg-deep);
}

.author-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.author-quote-block {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 8px 8px 0;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.author-quote-block p {
  font-size: 1.05rem;
  color: var(--text-main);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.author-quote-block p:last-child { margin-bottom: 0; }

.author-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ============================================
   CTA / NOTIFY
   ============================================ */
#notify {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 6rem 0;
}

.notify-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.notify-inner h2 { margin-bottom: 0.5rem; }

.notify-inner p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.notify-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.notify-form input[type="email"] {
  flex: 1;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1.2rem;
  color: var(--text-bright);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.notify-form input[type="email"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
}

.notify-form input[type="email"]::placeholder { color: var(--text-muted); }

.notify-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notify-success {
  display: none;
  padding: 1rem 1.5rem;
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.3);
  border-radius: 6px;
  color: var(--accent-blue);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text-bright);
}

.footer-logo span { color: var(--accent-blue); }

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6,9,15,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--accent-blue); }

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hollowing-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hollowing-image { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  section { padding: 4rem 0; }

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

  .notify-form { flex-direction: column; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .characters-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .char-card { aspect-ratio: 2/3; }
}
