/* Base Styles */
:root {
  --primary-color: #3a2f5b;
  --secondary-color: #c9a959;
  --accent-color: #e85a4f;
  --dark-color: #1e1a2b;
  --light-color: #f8f5f2;
  --text-color: #333;
  --text-light: #777;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.divider {
  height: 3px;
  width: 80px;
  background: var(--secondary-color);
  margin: 0 auto;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 15px;
  background: var(--secondary-color);
  top: 0;
}

.divider::before {
  left: -25px;
}

.divider::after {
  right: -25px;
}

/* Navigation */
header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 245, 242, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(248, 245, 242, 0.98);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f5f2 0%, #e8e4e0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233a2f5b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  padding: 0 2rem;
}

.tagline {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.author-name {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  display: inline-block;
  transition: var(--transition);
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
}

.primary-button:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.secondary-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Book Cover */
.book-cover {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1500px;
  max-width: 500px;
  z-index: 1;
}

.book {
  width: 300px;
  height: 450px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-30deg);
  transition: transform 0.15s ease; /* Change from 1s to 0.3s for faster transition */
}

.book:hover {
  transform: rotateY(-15deg);
}

.book-front,
.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: white;
  text-align: center;
}

.book-front {
  transform: translateZ(15px);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  border: 5px solid var(--dark-color);
}

.book-spine {
  width: 30px;
  transform: rotateY(90deg) translateZ(-15px);
  background: var(--dark-color);
}

.book-front h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.book-front p {
  color: var(--secondary-color);
  font-style: italic;
}

