/* ==========================================================================
   Dr Sona Says — Main Stylesheet
   A playful, modern, mobile-first design for a children's storybook brand.
   ========================================================================== */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Primary palette — bold, vibrant, modern kids' palette */
  --mint:        #FF9F43;
  --mint-light:  #FFEAA7;
  --mint-dark:   #E17A00;
  --sky:         #00B4D8;
  --sky-light:   #ADE8F4;
  --sky-dark:    #0096C7;
  --sunny:       #FFB800;
  --sunny-light: #FFE066;
  --sunny-dark:  #E6A600;
  --coral:       #FF4757;
  --coral-light: #FF6B81;
  --coral-dark:  #E63946;
  --lavender:    #A855F7;
  --lavender-light: #D8B4FE;
  --white:       #FFFFFF;
  --off-white:   #FAFBFF;
  --light-gray:  #F0F0F5;
  --gray:        #8B8B9E;
  --dark:        #1E1E2E;
  --dark-soft:   #4A4A5A;

  /* Typography */
  --font-heading: 'Nunito', 'Poppins', sans-serif;
  --font-body:    'Poppins', 'Nunito', sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders & Radii */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows — richer, more colorful */
  --shadow-sm:  0 2px 8px rgba(30,30,46,0.08);
  --shadow-md:  0 4px 20px rgba(30,30,46,0.10);
  --shadow-lg:  0 8px 36px rgba(30,30,46,0.12);
  --shadow-xl:  0 12px 48px rgba(30,30,46,0.15);
  --shadow-glow-mint:  0 0 24px rgba(255,159,67,0.45);
  --shadow-glow-coral: 0 0 24px rgba(255,71,87,0.45);

  /* Transitions */
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-med:  0.35s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--dark-soft);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* Decorative underline for section titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--sunny));
  border-radius: var(--radius-full);
  margin: var(--space-sm) auto 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%);
  transition: transform var(--transition-med);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  box-shadow: var(--shadow-md), var(--shadow-glow-coral);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg), var(--shadow-glow-coral);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: var(--dark);
  box-shadow: var(--shadow-md), var(--shadow-glow-mint);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg), var(--shadow-glow-mint);
}

.btn-outline {
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
}

.btn-outline:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-small {
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
}

/* Bouncing CTA animation class */
.btn-bounce {
  animation: bounceBtn 2s infinite;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-med);
  border-bottom: 1px solid transparent;
}

/* When scrolled → add subtle border & shadow */
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark);
  z-index: 1001;
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.nav-logo span {
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--sunny));
  border-radius: var(--radius-full);
  transition: width var(--transition-med);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--coral);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Cart icon in nav */
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--mint-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-cart:hover {
  background: var(--mint);
  transform: scale(1.1);
}

.nav-cart svg {
  width: 22px;
  height: 22px;
  color: var(--dark);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--transition-fast);
}

.cart-count.show {
  transform: scale(1);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-med);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) var(--space-lg) var(--space-2xl);
  background: linear-gradient(160deg, var(--off-white) 0%, var(--mint-light) 50%, var(--lavender-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  max-width: 1300px;
  width: 100%;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 400px;
  max-width: 580px;
  text-align: left;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: var(--sunny-light);
  color: var(--dark);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  border: 2px solid var(--sunny);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--coral), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--dark-soft);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Video Button */
.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.9);
  color: var(--coral);
  border: 2px solid var(--coral);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}
.btn-video:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,71,87,0.35);
}

/* Hero Books Showcase — fanned stack */
.hero-books-showcase {
  flex: 0 0 auto;
  width: 420px;
  height: 460px;
  position: relative;
  perspective: 1200px;
}

.hero-book {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.4s ease;
  background: var(--white);
}
.hero-book img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
}

