/* ============================================
   THE INFINITE LIBRARY - SHARED STYLES
   Dark Wood Aesthetic with Golden Typography
   ============================================ */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* CSS Variables */
:root {
  /* Colors - Dark Wood & Gold */
  --wood-dark: #1a1209;
  --wood-medium: #2d1f12;
  --wood-light: #3d2b1a;
  --wood-accent: #4a3423;
  --gold-primary: #d4af37;
  --gold-light: #f4d03f;
  --gold-dark: #b8860b;
  --gold-pale: #c9b037;
  --cream: #f5f0e1;
  --cream-dark: #e8dcc8;
  --parchment: #f4e8d0;
  --shadow-deep: rgba(0, 0, 0, 0.8);
  --shadow-medium: rgba(0, 0, 0, 0.5);
  --shadow-light: rgba(0, 0, 0, 0.3);
  --glow-gold: rgba(212, 175, 55, 0.3);
  --glow-warm: rgba(244, 208, 63, 0.2);
  
  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-accent: 'Playfair Display', serif;
  
  /* Spacing */
  --section-padding: 120px;
  --container-max: 1400px;
  --container-narrow: 1000px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--wood-dark);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Wood Texture Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    );
  pointer-events: none;
  z-index: -1;
}

/* Wood grain overlay */
.wood-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(180deg, 
      rgba(26, 18, 9, 0.95) 0%, 
      rgba(45, 31, 18, 0.98) 50%, 
      rgba(26, 18, 9, 0.95) 100%
    );
  pointer-events: none;
  z-index: -2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.03em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
  font-size: 1.1rem;
  color: var(--cream-dark);
  margin-bottom: 1.5rem;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--glow-gold);
}

/* Golden Text Effect */
.gold-text {
  background: linear-gradient(
    135deg,
    var(--gold-dark) 0%,
    var(--gold-primary) 25%,
    var(--gold-light) 50%,
    var(--gold-primary) 75%,
    var(--gold-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.gold-text-glow {
  color: var(--gold-primary);
  text-shadow: 
    0 0 10px var(--glow-gold),
    0 0 20px var(--glow-gold),
    0 0 30px rgba(212, 175, 55, 0.1);
}

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Reading Progress Indicator */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold-dark),
    var(--gold-primary),
    var(--gold-light),
    var(--gold-primary)
  );
  z-index: 10000;
  box-shadow: 0 0 10px var(--glow-gold);
  transform-origin: left;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(
    180deg,
    rgba(26, 18, 9, 0.98) 0%,
    rgba(26, 18, 9, 0.9) 50%,
    transparent 100%
  );
  z-index: 1000;
  transition: var(--transition-smooth);
}

