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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.5;
  background-color: var(--sand-light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40%;
  height: 3px;
  background-color: var(--misty-blue);
  transition: width var(--transition-medium);
}

h2:hover::after {
  width: 100%;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--misty-blue-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--misty-green-dark);
}

section {
  padding: var(--space-xl) 0;
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.primary-btn {
  background-color: var(--misty-blue);
  color: var(--white);
}

.primary-btn:hover {
  background-color: var(--misty-blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-medium);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo-container {
  flex: 0 0 120px;
}

.logo {
  max-height: 60px;
  transition: all var(--transition-fast);
}

.logo.small {
  max-height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-links li a {
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--misty-green);
  transition: width var(--transition-medium);
}

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

.language-switcher {
  display: flex;
  gap: var(--space-xs);
}

.lang-btn {
  background: none;
  border: 1px solid var(--misty-blue);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.lang-btn:hover, .lang-btn.active {
  background-color: var(--misty-blue);
  color: var(--white);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--sand);
  margin-top: 80px;
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-sm);
  font-size: 4rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--text-medium);
  font-family: var(--font-heading);
  font-weight: 400;
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.about-text, .about-image {
  flex: 1;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.about-image img:hover {
  transform: scale(1.02);
}

/* Catalog Section */
.catalog {
  background-color: var(--sand-light);
  text-align: center;
}

.catalog-intro {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.book-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.book-cover {
  height: 300px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.book-info {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.book-author {
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.book-description {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

/* Contact Section */
.contact {
  background-color: var(--misty-blue-light);
  text-align: center;
  padding: var(--space-xxl) 0;
}

.contact h2 {
  color: var(--text-dark);
}

.contact p {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* Footer */
footer {
  background-color: var(--sand-dark);
  color: var(--text-dark);
  padding: var(--space-lg) 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-logo, .footer-links, .footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

/* Media Queries */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text, .about-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links, .language-switcher {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
  }
  
  .language-switcher.active {
    display: flex;
    justify-content: center;
    position: absolute;
    top: calc(100% + 180px);
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .book-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}