/* Main center book */
.hero-book-main {
  width: 200px;
  height: 290px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.hero-book-main:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

/* Side books */
.hero-book-side {
  width: 160px;
  height: 230px;
  z-index: 3;
}
.hero-book-left {
  top: 55%;
  left: 15px;
  transform: translateY(-50%) rotate(-10deg);
}
.hero-book-left:hover { transform: translateY(-50%) rotate(-6deg) scale(1.05); }

.hero-book-right {
  top: 55%;
  right: 15px;
  transform: translateY(-50%) rotate(10deg);
}
.hero-book-right:hover { transform: translateY(-50%) rotate(6deg) scale(1.05); }

/* Back books */
.hero-book-back {
  width: 130px;
  height: 190px;
  z-index: 1;
  opacity: 0.75;
}
.hero-book-back-left {
  top: 48%;
  left: -5px;
  transform: translateY(-50%) rotate(-18deg);
}
.hero-book-back-right {
  top: 48%;
  right: -5px;
  transform: translateY(-50%) rotate(18deg);
}

/* Mascot container in hero */
.hero-mascot {
  position: absolute;
  bottom: 3%;
  left: 3%;
  width: 160px;
  height: 160px;
  z-index: 3;
  /* Lottie or SVG animation plays here */
}

/* Floating decorative elements in hero */
.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--sunny);
  animation: sparkle 3s ease-in-out infinite;
}

.sparkle:nth-child(1)  { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2)  { top: 30%; right: 20%; animation-delay: 0.5s; }
.sparkle:nth-child(3)  { bottom: 25%; left: 30%; animation-delay: 1s; }
.sparkle:nth-child(4)  { top: 50%; right: 30%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { bottom: 40%; left: 10%; animation-delay: 2s; }
.sparkle:nth-child(6) { top: 60%; left: 50%; animation-delay: 2.5s; }

/* Bubble decorations */
.bubble {
  position: absolute;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0,180,216,0.25);
  animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble:nth-child(7) { width: 40px; height: 40px; bottom: 10%; left: 5%; animation-delay: 0s; }
.bubble:nth-child(8) { width: 25px; height: 25px; bottom: 15%; right: 15%; animation-delay: 2s; }
.bubble:nth-child(9) { width: 55px; height: 55px; bottom: 5%; left: 45%; animation-delay: 4s; }
.bubble:nth-child(10) { width: 30px; height: 30px; bottom: 20%; right: 5%; animation-delay: 1s; }

/* ---------- Meet the Characters Section ---------- */
.characters-section {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--lavender-light) 40%, var(--mint-light) 100%);
  overflow: hidden;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.character-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.character-card[data-character="sona"]::before {
  background: linear-gradient(90deg, var(--mint), var(--sky));
}
.character-card[data-character="sasha"]::before {
  background: linear-gradient(90deg, var(--sky), var(--sunny));
}
.character-card[data-character="germu"]::before {
  background: linear-gradient(90deg, var(--lavender), var(--coral));
}

.character-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.character-avatar {
  margin-bottom: var(--space-lg);
  display: inline-block;
  animation: floatUpDown 4s ease-in-out infinite;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
}
.character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.character-card[data-character="sasha"] .character-avatar {
  animation-delay: 0.5s;
}
.character-card[data-character="germu"] .character-avatar {
  animation-delay: 1s;
}

.character-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--dark);
}

.character-role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.character-card[data-character="sona"] .character-role {
  background: var(--mint-light);
  color: var(--mint-dark);
}
.character-card[data-character="sasha"] .character-role {
  background: var(--sky-light);
  color: var(--sky-dark);
}
.character-card[data-character="germu"] .character-role {
  background: var(--lavender-light);
  color: var(--lavender);
}

.character-card p {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.65;
}

/* ---------- Why Dr Sona Section ---------- */
.why-section {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.why-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-med);
  border: 2px solid transparent;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mint);
}

.why-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.why-card:nth-child(1) .icon { background: var(--mint-light); }
.why-card:nth-child(2) .icon { background: var(--sunny-light); }
.why-card:nth-child(3) .icon { background: var(--coral-light); }
.why-card:nth-child(4) .icon { background: var(--sky-light); }

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.why-card p {
  color: var(--dark-soft);
  font-size: 0.95rem;
}

