/* ============================================
   DESIGN SYSTEM — Visa Kết Hôn Landing Page
   Color palette synced with book cover:
   Pink Pastel + Navy Blue + Cherry Blossom
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --navy: #1a2a5e;
  --navy-light: #2d3f7a;
  --navy-dark: #0f1a3d;
  --pink-pastel: #e8a0b4;
  --pink-light: #fdf0f4;
  --pink-lighter: #fff5f8;
  --pink-medium: #f0b8c8;
  --deep-rose: #c4547a;
  --deep-rose-hover: #a84466;
  --cherry-blossom: #f5c6d0;
  --cherry-dark: #e0a3b0;
  --white: #ffffff;
  --off-white: #fafbfd;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Gradients */
  --gradient-hero: linear-gradient(160deg, #fdf0f4 0%, #fff5f8 30%, #ffffff 70%, #fdf0f4 100%);
  --gradient-pink: linear-gradient(135deg, #e8a0b4 0%, #f5c6d0 100%);
  --gradient-navy: linear-gradient(135deg, #1a2a5e 0%, #2d3f7a 100%);
  --gradient-card: linear-gradient(135deg, rgba(253, 240, 244, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
  --gradient-cta: linear-gradient(135deg, #c4547a 0%, #e8a0b4 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 42, 94, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 42, 94, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 42, 94, 0.1);
  --shadow-xl: 0 16px 48px rgba(26, 42, 94, 0.12);
  --shadow-pink: 0 8px 32px rgba(196, 84, 122, 0.2);
  --shadow-book: 0 20px 60px rgba(26, 42, 94, 0.15), 0 8px 24px rgba(26, 42, 94, 0.1);

  /* Typography */
  --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 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);
  font-weight: var(--fw-regular);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--navy);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Section Common --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--pink-light);
  color: var(--deep-rose);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-label .material-symbols-outlined {
  font-size: 18px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
  position: relative;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  font-weight: var(--fw-light);
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Accent Underline --- */
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-cta);
  border-radius: 2px;
  margin-top: 20px;
}

.section-header .accent-line {
  margin: 20px auto 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand-logo {
  height: 52px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast);
}

.nav-brand:hover .nav-brand-logo {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--deep-rose);
  border-radius: 1px;
  transition: width var(--transition-base);
}

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  color: var(--gray-500);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.lang-btn img {
  width: 18px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

/* Mobile Menu Button */
.nav-mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.nav-mobile-btn .material-symbols-outlined {
  font-size: 28px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: var(--fw-regular);
  color: var(--navy);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Cherry blossom petals */
.cherry-blossoms {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.petal {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--cherry-blossom);
  border-radius: 50% 0 50% 50%;
  opacity: 0.5;
  animation: petalFall linear infinite;
}

.petal:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
  animation-delay: 0s;
  width: 10px;
  height: 10px;
}

.petal:nth-child(2) {
  left: 20%;
  animation-duration: 15s;
  animation-delay: 2s;
  width: 14px;
  height: 14px;
  opacity: 0.4;
}

.petal:nth-child(3) {
  left: 35%;
  animation-duration: 10s;
  animation-delay: 4s;
  width: 8px;
  height: 8px;
}

.petal:nth-child(4) {
  left: 50%;
  animation-duration: 14s;
  animation-delay: 1s;
  width: 12px;
  height: 12px;
  opacity: 0.3;
}

.petal:nth-child(5) {
  left: 65%;
  animation-duration: 11s;
  animation-delay: 3s;
  width: 10px;
  height: 10px;
}

.petal:nth-child(6) {
  left: 75%;
  animation-duration: 13s;
  animation-delay: 5s;
  width: 14px;
  height: 14px;
  opacity: 0.35;
}

.petal:nth-child(7) {
  left: 85%;
  animation-duration: 16s;
  animation-delay: 2.5s;
  width: 9px;
  height: 9px;
}

.petal:nth-child(8) {
  left: 5%;
  animation-duration: 14s;
  animation-delay: 6s;
  width: 11px;
  height: 11px;
  opacity: 0.45;
}

.petal:nth-child(9) {
  left: 45%;
  animation-duration: 12s;
  animation-delay: 7s;
  width: 13px;
  height: 13px;
  opacity: 0.3;
}

.petal:nth-child(10) {
  left: 90%;
  animation-duration: 15s;
  animation-delay: 1.5s;
  width: 10px;
  height: 10px;
}

@keyframes petalFall {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(100vh) rotate(720deg) translateX(100px);
    opacity: 0;
  }
}

/* Floating hearts */
.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.heart {
  position: absolute;
  font-size: 20px;
  color: var(--pink-pastel);
  opacity: 0.2;
  animation: floatHeart ease-in-out infinite;
}

.heart:nth-child(1) {
  left: 8%;
  bottom: 20%;
  animation-duration: 6s;
  font-size: 16px;
}

.heart:nth-child(2) {
  right: 12%;
  top: 30%;
  animation-duration: 8s;
  animation-delay: 1s;
  font-size: 22px;
  opacity: 0.15;
}

.heart:nth-child(3) {
  left: 25%;
  top: 15%;
  animation-duration: 7s;
  animation-delay: 2s;
  font-size: 14px;
}

.heart:nth-child(4) {
  right: 25%;
  bottom: 30%;
  animation-duration: 9s;
  animation-delay: 3s;
  font-size: 18px;
  opacity: 0.18;
}

.heart:nth-child(5) {
  left: 60%;
  top: 20%;
  animation-duration: 7.5s;
  animation-delay: 4s;
  font-size: 15px;
  opacity: 0.12;
}

@keyframes floatHeart {

  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  25% {
    transform: translateY(-20px) scale(1.1) rotate(5deg);
  }

  50% {
    transform: translateY(-10px) scale(1) rotate(-3deg);
  }

  75% {
    transform: translateY(-25px) scale(1.05) rotate(4deg);
  }
}

/* Hero Content */
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(232, 160, 180, 0.15);
  border: 1px solid rgba(232, 160, 180, 0.3);
  border-radius: var(--radius-full);
  color: var(--deep-rose);
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge .material-symbols-outlined {
  font-size: 18px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.hero-title .highlight {
  color: var(--deep-rose);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(232, 160, 180, 0.25);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--navy-light);
  font-weight: var(--fw-medium);
  font-style: italic;
  margin-bottom: 20px;
  opacity: 0.8;
  letter-spacing: 0.2px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  font-weight: var(--fw-light);
  line-height: 1.8;
}

.hero-author {
  font-size: 1rem;
  color: var(--navy);
  font-weight: var(--fw-medium);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-author .material-symbols-outlined {
  font-size: 20px;
  color: var(--deep-rose);
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn .material-symbols-outlined {
  font-size: 20px;
  transition: transform var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--white);
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196, 84, 122, 0.3);
}

.btn-primary:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--pink-pastel);
  background: var(--pink-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* Hero Book Image */
.hero-book {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.book-wrapper {
  position: relative;
  perspective: 1000px;
}

.book-wrapper img {
  width: 380px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-book);
  transition: transform var(--transition-slow);
  transform: rotateY(-8deg) rotateX(3deg);
}

.book-wrapper:hover img {
  transform: rotateY(-2deg) rotateX(1deg) scale(1.03);
}

/* Book glow effect */
.book-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(232, 160, 180, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

/* Floating badge on book */
.book-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--gradient-navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-md);
  animation: badgePulse 3s ease-in-out infinite;
  z-index: 3;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ============================================
   ABOUT BOOK SECTION
   ============================================ */
.about-book {
  background: var(--white);
}

.about-book .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-book-content {
  max-width: 520px;
}

.about-book-text {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 36px;
  font-weight: var(--fw-light);
  line-height: 1.9;
}

.highlight-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--pink-lighter);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.highlight-card:hover {
  background: var(--white);
  border-color: var(--pink-medium);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.highlight-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--gradient-cta);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.highlight-card-icon .material-symbols-outlined {
  font-size: 24px;
}

