/* Hero Section */

.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  background: url("img/image.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 1s ease-out forwards;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards 0.3s;
}

.hero-buttons {
  margin-top: 20px;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards 0.6s;
}

.btn {
  padding: 12px 25px;
  font-size: 1.2rem;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
}

.btn-primary {
  background: #0e1836;
  border: none;
  color: white;
}

.btn-primary:hover {
  background: #0e1836;
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
}

.btn-outline-light:hover {
  background: white;
  color: black;
}

/* Animasi */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Bagian Kategori Buku */
.kategori-buku {
  background-image: radial-gradient(circle, #7bbbfe, #0e1836, #b6cfff);
}

.kategori-card {
  border: none;
  transition: transform 0.3s ease-in-out;
}

.kategori-card:hover {
  transform: scale(1.05);
}

.kategori-card img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

/* Bagian Daftar Buku */
.daftar-buku {
  background-image: radial-gradient(circle, #0e1836, #7bbbfe, #b6cfff);
}

.buku-card {
  border: none;
  transition: transform 0.3s ease-in-out;
}

.buku-card:hover {
  transform: scale(1.05);
}

.buku-card img {
  height: 250px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}
/* navbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.navbar {
  background: rgba(30, 30, 47, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: #7bbbfe;
}

.logo-img {
  width: 128px;
  height: 64px;
  object-fit: contain;
}

.logo:hover {
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  color: #0e1836;
  transform: translateY(-2px);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #0e1836;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger span {
  background: white;
  height: 3px;
  width: 100%;
  position: absolute;
  left: 0;
  transition: all 5s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 47, 0.68);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    padding: 0.5rem;
    font-size: 1.2rem;
  }
}