.main-nav.scrolled {
  background: rgba(26, 18, 9, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo i {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

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

.nav-links a.active {
  color: var(--gold-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-title {
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-description {
  font-size: 1.3rem;
  color: var(--cream-dark);
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  opacity: 0;
}

/* Decorative Elements */
.hero-decoration {
  position: absolute;
  pointer-events: none;
}

.corner-ornament {
  width: 150px;
  height: 150px;
  border: 2px solid var(--gold-dark);
  opacity: 0.3;
}

.corner-ornament.top-left {
  top: 100px;
  left: 50px;
  border-right: none;
  border-bottom: none;
}

.corner-ornament.top-right {
  top: 100px;
  right: 50px;
  border-left: none;
  border-bottom: none;
}

.corner-ornament.bottom-left {
  bottom: 50px;
  left: 50px;
  border-right: none;
  border-top: none;
}

.corner-ornament.bottom-right {
  bottom: 50px;
  right: 50px;
  border-left: none;
  border-top: none;
}

/* Floating Books Animation */
.floating-books {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-book {
  position: absolute;
  font-size: 3rem;
  color: var(--gold-dark);
  opacity: 0.1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--gold-dark) 0%,
    var(--gold-primary) 50%,
    var(--gold-dark) 100%
  );
  color: var(--wood-dark);
  font-weight: 600;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(212, 175, 55, 0.3),
    0 0 20px var(--glow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
  background: var(--gold-primary);
  color: var(--wood-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* Divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.divider-line {
  width: 100px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark),
    transparent
  );
}

.divider-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
}

/* Book Cards */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.book-card {
  perspective: 1000px;
  cursor: pointer;
}

.book-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.book-card:hover .book-card-inner {
  transform: rotateY(180deg);
}

.book-card-front,
.book-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.1);
}

.book-card-front {
  background: var(--wood-medium);
}

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

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

.book-card-back {
  background: linear-gradient(
    135deg,
    var(--wood-medium) 0%,
    var(--wood-light) 100%
  );
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 2px solid var(--gold-dark);
}

.book-card-back h4 {
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.book-card-back .author {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-pale);
  margin-bottom: 1rem;
}

.book-card-back .description {
  font-size: 0.95rem;
  color: var(--cream-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.book-card-back .year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

/* Bookshelf Animation */
.bookshelf {
  position: relative;
  padding: 2rem 0;
}

.bookshelf-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  perspective: 1000px;
}

.shelf-book {
  width: 40px;
  height: 180px;
  background: linear-gradient(
    90deg,
    var(--wood-accent) 0%,
    var(--wood-light) 50%,
    var(--wood-accent) 100%
  );
  border-radius: 3px 3px 0 0;
  position: relative;
  transform-origin: bottom;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 
    inset 2px 0 5px rgba(0, 0, 0, 0.3),
    inset -2px 0 5px rgba(0, 0, 0, 0.3);
}

.shelf-book::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--gold-dark);
  opacity: 0.5;
}

.shelf-book:hover {
  transform: translateY(-10px) rotateX(-5deg);
}

.shelf-board {
  height: 15px;
  background: linear-gradient(
    180deg,
    var(--wood-accent) 0%,
    var(--wood-dark) 100%
  );
  border-radius: 3px;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(255, 255, 255, 0.05);
}

/* Genre Cards */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.genre-card {
  background: linear-gradient(
    135deg,
    rgba(45, 31, 18, 0.8) 0%,
    rgba(61, 43, 26, 0.6) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.genre-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(212, 175, 55, 0.05) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.genre-card:hover::before {
  opacity: 1;
}

.genre-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(212, 175, 55, 0.1);
}

.genre-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease;
}

.genre-card:hover .genre-icon {
  transform: scale(1.1) rotateY(360deg);
}

.genre-card h3 {
  margin-bottom: 1rem;
}

.genre-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.genre-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Author Cards */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.author-card {
  text-align: center;
  padding: 2rem;
  background: rgba(45, 31, 18, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: var(--transition-smooth);
}

.author-card:hover {
  background: rgba(45, 31, 18, 0.8);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-5px);
}

.author-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 3px solid var(--gold-dark);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card h4 {
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.author-card .years {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.author-card .genre {
  font-size: 0.95rem;
  color: var(--cream-dark);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--gold-dark),
    var(--gold-primary),
    var(--gold-dark),
    transparent
  );
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  max-width: 400px;
  padding: 2rem;
  background: rgba(45, 31, 18, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  margin-right: 2rem;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: 2rem;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--gold-primary);
  border-radius: 50%;
  border: 4px solid var(--wood-dark);
  box-shadow: 0 0 10px var(--glow-gold);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: auto;
  left: -12px;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.timeline-title {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.timeline-description {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Quote Carousel */
.quote-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.quote-slide {
  text-align: center;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.8s ease;
}

.quote-slide.active {
  opacity: 1;
  position: relative;
}

.quote-text {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
}

.quote-text::before,
.quote-text::after {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold-dark);
  opacity: 0.5;
  position: absolute;
}

.quote-text::before {
  top: -20px;
  left: -30px;
}

.quote-text::after {
  content: '"';
  bottom: -40px;
  right: -30px;
}

.quote-author {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
}

.quote-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.quote-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quote-nav button.active,
.quote-nav button:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--glow-gold);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.05) 0%,
    transparent 50%,
    rgba(212, 175, 55, 0.05) 100%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  margin-bottom: 1.5rem;
}

.cta-description {
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--gold-pale);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(45, 31, 18, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

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

/* Footer */
.footer {
  padding: 60px 0 30px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(26, 18, 9, 0.8) 100%
  );
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  font-size: 1rem;
  color: var(--cream-dark);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-section a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--gold-dark);
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--wood-dark);
  transform: translateY(-3px);
}

/* Opening Book Animation */
.book-opening {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover {
  width: 300px;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--wood-medium) 0%,
    var(--wood-light) 50%,
    var(--wood-medium) 100%
  );
  border: 4px solid var(--gold-dark);
  border-radius: 5px 15px 15px 5px;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.book-cover::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-dark);
  opacity: 0.5;
}

.book-cover-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.book-cover-icon {
  font-size: 4rem;
  color: var(--gold-dark);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 60px;
  }
  
  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 0;
  }
  
  .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -48px;
    right: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 18, 9, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .genre-grid {
    grid-template-columns: 1fr;
  }
  
  .quote-text {
    font-size: 1.3rem;
  }
  
  .quote-text::before,
  .quote-text::after {
    font-size: 2rem;
  }
  
  .quote-text::before {
    left: -15px;
  }
  
  .quote-text::after {
    right: -15px;
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 100px 1rem 60px;
  }
  
  .corner-ornament {
    width: 80px;
    height: 80px;
  }
  
  .book-grid {
    grid-template-columns: 1fr;
  }
  
  .author-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
