:root {
  --color-bg: #F3DEBA;
  --color-pink: #ABC4AA;
  --color-card: #F3DEBA;
  --color-accent: #A9907E;
  --color-text-dark: #675D50;
  --color-text-light: #675D50;
  --color-red: #A9907E;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-dark);
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

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

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(243, 222, 186, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(169, 144, 126, 0.3);
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

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

.nav-social {
  display: flex;
  align-items: center;
  color: var(--color-text-dark);
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-social:hover {
  color: var(--color-red);
  transform: scale(1.1);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  padding-top: 100px;
  align-items: center;
  gap: 32px;
  list-style: none;
  transition: right 0.4s ease;
}

.nav-links.active {
  right: 0;
}

.nav-links li a {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--color-text-dark);
  color: var(--color-bg);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 400;
  font-size: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 80px 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: linear-gradient(to bottom, var(--color-pink) 0%, var(--color-bg) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 500;
  margin-bottom: 16px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-text-dark);
  color: var(--color-bg);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  width: fit-content;
  animation: gentleBounce 2s infinite ease-in-out;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(169, 144, 126, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(169, 144, 126, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(169, 144, 126, 0); }
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Book Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
}

.book-animation {
  width: 120px;
  height: 80px;
  position: relative;
  perspective: 1000px;
  animation: float 6s ease-in-out infinite;
}

.book {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transform: rotateX(20deg) rotateY(-20deg);
}

.cover {
  width: 100%;
  height: 100%;
  background-color: var(--color-text-dark);
  border-radius: 4px;
  position: absolute;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateZ(-10px);
}

.page {
  width: 48%;
  height: 90%;
  background-color: white;
  position: absolute;
  top: 5%;
  right: 2%;
  border-radius: 2px;
  transform-origin: left center;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.page-1 { animation: pageTurn 4s infinite 0s; }
.page-2 { animation: pageTurn 4s infinite 1.3s; }
.page-3 { animation: pageTurn 4s infinite 2.6s; right: 50%; transform-origin: right center; animation-direction: reverse;}

/* About Section */
.about {
  background-color: var(--color-bg);
  text-align: center;
}

.about .container {
  max-width: 600px;
}

.subtle-book {
  width: 60px;
  height: 40px;
  border-bottom: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  border-radius: 0 0 10px 10px;
  margin: 32px auto 0;
  position: relative;
}

.subtle-book::before, .subtle-book::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 10px;
  border-top: 2px solid var(--color-accent);
}
.subtle-book::before {
  left: 0;
  border-radius: 0 10px 0 0;
}
.subtle-book::after {
  right: 0;
  border-radius: 10px 0 0 0;
}

/* Why Bookharr Section */
.why {
  background-color: var(--color-pink);
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background-color: var(--color-card);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(169, 144, 126, 0.4);
}

.icon {
  color: var(--color-text-dark);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

/* Categories Section */
.categories {
  background-color: var(--color-bg);
  text-align: center;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.category-pill {
  padding: 12px 24px;
  background-color: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.category-pill:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: var(--color-text-dark);
  color: var(--color-bg);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
}

.tagline {
  color: rgba(243, 222, 186, 0.7);
  margin-bottom: 32px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.footer-links a {
  color: rgba(243, 222, 186, 0.8);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.copyright {
  border-top: 1px solid rgba(243, 222, 186, 0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(243, 222, 186, 0.5);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pageTurn {
  0% { transform: rotateY(0deg); opacity: 1; }
  50% { transform: rotateY(-180deg); opacity: 0; }
  100% { transform: rotateY(-180deg); opacity: 0; }
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in.visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */

/* Tablet (768px+) */
@media screen and (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  
  .hamburger { display: none; }
  
  .nav-links {
    position: static;
    flex-direction: row;
    height: auto;
    width: auto;
    padding-top: 0;
    background: none;
  }
  
  .nav-links li a {
    font-size: 1rem;
  }
  
  .nav-links li a:hover {
    color: var(--color-accent);
  }
  
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .hero-text {
    flex: 1;
    padding-right: 40px;
  }
  
  .hero-visual {
    flex: 1;
    height: 400px;
  }

  .book-animation {
    width: 200px;
    height: 140px;
  }
  
  .features-grid {
    flex-direction: row;
  }
  
  .feature-card {
    flex: 1;
  }
  
  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
}

/* Desktop (1024px+) */
@media screen and (min-width: 1024px) {
  h1 { font-size: 4.5rem; }
  
  section {
    padding: 120px 0;
  }
  
  .category-list {
    max-width: 800px;
    margin: 40px auto 0;
  }
  
  .category-pill {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .book-animation {
    animation: none;
  }
  
  .page {
    animation: none;
  }
  
  .fade-in, .slide-up {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  .coming-soon-badge,
  .pulse-dot {
    animation: none;
  }
  
  .feature-card:hover {
    transform: none;
  }
}
