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

:root {
  /* Autumn Theme Colors from Book Cover */
  --autumn-rust: #B8462E;
  --autumn-orange: #D2691E;
  --autumn-gold: #DAA520;
  --autumn-brown: #8B4513;
  --autumn-cream: #FDF5E6;
  --autumn-deep: #654321;
  --autumn-red: #CD853F;
  --text-dark: #2F1B14;
  --text-light: #FDF5E6;
  --leaf-green: #228B22;
  --shadow-soft: rgba(139, 69, 19, 0.3);
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: linear-gradient(135deg, var(--autumn-cream) 0%, #F5DEB3 50%, var(--autumn-cream) 100%);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: auto; /* Make cursor visible */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Mobile optimization */
  touch-action: manipulation;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  button, a {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn-primary, .btn-secondary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Custom Cursor */
body::before {
  content: '🍂';
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  font-size: 20px;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

/* Remove custom cursor while scrolling */
body.scrolling::before {
  display: none;
}

/* Video Intro Styles */
.video-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10000;
  background: linear-gradient(135deg, var(--autumn-brown), var(--autumn-rust));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.video-intro.hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(139, 69, 19, 0.4), rgba(184, 70, 46, 0.4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.autumn-tree-container {
  position: relative;
  margin-bottom: 2rem;
  animation: treeGrow 3s ease-out;
}

@keyframes treeGrow {
  0% { transform: scale(0) rotate(-5deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(2deg); opacity: 0.8; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.tree-trunk {
  width: 8px;
  height: 60px;
  background: linear-gradient(180deg, var(--autumn-brown), var(--autumn-deep));
  margin: 0 auto;
  border-radius: 4px;
  position: relative;
  box-shadow: inset 2px 0 4px rgba(0,0,0,0.3);
}

.tree-leaves {
  position: relative;
  top: -10px;
  width: 100px;
  height: 80px;
  margin: 0 auto;
}

.leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, var(--autumn-orange), var(--autumn-rust));
  border-radius: 0 100% 0 100%;
  top: 50%;
  left: var(--x);
  transform: translateX(-50%) rotate(var(--rotate));
  animation: leafFloat 4s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 2px 8px var(--shadow-soft);
}

@keyframes leafFloat {
  0%, 100% { transform: translateX(-50%) rotate(var(--rotate)) translateY(0px); }
  50% { transform: translateX(-50%) rotate(var(--rotate)) translateY(-10px); }
}

.intro-title {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
  animation: titleSlide 2s ease-out 1s both;
  font-weight: bold;
}

@keyframes titleSlide {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.intro-subtitle {
  font-size: 1.5rem;
  color: var(--autumn-gold);
  margin-bottom: 2rem;
  animation: subtitleFade 2s ease-out 1.5s both;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes subtitleFade {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.skip-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(255,255,255,0.2);
  border: 2px solid var(--autumn-gold);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.skip-btn:hover {
  background: var(--autumn-gold);
  color: var(--text-dark);
  transform: scale(1.05);
}

/* Floating Autumn Elements */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-leaf {
  position: absolute;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, var(--autumn-orange), var(--autumn-rust));
  border-radius: 0 100% 0 100%;
  animation: floatAround 20s ease-in-out infinite;
  opacity: 0.7;
}

.leaf-1 { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 25s; }
.leaf-2 { top: 20%; left: 80%; animation-delay: 5s; animation-duration: 30s; }
.leaf-3 { top: 60%; left: 20%; animation-delay: 10s; animation-duration: 35s; }
.leaf-4 { top: 80%; left: 70%; animation-delay: 15s; animation-duration: 28s; }
.leaf-5 { top: 40%; left: 90%; animation-delay: 20s; animation-duration: 32s; }

@keyframes floatAround {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
  25% { transform: translateY(-20px) rotate(90deg); opacity: 0.4; }
  50% { transform: translateY(-10px) rotate(180deg); opacity: 0.8; }
  75% { transform: translateY(-30px) rotate(270deg); opacity: 0.3; }
  100% { transform: translateY(0px) rotate(360deg); opacity: 0.7; }
}

/* Navigation with Autumn Theme */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(253, 245, 230, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.4s ease;
  border-bottom: 3px solid transparent;
}

#navbar.scrolled {
  background: rgba(253, 245, 230, 0.98);
  box-shadow: 0 4px 30px var(--shadow-soft);
  border-bottom: 3px solid var(--autumn-gold);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--autumn-brown);
  text-shadow: 2px 2px 4px var(--shadow-soft);
  position: relative;
}

.logo::after {
  content: '🍂';
  position: absolute;
  right: -25px;
  top: -5px;
  animation: leafSpin 3s ease-in-out infinite;
}

@keyframes leafSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--autumn-gold), transparent);
  transition: left 0.5s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:hover {
  background: var(--autumn-rust);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-soft);
}

/* Hero Section with Amazing Scroll Effects */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(135deg, var(--autumn-cream) 0%, #F5DEB3 50%, var(--autumn-cream) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23DAA520" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="%23B8462E" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="4s" repeatCount="indefinite"/></circle><circle cx="60" cy="70" r="2.5" fill="%23D2691E" opacity="0.2"><animate attributeName="opacity" values="0.2;0.7;0.2" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat;
  animation: sparkle 10s linear infinite;
}

@keyframes sparkle {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-100px); }
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 30%, var(--autumn-gold) 2px, transparent 3px),
              radial-gradient(circle at 80% 70%, var(--autumn-rust) 1px, transparent 2px),
              radial-gradient(circle at 60% 20%, var(--autumn-orange) 1.5px, transparent 2.5px);
  background-size: 100px 100px, 150px 150px, 120px 120px;
  animation: particleFloat 20s linear infinite;
  opacity: 0.6;
}

