/* -------------------------
   Root + Global Styles
-------------------------- */
:root {
  --green: #4a8f64;
  --green-dark: #2f5b41;
  --orange: #f4a261;
  --orange-soft: #ffd6b5;
  --blue: #7bc8f3;
  --blue-soft: #d7f1ff;
  --red: #e26a5c;
  --red-soft: #f7c1b9;
  --cream: #fff7ef;
  --ink: #20323f;
  --muted: #5a6b78;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(32, 50, 63, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--cream), var(--blue-soft));
  min-height: 100vh;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

/* -------------------------
   Background Accents
-------------------------- */
.bg-accent {
  position: fixed;
  z-index: -1;
  filter: blur(0.5px);
  opacity: 0.7;
}

.bg-accent--one {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--orange-soft), transparent 70%);
  top: -80px;
  left: -80px;
}

.bg-accent--two {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(123, 200, 243, 0.7), transparent 70%);
  bottom: -140px;
  right: -140px;
}

/* -------------------------
   Header / Navbar
-------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(32, 50, 63, 0.06);
  box-shadow: 0 10px 24px rgba(32, 50, 63, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 18px;
}

.brand {
  font-family: "Baloo 2", cursive;
  font-size: 1.6rem;
  color: var(--green-dark);
}

.nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  color: var(--muted);
}

.theme-toggle {
  border: none;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
  box-shadow: 0 8px 16px rgba(32, 50, 63, 0.2);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--red);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--red);
}

.nav-link:hover::after {
  width: 100%;
}

/* -------------------------
   Dark Mode
-------------------------- */
.dark-mode {
  background: #050505;
  color: #f4f4f4;
}

.dark-mode .bg-accent {
  opacity: 0.15;
}

