/* ============================================================
   DESIGN TOKENS & RESET
   ============================================================ */
:root {
  --bg-dark: #0f1b2d;
  --bg-darker: #0a1220;
  --bg-light: #f8f9fa;
  --accent-gold: #f4d03f;
  --accent-gold-hover: #e0bb30;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --font-serif: 'Merriweather', serif;
  --font-sans: 'Inter', sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 10px 30px -5px rgba(244, 208, 63, 0.3);
  --radius-lg: 16px;
  --radius-md: 8px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   UTILITIES & COMPONENTS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px rgba(244, 208, 63, 0.2);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-outline:hover {
  background: rgba(244, 208, 63, 0.1);
  transform: translateY(-2px);
}

.gold-line {
  height: 3px;
  width: 60px;
  background: var(--accent-gold);
  border-radius: 2px;
  margin: 1.5rem 0;
}

.gold-line.center {
  margin: 1.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.dark-tag {
  color: #b48e00;
}

/* ============================================================
   LOADER & SCROLL PROGRESS
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-darker);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-book {
  position: relative;
  width: 60px;
  height: 40px;
  border: 4px solid var(--accent-gold);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  perspective: 1000px;
}

.loader-page {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: rgba(244, 208, 63, 0.2);
  border-left: 2px solid var(--accent-gold);
  transform-origin: left;
  animation: turnPage 1.2s linear infinite;
}

.loader-page:nth-child(2) { animation-delay: 0.4s; }
.loader-page:nth-child(3) { animation-delay: 0.8s; }

@keyframes turnPage {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}

.loader-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
  letter-spacing: 1px;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gold);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s ease;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

header.scrolled {
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(244, 208, 63, 0.4));
  display: flex;
  align-items: center;
}

.logo-icon-img {
  width: 50px;
  height: 50px;
  border-radius: 0;
  background-color: transparent;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(244, 208, 63, 0.55));
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover .logo-icon-img {
  filter: drop-shadow(0 0 16px rgba(244, 208, 63, 0.8));
  transform: scale(1.05);
}

.logo span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-amp {
  color: var(--accent-gold);
  font-style: italic;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 16px;
  transition: var(--transition);
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 208, 63, 0.4);
  box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.15);
}

.search-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 8px;
  width: 140px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar input.expanded {
  width: 220px;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar button {
  background: var(--accent-gold);
  color: var(--bg-darker);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  background: var(--accent-gold-hover);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  overflow: hidden;
  background: radial-gradient(circle at top right, #1a2a44 0%, var(--bg-darker) 100%);
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  z-index: 2;
  padding-right: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(244, 208, 63, 0.1);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(244, 208, 63, 0.2);
}

.hero h1 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  min-height: 4.4rem;
}

#heroTitle {
  border-right: 4px solid var(--accent-gold);
  animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: var(--accent-gold); }
  50% { border-color: transparent; }
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-sub strong {
  color: #fff;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: var(--transition);
}

.hero-scroll-hint:hover {
  opacity: 1;
}

.hero-scroll-hint span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-arrow {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-10px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.hero-image-wrap {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--accent-gold);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: -1;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.1); }
}

.hero-float {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-badge-float {
  position: absolute;
  background: rgba(15, 27, 45, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite reverse;
  z-index: 3;
}

/* ============================================================
   JOURNEY CARD SECTION
   ============================================================ */
.journey-card-section {
  padding: 4rem 5%;
  background: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
}

.journey-card {
  width: 100%;
  max-width: 1200px;
  background: #1e293b; /* Slightly lighter navy for contrast */
  border-radius: 20px;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.journey-text {
  flex: 1;
  max-width: 500px;
}

.journey-text h2 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: none;
}
.journey-text h2 strong {
  font-weight: 700;
  background: linear-gradient(135deg, #f4d03f 0%, #ffe993 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
}

.journey-text p {
  color: #ccd6f6;
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .journey-card {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }
  .animated-book-wrapper {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================================
   3D ANIMATED BOOK — JS-driven, zero backface-visibility flicker
   ============================================================ */
.animated-book-wrapper {
  perspective: 1400px;
  width: 520px;
  max-width: 520px;
  min-height: 340px;
  aspect-ratio: 1.5;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
}

.animated-book {
  position: relative;
  width: 90%;
  height: 80%;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(0deg);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.animated-book:hover {
  transform: rotateX(16deg) rotateY(0deg) scale(1.03);
}

/* ---- Luxury Hardcover ---- */
.book-cover {
  position: absolute;
  top: -4%; left: -2%;
  width: 104%; height: 108%;
  background: #1c0d02;
  border-radius: 8px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.9),
    inset 0 0 18px rgba(0,0,0,0.7),
    inset 0 0 3px rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.04);
  transform: translateZ(-14px);
  z-index: -1;
}
.book-cover::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(244,208,63,0.16);
  border-radius: 6px;
}
.book-cover::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 100%;
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.bookmark {
  position: absolute;
  bottom: -42px; left: 50%;
  transform: translateX(-50%) translateZ(-1px);
  width: 26px; height: 84px;
  background: linear-gradient(to right, #690f0f 0%, #901a1a 50%, #690f0f 100%);
  z-index: 1;
  box-shadow: 0 10px 18px rgba(0,0,0,0.6);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

/* ---- Base page ---- */
.book-page {
  position: absolute;
  top: 0;
  width: 50%; height: 100%;
  background: #f4ecce;
  overflow: hidden;
}

/* ---- Static left page with depth layers ---- */
.static-left {
  left: 0;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(to right, #f4ecce 0%, #f4ecce 93%, #beaf7a 100%);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.06);
}
.static-left::before {
  content: '';
  position: absolute;
  left: 1px; top: 1px;
  width: calc(100% - 1px); height: calc(100% - 2px);
  background: #eee5c0;
  border-radius: 4px 0 0 4px;
  transform: translateZ(-4px);
}
.static-left::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: calc(100% - 2px); height: calc(100% - 4px);
  background: #e3d9aa;
  border-radius: 4px 0 0 4px;
  transform: translateZ(-8px);
}

/* ---- Static right page with depth layers ---- */
.static-right {
  right: 0;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(to right, #beaf7a 0%, #f4ecce 7%, #f4ecce 100%);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.06);
}
.static-right::before {
  content: '';
  position: absolute;
  right: 1px; top: 1px;
  width: calc(100% - 1px); height: calc(100% - 2px);
  background: #eee5c0;
  border-radius: 0 4px 4px 0;
  transform: translateZ(-4px);
}
.static-right::after {
  content: '';
  position: absolute;
  right: 2px; top: 2px;
  width: calc(100% - 2px); height: calc(100% - 4px);
  background: #e3d9aa;
  border-radius: 0 4px 4px 0;
  transform: translateZ(-8px);
}

/* ---- Flying page (JS-animated) ---- */
.fly-page {
  position: absolute;
  right: 0; top: 0;
  width: 50%; height: 100%;
  transform-origin: left center;
  z-index: 10;
  display: none;           /* hidden until JS activates */
}

.fly-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(to right, #c5b88a 0%, #f4ecce 8%, #f4ecce 100%);
}

/* Back face is initially hidden; JS flips to it at the 90° crossing.
   scaleX(-1) counter-mirrors the parent rotateY(-180deg) so text reads normally. */
.fly-back-face {
  border-radius: 4px 0 0 4px;
  background: linear-gradient(to right, #f4ecce 0%, #f4ecce 92%, #c5b88a 100%);
  opacity: 0;
  transform: scaleX(-1);   /* ← cancels parent -180° flip so text isn't mirrored */
}

/* ---- Shadow overlays (cast lighting) ---- */
.page-shadow-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}

/* ---- Page text content ---- */
.page-content {
  position: relative;
  padding: 15% 10%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: repeating-linear-gradient(
    transparent, transparent 28px,
    rgba(0,0,0,0.04) 28px, rgba(0,0,0,0.04) 29px
  );
  background-position: 0 10px;
  z-index: 2;
  box-sizing: border-box;
}


.quote-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--bg-darker);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.quote-divider {
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
  margin: 0 auto 1rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.quote-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   SECTIONS GENERAL
   ============================================================ */
.section-wave {
  width: 100%;
  line-height: 0;
  margin-top: -59px;
  position: relative;
  z-index: 3;
}

.section-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

.content-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 5%;
  gap: 4rem;
}

.dark-section {
  background: #162235;
}

.light-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.navy-section {
  background: var(--bg-darker);
}

.section-text {
  flex: 1;
  max-width: 500px;
}

.section-text.text-right {
  order: 1;
}

.section-text h2 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.light-section .dark-heading {
  color: var(--bg-darker);
}

.section-text h2 em {
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 300;
}

.section-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.light-section .dark-text {
  color: #475569;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-image {
  flex: 1;
  position: relative;
  order: 2;
}

.content-section:nth-child(even) .section-image {
  order: 1;
}

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.parallax-img {
  width: 100%;
  height: auto;
  display: block;
}

.img-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 4px solid var(--accent-gold);
  border-left: 4px solid var(--accent-gold);
  z-index: -1;
  opacity: 0.5;
}

.img-decoration.right {
  left: auto;
  right: -20px;
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.quote-section {
  padding: 6rem 5%;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
}

.quote-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: rgba(244, 208, 63, 0.1);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.quote-section blockquote {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 300;
  color: #fff;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.quote-section cite {
  font-size: 1.1rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-style: normal;
  font-weight: 600;
}

/* ============================================================
   FEATURED GENRES GRID
   ============================================================ */
.featured-genres {
  padding: 6rem 5%;
  background: #162235;
  text-align: center;
}

.fg-header {
  margin-bottom: 4rem;
}

.fg-header h2 {
  font-size: 2.8rem;
  color: #fff;
}

.fg-header em {
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 300;
}

.genre-pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.genre-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.genre-pill:hover {
  background: var(--c, var(--accent-gold));
  color: #000;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats-section {
  position: relative;
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--bg-darker) 0%, #162235 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  overflow: hidden;
  border-top: 1px solid rgba(244, 208, 63, 0.1);
  border-bottom: 1px solid rgba(244, 208, 63, 0.1);
}

.stats-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-suffix {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-left: 2px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 6rem 5%;
  background: url('../images/1.jpg') center/cover fixed;
  position: relative;
  display: flex;
  justify-content: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.85); /* Darkened overlay so image text does not clash with card */
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
  text-align: center;
  background: rgba(15, 27, 45, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.cta-content h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}



/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.2rem; min-height: 3.5rem; }
  .content-section { flex-direction: column; text-align: center; gap: 3rem; }
  .section-text.text-right { order: 0; }
  .content-section:nth-child(even) .section-image { order: 2; }
  .gold-line { margin-left: auto; margin-right: auto; }
  .feature-list li { justify-content: center; }
  .img-decoration { display: none; }
  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .navbar { 
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: rgba(10, 18, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: height 0.4s ease;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .navbar.active {
    height: calc(100vh - 70px);
  }
  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .nav-links a { font-size: 1.2rem; }
  .search-bar { width: 80%; max-width: 300px; }
  .search-bar input { width: 100%; }
  .hero { flex-direction: column; text-align: center; padding-top: 100px; padding-bottom: 40px; }
  .hero-content { padding-right: 0; margin-bottom: 2rem; max-width: 100%; }
  .hero-image-wrap { width: 100%; max-width: 500px; margin: 0 auto; display: block; }
  .hero-float { width: 100%; height: auto; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-scroll-hint { display: none; }
  .hero h1 { font-size: 2.5rem; min-height: 2.8rem; }
  /* Hide floating badges on mobile for a cleaner look */
  .hero-badge-float { display: none; }
  .hero-image-glow { display: none; }
  .quote-section blockquote { font-size: 1.6rem; }
  .stats-section { flex-direction: column; gap: 3rem; padding: 4rem 5%; }
  .cta-content { padding: 2rem 1.5rem; }
  .cta-banner { padding: 4rem 5%; }
}

/* 400x517 Mobile View Optimization */
@media (max-width: 517px) {
  header { padding: 0.8rem 4%; }
  .logo span { font-size: 1.2rem; }
  .logo-icon { font-size: 1.4rem; }
  .hero h1 { font-size: 2rem; min-height: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 250px; margin: 0 auto; }
  .content-section { padding: 4rem 4%; }
  .section-text h2 { font-size: 2rem; }
  .genre-pill-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .genre-pill { padding: 0.8rem 1.2rem; font-size: 0.95rem; width: 100%; justify-content: center; }
  .stat-number { font-size: 3rem; }
  .stat-suffix { font-size: 2rem; }
  .cta-content h2 { font-size: 1.6rem; line-height: 1.3; }
  .cta-content p { font-size: 0.95rem; }
  
  /* Scale down the 3D book on mobile so it doesn't overflow or clip */
  .animated-book-wrapper {
    transform: translateX(-50%) scale(0.65);
    margin-top: -30px;
    margin-bottom: -30px;
  }
}

@media (max-width: 400px) {
  .animated-book-wrapper {
    transform: translateX(-50%) scale(0.55);
    margin-top: -40px;
    margin-bottom: -40px;
  }
}
/* ========================================================
   ULTRA-PREMIUM LUXURY UPGRADES (5 LAKH AESTHETIC)
   ======================================================== */

/* 1. Cinematic Film Grain Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Shimmering Gold Gradient Typography */
h1, h2, .logo span, .fiction-section h2, .genre-slider h2, .about-container h1, .contact-section h1 {
  background: linear-gradient(135deg, #f4d03f 0%, #ffe993 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
  text-shadow: 0 4px 20px rgba(244, 208, 63, 0.15);
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3. Luxury Buttons & Glass Deep Glow */
.btn-primary, button[type="submit"], .page {
  background: linear-gradient(135deg, #f4d03f 0%, #e0bb30 100%) !important;
  color: #0a1220 !important;
  box-shadow: 0 4px 15px rgba(244, 208, 63, 0.2), inset 0 2px 4px rgba(255,255,255,0.4) !important;
  border: none !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover, button[type="submit"]:hover, .page:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(244, 208, 63, 0.4), inset 0 2px 4px rgba(255,255,255,0.6) !important;
}

/* 4. Custom Cursor CSS */

@media (max-width: 768px) {
  body { cursor: auto; }
  .custom-cursor { display: none !important; }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background-color: #f4d03f;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10500 !important;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  border: 2px solid #0a1220;
  box-shadow: 0 0 10px rgba(244, 208, 63, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.custom-cursor.hover {
  width: 45px;
  height: 45px;
  background-color: rgba(244, 208, 63, 0.15);
  border: 1px solid #f4d03f;
  box-shadow: 0 0 20px rgba(244, 208, 63, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