@keyframes particleFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.title-animate {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: bold;
  color: var(--autumn-brown);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px var(--shadow-soft);
  animation: titleBounce 2s ease-out;
  position: relative;
}

@keyframes titleBounce {
  0% { transform: translateY(-100px) scale(0.5); opacity: 0; }
  50% { transform: translateY(20px) scale(1.1); opacity: 0.8; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.subtitle-animate {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--autumn-rust);
  margin-bottom: 1rem;
  animation: subtitleSlide 2s ease-out 0.5s both;
  font-style: italic;
}

@keyframes subtitleSlide {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.author-text {
  font-size: 1.3rem;
  color: var(--autumn-deep);
  margin-bottom: 2rem;
  animation: authorFade 2s ease-out 1s both;
}

@keyframes authorFade {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: ctaRise 2s ease-out 1.5s both;
}

@keyframes ctaRise {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Enhanced Buttons with Autumn Effects */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--autumn-rust), var(--autumn-orange));
  color: var(--text-light);
  box-shadow: 0 6px 20px rgba(184, 70, 46, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--autumn-brown);
  border: 3px solid var(--autumn-gold);
}

.btn-primary::before, .btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px var(--shadow-soft);
}

.btn-primary:hover::before, .btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  background: var(--autumn-gold);
  color: var(--text-dark);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--autumn-brown);
  animation: scrollBounce 2s ease-in-out infinite;
}

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

.mouse {
  width: 25px;
  height: 40px;
  border: 3px solid var(--autumn-rust);
  border-radius: 15px;
  position: relative;
  margin-bottom: 10px;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--autumn-rust);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseScroll 2s ease-in-out infinite;
}

@keyframes mouseScroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* PDF Book Preview Section */
.preview-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #F5DEB3 0%, var(--autumn-cream) 50%, #F5DEB3 100%);
  position: relative;
  overflow: hidden;
}

.preview-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><path id="leaf" d="M10,10 Q20,0 30,10 Q20,20 10,10" fill="%23D2691E" opacity="0.1"/></defs><use href="%23leaf" x="20" y="30"/><use href="%23leaf" x="150" y="80"/><use href="%23leaf" x="80" y="150"/></svg>') repeat;
  animation: leafPattern 30s linear infinite;
}

@keyframes leafPattern {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-200px) translateY(-200px); }
}

.preview-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 3rem;
  color: var(--autumn-brown);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px var(--shadow-soft);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--autumn-rust), var(--autumn-gold), var(--autumn-rust));
  border-radius: 2px;
}

.preview-subtitle {
  font-size: 1.3rem;
  color: var(--autumn-deep);
  margin-bottom: 3rem;
  font-style: italic;
}

.pdf-book-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.book-container {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.pdf-flipbook {
  position: relative;
  width: 500px;
  height: 650px;
  margin: 0 auto;
  cursor: grab;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.pdf-flipbook:hover {
  transform: rotateY(-5deg) rotateX(5deg);
}

.pdf-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 
    0 10px 40px rgba(0,0,0,0.2),
    inset 0 0 0 1px rgba(255,255,255,0.8);
  transition: transform 0.6s ease;
}

.next-page {
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.book-spine {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--autumn-brown), var(--autumn-deep));
  transform: translateX(-50%) translateZ(-5px);
  border-radius: 4px;
  box-shadow: inset 2px 0 4px rgba(0,0,0,0.3);
}

.page-flip-controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.9);
  padding: 1rem 2rem;
  border-radius: 30px;
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.page-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: linear-gradient(135deg, var(--autumn-rust), var(--autumn-orange));
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(184, 70, 46, 0.4);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-weight: bold;
  color: var(--autumn-brown);
  font-size: 1.1rem;
}

.book-promotion {
  background: linear-gradient(135deg, rgba(253, 245, 230, 0.9), rgba(245, 222, 179, 0.9));
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow-soft);
  backdrop-filter: blur(10px);
  border: 2px solid var(--autumn-gold);
}

.promo-content h3 {
  font-size: 2.5rem;
  color: var(--autumn-brown);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px var(--shadow-soft);
}

.author-name {
  font-size: 1.3rem;
  color: var(--autumn-rust);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.book-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.book-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight {
  background: rgba(218, 165, 32, 0.2);
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--autumn-gold);
  font-weight: bold;
  transition: all 0.3s ease;
}

.highlight:hover {
  background: rgba(218, 165, 32, 0.3);
  transform: translateX(10px);
}

