* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  width: 60px;
  height: 50px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: rotate(360deg);
}

.logo h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.logo h3 span {
  color: red;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: crimson;
  transition: width 0.3s ease;
}

.navbar ul li a:hover {
  color: #2563eb;
  transform: translateY(-2px);
}

.navbar ul li a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 150px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 8px 16px;
  width: 100%;
}

.dropdown-menu li a {
  color: #475569;
  font-size: 0.9rem;
  display: block;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.dropdown-menu li a:hover {
  color: #2563eb;
  background-color: #f1f5f9;
}

.hero {
  background: linear-gradient(135deg, rgba(85, 59, 181, 0.139), rgba(85, 59, 181, 0.228)), url('l.jpg');
  background-size: cover;
  background-position: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: #ffffff;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-text {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  animation: slideInUp 0.8s ease-out;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 24px;
  opacity: 0.9;
  animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: #ffffff;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.explore-btn:hover {
  background-color: #2563eb;
  color: #ffffff;
  transform: scale(1.05);
}

.slider-container {
  padding: 40px 0;
  text-align: center;
  background-color: #ffffff;
}

.slider-container h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: #1e293b;
  animation: fadeIn 0.8s ease-out;
}

.slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.slider .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.book-card {
  flex: 0 0 25%;
  box-sizing: border-box;
  padding: 15px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.book-card img {
  width: 100%;
  height: 300px;
  object-fit: fill;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.book-card:hover img {
  transform: scale(1.1);
}

.book-card-content {
  margin-top: 10px;
  padding: 16px;
}

.book-card-content h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  font-weight: 600;
  color: #1e293b;
}

.book-card-content p {
  font-size: 0.9rem;
  color: #666;
}

.slider-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.slider-controls button {
  background: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
}

.slider-controls button:hover {
  background: #555;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dot.active {
  background: #333;
}

.services {
  padding: 64px 0;
  background-color: #f8fafc;
}

.services h2 {
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
  color: #1e293b;
  animation: fadeIn 0.8s ease-out;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideInUp 0.5s ease-out;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-card i {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: rotate(360deg);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  color: #64748b;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #1e293b;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: rotate(90deg);
}

.footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.footer-column {
  padding: 16px;
  animation: slideInUp 0.8s ease-out;
}

.footer-column h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li{
  sincerity-bottom: 8px;
}

.footer-column ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column ul li a:hover {
  color: #60a5fa;
  transform: translateX(5px);
}

.footer-column .logo {
  margin-bottom: 16px;
}

.footer-column .logo h3 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: #e2e2e2;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #60a5fa;
  transform: scale(1.2) rotate(15deg);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #475569;
  animation: slideInUp 1s ease-out;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    width: 100%;
  }

  .navbar.active {
    display: block;
    animation: slideInRight 0.5s ease-out;
  }

  .navbar ul {
    flex-direction: column;
    gap: 8px;
    background-color: #fff5;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .navbar ul li a {
    display: block;
    padding: 12px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: #f1f5f9;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
  }

  .header .container {
    flex-direction: row;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-column .logo {
    justify-content: center;
  }

  .book-card {
    flex: 0 0 50%;
  }
}

@media (max-width: 480px) {
  .book-card {
    flex: 0 0 100%;
  }
}