/* ========================================
   Tales of Amelia Island - Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Caveat:wght@400;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --ocean-dark: #0a1628;
  --ocean-blue: #1a4a7a;
  --ocean-mid: #2d7dd2;
  --ocean-light: #4db6e8;
  --sand-warm: #f5e6c8;
  --sand-light: #fdf6e9;
  --coral: #e8836a;
  --coral-light: #f4a68c;
  --seafoam: #7ec8c8;
  --seafoam-light: #b2e8e8;
  --gold: #d4af37;
  --gold-light: #f0d060;
  --text-dark: #1a2535;
  --text-mid: #3d5068;
  --text-light: #4a6277;
  --white: #ffffff;
  --nav-height: 72px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(10, 22, 40, 0.1);
  --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.15);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.2);
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--sand-light);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Typography ---- */
h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.handwritten {
  font-family: 'Caveat', cursive;
}

/* ---- Utility ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--ocean-mid);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ocean-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light));
  color: var(--white);
  box-shadow: 0 6px 24px rgba(45, 125, 210, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(45, 125, 210, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--ocean-mid);
  border: 2px solid var(--ocean-mid);
}

.btn-secondary:hover {
  background: var(--ocean-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-amazon {
  background: linear-gradient(135deg, #ff9900, #ffb340);
  color: #111;
  box-shadow: 0 6px 24px rgba(255, 153, 0, 0.4);
}

.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 153, 0, 0.55);
}

/* ---- Waves ---- */
.wave-divider {
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--ocean-mid), var(--seafoam));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.nav-logo-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 0.85rem;
  color: var(--seafoam-light);
  line-height: 1;
}

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

.nav-link {
  padding: 8px 18px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--seafoam-light);
  border-radius: 50%;
}

.nav-cta {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(232, 131, 106, 0.4);
  transition: var(--transition);
}

.nav-cta:hover {
  background: none !important;
  background: linear-gradient(135deg, #d4735a, var(--coral)) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 131, 106, 0.55);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    /* left-to-right: heavy where text lives, fades right */
    linear-gradient(100deg,
      rgba(8, 18, 32, 0.82) 0%,
      rgba(8, 18, 32, 0.65) 45%,
      rgba(8, 18, 32, 0.25) 100%),
    /* top-to-bottom: darken top nav area and bottom stats */
    linear-gradient(180deg,
      rgba(8, 18, 32, 0.45) 0%,
      rgba(8, 18, 32, 0.0) 40%,
      rgba(8, 18, 32, 0.0) 60%,
      rgba(8, 18, 32, 0.5) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform-origin: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-20px) translateX(40px);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--nav-height);
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--seafoam-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

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

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.9s ease 0.1s both;
}

.hero-title .highlight {
  color: var(--seafoam-light);
  font-style: italic;
}

.hero-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--sand-warm);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.9s ease 0.5s both;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--seafoam-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1s both;
}

.hero-scroll-wheel {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

.hero-scroll-wheel::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {

  0%,
  100% {
    top: 6px;
    opacity: 1;
  }

  50% {
    top: 20px;
    opacity: 0.3;
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: translateY(4px);
  }
}

/* ========================================
   FEATURED BOOKS SECTION
   ======================================== */

.section {
  padding: 100px 0;
}

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

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

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.book-card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--ocean-dark);
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-card:hover .book-card-cover img {
  transform: scale(1.05);
}

.book-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 40, 0.8) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.book-card:hover .book-card-overlay {
  opacity: 1;
}

.book-card-overlay-btn {
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #ff9900, #ffb340);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.book-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.book-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-series {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: #1a5fa8;
  margin-bottom: 4px;
}

.book-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  flex: 1;
}

.book-card-subtitle {
  font-size: 0.82rem;
  color: #3d5570;
  margin-bottom: 12px;
  font-style: italic;
}

.book-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a5fa8;
  transition: var(--transition);
}

.book-card-link:hover {
  color: var(--coral);
  gap: 10px;
}

/* ========================================
   FEATURED BOOK (LARGE)
   ======================================== */

.featured-book {
  background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-blue) 100%);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.featured-book::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.featured-book-cover {
  position: relative;
  z-index: 1;
}

.featured-book-cover img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

.featured-book-cover img:hover {
  transform: rotateY(-5deg) scale(1.02);
}

.featured-book-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.featured-book-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.featured-book-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 8px;
}

.featured-book-subtitle {
  font-size: 1.1rem;
  color: var(--seafoam-light);
  margin-bottom: 24px;
  font-style: italic;
}

.featured-book-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 32px;
}

.featured-book-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.featured-book-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.featured-book-meta-icon {
  font-size: 1.1rem;
}

/* ========================================
   OCEAN WAVE BACKGROUND
   ======================================== */

.ocean-bg {
  background: linear-gradient(180deg,
      var(--sand-light) 0%,
      #e8f4fd 50%,
      var(--sand-light) 100%);
  position: relative;
}

.ocean-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%234db6e8' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}

/* ========================================
   AUTHOR SECTION (HOME)
   ======================================== */

.author-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.author-home-image {
  position: relative;
}

.author-home-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  box-shadow: var(--shadow-lg);
  transition: border-radius 0.5s ease;
  aspect-ratio: 1;
  object-fit: cover;
}

.author-home-photo:hover {
  border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
}

