@import url('https://fonts.googleapis.com/css2?family=Inspiration&display=swap');

/* ==========================================================================
   Reset & Base Variables
   ========================================================================== */
:root {
  --bg-header: #381d08;
  --text-light: #f4efe9;
  --text-muted: #8b7969;
  --accent-gold: #edc237;
  --accent-gold-hover: #f7cf46;
  --btn-text: #381d08;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-script: 'Inspiration', cursive;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  overflow-x: clip;
}

section[id],
#buy-book {
  scroll-margin-top: 82px;
}

body {
  font-family: var(--font-sans);
  background-color: #fcf8ee;
  color: #222222;
  overflow-x: clip;
  width: 100%;
}

p,
h3 {
  font-family: 'Montserrat', sans-serif;
}

h1,
h2,
h4,
h5,
h6 {
  font-family: 'Cinzel', Georgia, serif;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Scroll Reveal & Keyframe Animations
   ========================================================================== */
@keyframes floatBooks {

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

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

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
  transform: translateY(38px);
}

.reveal-left {
  transform: translateX(-42px);
}

.reveal-right {
  transform: translateX(42px);
}

.reveal-zoom {
  transform: scale(0.9);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-zoom.revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
  background-color: var(--bg-header);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

/* Brand / Logo */
.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-light);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.brand-logo:hover {
  opacity: 0.9;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-gold);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active {
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA Button */
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-gold);
  color: var(--btn-text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-buy:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(237, 194, 55, 0.3);
}

.mobile-cta {
  display: none;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
  background-color: var(--accent-gold);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
  background-color: var(--accent-gold);
}

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 5;
  background-color: #e6cfa3;
  background-image: url('hero-desert-parchment-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 56px 0 40px;
  margin-bottom: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  position: relative;
}

.hero-content {
  max-width: 580px;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: #381d08;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-lead {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #4a2a10;
  margin-bottom: 12px;
  line-height: 1.45;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.68;
  color: #3E1D04;
  margin-bottom: 32px;
  max-width: 540px;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid #4a331c;
  background-color: rgba(235, 214, 175, 0.35);
  color: #381d08;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-outline:hover {
  background-color: #381d08;
  color: var(--text-light);
  transform: translateY(-1px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #7d6219;
  background-color: var(--accent-gold);
  color: #381d08;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 29, 8, 0.16);
}

/* Right Book Image */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 6;
}

.hero-books-img {
  width: 118%;
  max-width: 700px;
  height: auto;
  display: block;
  margin-top: -56px;
  margin-bottom: -155px;
  margin-right: -28px;
  animation: floatBooks 5s ease-in-out infinite;
  transition: filter 0.4s ease;
}

.hero-books-img:hover {
  filter: drop-shadow(0 24px 32px rgba(42, 22, 6, 0.3));
}

/* ==========================================================================
   Author Section Styles
   ========================================================================== */
.author-section {
  background-color: #fcf8ee;
  padding: 72px 0 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.author-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: end;
  gap: 48px;
}

.author-image-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.author-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
}

.author-content {
  padding-bottom: 68px;
  max-width: 580px;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.author-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: #381d08;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.author-bio {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.78;
  color: #3E1D04;
  margin-bottom: 16px;
}

.author-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 500px;
}

.author-signature {
  font-family: 'Inspiration', cursive;
  font-size: 3.1rem;
  color: #2b2119;
  line-height: 1;
  user-select: none;
}

/* ==========================================================================
   About The Book Section Styles
   ========================================================================== */
.about-book-section {
  background-color: #381d08;
  background-image: url('about-the-book-background.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 48px 0 54px;
  position: relative;
  overflow: hidden;
}

.about-book-header {
  margin-bottom: 28px;
}

.book-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.about-book-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-book-showcase {
  display: flex;
  align-items: center;
  position: relative;
}

.book-cover-card {
  flex: 0 0 255px;
  z-index: 2;
}

.book-cover-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.book-cover-img:hover {
  transform: translateY(-6px) rotate(-1deg) scale(1.02);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.55);
}

.book-details-box {
  flex: 1;
  border: 1.5px solid var(--accent-gold);
  border-left: none;
  border-radius: 0 16px 16px 0;
  padding: 40px 48px 40px 52px;
  margin-left: -6px;
  background-color: rgba(45, 22, 5, 0.28);
  backdrop-filter: blur(2px);
}

.book-details-lead {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 14px;
  line-height: 1.5;
}

.book-details-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.75;
  color: #b7a89a;
  margin-bottom: 16px;
}

.book-details-action {
  margin-top: 26px;
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-gold);
  color: #381d08;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-amazon:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(237, 194, 55, 0.3);
}

.amazon-icon {
  display: inline-block;
  margin-top: 1px;
}

/* ==========================================================================
   Travel Gallery Section Styles (Full Width)
   ========================================================================== */
.gallery-section {
  background-color: #fcf8ee;
  padding: 52px 0 56px;
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 24px;
}

.gallery-subtitle {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: #381d08;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gallery-fullwidth-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 16px 0 20px;
  user-select: none;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  padding: 36px 0;
  will-change: transform;
  backface-visibility: hidden;
  touch-action: pan-y;
}

.gallery-track.no-transition,
.gallery-track.no-transition .gallery-item {
  transition: none !important;
}

.gallery-item {
  flex: 0 0 330px;
  width: 330px;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0) scale(0.94);
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.gallery-item.active {
  transform: translateZ(0) scale(1.14);
  z-index: 3;
  box-shadow: 0 20px 40px rgba(56, 29, 8, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  pointer-events: none;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Pagination Dots */
.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  height: 24px;
  margin-top: 42px;
}

.gallery-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background-color: #f3dc7a;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-dot.active {
  width: 13px;
  height: 13px;
  transform: scale(1.18);
  background-color: #eab925;
  box-shadow: 0 0 0 5px rgba(237, 194, 55, 0.45);
}