/* ---------- Featured Books Section ---------- */
.books-section {
  background: linear-gradient(180deg, var(--off-white), var(--mint-light) 80%, var(--off-white));
  overflow: hidden;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* ── Marquee / Continuous Scroll ── */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  padding: var(--space-xl) 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex: 0 0 auto;
  width: 280px;
}

/* ── Rectangular Book Cards (no crop) ── */
.book-card-rect {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}
.book-card-rect:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.book-cover-rect {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.book-cover-rect img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  transition: transform 0.4s var(--ease-smooth);
}
.book-card-rect:hover .book-cover-rect img {
  transform: scale(1.04);
}

.book-info-rect {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  text-align: center;
}
.book-info-rect h3 {
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}
.book-info-rect .price {
  font-weight: 700;
  color: var(--coral);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}
.book-info-rect .price small {
  color: var(--gray);
  font-weight: 400;
}
.book-info-rect .star-rating {
  margin-bottom: var(--space-xs);
}
.book-info-rect .btn {
  width: 100%;
}

/* Bundle cover inside marquee */
.bundle-cover-rect {
  background: linear-gradient(135deg, #FF4757, #FFB800, #FF9F43, #00B4D8, #A855F7);
}
.bundle-stack {
  display: flex;
  gap: -15px;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
}
.bundle-thumb {
  width: 50px;
  height: 72px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin-left: -10px;
  background: var(--white);
  transition: transform 0.3s ease;
}
.bundle-thumb:first-child { margin-left: 0; }
.book-card-rect:hover .bundle-thumb {
  transform: translateY(-4px);
}

/* ── Video Modal ── */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 720px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.35s var(--ease-smooth);
}
.video-modal-overlay.active .video-modal {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}
.video-modal-close:hover {
  background: var(--coral);
}

.video-modal-body {
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-body iframe {
  width: 100%;
  height: 100%;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  gap: var(--space-md);
}
.video-placeholder-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: default;
  box-shadow: 0 0 0 12px rgba(255,71,87,0.25);
}
.video-placeholder p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.video-placeholder small {
  opacity: 0.7;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}

/* Book Card — Flip Animation */
.book-card {
  perspective: 1000px;
  height: 520px;
  cursor: pointer;
}

.book-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-smooth);
  transform-style: preserve-3d;
}

.book-card:hover .book-card-inner {
  transform: rotateY(180deg);
}

.book-card-front,
.book-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.book-card-front {
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  padding-top: var(--space-sm);
}

.card-badges {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
  min-height: 26px;
}

.book-card-front .book-cover {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  overflow: hidden;
  position: relative;
}

.book-card-front .book-cover .cover-emoji {
  font-size: 4rem;
}

/* Book cover images — fit the cover area without cropping */
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
  transition: transform var(--transition-med);
}

.book-card:hover .book-cover-img {
  transform: scale(1.05);
}

/* Badge ribbons */
.badge-ribbon {
  position: static;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  border-radius: 6px;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ribbon::after {
  display: none;
}

.badge-new {
  background: var(--coral);
}

.badge-new::after {
  border-top-color: var(--coral-dark);
  border-left-color: var(--coral-dark);
}

.badge-best {
  background: var(--sunny-dark);
}

.badge-best::after {
  border-top-color: #E6A800;
  border-left-color: #E6A800;
}

.book-card-front h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
  text-align: center;
}

.book-card-front .price {
  font-weight: 700;
  color: var(--coral);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-old {
  font-size: 0.85rem;
  font-weight: 500;
  color: #aaa;
  position: relative;
  display: inline-block;
}

.price-old::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1.5px;
  background: #e74c3c;
  transform: translateY(-50%);
}

.price-now {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--coral);
}