.dark-mode .site-header {
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.dark-mode .brand {
  color: #f4f4f4;
}

.dark-mode .nav {
  color: rgba(244, 244, 244, 0.75);
}

.dark-mode .nav-link::after {
  background: #ffffff;
}

.dark-mode .theme-toggle {
  background: #0f0f0f;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
}

.dark-mode .theme-toggle:hover {
  background: #f4a261;
  color: #0b0b0b;
}

.dark-mode .hero::before,
.dark-mode .page-banner::before {
  background: rgba(5, 5, 5, 0.75);
}

.dark-mode .page-banner h1 {
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.dark-mode .hero-title,
.dark-mode .hero-subtitle {
  color: #ffffff;
}

.dark-mode .hero-title,
.dark-mode .section-title,
.dark-mode .author-title,
.dark-mode .author-name,
.dark-mode .book-info h3,
.dark-mode .book-feature-content h2,
.dark-mode .contact-intro h2,
.dark-mode .faq-card h2,
.dark-mode .terms-page h2,
.dark-mode .terms-page h3,
.dark-mode .privacy-page h2,
.dark-mode .privacy-page h3,
.dark-mode .privacy-page h4 {
  color: #ffffff;
}

.dark-mode .hero-teaser,
.dark-mode .author-content p,
.dark-mode .book-feature-content p,
.dark-mode .contact-intro p,
.dark-mode .faq-card p,
.dark-mode .terms-page p,
.dark-mode .terms-page li,
.dark-mode .privacy-page p,
.dark-mode .privacy-page li,
.dark-mode .footer-col a,
.dark-mode .footer-col p {
  color: rgba(244, 244, 244, 0.75);
}

.dark-mode .author,
.dark-mode .about-page,
.dark-mode .book-feature,
.dark-mode .contact-page,
.dark-mode .faq-page,
.dark-mode .terms-page,
.dark-mode .privacy-page,
.dark-mode .books,
.dark-mode .feedbacks,
.dark-mode .trailer {
  background: #070707;
}

.dark-mode .books::before {
  background: radial-gradient(circle, rgba(244, 162, 97, 0.18), transparent 70%);
}

.dark-mode .book-card,
.dark-mode .faq-card,
.dark-mode .contact-page-inner,
.dark-mode .faq-page-inner,
.dark-mode .terms-page-inner,
.dark-mode .privacy-page-inner,
.dark-mode .about-page-inner {
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.dark-mode .faq-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .book-feature-inner {
  background: rgba(15, 15, 15, 0.95);
  border-radius: var(--radius-lg);
  padding: 40px 46px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.dark-mode .book-feature + .book-feature {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .contact-form input,
.dark-mode .contact-form select,
.dark-mode .contact-form textarea {
  background: rgba(8, 8, 8, 0.9);
  color: #f4f4f4;
  border-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .contact-form input:focus,
.dark-mode .contact-form select:focus,
.dark-mode .contact-form textarea:focus {
  border-color: rgba(244, 162, 97, 0.8);
  box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.2);
}

.dark-mode .btn-primary {
  background: #f4a261;
  color: #0b0b0b;
}

.dark-mode .btn-outline {
  border-color: #f4a261;
  color: #f4a261;
}

.dark-mode .btn-ghost {
  color: rgba(244, 244, 244, 0.75);
}

.dark-mode .btn-primary:hover {
  background: #ffd6b5;
  color: #0b0b0b;
}

.dark-mode .btn-outline:hover {
  background: #f4a261;
  color: #0b0b0b;
}

.dark-mode .book-image {
  background: rgba(255, 255, 255, 0.06);
}

.dark-mode .contact-kicker {
  color: #ffd6b5;
}

.dark-mode .faq-page,
.dark-mode .terms-page,
.dark-mode .privacy-page,
.dark-mode .contact-page {
  background: #070707;
}

.dark-mode .site-footer {
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flash-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.dark-mode .flash-layer {
  opacity: 1;
  background: radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.85), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 60% 78%, rgba(255, 255, 255, 0.6), transparent 38%),
    radial-gradient(circle at 22% 88%, rgba(244, 162, 97, 0.35), transparent 40%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 55%);
  mix-blend-mode: screen;
  animation: flash-burst 2.6s infinite ease-in-out;
}

@keyframes flash-burst {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }
  20% {
    opacity: 0.85;
    transform: scale(1.05);
  }
  45% {
    opacity: 0.12;
    transform: scale(1);
  }
  70% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash-layer,
  .dark-mode .flash-layer {
    animation: none;
    opacity: 0.15;
  }
}

/* -------------------------
   Hero Section
-------------------------- */
.hero {
  position: relative;
  background: url("images/herobgimg.png") center / cover no-repeat;
  padding: 40px 0;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 245, 0.75);
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 3;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--orange-soft);
  color: var(--green-dark);
  font-weight: 700;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.hero-title {
  font-family: "Baloo 2", cursive;
  font-size: clamp(2.6rem, 4vw, 3.7rem);
  margin: 18px 0 6px;
  color: var(--green-dark);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--orange);
  margin: 0 0 18px;
}

.hero-teaser {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border 0.3s var(--ease);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(74, 143, 100, 0.25);
}

.btn-outline {
  border: 2px solid var(--green);
  color: var(--green-dark);
  background: transparent;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  background: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-ghost:hover {
  color: var(--red);
  border-color: rgba(226, 106, 92, 0.35);
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-book {
  position: relative;
  z-index: 3;
  width: min(380px, 90%);
  max-height: 70vh;
  margin-top: -70px;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.35s var(--ease);
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.hero-book-img {
  width: 100%;
  height: auto;
  grid-area: 1 / 1;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  opacity: 0;
  transform: rotateY(-180deg);
  transition: opacity 0.2s var(--ease);
}

.hero-book-img--zoo,
.hero-book-img--abc,
.hero-book-img--zoo-classic {
  animation: none;
}

.hero-book-img--abc {
  scale: 1.06;
}

.hero-book-img.is-active {
  opacity: 1;
  animation: spin-in 1s ease-out forwards;
}

.hero-book-img.is-exiting {
  opacity: 1;
  animation: spin-out 1s ease-out forwards;
}

.hero-book:hover {
  transform: translateY(-8px) scale(1.02);
}

/* -------------------------
   Author Section
-------------------------- */
.author {
  padding: 90px 0 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent);
}

.author-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.author-media {
}

.author-image {
  width: min(340px, 90%);
  border-radius: 50% 50% 45% 45%;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.author-image:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 50px rgba(32, 50, 63, 0.18);
}

.author-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}

.author-title {
  font-family: "Baloo 2", cursive;
  font-size: 2.4rem;
  margin: 10px 0 4px;
  color: var(--green-dark);
}

.author-name {
  font-family: "Baloo 2", cursive;
  font-size: 1.8rem;
  margin: 0 0 18px;
  color: var(--orange);
}

.author-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

/* -------------------------
   Page Banner
-------------------------- */
.page-banner {
  position: relative;
  background: url("images/herobgimg.png") center / cover no-repeat;
  padding: 50px 0 60px;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 245, 0.7);
  z-index: 0;
}

.page-banner-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}

.page-banner h1 {
  display: inline-block;
  margin: 0;
  padding: 12px 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green-dark);
  border-radius: 999px;
}

