.drop-text {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.drop-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-120px);
  animation: dropLetter 0.8s ease forwards;
}

.drop-text span:nth-child(1) {
  animation-delay: 0.05s;
}
.drop-text span:nth-child(2) {
  animation-delay: 0.1s;
}
.drop-text span:nth-child(3) {
  animation-delay: 0.15s;
}
.drop-text span:nth-child(4) {
  animation-delay: 0.2s;
}
.drop-text span:nth-child(5) {
  animation-delay: 0.25s;
}
.drop-text span:nth-child(6) {
  animation-delay: 0.3s;
}
.drop-text span:nth-child(7) {
  animation-delay: 0.35s;
}
.drop-text span:nth-child(8) {
  animation-delay: 0.4s;
}
.drop-text span:nth-child(9) {
  animation-delay: 0.45s;
}
.drop-text span:nth-child(10) {
  animation-delay: 0.5s;
}
.drop-text span:nth-child(11) {
  animation-delay: 0.55s;
}
.drop-text span:nth-child(12) {
  animation-delay: 0.6s;
}
.drop-text span:nth-child(13) {
  animation-delay: 0.65s;
}
.drop-text span:nth-child(14) {
  animation-delay: 0.7s;
}
.drop-text span:nth-child(15) {
  animation-delay: 0.75s;
}
.drop-text span:nth-child(16) {
  animation-delay: 0.8s;
}

@keyframes dropLetter {
  0% {
    opacity: 0;
    transform: translateY(-120px) rotate(-8deg);
  }
  70% {
    opacity: 1;
    transform: translateY(12px) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* Books Title Animation */
.hero-title.drop-text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-title.drop-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-120px);
  animation: dropLetter 0.8s ease forwards;
}

/* Animation Delay */
.hero-title.drop-text span:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-title.drop-text span:nth-child(2) {
  animation-delay: 0.15s;
}
.hero-title.drop-text span:nth-child(3) {
  animation-delay: 0.25s;
}
.hero-title.drop-text span:nth-child(4) {
  animation-delay: 0.35s;
}
.hero-title.drop-text span:nth-child(5) {
  animation-delay: 0.45s;
}

@keyframes dropLetter {
  0% {
    opacity: 0;
    transform: translateY(-120px) rotate(-8deg);
  }
  70% {
    opacity: 1;
    transform: translateY(12px) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.hero-description {
  text-align: start;
  margin: 0;
}

.hero-description.typing {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.hero-description.typing span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;

  width: 0;
  opacity: 0;

  animation-fill-mode: forwards;
}

/* =========================
   Books Hero - First Line
========================= */
.typing-1 span {
  animation:
    showText 0s linear forwards,
    typing1 1.4s steps(42, end) forwards;
}

/* =========================
   Books Hero - Second Line
========================= */
.typing-2 {
  margin-top: 8px;
}

.typing-2 span {
  animation:
    showText 0s linear 1.5s forwards,
    typing2 1.4s steps(46, end) 1.5s forwards;
}

/* =========================
   About Hero
========================= */
.typing-about span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;

  width: 0;
  opacity: 0;

  animation:
    showText 0s linear 1s forwards,
    typingAbout 1.3s steps(33, end) 1s forwards;
}

/* =========================
   Keyframes
========================= */
@keyframes showText {
  to {
    opacity: 1;
  }
}

@keyframes typing1 {
  from {
    width: 0;
  }
  to {
    width: 42ch;
  }
}

@keyframes typing2 {
  from {
    width: 0;
  }
  to {
    width: 46ch;
  }
}

@keyframes typingAbout {
  from {
    width: 0;
  }
  to {
    width: 33ch;
  }
}
.books-hero {
  position: relative;
  min-height: 567px; /* Same height as About */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px;
}

.navbar,
.navbar-brand {
  font-family: "UnifrakturCook", cursive;
  font-size: 20px;
}

.navbar,
.navbar-nav .nav-link,
.navbar-brand {
  font-family: "Cinzel", serif;
  font-weight: 400;
  letter-spacing: 1px;
}

.about-section h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 3vw, 2rem);
  font-weight: 700;
  color: #000000; /* Change if your background is light */
  line-height: 1.1;
  margin-bottom: 20px;
}

/* Book Description */
.book-card p:last-of-type {
  text-align: justify;
  text-indent: 2.5rem; /* First line indentation */
  line-height: 1.9;
  margin-top: 1.5rem;
  color: #000000; /* Optional: adjust to match your theme */
}

/* Author Description */
.about-section .col-lg-7 p:not(.lead) {
  font-size: 1.2rem; /* Increased from the default */
  line-height: 2;
  text-align: justify;
  text-indent: 2em;
  color: #444;
  margin-bottom: 1.5rem;
}

/* Author Description */
.about-section .col-lg-7 p:not(.lead) {
  text-align: justify;
  text-indent: 2.5rem; /* Indent the first line */
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* Book Description */
.book-card .col-lg-7 p {
  font-family: Georgia, serif;
  text-align: justify;
  font-size: 1.5rem;
  line-height: 2;
  color: #000000;
  margin-bottom: 28px;
  text-indent: 2em;
}

.books-cta h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.books-cta p {
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

/* ==========================
   Scroll Reveal Animation
========================== */

.book-card {
  opacity: 0;
  transition: all 0.8s ease;
}

/* Hidden from Left */
.book-card.left {
  transform: translateX(-100px);
}

/* Hidden from Right */
.book-card.right {
  transform: translateX(100px);
}

/* Visible */
.book-card.show {
  opacity: 1;
  transform: translateX(0);
}

.books-cta p {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    max-width: 850px;
    margin: 0 auto 2rem;
    text-align: center;
}

.cta-section h2 {
    font-family: "Cinzel", serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.cta-section p {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    max-width: 850px;
    margin: 0 auto 2rem;
    text-align: center;
}




.book-card h2 {
    font-family: "Cinzel", serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 1rem;
}







.hero-description {
    text-align: center;
}

.hero-description {
    width: 100%;
    text-align: center;
}