.highlight-card h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  margin-bottom: 4px;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: var(--fw-light);
}

/* About book image side */
.about-book-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-book-visual .stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid rgba(232, 160, 180, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-pastel);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  background: var(--pink-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--deep-rose);
}

.stat-card .stat-icon .material-symbols-outlined {
  font-size: 26px;
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: var(--fw-semibold);
  color: var(--navy);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: var(--fw-light);
}

/* ============================================
   KEY FEATURES SECTION
   ============================================ */
.features {
  background: var(--pink-lighter);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink-pastel), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(232, 160, 180, 0.15);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--pink-pastel);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 68px;
  height: 68px;
  background: var(--pink-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--deep-rose);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-cta);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.feature-icon .material-symbols-outlined {
  font-size: 32px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: var(--fw-light);
  line-height: 1.7;
}

/* ============================================
   BOOK PREVIEW / TABLE OF CONTENTS SECTION
   ============================================ */
.book-preview {
  background: var(--white);
}

.preview-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.preview-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--pink-pastel), var(--cherry-blossom), var(--pink-light));
}

.preview-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 24px;
}

.preview-item-dot {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--pink-pastel);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 1;
}

.preview-item-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-pastel);
  transition: all var(--transition-base);
}

.preview-item.active .preview-item-dot,
.preview-item:hover .preview-item-dot {
  border-color: var(--deep-rose);
  background: var(--deep-rose);
}