.price-save {
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  background: #27AE60;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Discount Tag on Book Cover */
.discount-tag {
  position: static;
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 4;
  white-space: nowrap;
  line-height: 1;
}

/* Shop Limited Time Offer Banner */
.shop-limited-offer {
  text-align: center;
  background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
  background-size: 200% auto;
  animation: offer-shimmer 3s linear infinite;
  color: #fff;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 10px;
  margin-bottom: 24px;
}

@keyframes offer-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Star rating */
.star-rating {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin: var(--space-xs) 0;
}

.star-rating .star {
  color: var(--sunny);
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.star-rating .star:hover {
  transform: scale(1.3);
}

.star-rating .star.empty {
  color: #ddd;
}

/* Card back */
.book-card-back {
  background: linear-gradient(135deg, #FF6B35, #FF9F43);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
  color: #fff;
}

/* Each card gets a unique vibrant gradient */
.book-card:nth-child(1) .book-card-back { background: linear-gradient(135deg, #FF6B35, #FFA502); }
.book-card:nth-child(2) .book-card-back { background: linear-gradient(135deg, #6C5CE7, #A29BFE); }
.book-card:nth-child(3) .book-card-back { background: linear-gradient(135deg, #00B894, #55E6C1); }
.book-card:nth-child(4) .book-card-back { background: linear-gradient(135deg, #E056A0, #F78FB3); }
.book-card:nth-child(5) .book-card-back { background: linear-gradient(135deg, #0984E3, #74B9FF); }
.book-card:nth-child(6) .book-card-back { background: linear-gradient(135deg, #D63031, #FF7675); }

.book-card-back h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
  color: #fff;
}

.book-card-back p {
  font-size: 0.92rem;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.book-card-back .age-range {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: #fff;
}

/* ---------- Filter Buttons (Shop page) ---------- */
/* ── Filter Section ── */
.filter-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-group {
  text-align: center;
}

.filter-group-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.filter-pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: #eee;
  border-radius: var(--radius-full);
  padding: 4px;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  background: transparent;
  color: #555;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.7);
  color: #333;
}

.filter-btn.active {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 2px 8px rgba(231,76,60,0.35);
}

.age-filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  background: transparent;
  color: #555;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.age-filter-btn:hover {
  background: rgba(255,255,255,0.7);
  color: #333;
}

.age-filter-btn.active {
  background: #6C5CE7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,0.35);
}

/* Coming Soon Message */
.coming-soon-msg {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.coming-soon-msg h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.coming-soon-msg p {
  font-size: 1rem;
  color: var(--dark-soft);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--transition-med);
  border: 2px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sunny);
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--sunny);
  margin-bottom: var(--space-md);
  display: block;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.testimonial-card:nth-child(1) .avatar { background: var(--coral); }
.testimonial-card:nth-child(2) .avatar { background: var(--sky); }
.testimonial-card:nth-child(3) .avatar { background: var(--mint-dark); }

.testimonial-author .author-info strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author .author-info span {
  font-size: 0.82rem;
  color: var(--gray);
}

/* ---------- Newsletter Section ---------- */
.newsletter-section {
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--sunny-light) 100%);
}

.newsletter-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: var(--space-md);
}

.newsletter-content p {
  color: var(--dark-soft);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--coral);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.footer-brand .footer-logo img {
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: rgba(255,255,255,0.8);
}

.social-links a:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--coral);
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--coral);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
}

/* ---------- Cart Drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-med);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-med);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--light-gray);
}

.cart-drawer-header h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--light-gray);
  transition: all var(--transition-fast);
}

.cart-close:hover {
  background: var(--coral-light);
  color: var(--coral);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--light-gray);
  align-items: center;
}

.cart-item .item-cover {
  width: 60px;
  height: 72px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cart-item .item-details {
  flex: 1;
}

.cart-item .item-details h4 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.cart-item .item-details .item-price {
  font-weight: 700;
  color: var(--coral);
  font-size: 0.9rem;
}

.cart-item .item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-item .item-qty button {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--light-gray);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cart-item .item-qty button:hover {
  background: var(--mint);
}

.cart-item .item-remove {
  color: var(--gray);
  font-size: 1.2rem;
  transition: color var(--transition-fast);
  padding: var(--space-xs);
}

.cart-item .item-remove:hover {
  color: var(--coral);
}

.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--gray);
}

.cart-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.cart-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--light-gray);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-footer .btn {
  width: 100%;
}

/* ---------- Back-to-top Rocket ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-med);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-coral);
}

/* Rocket launch animation */
.back-to-top.launching {
  animation: rocketLaunch 0.6s var(--ease-bounce);
}

/* ---------- Modal (Read a Sample) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-med);
  padding: var(--space-lg);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all var(--transition-med);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--coral-light);
  color: var(--coral);
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

/* Flipbook preview inside the modal */
.flipbook-preview {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scroll-snap-type: x mandatory;
}

.flipbook-page {
  min-width: 100%;
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.flipbook-page .page-illustration {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.flipbook-page p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
}

.flipbook-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.flipbook-nav button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--mint-light);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.flipbook-nav button:hover {
  background: var(--mint);
  transform: scale(1.1);
}

/* ---------- Age Quiz Section ---------- */
.quiz-section {
  background: linear-gradient(135deg, var(--sky-light), var(--lavender-light));
}

.quiz-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.quiz-step {
  display: none;
  text-align: center;
}

.quiz-step.active {
  display: block;
}

.quiz-step h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.quiz-option {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--light-gray);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.quiz-option:hover,
.quiz-option.selected {
  border-color: var(--coral);
  background: var(--coral-light);
  color: var(--dark);
}

.quiz-result {
  text-align: center;
  padding: var(--space-xl);
}

.quiz-result .result-emoji {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

/* ---------- About Page ---------- */
.about-hero {
  background: linear-gradient(160deg, var(--lavender-light) 0%, var(--coral-light) 50%, var(--sunny-light) 100%);
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-4xl);
  text-align: center;
}

.about-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: var(--space-md);
}

.about-hero p {
  font-size: 1.15rem;
  color: var(--dark-soft);
  max-width: 760px;
  margin: 0 auto;
}

.about-brand-section,
.founder-section,
.about-journey-section,
.about-mission-section,
.author-section {
  padding: var(--space-4xl) 0;
}

.about-feature-card {
  width: min(100%, 1320px);
}

.about-brand-section .container,
.founder-section .container,
.about-mission-section .container,
.author-section .container {
  max-width: 1400px;
}

.about-brand-card,
.founder-feature-card {
  position: relative;
  overflow: hidden;
}

.about-brand-card::after,
.founder-feature-card::after {
  content: '';
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  filter: blur(8px);
  pointer-events: none;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-md);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--mint), var(--coral));
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  width: 43%;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
  transition: all var(--transition-med);
}

.timeline-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.timeline-item:nth-child(odd) {
  margin-left: 5%;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 4px solid var(--coral);
  border-radius: var(--radius-full);
  top: var(--space-lg);
}

.timeline-item:nth-child(odd)::before {
  right: -30px;
}

.timeline-item:nth-child(even)::before {
  left: -30px;
}

.timeline-item .year {
  font-weight: 800;
  color: var(--coral);
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--dark-soft);
}

/* Mission values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.value-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white), rgba(250,251,255,0.96));
  transition: all var(--transition-med);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--sunny);
}

.value-card .value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.92rem;
  color: var(--dark-soft);
}

/* Meet the author */
.author-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.author-card {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--mint-light), var(--sky-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.author-info {
  flex: 1;
  min-width: 280px;
}

.author-info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.about-mission-section .section-subtitle {
  max-width: none;
}

.about-mission-section .mission-statement {
  max-width: none !important;
  width: 100%;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .about-brand-section,
  .founder-section,
  .about-journey-section,
  .about-mission-section,
  .author-section {
    padding: var(--space-3xl) 0;
  }

  .about-brand-card,
  .founder-feature-card,
  .about-mission-section .mission-statement,
  .author-card {
    padding: var(--space-xl) !important;
  }
}

.author-info .author-title {
  color: var(--coral);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.author-info p {
  color: var(--dark-soft);
  line-height: 1.6;
}

/* ---------- Parents Page ---------- */
.parents-hero {
  background: linear-gradient(160deg, var(--sunny-light) 0%, var(--coral-light) 100%);
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.parents-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-md);
}

.parents-hero p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--dark-soft);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-med);
  border-left: 4px solid var(--mint);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-card .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--mint-light);
  color: var(--mint-dark);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  font-size: 0.96rem;
  color: var(--dark-soft);
}

