:root {
  --mint: #e0f7f1;
  --mint-dark: #a0d6c5;
  --text: #333;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--mint);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

nav.navbar {
  background: var(--mint-dark);
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* Hero */
.hero {
  background: #c1ece4;
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 25px;
  background: var(--text);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
}

/* Categories */
.categories {
  padding: 60px 20px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.cat-box {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Featured Books */
.featured {
  padding: 60px 20px;
  text-align: center;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.book-card {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.book-cover {
  height: 180px;
  background: #ddd;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* Reviews */
.reviews {
  background: #d4f1e6;
  padding: 60px 20px;
  text-align: center;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.review-card {
  background: white;
  padding: 20px;
  border-radius: 6px;
  font-style: italic;
}

/* Contact */
.contact {
  padding: 60px 20px;
  text-align: center;
}

.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea {
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 5px;
}

.contact button {
  padding: 10px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--mint-dark);
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

.book-cover img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* === Why Choose Us Section === */
.why-choose-us {
  background-color: #e7fff2;
  padding: 60px 20px;
  text-align: center;
}

.why-choose-us .section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.reasons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.reason-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card h3 {
  font-size: 1.2rem;
  color: #2c786c;
  margin-bottom: 10px;
}

.reason-card p {
  font-size: 0.95rem;
  color: #555;
}

.reason-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* === Animations === */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slide-left {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-right {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  animation: fade-up 1s ease forwards;
}

.animate-fade-in {
  animation: fade-in 1.5s ease forwards;
}

.animate-slide-left {
  animation: slide-left 1s ease forwards;
}

.animate-slide-right {
  animation: slide-right 1s ease forwards;
}

/* Simple animation styles */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.animate.visible {
  animation: fadeInUp 1s ease forwards;
}