.get-book-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--autumn-rust), var(--autumn-orange));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.get-book-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.get-book-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(184, 70, 46, 0.4);
}

.get-book-btn:hover::before {
  left: 100%;
}

.btn-autumn-leaf {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: var(--autumn-gold);
  border-radius: 0 100% 0 100%;
  transform: rotate(45deg);
  animation: leafWiggle 2s ease-in-out infinite;
}

@keyframes leafWiggle {
  0%, 100% { transform: rotate(45deg); }
  50% { transform: rotate(60deg); }
}

.reading-experience {
  text-align: center;
  color: var(--autumn-deep);
  font-style: italic;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(218, 165, 32, 0.1);
  border-radius: 10px;
}

/* About Section with Scroll Animations */
.about-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--autumn-cream) 0%, #F5DEB3 100%);
  position: relative;
}

.autumn-leaves-float {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30,30 Q40,20 50,30 Q40,40 30,30" fill="%23D2691E" opacity="0.3"><animateTransform attributeName="transform" type="rotate" values="0 40 30;360 40 30" dur="10s" repeatCount="indefinite"/></path></svg>') repeat;
  background-size: 200px 200px;
  animation: leavesFloat 25s linear infinite;
}

@keyframes leavesFloat {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-200px) translateY(-200px); }
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-block;
  background: var(--autumn-gold);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--autumn-brown);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text > p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.chapter-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.6);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(139, 69, 19, 0.1);
  transition: all 0.4s ease;
  border-left: 5px solid var(--autumn-rust);
}

.highlight-item:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 10px 35px rgba(139, 69, 19, 0.2);
}

.highlight-icon {
  background: linear-gradient(135deg, var(--autumn-rust), var(--autumn-orange));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.highlight-item h4 {
  color: var(--autumn-brown);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: var(--text-dark);
  line-height: 1.6;
}

.book-cover-tilt {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.8);
  transition: all 0.6s ease;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.book-cover-tilt:hover {
  transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) scale(1.05);
  box-shadow: 
    0 30px 70px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.9);
}

/* Continue with more sections... */

/* Table of Contents */
.contents-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--autumn-cream) 0%, #F5DEB3 100%);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.toc-card {
  background: rgba(255,255,255,0.8);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-soft);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.toc-card:hover {
  transform: translateY(-10px);
  border-color: var(--autumn-gold);
  box-shadow: 0 20px 50px var(--shadow-soft);
}

/* Purchase Section */
.purchase-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #F5DEB3 0%, var(--autumn-cream) 50%, #F5DEB3 100%);
}

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

.purchase-card {
  background: rgba(255,255,255,0.9);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 50px var(--shadow-soft);
  backdrop-filter: blur(10px);
}

/* Author Section */
.author-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--autumn-cream) 0%, #F5DEB3 100%);
}

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

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--autumn-brown), var(--autumn-deep));
  color: var(--text-light);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
}

/* Responsive Design - Mobile First Approach */

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
  .nav-content {
    max-width: 1400px;
    padding: 0 2rem;
  }
  
  .hero-content {
    max-width: 900px;
  }
}