/* Animated checklist */
.checklist {
  max-width: 950px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-xl);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--light-gray);
  opacity: 1;
  transform: none;
  transition: all var(--transition-med);
}

.checklist-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.checklist-item .check-circle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 3px solid var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-med);
}

.checklist-item.visible .check-circle {
  background: var(--mint);
  color: var(--white);
}

/* Research cards */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.research-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-med);
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.research-card .research-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.research-card .stat {
  font-size: 2rem;
  font-weight: 800;
  color: var(--coral);
  margin-bottom: var(--space-sm);
}

.research-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.research-card p {
  font-size: 0.92rem;
  color: var(--dark-soft);
}

/* Activity sheet CTA */
.activity-cta {
  background: linear-gradient(135deg, #FFE3D1, #F6D7FF);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.activity-cta .cta-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.activity-cta h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.activity-cta p {
  color: var(--dark-soft);
  margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
  .checklist {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact Page ---------- */
.contact-hero {
  background: linear-gradient(160deg, var(--lavender-light) 0%, var(--sky-light) 100%);
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--dark);
  transition: color var(--transition-fast);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  background: var(--off-white);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

/* Fun micro-interaction on focus */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,138,128,0.15);
}

.form-group input:focus + .focus-decoration,
.form-group textarea:focus + .focus-decoration {
  opacity: 1;
  transform: scale(1);
}

.focus-decoration {
  position: absolute;
  top: 50%;
  right: 12px;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-med);
  pointer-events: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--coral);
  font-size: 0.8rem;
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--coral);
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--dark-soft);
}

