* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

:root {
  --primary: #6a5acd; /* Slate blue */
  --secondary: #ff69b4; /* Hot pink */
  --accent: #ff1493; /* Deep pink */
  --light-blue: #e6f0ff; /* Very light blue */
  --light-pink: #fff0f5; /* Lavender blush */
  --dark: #4b0082; /* Indigo */
  --text: #333333;
  --light: #f8f9fa;
}

body {
  color: var(--text);
  background-color: #fefefe;
}

.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: white !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}
.nav-link::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  max-width: 100%;
}

.hero-section {
  background: linear-gradient(
      135deg,
      rgba(106, 90, 205, 0.85) 0%,
      rgba(75, 0, 130, 0.85) 100%
    ),
    url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #fefefe);
}

.book-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(106, 90, 205, 0.2);
}

.book-cover {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.price {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 90, 205, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.category-card {
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(106, 90, 205, 0.1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(106, 90, 205, 0.15);
  background: linear-gradient(
    135deg,
    var(--light-blue) 0%,
    var(--light-pink) 100%
  );
}

.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: white;
  padding: 60px 0 30px;
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: var(--dark);
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-bg {
  background: linear-gradient(
    135deg,
    var(--light-blue) 0%,
    var(--light-pink) 100%
  );
}

.badge-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

.badge-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.rating {
  color: #ffc107;
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
}

.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: white;
  padding: 60px 0;
  border-radius: 15px;
  margin: 50px 0;
  box-shadow: 0 10px 30px rgba(106, 90, 205, 0.2);
}

.form-control {
  border-radius: 30px;
  padding: 12px 20px;
  border: 2px solid transparent;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.25rem rgba(255, 105, 180, 0.25);
}

.input-group .btn {
  border-radius: 0 30px 30px 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary);
}

.testimonial-text {
  font-style: italic;
  color: #555;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark);
}

.author-role {
  color: var(--primary);
  font-size: 0.9rem;
}

.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
/* Dropdown menu: glassmorphism, shadow, and fade-in animation */
.navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(106, 90, 205, 0.15);
  border: none;
  animation: dropdownFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  min-width: 180px;
  padding: 0.5rem 0;
  transition: box-shadow 0.3s;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown items: color, hover effect, and icon animation */
.navbar .dropdown-item {
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: linear-gradient(
    90deg,
    var(--light-blue) 0%,
    var(--light-pink) 100%
  );
  color: var(--accent);
  transform: translateX(8px) scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.08);
}

/* Optional: Add a left border animation on hover */
.navbar .dropdown-item::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 4px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.navbar .dropdown-item:hover::before,
.navbar .dropdown-item:focus::before {
  opacity: 1;
}

/* Optional: Animate icons inside dropdown items (if present) */
.navbar .dropdown-item i,
.navbar .dropdown-item .bi {
  transition: transform 0.3s;
}

.navbar .dropdown-item:hover i,
.navbar .dropdown-item:hover .bi {
  transform: rotate(-10deg) scale(1.2);
}

.footer-links li a {
  text-decoration: none;
}

.footer-links li:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  /* transform: 0.3s; */
  /* height: 3px; */
  /* border-radius: 2px; */
  width: 100%;
  transition: width 0.3s;
}

.payment img {
  height: 30px;
  /* filter: grayscale(100%); */
  filter: brightness(0.7);
  transition: filter 0.3s;
}