.book-design {
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23c9a959' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23c9a959'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
  border-radius: 50%;
  margin: 2rem 0;
  opacity: 0.8;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.book-shadow {
  position: absolute;
  bottom: -30px;
  width: 80%;
  height: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  filter: blur(15px);
  transform: rotateX(90deg) translateZ(-10px);
}

/* About Section */
.about {
  background-color: white;
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.first-letter {
  position: relative;
}

.first-letter::first-letter {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.book-details {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.detail {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.label {
  font-weight: 500;
  color: var(--text-light);
}

.value {
  font-weight: 600;
  color: var(--primary-color);
}

/* Author Section */
.author {
  background-color: var(--light-color);
  position: relative;
}

.author-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.author-image {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.author-portrait {
  width: 100%;
  aspect-ratio: 1;
  background-color: #ddd;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 90 90'%3E%3Ccircle fill='%23c9a959' cx='45' cy='45' r='45'/%3E%3Cpath fill='%233a2f5b' d='M29.5 15.5c-1.1-2.4-4.1-3.6-6.5-2.5-2.4 1.1-3.6 4.1-2.5 6.5 1.1 2.4 4.1 3.6 6.5 2.5 2.5-1.1 3.6-4.1 2.5-6.5zM68.9 37l-2.5-4.3c-.8-1.3-2.2-2.2-3.7-2.3-.7 0-1.4.1-2 .4l-9.4 5.3L40.7 25.3c-1-1.2-2.5-1.9-4.1-1.9-1.4 0-2.8.5-3.8 1.5l-6.8 6.1c-.7.7-1.3 1.5-1.6 2.4L19 49.8c-1 3.1.7 6.4 3.8 7.4 3.1 1 6.4-.7 7.4-3.8l4.8-15.1 4.2-3.8 8.4 10c.8 1 2.1 1.6 3.4 1.7.7 0 1.4-.1 2-.4l11.2-6.3c1.3-.7 2.2-2.1 2.3-3.6.1-1.5-.5-2.9-1.6-3.9z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.author-bio h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.author-bio h3::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.social-icon.twitter {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.social-icon.instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.5' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.social-icon.goodreads {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'%3E%3C/path%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Reviews Section */
.reviews {
  background-color: white;
  position: relative;
}

.reviews-slider {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* Add this to hide slides that overflow */
  
}

.reviews-container {
  display: flex;
  width: 400%; /* This makes space for all 4 slides (100% * 4) */
  transition: transform 0.5s ease; /* Add smooth transition */
}

.review {
  min-width: 25%; /* Each review takes 25% of the 400% container */
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.stars {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 1.2rem;
  font-style: italic;
  position: relative;
  padding: 0 2rem;
}

.review-text::before,
.review-text::after {
  content: '"';
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  color: rgba(58, 47, 91, 0.1);
  position: absolute;
  line-height: 0;
}

.review-text::before {
  top: 15px;
  left: 0;
}

.review-text::after {
  bottom: 0;
  right: 0;
}

.reviewer {
  font-weight: 500;
  color: var(--text-light);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.prev-button,
.next-button {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.prev-button:hover,
.next-button:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  margin: 0 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Preview Section */
.preview {
  background-color: var(--light-color);
  position: relative;
}

.preview-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

.preview-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233a2f5b' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 5v1H5V0zm1 5v1H5v-1h1z'/%3E%3C/g%3E%3C/svg%3E");
  border-radius: 10px;
  z-index: -1;
  opacity: 0.5;
}

.chapter-preview h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

.preview-text p {
  text-align: justify;
  margin-bottom: 1.5rem;
}

.continue-reading {
  text-align: center;
  font-style: italic;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.continue-reading:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Purchase Section */
.purchase {
  background-color: white;
  position: relative;
}

.purchase-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.purchase-card {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.purchase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary-color);
}

.purchase-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.purchase-card h3 {
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.features {
  list-style: none;
  margin-bottom: 2rem;
}

.features li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.buy-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
}

.buy-button:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.retailers {
  text-align: center;
  margin-top: 4rem;
}

.retailers p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.retailer-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.retailer {
  width: 120px;
  height: 40px;
  background-color: #f1f1f1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: var(--transition);
}

.retailer:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.retailer.amazon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath fill='%23333' d='M76.3 23.4c-6.2 4.6-15.2 7-23 7-10.9 0-20.7-4-28.1-10.7-.6-.5-.1-1.2.6-.8 8.2 4.8 18.4 7.7 29 7.7 7.1 0 14.9-1.5 22.1-4.5 1.1-.5 2 .7.9 2.3z'/%3E%3Cpath fill='%23333' d='M79.7 19.5c-.8-1-5.3-.5-7.3-.2-.6.1-.7-.5-.2-.8 3.6-2.5 9.4-1.8 10.1-.9.7.9-.2 6.9-3.6 9.8-.5.4-1 .2-.8-.4.8-1.9 2.5-6.2 1.8-7.5z'/%3E%3Cpath fill='%23333' d='M71.9 6.9v-2c0-.3.2-.5.5-.5h9.2c.3 0 .5.2.5.5v1.7c0 .3-.3.7-.7.1 0 0 0-.1-.1-.1l-4.8 6.8c1.8-.1 3.6.2 5.2 1.1.4.2.4.5.5.8v2.1c0 .3-.3.7-.7.5-2.8-1.5-6.5-1.7-9.6.1-.3.2-.7-.2-.7-.5v-2c0-.3 0-.9.4-1.4l5.5-7.9h-4.8c-.3 0-.5-.2-.5-.5zM26.3 22h-2.8c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h2.6c.3 0 .5.2.5.5v1.9h.1c.7-1.8 2-2.7 3.7-2.7 1.8 0 2.9.8 3.7 2.7.7-1.8 2.3-2.7 4-2.7 1.2 0 2.5.5 3.3 1.6.9 1.2.7 3 .7 4.6v9.3c0 .3-.2.5-.5.5h-2.8c-.3 0-.5-.2-.5-.5v-7.8c0-.6.1-2.2-.1-2.8-.3-1-.9-1.3-1.8-1.3-.7 0-1.5.5-1.8 1.3s-.2 2.1-.2 2.8v7.8c0 .3-.2.5-.5.5h-2.8c-.3 0-.5-.2-.5-.5v-7.8c0-1.6.3-4-1.8-4-2.1 0-2 2.3-2 4v7.8c-.1.3-.3.5-.6.5zM47.9 6.4c4.1 0 6.4 3.6 6.4 8.1 0 4.4-2.5 7.9-6.4 7.9-4.1 0-6.3-3.6-6.3-8 0-4.5 2.3-8 6.3-8zm0 3c-2.1 0-2.2 2.8-2.2 4.6s0 5.5 2.2 5.5c2.2 0 2.3-3.1 2.3-4.9 0-1.2-.1-2.7-.4-3.8-.3-1-.9-1.4-1.9-1.4zM55.9 22h-2.8c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h2.6c.2 0 .4.2.5.4v2h.1c.8-2 1.9-2.9 3.8-2.9 1.3 0 2.5.5 3.3 1.8.7 1.2.7 3.2.7 4.6v9.3c0 .3-.2.5-.5.5h-2.8c-.3 0-.5-.2-.5-.5v-8c0-1.6.2-4-1.8-4-.7 0-1.4.5-1.7 1.2-.4.9-.5 1.9-.5 2.8v8c0 .3-.2.5-.5.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.retailer.barnes {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath fill='%23333' d='M10 10h100v20H10z'/%3E%3Cpath fill='white' d='M20 15h-5v10h2v-4h3c2.2 0 4-1.3 4-3s-1.8-3-4-3zm0 4h-3v-2h3c.6 0 1 .4 1 1s-.4 1-1 1zM32 15l-4 10h2l.8-2h4.4l.8 2h2l-4-10h-2zm-.2 6l1.2-3 1.2 3h-2.4zM45 15h-5v10h5c3.3 0 5-2.5 5-5s-1.7-5-5-5zm0 8h-3v-6h3c1.7 0 3 1.3 3 3s-1.3 3-3 3zM60 15h-8v10h2v-4h5v-2h-5v-2h6v-2zM70 15h-5v10h2v-4h3c2.2 0 4-1.3 4-3s-1.8-3-4-3zm0 4h-3v-2h3c.6 0 1 .4 1 1s-.4 1-1 1zM80 15h-2v10h2v-10zM90 15h-5v10h2v-8h3v-2zM100 15h-5v10h5c3.3 0 5-2.5 5-5s-1.7-5-5-5zm0 8h-3v-6h3c1.7 0 3 1.3 3 3s-1.3 3-3 3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.retailer.indie {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath fill='%23333' d='M15 15h2v10h-2zM25 15h-5v10h2v-3h3c1.7 0 3-1.3 3-3v-1c0-1.7-1.3-3-3-3zm0 5h-3v-3h3c.6 0 1 .4 1 1v1c0 .6-.4 1-1 1zM35 15h-5v10h5c1.7 0 3-1.3 3-3v-4c0-1.7-1.3-3-3-3zm0 8h-3v-6h3c.6 0 1 .4 1 1v4c0 .6-.4 1-1 1zM45 15h-2v10h2zM55 15h-5v10h2v-3h3c1.7 0 3-1.3 3-3v-1c0-1.7-1.3-3-3-3zm0 5h-3v-3h3c.6 0 1 .4 1 1v1c0 .6-.4 1-1 1zM65 15h-5v10h5c1.7 0 3-1.3 3-3v-4c0-1.7-1.3-3-3-3zm0 8h-3v-6h3c.6 0 1 .4 1 1v4c0 .6-.4 1-1 1zM80 15h-10v2h4v8h2v-8h4zM90 15h-5v10h5c1.7 0 3-1.3 3-3v-4c0-1.7-1.3-3-3-3zm0 8h-3v-6h3c.6 0 1 .4 1 1v4c0 .6-.4 1-1 1zM100 15h2v10h-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.retailer.apple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath fill='%23333' d='M67.5 15.3c-3.4 0-5.5 2.6-5.5 6.8 0 4.1 2.1 6.8 5.5 6.8 3.4 0 5.5-2.6 5.5-6.8 0-4.2-2.1-6.8-5.5-6.8zm0 11.2c-2.1 0-3.1-1.9-3.1-4.5 0-2.5 1-4.5 3.1-4.5s3.1 1.9 3.1 4.5c0 2.6-1 4.5-3.1 4.5zM80.6 15.6h-2.3v9.2c0 1.6-.9 2.4-2.3 2.4-1.4 0-2.3-.8-2.3-2.4v-9.2h-2.3v9.2c0 2.9 1.7 4.5 4.6 4.5 2.9 0 4.6-1.6 4.6-4.5v-9.2zM89.5 15.3c-3.4 0-5.5 2.6-5.5 6.8 0 4.1 2.1 6.8 5.5 6.8 3.4 0 5.5-2.6 5.5-6.8 0-4.2-2.1-6.8-5.5-6.8zm0 11.2c-2.1 0-3.1-1.9-3.1-4.5 0-2.5 1-4.5 3.1-4.5s3.1 1.9 3.1 4.5c0 2.6-1 4.5-3.1 4.5zM102.6 15.6h-2.3v9.2c0 1.6-.9 2.4-2.3 2.4-1.4 0-2.3-.8-2.3-2.4v-9.2h-2.3v9.2c0 2.9 1.7 4.5 4.6 4.5 2.9 0 4.6-1.6 4.6-4.5v-9.2zM35.2 22.9c-.3-2.9-2.7-3.8-4.2-4-1.8-.2-3.4.5-4.2 1.3-.8-.8-2.4-1.5-4.2-1.3-1.5.2-3.9 1.1-4.2 4-.3 3.2 2.4 6.2 4.6 7.8.4.3.9.3 1.3 0 .7-.5 1.5-1.2 2.5-2.3 1 1.1 1.8 1.8 2.5 2.3.4.3.9.3 1.3 0 2.2-1.6 4.9-4.6 4.6-7.8zm-8.4 2.5c-1.5-2-2.5-3.9-2.3-5.2.1-.7.5-1.2 1.1-1.3.7-.1 1.5.4 2.2 1.7.5.9.9 2 1.3 3.1-.8.6-1.6 1.2-2.3 1.7zm4.6 1.2c-.7-.5-1.5-1.1-2.3-1.7.4-1.1.8-2.2 1.3-3.1.7-1.3 1.5-1.8 2.2-1.7.6.1 1 .6 1.1 1.3.2 1.3-.8 3.2-2.3 5.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4  fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group {
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
}

.newsletter-form input:focus {
  outline: none;
  background-color: white;
}

.submit-button {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  padding: 1rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-button:hover {
  background-color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.form-message {
  min-height: 24px;
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social .social-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-social .social-icon:hover {
  background-color: var(--secondary-color);
}

.footer-social .social-icon.facebook {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.copyright {
  text-align: center;
  padding: 2rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    gap: 3rem;
    padding-top: 6rem;
  }

  .hero-content {
    text-align: center;
    padding: 0;
  }

  .cta-buttons {
    justify-content: center;
  }

  .about-content,
  .author-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-details {
    max-width: 500px;
    margin: 0 auto;
  }

  .author-image {
    order: -1;
  }

  .purchase-options {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .preview-content {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 1rem;
  }

  .book {
    width: 250px;
    height: 375px;
  }

  .review-text {
    padding: 0 1rem;
  }

  .review-text::before,
  .review-text::after {
    font-size: 3rem;
  }

  .retailer-logos {
    gap: 1rem;
  }

  .retailer {
    width: 100px;
    height: 35px;
  }
}