.contact-info {
  padding: var(--space-xl) 0;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--off-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.contact-info-card .info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-card:nth-child(1) .info-icon { background: var(--coral-light); }
.contact-info-card:nth-child(2) .info-icon { background: var(--mint-light); }
.contact-info-card:nth-child(3) .info-icon { background: var(--sunny-light); }
.contact-info-card:nth-child(4) .info-icon { background: var(--sky-light); }

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--dark-soft);
}

/* ---------- Confetti Canvas ---------- */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- Page Transition ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--mint);
  z-index: 5000;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-smooth);
}

.page-transition.active {
  transform: scaleY(1);
  transform-origin: top;
}

/* ========================================================================
   RESPONSIVE DESIGN — Mobile-first breakpoints
   ======================================================================== */

/* Mid-size tablets & small laptops */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    gap: var(--space-xl);
  }
  .hero-content {
    text-align: center;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-books-showcase {
    width: 380px;
    height: 400px;
  }
  .hero-book-main { width: 180px; height: 260px; }
  .hero-book-side { width: 150px; height: 215px; }
  .hero-book-back { width: 115px; height: 170px; }
}

/* Tablets and below */
@media (max-width: 768px) {
  .navbar .container {
    gap: var(--space-sm);
  }

  .nav-logo {
    font-size: 1.15rem;
    max-width: calc(100% - 130px);
  }

  .nav-logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: flex;
    z-index: 1501;
  }

  .nav-cart {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-lg) var(--space-3xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all var(--transition-med);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    max-width: 360px;
    text-align: center;
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-full);
    background: var(--off-white);
    color: var(--dark);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    background: linear-gradient(135deg, var(--sunny-light), var(--coral-light));
    color: var(--dark);
  }

  .hero-mascot {
    width: 120px;
    height: 120px;
    bottom: 2%;
    left: 2%;
  }

  .hero-inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
    flex: 1 1 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-books-showcase {
    width: 340px;
    height: 360px;
  }

  .hero-book-main { width: 160px; height: 230px; }
  .hero-book-side { width: 130px; height: 190px; }
  .hero-book-back { width: 100px; height: 150px; }
  .hero-book-left  { left: 15px; }
  .hero-book-right { right: 15px; }
  .hero-book-back-left  { left: 0; }
  .hero-book-back-right { right: 0; }

  .marquee-item { width: 240px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .author-card {
    justify-content: center;
    text-align: center;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }

  .timeline-item::before {
    left: -30px !important;
    right: auto !important;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    height: 380px;
  }

  .hero-mascot {
    display: none;
  }

  .hero-books-showcase {
    width: 280px;
    height: 300px;
  }
  .hero-book-main { width: 140px; height: 200px; }
  .hero-book-side { width: 100px; height: 150px; }
  .hero-book-back { display: none; }
  .hero-book-left  { left: 10px; }
  .hero-book-right { right: 10px; }

  .marquee-item { width: 220px; }

  .characters-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════ FLOATING CHARACTERS ═══════ */
.floating-char {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.15));
  transition: opacity 0.5s ease;
}