/* ==========================================================================
   Contact Section Styles
   ========================================================================== */
.contact-section {
  background-color: #381d08;
  padding: 76px 0 84px;
  overflow: hidden;
}

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

.contact-info {
  max-width: 440px;
}

.contact-subtitle {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.contact-description {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.72;
  color: #9e8d7d;
  margin-bottom: 30px;
}

.btn-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-gold);
  color: #381d08;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-contact-cta:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(237, 194, 55, 0.28);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  color: #a89788;
}

.form-control {
  width: 100%;
  background-color: #f6f7f9;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: #2b2118;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder {
  color: #c5cad0;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(237, 194, 55, 0.22);
}

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

.btn-submit {
  width: 100%;
  background-color: var(--accent-gold);
  color: #381d08;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(237, 194, 55, 0.3);
}

/* ==========================================================================
   Footer Section Styles
   ========================================================================== */
.site-footer {
  background-color: #fcf8ee;
  padding-top: 52px;
  text-align: center;
  overflow: hidden;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 36px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #381d08;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition: opacity var(--transition);
}

.footer-brand:hover {
  opacity: 0.85;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #3E1D04;
  margin-bottom: 10px;
}

.footer-email {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 400;
  color: #3E1D04;
  margin-bottom: 22px;
  transition: color var(--transition);
}

.footer-email:hover {
  color: #381d08;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  transition: color var(--transition), transform var(--transition);
}

.social-link:hover {
  color: #381d08;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #dfd7c6;
  padding: 18px 0 22px;
}

.copyright-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: #3E1D04;
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1120px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-inner {
    gap: 16px;
  }

  .nav-list {
    gap: 20px;
  }

  .brand-logo {
    font-size: 1.12rem;
  }

  .btn-buy {
    padding: 10px 22px;
    font-size: 0.82rem;
  }

  .hero-section {
    padding: 48px 0 36px;
  }

  .hero-books-img {
    width: 106%;
    margin-top: -40px;
    margin-bottom: -125px;
    margin-right: 0;
  }

  .author-inner {
    gap: 32px;
  }

  .author-content {
    padding-bottom: 48px;
  }

  .book-cover-card {
    flex: 0 0 240px;
  }

  .book-details-box {
    padding: 32px 32px 32px 38px;
  }

  .gallery-track {
    gap: 24px;
  }

  .gallery-item {
    flex: 0 0 280px;
    width: 280px;
    height: 300px;
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 70px;
  }

  section[id],
  #buy-book {
    scroll-margin-top: 70px;
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav.open {
    max-height: 420px;
    padding: 24px 24px 32px;
  }

  .nav-list {
    flex-direction: column;
    gap: 18px;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 1rem;
    display: inline-block;
  }

  .mobile-cta {
    display: block;
    margin-top: 22px;
  }

  .mobile-cta .btn-buy {
    padding: 12px 36px;
    font-size: 0.92rem;
  }

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

  .hero-content {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-books-img {
    width: 100%;
    max-width: 500px;
    margin-top: -24px;
    margin-bottom: -118px;
    margin-right: 0;
  }

  .author-section {
    padding: 84px 0 0;
  }

  .author-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .author-content {
    order: 1;
    margin: 0 auto;
    padding-bottom: 12px;
  }

  .author-image-wrap {
    order: 2;
  }

  .author-img {
    max-width: 380px;
  }

  .author-footer {
    justify-content: center;
    margin: 0 auto;
    gap: 28px;
  }

  .about-book-section {
    padding: 60px 0 68px;
  }

  .about-book-header {
    text-align: center;
  }

  .about-book-showcase {
    flex-direction: column;
  }

  .book-cover-card {
    flex: none;
    width: 240px;
    margin-bottom: -28px;
  }

  .book-details-box {
    border-left: 1.5px solid var(--accent-gold);
    border-radius: 16px;
    margin-left: 0;
    padding: 48px 28px 32px;
    text-align: center;
  }

  .gallery-section {
    padding: 56px 0 64px;
  }

  .gallery-track {
    gap: 20px;
  }

  .gallery-item {
    flex: 0 0 250px;
    width: 250px;
    height: 280px;
  }

  .contact-section {
    padding: 60px 0 68px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    max-width: 560px;
    text-align: center;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-logo {
    font-size: 1.05rem;
  }

  .hero-section {
    padding: 40px 0 36px;
  }

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

  .hero-description {
    font-size: 0.86rem;
  }

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

  .btn-outline,
  .btn-gold {
    width: 100%;
    max-width: 280px;
  }

  .hero-books-img {
    max-width: 360px;
    margin-top: -16px;
    margin-bottom: -92px;
  }

  .author-title {
    font-size: 2rem;
  }

  .author-bio {
    font-size: 0.85rem;
  }

  .author-footer {
    flex-direction: column;
    gap: 18px;
  }

  .author-signature {
    font-size: 2.25rem;
  }

  .author-img {
    max-width: 300px;
  }

  .about-book-title {
    font-size: 2rem;
  }

  .book-cover-card {
    width: 200px;
  }

  .book-details-box {
    padding: 44px 20px 28px;
  }

  .book-details-text {
    font-size: 0.85rem;
  }

  .gallery-title {
    font-size: 1.85rem;
  }

  .gallery-item {
    flex: 0 0 220px;
    width: 220px;
    height: 245px;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-description {
    font-size: 0.85rem;
  }
}