.preview-item.active .preview-item-dot::after,
.preview-item:hover .preview-item-dot::after {
  background: var(--white);
}

.preview-item-content {
  background: var(--pink-lighter);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.preview-item:hover .preview-item-content {
  border-color: var(--pink-medium);
  box-shadow: var(--shadow-md);
}

.preview-item-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.preview-item-header:hover {
  background: rgba(232, 160, 180, 0.08);
}

.preview-item-header h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-cta);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  font-family: var(--font-body);
}

.preview-item-header .material-symbols-outlined {
  color: var(--gray-400);
  transition: transform var(--transition-base);
  font-size: 24px;
}

.preview-item.active .preview-item-header .material-symbols-outlined {
  transform: rotate(180deg);
  color: var(--deep-rose);
}

.preview-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.preview-item.active .preview-item-body {
  max-height: 300px;
}

.preview-item-body-inner {
  padding: 0 24px 20px;
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: var(--fw-light);
  line-height: 1.8;
}

/* ============================================
   AUTHOR SECTION
   ============================================ */
.author-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.author-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(232, 160, 180, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.author-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(232, 160, 180, 0.15);
  position: relative;
  z-index: 1;
}

.author-image {
  position: relative;
}

.author-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.author-image::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid var(--pink-pastel);
  border-radius: calc(var(--radius-lg) + 4px);
  opacity: 0.5;
}

.author-info h2 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.author-title {
  font-size: 1rem;
  color: var(--deep-rose);
  font-weight: var(--fw-medium);
  margin-bottom: 4px;
}

.author-company {
  font-size: 0.95rem;
  color: var(--gray-500);
  font-weight: var(--fw-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-company .material-symbols-outlined {
  font-size: 18px;
  color: var(--gray-400);
}

.author-bio {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: var(--fw-light);
  line-height: 1.9;
  margin-bottom: 24px;
}

.author-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.author-badge {
  padding: 8px 16px;
  background: var(--pink-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-badge .material-symbols-outlined {
  font-size: 16px;
  color: var(--deep-rose);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background: var(--white);
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-card-inner {
  background: var(--pink-lighter);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(232, 160, 180, 0.15);
  position: relative;
}

.testimonial-card-inner::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 32px;
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--pink-pastel);
  opacity: 0.5;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars .material-symbols-outlined {
  font-size: 22px;
  color: #f59e0b;
  font-variation-settings: 'FILL' 1;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--gray-600);
  font-weight: var(--fw-light);
  line-height: 1.9;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: var(--fw-medium);
  font-family: var(--font-heading);
}

.testimonial-author-info h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
}

.testimonial-author-info p {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: var(--fw-light);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonials-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all var(--transition-base);
}

.testimonials-dots button.active {
  background: var(--deep-rose);
  width: 28px;
  border-radius: var(--radius-full);
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 160, 180, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-cta-card {
  background: var(--gradient-navy);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(232, 160, 180, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-cta-card h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
  position: relative;
}

.contact-cta-card p {
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--fw-light);
  margin-bottom: 32px;
  line-height: 1.8;
  font-size: 1.05rem;
  position: relative;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: var(--fw-medium);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.download-btn .material-symbols-outlined {
  font-size: 22px;
  color: var(--deep-rose);
  transition: transform var(--transition-fast);
}

.download-btn:hover .material-symbols-outlined {
  transform: translateY(3px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(232, 160, 180, 0.15);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  border-color: var(--pink-pastel);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--pink-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-rose);
}

.contact-icon .material-symbols-outlined {
  font-size: 24px;
}

.contact-info-card h4 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 1rem;
  color: var(--navy);
  font-weight: var(--fw-medium);
}

.contact-info-card a {
  color: var(--navy);
  font-weight: var(--fw-medium);
}

.contact-info-card a:hover {
  color: var(--deep-rose);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p {
  font-size: 0.85rem;
  font-weight: var(--fw-light);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: var(--fw-light);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--pink-pastel);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gradient-cta);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pink);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(196, 84, 122, 0.35);
}

.back-to-top .material-symbols-outlined {
  font-size: 24px;
}

/* ============================================
   GLOBAL FLOATING PARTICLES
   ============================================ */
.global-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

@keyframes gpFall {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) translateX(var(--gp-drift)) rotate(var(--gp-rotation));
    opacity: 0;
  }
}