/* Position variants — spread across sections, not just corners */
.floating-char-1 {
  width: 130px;
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
  animation: floatLeft 5s ease-in-out infinite;
}
.floating-char-2 {
  width: 130px;
  bottom: 10%;
  left: 8%;
  animation: roamLeft 14s ease-in-out infinite alternate;
}
.floating-char-3 {
  width: 140px;
  top: 12%;
  left: 10%;
  animation: roamDiag1 11s ease-in-out infinite alternate;
}
.floating-char-4 {
  width: 120px;
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
  animation: floatRight 5s ease-in-out infinite;
}
.floating-char-5 {
  width: 140px;
  top: 10%;
  right: 10%;
  animation: roamRight 10s ease-in-out infinite alternate;
}
.floating-char-6 {
  width: 110px;
  bottom: 8%;
  left: 10%;
  animation: roamLeft 12s ease-in-out infinite alternate;
}

/* Gentle float animations — constrained to stay within section */
@keyframes floatLeft {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  25%      { transform: translateY(calc(-50% - 15px)) rotate(-3deg); }
  50%      { transform: translateY(calc(-50% + 10px)) rotate(2deg); }
  75%      { transform: translateY(calc(-50% - 8px)) rotate(-2deg); }
}
@keyframes floatRight {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  25%      { transform: translateY(calc(-50% + 12px)) rotate(3deg); }
  50%      { transform: translateY(calc(-50% - 15px)) rotate(-2deg); }
  75%      { transform: translateY(calc(-50% + 8px)) rotate(2deg); }
}

/* Roaming keyframes — characters travel across their section */
@keyframes roamRight {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate(-60px, 30px) rotate(-5deg) scale(1.05); }
  50%  { transform: translate(-120px, -20px) rotate(3deg) scale(0.95); }
  75%  { transform: translate(-40px, -40px) rotate(-3deg) scale(1.08); }
  100% { transform: translate(-80px, 15px) rotate(5deg) scale(1); }
}
@keyframes roamLeft {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate(50px, -25px) rotate(4deg) scale(1.06); }
  50%  { transform: translate(100px, 20px) rotate(-4deg) scale(0.96); }
  75%  { transform: translate(30px, 35px) rotate(3deg) scale(1.04); }
  100% { transform: translate(70px, -15px) rotate(-5deg) scale(1); }
}
@keyframes roamDiag1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(60px, 40px) rotate(6deg); }
  66%  { transform: translate(30px, -30px) rotate(-4deg); }
  100% { transform: translate(80px, 10px) rotate(3deg); }
}
@keyframes roamDiag2 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(-50px, -35px) rotate(-5deg); }
  66%  { transform: translate(-20px, 25px) rotate(4deg); }
  100% { transform: translate(-70px, -10px) rotate(-3deg); }
}

/* Sections need position:relative for floating chars */
.why-section,
.testimonials-section,
.quiz-section {
  position: relative;
  overflow: hidden;
}

/* Resize floating chars on smaller screens */
@media (max-width: 768px) {
  .floating-char {
    width: 80px !important;
    opacity: 0.3;
  }
}
@media (max-width: 480px) {
  .floating-char {
    width: 60px !important;
    opacity: 0.25;
  }
}

/* ═══════ BUNDLE COVER IMAGE FIX ═══════ */
.bundle-cover-rect .book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Large screens */
@media (min-width: 1400px) {
  :root {
    --max-width: 1320px;
  }
}