.author-home-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.author-home-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--seafoam);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.author-home-content {
  padding: 20px 0;
}

.author-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-mid);
  border-left: 4px solid var(--seafoam);
  padding-left: 24px;
  margin: 24px 0;
  line-height: 1.6;
}

.author-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.author-fact {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.author-fact-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.author-fact-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-fact-text {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ========================================
   TESTIMONIALS / REVIEWS
   ======================================== */

.reviews-section {
  background: linear-gradient(135deg, var(--ocean-dark), var(--ocean-blue));
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(77, 182, 232, 0.08) 0%, transparent 60%);
}

.reviews-section .section-label {
  color: var(--seafoam-light);
}

.reviews-section .section-title {
  color: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.review-stars {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--seafoam), var(--ocean-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.review-author-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.review-author-detail {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   NEWSLETTER
   ======================================== */

.newsletter-section {
  background: linear-gradient(135deg, var(--sand-warm), #fce8d5);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '🐚';
  font-size: 120px;
  position: absolute;
  top: -20px;
  right: -20px;
  opacity: 0.1;
}

.newsletter-section::after {
  content: '🐠';
  font-size: 100px;
  position: absolute;
  bottom: -20px;
  left: -20px;
  opacity: 0.1;
}

.newsletter-section .section-title {
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 32px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border: 2px solid rgba(45, 125, 210, 0.2);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.newsletter-input:focus {
  border-color: var(--ocean-mid);
  box-shadow: 0 0 0 4px rgba(45, 125, 210, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--ocean-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--seafoam-light);
  margin-bottom: 16px;
}

.footer-brand-description {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.7);
}

.footer-social-link:hover {
  background: var(--ocean-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--seafoam-light);
  transform: translateX(4px);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-heart {
  color: var(--coral);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

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

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

/* ========================================
   PAGE HERO (Inner Pages)
   ======================================== */

.page-hero {
  background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-blue) 100%);
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-hero-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--seafoam-light);
  position: relative;
  z-index: 1;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.page-hero-breadcrumb a:hover {
  color: var(--white);
}

.page-hero-breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* ========================================
   BOOKS PAGE
   ======================================== */

.books-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 50px;
  border: 2px solid transparent;
  background: var(--white);
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ocean-mid);
  color: var(--white);
  border-color: var(--ocean-mid);
  transform: translateY(-1px);
}

.books-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}

.book-item {
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  animation: fadeInUp 0.5s ease both;
}

.book-item.hidden {
  display: none;
}

.book-item-cover {
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: 16px;
  background: var(--ocean-dark);
}

.book-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-item:hover .book-item-cover img {
  transform: scale(1.05);
}

.book-item-cover .book-item-hover {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.book-item:hover .book-item-hover {
  opacity: 1;
}

.book-item-buy-btn {
  background: linear-gradient(135deg, #ff9900, #ffb340);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: var(--transition);
}

.book-item-buy-btn:hover {
  transform: scale(1.05);
}

.book-item-series {
  font-family: 'Caveat', cursive;
  font-size: 0.85rem;
  color: var(--ocean-mid);
  margin-bottom: 4px;
}

.book-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.book-item-subtitle {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-hero {
  background: linear-gradient(160deg, var(--ocean-dark) 0%, #1a5a8a 50%, var(--seafoam) 100%);
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}

.about-author-wrap {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 80px;
  align-items: start;
}

.about-author-photo-wrap {
  position: relative;
  position: sticky;
  top: 100px;
}

.about-author-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  object-fit: cover;
}

.about-author-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-author-badge-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ocean-mid);
  display: block;
  line-height: 1;
}

.about-author-badge-text {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content p strong {
  color: var(--text-dark);
}

.about-milestones {
  margin: 48px 0;
}

.about-milestone {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.about-milestone:last-child {
  border-bottom: none;
}

.about-milestone-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ocean-mid);
  min-width: 60px;
  padding-top: 2px;
}

.about-milestone-content-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.about-milestone-content-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

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

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ocean-mid), var(--seafoam));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-item-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--sand-light);
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--ocean-mid);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(45, 125, 210, 0.1);
}

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

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

@media (max-width: 1024px) {
  .featured-book {
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .author-home {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
    z-index: 1001;
    position: relative;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }

  .featured-book {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .featured-book-cover {
    max-width: 220px;
    margin: 0 auto;
  }

  .author-home {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .author-home-photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-author-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .newsletter-section {
    padding: 40px 32px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 24px;
  }

  .author-facts {
    grid-template-columns: 1fr;
  }

  .books-all-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  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;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */

#page-loader {
  position: fixed;
  inset: 0;
  background: var(--ocean-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.5s ease;
}

#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-wave {
  display: flex;
  gap: 6px;
}

.loader-wave span {
  width: 12px;
  height: 12px;
  background: var(--seafoam-light);
  border-radius: 50%;
  animation: loaderBounce 0.8s ease-in-out infinite;
}

.loader-wave span:nth-child(2) {
  animation-delay: 0.1s;
}

.loader-wave span:nth-child(3) {
  animation-delay: 0.2s;
}

.loader-wave span:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes loaderBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* SEA SHELL SEPARATOR */
.shell-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--ocean-light);
  font-size: 1.2rem;
}

.shell-sep::before,
.shell-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ocean-light), transparent);
}