/* Tablet Landscape & Small Desktop (1024px - 1439px) */
@media (max-width: 1440px) and (min-width: 1024px) {
  .pdf-flipbook {
    width: 450px;
    height: 580px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  /* Navigation */
  #navbar {
    padding: 0.75rem 1.5rem;
  }
  
  .nav-content {
    flex-wrap: wrap;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-links {
    gap: 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 3rem 1.5rem;
    min-height: 90vh;
  }
  
  .title-animate {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 0.8rem;
  }
  
  .subtitle-animate {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
  }
  
  .hero-cta {
    gap: 0.8rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }
  
  /* Preview Section */
  .preview-section {
    padding: 3rem 1.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }
  
  .preview-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .pdf-book-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pdf-flipbook {
    width: 400px;
    height: 520px;
  }
  
  .book-promotion {
    padding: 1.5rem;
  }
  
  .promo-content h3 {
    font-size: 2rem;
  }
  
  /* About Section */
  .about-section {
    padding: 3rem 1.5rem;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text h2 {
    font-size: 2rem;
  }
  
  .chapter-highlights {
    grid-template-columns: 1fr;
  }
  
  /* Contents Section */
  .contents-section {
    padding: 3rem 1.5rem;
  }
  
  .toc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Purchase Section */
  .purchase-section {
    padding: 3rem 1.5rem;
  }
  
  .purchase-card {
    padding: 2rem;
    max-width: 500px;
  }
  
  .suggested-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
  }
}

/* Small Tablet & Large Mobile (600px - 767px) */
@media (max-width: 767px) {
  /* Reset - Mobile First */
  * {
    max-width: 100%;
  }
  
  /* Navigation */
  #navbar {
    padding: 0.6rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .nav-content {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .logo {
    font-size: 1.3rem;
    order: -1;
  }
  
  .nav-links {
    flex-direction: row;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
  }
  
  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 2rem 1rem;
    padding-top: 6rem;
    min-height: auto;
    margin-top: 3rem;
  }
  
  .title-animate {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 0.6rem;
  }
  
  .subtitle-animate {
    font-size: clamp(0.9rem, 2.2vw, 1.3rem);
    margin-bottom: 0.8rem;
  }
  
  .author-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .hero-3d-book {
    display: none !important;
  }
  
  .scroll-indicator {
    bottom: 15px;
    font-size: 0.8rem;
  }
  
  /* Video Intro */
  .intro-title {
    font-size: 1.8rem;
  }
  
  .intro-subtitle {
    font-size: 1rem;
  }
  
  .skip-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Preview Section */
  .preview-section {
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 0.6rem;
  }
  
  .section-title::after {
    width: 80px;
  }
  
  .preview-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-read {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 300px;
  }
  
  .pdf-book-wrapper {
    gap: 1.5rem;
  }
  
  .pdf-flipbook {
    width: 280px;
    height: 360px;
  }
  
  .book-promotion {
    padding: 1.2rem;
  }
  
  .promo-content h3 {
    font-size: 1.6rem;
  }
  
  .author-name {
    font-size: 1.1rem;
  }
  
  .book-description {
    font-size: 0.95rem;
  }
  
  .get-book-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    width: 100%;
  }
  
  /* About Section */
  .about-section {
    padding: 2rem 1rem;
  }
  
  .about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .about-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .chapter-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .highlight-item {
    padding: 1rem;
  }
  
  .highlight-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
  
  .about-book-display img {
    max-width: 100%;
    height: auto;
  }
  
  /* Contents Section */
  .contents-section {
    padding: 2rem 1rem;
  }
  
  .contents-section h2 {
    font-size: 1.8rem;
  }
  
  .toc-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .toc-card {
    padding: 1.2rem;
  }
  
  .toc-card h3 {
    font-size: 1.2rem;
  }
  
  .toc-card ul {
    font-size: 0.9rem;
  }
  
  /* Purchase Section */
  .purchase-section {
    padding: 2rem 1rem;
  }
  
  .purchase-header h2 {
    font-size: 1.8rem;
  }
  
  .purchase-card {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
  }
  
  .form-group input {
    padding: 0.7rem;
    font-size: 1rem;
  }
  
  .suggested-amounts {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .amount-btn {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
  
  .btn-submit {
    padding: 0.8rem;
    font-size: 1rem;
    width: 100%;
  }
  
  /* Author Section */
  .author-section {
    padding: 2rem 1rem;
  }
  
  .author-section h2 {
    font-size: 1.8rem;
  }
  
  .author-bio {
    font-size: 0.95rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 1rem;
  }
  
  /* Book Preview Grid */
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .preview-page {
    height: 200px;
  }
  
  .preview-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Book Modal */
  .book-modal-content {
    padding: 1rem;
    margin: 1rem;
    max-height: 90vh;
  }
  
  .book-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  
  .book-flip-container {
    height: 300px;
    width: 100%;
  }
  
  .page {
    height: 100%;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .image-frame {
    width: 280px;
    height: 370px;
  }
  
  .img-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Mobile (480px - 599px) */
@media (max-width: 599px) {
  body {
    font-size: 14px;
  }
  
  /* Navigation */
  #navbar {
    padding: 0.5rem 0.8rem;
  }
  
  .nav-content {
    gap: 0.6rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .logo::after {
    right: -20px;
  }
  
  .nav-links {
    gap: 0.6rem;
    font-size: 0.8rem;
  }
  
  .nav-links a {
    padding: 0.3rem 0.6rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 1.5rem 0.8rem;
    padding-top: 5rem;
  }
  
  .title-animate {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
  }
  
  .subtitle-animate {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
  }
  
  .author-text {
    font-size: 0.9rem;
  }
  
  .hero-cta {
    gap: 0.6rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 0px;
  }
  
  /* Preview Section */
  .preview-section {
    padding: 1.5rem 0.8rem;
  }
  
  .section-title {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  }
  
  .preview-subtitle {
    font-size: 0.9rem;
  }
  
  .btn-read {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .pdf-flipbook {
    width: 240px;
    height: 320px;
  }
  
  /* Book Promotion */
  .promo-content h3 {
    font-size: 1.4rem;
  }
  
  .author-name {
    font-size: 1rem;
  }
  
  .book-description {
    font-size: 0.9rem;
  }
  
  .highlight {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .get-book-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* About Section */
  .about-text h2 {
    font-size: 1.5rem;
  }
  
  .about-text p {
    font-size: 0.9rem;
  }
  
  .section-label {
    font-size: 0.8rem;
  }
  
  .highlight-item {
    padding: 0.8rem;
  }
  
  .highlight-icon {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    line-height: 36px;
  }
  
  /* Contents Section */
  .contents-section h2 {
    font-size: 1.5rem;
  }
  
  .toc-grid {
    gap: 1rem;
  }
  
  .toc-card {
    padding: 1rem;
  }
  
  .toc-card h3 {
    font-size: 1.1rem;
  }
  
  .toc-card ul {
    font-size: 0.85rem;
  }
  
  .chapter-num {
    font-size: 0.8rem;
  }
  
  /* Purchase Section */
  .purchase-header h2 {
    font-size: 1.5rem;
  }
  
  .purchase-header p {
    font-size: 0.9rem;
  }
  
  .purchase-card {
    padding: 1.2rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-group input {
    padding: 0.6rem;
    font-size: 0.95rem;
  }
  
  .suggested-amounts {
    gap: 0.6rem;
  }
  
  .amount-btn {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .btn-submit {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
  
  /* Author Section */
  .author-section h2 {
    font-size: 1.5rem;
  }
  
  .author-bio {
    font-size: 0.9rem;
  }
  
  .author-quote {
    font-size: 0.85rem;
  }
  
  /* Footer */
  .footer {
    padding: 1.5rem 0.8rem;
  }
  
  .footer-main h3 {
    font-size: 1.2rem;
  }
  
  .footer-main p {
    font-size: 0.85rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    font-size: 0.75rem;
  }
  
  /* Book Preview */
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .preview-page {
    height: 180px;
  }
  
  /* Image Frame */
  .image-frame {
    width: 240px;
    height: 320px;
  }
  
  .image-preview {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .img-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* Extra Small (< 480px) */
@media (max-width: 479px) {
  body {
    font-size: 13px;
  }
  
  /* Navigation - Compact */
  #navbar {
    padding: 0.4rem 0.6rem;
  }
  
  .logo {
    font-size: 1rem;
    display: none;
  }
  
  .nav-links {
    gap: 0.4rem;
    font-size: 0.75rem;
    width: 100%;
    justify-content: space-around;
  }
  
  .nav-links a {
    padding: 0.25rem 0.4rem;
  }
  
  /* Hero - Minimal */
  .hero-section {
    padding: 1rem 0.6rem;
    padding-top: 4.5rem;
    min-height: auto;
  }
  
  .title-animate {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }
  
  .subtitle-animate {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }
  
  .author-text {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    text-transform: none;
  }
  
  /* Preview */
  .preview-section {
    padding: 1rem 0.6rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .preview-subtitle {
    font-size: 0.85rem;
  }
  
  .btn-read {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .pdf-flipbook {
    width: 200px;
    height: 270px;
  }
  
  .promo-content h3 {
    font-size: 1.2rem;
  }
  
  .book-description {
    font-size: 0.85rem;
  }
  
  .highlight {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
  
  /* About */
  .about-text h2 {
    font-size: 1.3rem;
  }
  
  .about-text p {
    font-size: 0.85rem;
  }
  
  .highlight-icon {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    line-height: 32px;
  }
  
  /* Contents */
  .contents-section h2 {
    font-size: 1.3rem;
  }
  
  .toc-grid {
    gap: 0.8rem;
  }
  
  .toc-card {
    padding: 0.8rem;
  }
  
  .toc-card h3 {
    font-size: 1rem;
  }
  
  .toc-card ul {
    font-size: 0.8rem;
  }
  
  /* Purchase */
  .purchase-header h2 {
    font-size: 1.3rem;
  }
  
  .purchase-header p {
    font-size: 0.8rem;
  }
  
  .form-group input {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .suggested-amounts {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .amount-btn {
    padding: 0.4rem;
    font-size: 0.75rem;
  }
  
  .btn-submit {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  /* Image Frame */
  .image-frame {
    width: 200px;
    height: 270px;
  }
  
  .image-frame img {
    width: 100%;
    height: 100%;
  }
}

/* Mouse Movement Effects */
.parallax-element {
  transition: transform 0.1s ease-out;
}

/* Element Rearrangement on Scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-float {
  transition: transform 0.3s ease-out;
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--autumn-rust);
  font-family: "Georgia", serif;
}

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

.nav-links a {
  color: var(--autumn-brown);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--autumn-rust);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--autumn-rust);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 2rem;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.title-animate {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--autumn-rust);
  margin-bottom: 1rem;
  font-family: "Georgia", serif;
  animation: fadeInUp 1s ease-out;
}

.subtitle-animate {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--autumn-brown);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1.2s ease-out;
}

.author-text {
  font-size: 1.2rem;
  color: var(--autumn-deep);
  margin-bottom: 2rem;
  font-style: italic;
  animation: fadeInUp 1.4s ease-out;
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--autumn-rust);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(201, 104, 70, 0.3);
}

.btn-primary:hover {
  background: var(--autumn-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 104, 70, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--autumn-rust);
  border: 2px solid var(--autumn-rust);
}

.btn-secondary:hover {
  background: var(--autumn-rust);
  color: var(--text-light);
  transform: translateY(-2px);
}

.hero-3d-book {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 300px;
  height: 400px;
  pointer-events: none;
  opacity: 0.3;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--autumn-rust);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: "";
  width: 6px;
  height: 10px;
  background: var(--autumn-rust);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
  animation: scroll 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 25px;
  }
}

.scroll-indicator span {
  color: var(--autumn-brown);
  font-size: 0.9rem;
}

/* About Section */
.about-section {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, var(--autumn-cream), rgba(232, 149, 107, 0.1));
  position: relative;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-label {
  display: inline-block;
  color: var(--autumn-rust);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.about-text h2 {
  font-size: 3rem;
  color: var(--autumn-brown);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text > p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.chapter-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-icon {
  background: var(--autumn-rust);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.highlight-item h4 {
  color: var(--autumn-brown);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.highlight-item p {
  color: var(--text-dark);
  font-size: 0.95rem;
  opacity: 0.9;
}

.about-book-display {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-tilt {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.book-cover-tilt:hover {
  transform: scale(1.05) rotateY(5deg);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Preview Section */
.preview-section {
  padding: 6rem 2rem;
  background: var(--autumn-cream);
  text-align: center;
}

.preview-container h2 {
  font-size: 3rem;
  color: var(--autumn-brown);
  margin-bottom: 1rem;
}

.preview-subtitle {
  font-size: 1.2rem;
  color: var(--autumn-deep);
  margin-bottom: 3rem;
}

.book-preview-wrapper {
  max-width: 900px;
  margin: 0 auto;
  perspective: 1500px;
}

#flipbook {
  width: 800px;
  height: 600px;
  margin: 0 auto 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.page {
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
}

.page img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.page-content {
  background: var(--text-light);
  padding: 2rem;
}

.page-inner {
  text-align: left;
}

.page-inner h3 {
  color: var(--autumn-rust);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.page-inner p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.book-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.book-btn {
  padding: 0.8rem 2rem;
  background: var(--autumn-rust);
  color: var(--text-light);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.book-btn:hover {
  background: var(--autumn-deep);
  transform: translateY(-2px);
}

#page-number {
  font-weight: 600;
  color: var(--autumn-brown);
}

.pdf-upload-info {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(232, 149, 107, 0.1);
  border-left: 4px solid var(--autumn-rust);
  text-align: left;
  border-radius: 8px;
}

.pdf-upload-info strong {
  color: var(--autumn-rust);
  font-size: 1.2rem;
}

.pdf-upload-info ol {
  margin-top: 1rem;
  padding-left: 1.5rem;
}
    flex-direction: row;
    display: flex;
    gap: 2rem;
.pdf-upload-info li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Table of Contents */
.contents-section {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, rgba(232, 149, 107, 0.1), var(--autumn-cream));
}

.contents-section h2 {
  text-align: center;
  font-size: 3rem;
  color: var(--autumn-brown);
  margin-bottom: 3rem;
}

.toc-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.toc-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 4px solid var(--autumn-rust);
}

.toc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(201, 104, 70, 0.3);
}

.chapter-num {
  display: inline-block;
  background: var(--autumn-rust);
  color: var(--text-light);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.toc-card h3 {
  color: var(--autumn-brown);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.toc-card ul {
  list-style: none;
}

.toc-card li {
  color: var(--text-dark);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.toc-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--autumn-rust);
}

/* Purchase Section */
.purchase-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--autumn-rust), var(--autumn-deep));
  color: var(--text-light);
}

.purchase-container {
  max-width: 700px;
  margin: 0 auto;
}

.purchase-header {
  text-align: center;
  margin-bottom: 3rem;
}

.purchase-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.purchase-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.contribution-text {
  font-style: italic;
  margin-top: 0.5rem;
}

.purchase-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.purchase-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--autumn-brown);
  font-weight: 600;
  font-size: 1rem;
}

.form-group input {
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--autumn-rust);
}

.amount-input-wrapper {
  position: relative;
}

.currency {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--autumn-brown);
  font-weight: 600;
  font-size: 1.2rem;
}

.amount-input-wrapper input {
  padding-left: 2.5rem;
}

.suggested-amounts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.amount-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--autumn-rust);
  color: var(--autumn-rust);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--autumn-rust);
  color: white;
}

.btn-submit {
  padding: 1.2rem;
  background: var(--autumn-rust);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: var(--autumn-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-note {
  text-align: center;
  color: var(--text-dark);
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #4caf50;
  color: white;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.success-message h3 {
  color: var(--autumn-brown);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Author Section */
.author-section {
  padding: 6rem 2rem;
  background: var(--autumn-cream);
}

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

.author-content h2 {
  font-size: 3rem;
  color: var(--autumn-rust);
  margin-bottom: 1.5rem;
}

.author-bio {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.author-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--autumn-brown);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(232, 149, 107, 0.1);
  border-left: 4px solid var(--autumn-rust);
}

.author-contact {
  margin-top: 2rem;
}

.author-contact p {
  font-size: 1.1rem;
  color: var(--autumn-deep);
}

/* Footer */
.footer {
  background: var(--autumn-brown);
  color: var(--text-light);
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-main h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}


/* Preview Grid Section */
.preview-grid-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 2rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  width: 100%;
  margin-bottom: 20px;
}

.preview-page {
  position: relative;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.preview-page::after {
  content: '👆 Click to Read';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 6px;
  z-index: 2;
}

.preview-page:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(184, 70, 46, 0.3);
  border-color: var(--autumn-gold);
}

.preview-page:hover::after {
  opacity: 1;
}

.preview-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.page-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.preview-footer {
  text-align: center;
  color: var(--text-dark);
  margin: 20px 0;
}

.preview-footer a {
  color: var(--autumn-rust);
  text-decoration: none;
  font-weight: bold;
}

.preview-footer a:hover {
  text-decoration: underline;
}

.btn-read {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  margin: 15px 0;
  background: linear-gradient(135deg, var(--autumn-rust), var(--autumn-orange));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(184, 70, 46, 0.3);
}

.btn-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 70, 46, 0.4);
}

/* Book Modal Styles */
.book-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.book-modal.active {
  display: flex;
}

.book-modal-content {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book-header {
  position: absolute;
  top: 20px;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: white;
  z-index: 100;
}

.book-page-counter {
  font-size: 18px;
  font-weight: bold;
  color: #ddd;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.book-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex: 1;
  width: 100%;
  perspective: 1200px;
}

.nav-arrow {
  background: rgba(184, 70, 46, 0.8);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.nav-arrow:hover:not(:disabled) {
  background: var(--autumn-rust);
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.book-flip-container {
  perspective: 1500px;
  width: 100%;
  max-width: 900px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-spread {
  width: 100%;
  height: 100%;
  display: flex;
  perspective: 1500px;
  position: relative;
}

.page {
  width: 50%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.left-page {
  border-radius: 12px 0 0 12px;
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.5), inset 2px 0 10px rgba(0, 0, 0, 0.1);
  transform-origin: right center;
}

.right-page {
  border-radius: 0 12px 12px 0;
  box-shadow: 8px 0 20px rgba(0, 0, 0, 0.5), inset -2px 0 10px rgba(0, 0, 0, 0.1);
  transform-origin: left center;
}

.book-spine {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 10;
  transform: translateX(-50%);
}

/* Page Flip Animations */
.left-page.flip-out {
  animation: flipPageOut 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.right-page.flip-in {
  animation: flipPageIn 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.left-page.flip-in {
  animation: flipPageInBack 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.right-page.flip-out {
  animation: flipPageOutBack 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes flipPageOut {
  0% {
    transform: rotateY(0deg);
    z-index: 2;
  }
  100% {
    transform: rotateY(-180deg);
    z-index: 1;
  }
}

@keyframes flipPageIn {
  0% {
    transform: rotateY(180deg);
    z-index: 1;
  }
  100% {
    transform: rotateY(0deg);
    z-index: 2;
  }
}

@keyframes flipPageInBack {
  0% {
    transform: rotateY(-180deg);
    z-index: 1;
  }
  100% {
    transform: rotateY(0deg);
    z-index: 2;
  }
}

@keyframes flipPageOutBack {
  0% {
    transform: rotateY(0deg);
    z-index: 2;
  }
  100% {
    transform: rotateY(180deg);
    z-index: 1;
  }
}

.book-footer {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
}

.end-message {
  color: #ffcc00;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffcc00;
  border-radius: 8px;
  display: inline-block;
}

.end-message a {
  color: #ffff00;
  text-decoration: underline;
  cursor: pointer;
}

.end-message.hidden {
  display: none;
}

/* Responsive - Already covered in comprehensive media query section below */


/* Mobile optimization - already covered in comprehensive section */

.image-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
}
.image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.image-frame {
  width: 420px;
  height: 560px;
  background: #fff7ef;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-frame img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.img-nav {
  background: var(--autumn-orange, #c85a2a);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.image-preview-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.page-indicator {
  font-weight: 600;
}
.purchase-cta {
  color: #7a4b2a;
}

.purchase-cta.highlight {
  background: rgba(200,90,40,0.08);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(200,90,40,0.08);
}

/* Fullscreen overlay styles */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 20000;
}
.fullscreen-overlay.hidden { display: none; }
.fs-content { display: flex; align-items: center; gap: 20px; }
.fs-image { max-width: 90vw; max-height: 85vh; box-shadow: 0 20px 40px rgba(0,0,0,0.6); border-radius: 6px; }
.fs-nav { background: rgba(255,255,255,0.06); color: #fff; border: none; width: 56px; height: 56px; border-radius: 999px; font-size: 22px; cursor: pointer; }
.fs-toolbar { position: absolute; top: 18px; right: 18px; }
.fs-btn { background: rgba(255,255,255,0.06); color: #fff; border: none; padding: 8px 12px; border-radius: 6px; font-size: 18px; cursor: pointer; }

/* Small fullscreen button inside image frame */
.img-fullscreen {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(0,0,0,0.06);
  border: none;
  color: #7a4b2a;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* Buy modal */
.buy-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 21000; }
.buy-modal.hidden { display: none; }
.buy-modal-content { background: #fff; padding: 20px 22px; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); max-width: 420px; text-align: center; }
.buy-modal-content h3 { margin-top: 0; }
.buy-close { position: absolute; top: 12px; right: 16px; background: transparent; border: none; font-size: 20px; cursor: pointer; }

/* Ensure image-frame has position for fullscreen button */
.image-frame { position: relative; }

/* Mobile responsive - already covered in comprehensive media query section */
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--autumn-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 239, 230, 0.2);
}

/* Responsive Design - covered in comprehensive media query section */

/* ===== COMPREHENSIVE MOBILE RESPONSIVE DESIGN ===== */

/* Extra Small Devices (320px - 374px) */
@media (max-width: 374px) {
  body {
    font-size: 13px;
  }
  
  #navbar {
    padding: 0.4rem 0.5rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .nav-content {
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .logo {
    font-size: 0.9rem;
    display: inline-block;
  }
  
  .logo::after {
    right: -15px;
    font-size: 14px;
  }
  
  .nav-links {
    gap: 0.4rem;
    font-size: 0.75rem;
  }
  
  .nav-links a {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .hero-section {
    padding: 1rem 0.6rem;
    padding-top: 4.5rem;
    min-height: auto;
  }
  
  .title-animate {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }
  
  .subtitle-animate {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
  }
  
  .author-text {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-cta {
    gap: 0.4rem;
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0px;
    min-height: 40px;
  }
  
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  
  .preview-subtitle {
    font-size: 0.8rem;
  }
  
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 0.5rem;
  }
  
  .preview-page {
    height: 240px;
  }
  
  .page-label {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .btn-read {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    margin: 10px 0;
  }
  
  .book-modal {
    padding: 10px;
  }
  
  .book-flip-container {
    height: 350px;
    max-width: 100%;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .book-wrapper {
    gap: 15px;
  }
  
  .book-header {
    top: 10px;
    padding: 0 10px;
  }
  
  .book-page-counter {
    font-size: 14px;
  }
  
  .close-modal-btn {
    padding: 6px 12px;
    font-size: 16px;
  }
}

/* Small Devices (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
  body {
    font-size: 13px;
  }
  
  #navbar {
    padding: 0.5rem 0.8rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .nav-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .logo::after {
    right: -18px;
  }
  
  .nav-links {
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  
  .nav-links a {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .hero-section {
    padding: 1.5rem 0.8rem;
    padding-top: 5.5rem;
  }
  
  .title-animate {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  
  .subtitle-animate {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }
  
  .author-text {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-cta {
    gap: 0.6rem;
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.65rem 1.2rem;
    font-size: 0.8rem;
    min-height: 42px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .preview-subtitle {
    font-size: 0.85rem;
  }
  
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 0.8rem;
  }
  
  .preview-page {
    height: 260px;
  }
  
  .btn-read {
    padding: 0.7rem 1.3rem;
    font-size: 0.85rem;
  }
  
  .book-modal {
    padding: 15px;
  }
  
  .book-flip-container {
    height: 380px;
  }
  
  .nav-arrow {
    width: 45px;
    height: 45px;
    font-size: 26px;
  }
  
  .book-wrapper {
    gap: 20px;
  }
  
  .book-page-counter {
    font-size: 16px;
  }
}

/* Medium Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  #navbar {
    padding: 0.8rem 1.2rem;
  }
  
  .nav-content {
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .nav-links a {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }
  
  .hero-section {
    padding: 2rem 1.2rem;
    padding-top: 6.5rem;
  }
  
  .title-animate {
    font-size: 2rem;
  }
  
  .subtitle-animate {
    font-size: 1rem;
  }
  
  .hero-cta {
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 0 1rem;
  }
  
  .preview-page {
    height: 280px;
  }
  
  .book-flip-container {
    height: 450px;
  }
  
  .nav-arrow {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  
  .book-wrapper {
    gap: 30px;
  }
}

/* Tablets & Large Devices (769px and above) */
@media (min-width: 769px) {
  #navbar {
    padding: 1rem 2rem;
  }
  
  .nav-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  .nav-links {
    gap: 2rem;
    font-size: 1rem;
  }
  
  .nav-links a {
    padding: 0.5rem 1rem;
  }
  
  .hero-section {
    padding: 3rem 2rem;
    padding-top: 7rem;
  }
  
  .preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .preview-page {
    height: 300px;
  }
  
  .book-flip-container {
    height: 600px;
  }
  
  .nav-arrow {
    width: 60px;
    height: 60px;
  }
}

/* Landscape Mode Optimization */
@media (max-height: 500px) {
  .hero-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  
  .title-animate {
    margin-bottom: 0.3rem;
  }
  
  .subtitle-animate {
    margin-bottom: 0.3rem;
  }
  
  .author-text {
    margin-bottom: 0.5rem;
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  button, a {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn-primary, .btn-secondary, .btn-read {
    min-height: 48px;
    padding: 12px 24px;
  }
  
  .nav-arrow {
    min-height: 48px;
    min-width: 48px;
  }
  
  .preview-page {
    min-height: 240px;
  }
  
  .preview-page::after {
    font-size: 16px;
  }
}

/* Ensure proper spacing on all mobile screens */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  
  .about-book-display {
    margin-top: 1.5rem;
  }
  
  .chapter-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .toc-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .purchase-card {
    margin: 1rem auto;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .suggested-amounts {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .amount-btn {
    flex: 1;
    min-width: 80px;
  }
  
  /* Footer adjustments */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-section {
    text-align: center;
  }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  section {
    overflow-x: hidden;
  }
}