/* -------------------------
   Contact Page
-------------------------- */
.contact-page {
  padding: 90px 0 120px;
  background: linear-gradient(180deg, #fffaf4, #ffffff);
}

.contact-page-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
  padding: 40px 46px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-kicker {
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.contact-intro h2 {
  font-family: "Baloo 2", cursive;
  font-size: 2.1rem;
  margin: 0;
  color: var(--green-dark);
}

.contact-intro p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: var(--green-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 2px solid rgba(32, 50, 63, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: #fffdf9;
  transition: border 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(226, 106, 92, 0.6);
  box-shadow: 0 0 0 4px rgba(226, 106, 92, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* -------------------------
   FAQ Page
-------------------------- */
.faq-page {
  padding: 90px 0 120px;
  background: linear-gradient(180deg, #fffaf4, #ffffff);
}

.faq-page-inner {
  display: grid;
  gap: 22px;
  padding: 40px 46px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.faq-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(32, 50, 63, 0.08);
  background: #fffdf9;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(32, 50, 63, 0.12);
}

.faq-card h2 {
  font-family: "Baloo 2", cursive;
  font-size: 1.4rem;
  margin: 0 0 10px;
  color: var(--green-dark);
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* -------------------------
   Terms Page
-------------------------- */
.terms-page {
  padding: 90px 0 120px;
  background: linear-gradient(180deg, #fffaf4, #ffffff);
}

.terms-page-inner {
  display: grid;
  gap: 16px;
  padding: 40px 46px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.terms-page h2,
.terms-page h3 {
  font-family: "Baloo 2", cursive;
  color: var(--green-dark);
  margin: 6px 0 0;
}

.terms-page h2 {
  font-size: 2rem;
}

.terms-page h3 {
  font-size: 1.4rem;
}

.terms-page p,
.terms-page li {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.terms-page ul {
  margin: 0;
  padding-left: 20px;
}

/* -------------------------
   Privacy Page
-------------------------- */
.privacy-page {
  padding: 90px 0 120px;
  background: linear-gradient(180deg, #fffaf4, #ffffff);
}

.privacy-page-inner {
  display: grid;
  gap: 16px;
  padding: 40px 46px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.privacy-page h2,
.privacy-page h3,
.privacy-page h4 {
  font-family: "Baloo 2", cursive;
  color: var(--green-dark);
  margin: 6px 0 0;
}

.privacy-page h2 {
  font-size: 2rem;
}

.privacy-page h3 {
  font-size: 1.4rem;
}

.privacy-page h4 {
  font-size: 1.2rem;
}

.privacy-page p,
.privacy-page li {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.privacy-page ul {
  margin: 0;
  padding-left: 20px;
}

/* -------------------------
   Book Features
-------------------------- */
.book-feature {
  padding: 80px 0;
  background: var(--white);
}

.book-feature + .book-feature {
  border-top: 1px solid rgba(32, 50, 63, 0.08);
}

.book-feature-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.book-feature--reverse .book-feature-inner {
  grid-template-columns: 0.9fr 1.1fr;
}

.book-feature--reverse .book-feature-content {
  order: 2;
}

.book-feature--reverse .book-feature-media {
  order: 1;
}

.book-feature-content h2 {
  font-family: "Baloo 2", cursive;
  font-size: 2.2rem;
  margin: 0 0 14px;
  color: var(--green-dark);
}

.book-feature-content p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.book-feature-media {
  display: flex;
  justify-content: center;
}

.book-feature-media img {
  width: min(380px, 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* -------------------------
   About Page
-------------------------- */
.about-page {
  padding: 90px 0 120px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 247, 239, 0.9)
  );
}

.about-page-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
  padding: 40px 46px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.about-page-media {
  display: flex;
  justify-content: center;
}

.about-page-kicker {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 6px;
}

.about-page-title {
  font-family: "Baloo 2", cursive;
  font-size: 2.4rem;
  margin: 0 0 16px;
  color: var(--green-dark);
}

.about-page-content p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.about-page-content p:last-child {
  margin-bottom: 0;
}

/* -------------------------
   Watch The Trailer Section
-------------------------- */
.trailer {
  padding: 60px 0 70px;
  background: url("images/kidsvsanimals.png") center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.trailer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 60, 40, 0.35);
  z-index: 0;
}

.trailer-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.trailer-inner h2 {
  font-family: "Baloo 2", cursive;
  font-size: 2.9rem;
  color: var(--green-dark);
  margin-bottom: 22px;
  display: inline-block;
  padding: 10px 22px;
  background: rgba(255, 247, 239, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 45, 30, 0.2);
}

.trailer-title-green {
  color: var(--green);
}

.trailer-title-orange {
  color: var(--orange);
}

.trailer-box {
  width: min(720px, 100%);
  margin: 0 auto;
  aspect-ratio: 5 / 2;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.play-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s var(--ease);
}

.play-icon::before {
  content: "";
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--red);
  margin-left: 6px;
}

.trailer-box:hover .play-icon {
  transform: scale(1.05);
}

.trailer-coach {
  position: absolute;
  left: 3%;
  bottom: 2%;
  width: 190px;
  height: auto;
  animation: blink 1.4s ease-in-out infinite;
  pointer-events: none;
}

/* -------------------------
   My Books Section
-------------------------- */
.books {
  padding: 50px 0 60px;
  position: relative;
}

.books::before {
  content: "";
  position: absolute;
  inset: 15% 10%;
  background: radial-gradient(circle, rgba(123, 200, 243, 0.35), transparent 70%);
  z-index: -1;
}

.books-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.section-title {
  font-family: "Baloo 2", cursive;
  font-size: 2.5rem;
  color: var(--green-dark);
  margin: 0;
}

.feedback-title-red {
  color: var(--red);
}

.books-title-red {
  color: var(--red);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.book-link {
  display: block;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 55px rgba(32, 50, 63, 0.18);
}

.book-image {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: center;
}

.book-image img {
  max-height: 220px;
  width: auto;
}

.book-info {
  margin-top: 12px;
}

.book-info h3 {
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: var(--green-dark);
}

.book-price {
  margin: 0;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 1.35rem;
  line-height: 1;
}

.book-price-cents {
  font-size: 0.7em;
  line-height: 1;
  transform: translateY(-4px);
}

.book-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 50, 63, 0.6);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.book-card:hover .book-cta {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------
   Feedbacks Section
-------------------------- */
.feedbacks {
  padding: 110px 0 120px;
  background: var(--white);
}

.feedbacks-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  transition: transform 0.6s var(--ease);
}

.feedback-grid.is-sliding {
  transform: translateX(40px);
}

.feedback-card {
  transition: transform 0.6s var(--ease);
}

.feedback-card {
  background: center / cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
  text-align: left;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.feedback-content {
  position: relative;
}

.feedback-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.feedback-card h3 {
  margin: 0 0 4px;
  font-family: "Baloo 2", cursive;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.feedback-card span {
  font-weight: 700;
  color: var(--orange);
  font-size: 0.85rem;
}

.feedback-one {
  background-image: url("images/feedbackimg1.png");
}

.feedback-two {
  background-image: url("images/feedbackimg2.png");
}

.feedback-three {
  background-image: url("images/feedbackimg3.png");
}

/* -------------------------
   Footer
-------------------------- */
.site-footer {
  background: var(--orange);
  border-top: 1px solid rgba(32, 50, 63, 0.06);
  padding: 70px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.footer-col h3,
.footer-col h4 {
  font-family: "Baloo 2", cursive;
  margin: 0 0 14px;
  color: var(--green-dark);
}

.footer-brand h3 {
  font-size: 1.6rem;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.footer-col a {
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--red);
}

.footer-col p {
  transition: color 0.3s var(--ease);
}

.footer-col p:hover {
  color: var(--red);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-dark);
  box-shadow: 0 8px 18px rgba(32, 50, 63, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  position: relative;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.social-link:hover {
  transform: translateY(-4px);
  background: var(--red);
  animation: social-pop 0.4s var(--ease);
}

@keyframes social-pop {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.08);
  }
  100% {
    transform: translateY(-4px) scale(1.02);
  }
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.footer-copy {
  text-align: center;
  margin: 40px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* -------------------------
   Animation
-------------------------- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    opacity: 1;
  }
  94%,
  96% {
    opacity: 0.2;
  }
}

@keyframes spin-in {
  0% {
    opacity: 0;
    transform: rotateY(-360deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@keyframes spin-out {
  0% {
    opacity: 1;
    transform: rotateY(0deg);
  }
  100% {
    opacity: 0;
    transform: rotateY(360deg);
  }
}

/* -------------------------
   Responsive Adjustments
-------------------------- */
@media (max-width: 900px) {
  .hero-inner,
  .author-inner,
  .about-page-inner,
  .contact-page-inner,
  .book-feature-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .theme-toggle {
    order: 3;
  }

  .author-inner {
    padding: 32px;
  }

  .about-page-inner {
    padding: 32px;
  }

  .contact-page-inner {
    padding: 32px;
  }

  .book-feature-inner {
    gap: 32px;
  }

  .hero-media {
    order: -1;
  }

  .hero {
    padding: 90px 0 100px;
  }

  .author,
  .page-banner,
  .about-page,
  .contact-page,
  .faq-page,
  .terms-page,
  .privacy-page,
  .book-feature,
  .books,
  .feedbacks,
  .trailer {
    padding: 80px 0 90px;
  }

  .header-inner {
    flex-direction: column;
    gap: 14px;
  }

  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-inner {
    padding: 26px;
  }

  .about-page-inner {
    padding: 24px;
  }

  .contact-page-inner {
    padding: 24px;
  }

  .faq-page-inner {
    padding: 24px;
  }

  .terms-page-inner {
    padding: 24px;
  }

  .privacy-page-inner {
    padding: 24px;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