/* Ensure navbar and interactive elements stay above particles */
.navbar { z-index: 1000; }
.mobile-menu { z-index: 999; }

/* ============================================
   NAV PHONE LINK
   ============================================ */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--gradient-cta);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: 0 4px 16px rgba(196, 84, 122, 0.3);
}

.nav-phone::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: var(--gradient-cta);
  opacity: 0;
  animation: navPhonePulse 2.5s ease-in-out infinite;
  z-index: -1;
}

.nav-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 84, 122, 0.45);
  color: var(--white);
}

.nav-phone .material-symbols-outlined {
  font-size: 18px;
}

.nav-phone-number {
  font-family: var(--font-body);
}

@keyframes navPhonePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.35;
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   LANGUAGE TRANSITION
   ============================================ */
[data-lang] {
  transition: opacity 0.25s ease;
}

.lang-switching [data-lang] {
  opacity: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .hero .container {
    gap: 40px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .book-wrapper img {
    width: 300px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-book .container {
    gap: 40px;
  }

  .author-card {
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 36px;
  }

  .contact-grid {
    gap: 40px;
  }
}

/* Small Tablet / Large Phone */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-mobile-btn {
    display: flex;
  }

  .navbar {
    padding: 8px 0;
  }

  .navbar.scrolled {
    padding: 6px 0;
  }

  .nav-brand-logo {
    height: 36px;
  }

  /* Hide lang toggle on mobile — already in mobile menu */
  .nav-right > .lang-toggle {
    display: none;
  }

  .nav-mobile-btn {
    width: 36px;
    height: 36px;
  }

  .nav-mobile-btn .material-symbols-outlined {
    font-size: 24px;
  }

  .nav-phone {
    padding: 7px 16px;
    font-size: 0.85rem;
    box-shadow: 0 2px 12px rgba(196, 84, 122, 0.35);
  }

  .nav-phone .material-symbols-outlined {
    font-size: 16px;
  }

  .nav-phone-number {
    font-size: 0.85rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-book {
    order: 1;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-author {
    justify-content: center;
  }

  .hero-badge {
    margin: 0 auto 24px;
  }

  .book-wrapper img {
    width: 260px;
  }

  .book-badge {
    top: -8px;
    right: 10px;
    font-size: 0.75rem;
    padding: 8px 14px;
  }

  /* About */
  .about-book .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-book-content {
    max-width: 100%;
  }

  .about-book-visual {
    order: -1;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Author */
  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px;
    gap: 32px;
  }

  .author-image img {
    width: 200px;
    margin: 0 auto;
  }

  .author-image::before {
    display: none;
  }

  .author-badges {
    justify-content: center;
  }

  .author-company {
    justify-content: center;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-cta-card {
    padding: 36px;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  /* Timeline */
  .preview-timeline::before {
    left: 20px;
  }

  .preview-item {
    padding-left: 56px;
  }

  .preview-item-dot {
    left: 10px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .book-wrapper img {
    width: 220px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-card .stat-number {
    font-size: 1.6rem;
  }

  .testimonial-card-inner {
    padding: 28px 20px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .contact-cta-card {
    padding: 28px;
  }

  .contact-cta-card h2 {
    font-size: 1.6rem;
  }

  .download-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .author-card {
    padding: 24px;
  }

  .preview-item-header {
    padding: 16px 18px;
  }

  .preview-item-header h3 {
    font-size: 0.95rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

  .navbar,
  .back-to-top,
  .cherry-blossoms,
  .floating-hearts,
  .mobile-menu {
    display: none !important;
  }

  .section {
    page-break-inside: avoid;
  }
}