/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ================= HEADER ================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0e22a5;
  padding: 10px 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header img {
  width: 70px;
  height: auto;
}

.headernama {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.headernama .namee:first-child {
  font-size: 32px;
  color: #ffffff;
  font-weight: bold;
}

.headernama h2 {
  font-size: 14px;
  color: #dcdcdc;
  font-weight: normal;
}

/* ================= NAVBAR ================= */

.nav-container {
  position: relative;
  background: #2d2d2d;
  padding: 15px 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navigation {
  position: relative;
  display: flex;
  gap: 25px;
  align-items: center;
}

.navigation li {
  list-style: none;
  position: relative;
}

.navigation li a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  padding: 10px 18px;
  transition: 0.3s ease;
  z-index: 2;
  display: inline-block;
}

.navigation li.active a {
  color: #ffffff;
}

.highlight {
  position: absolute;
  background: #3160e0;
  height: 100%;
  width: 90px;
  top: 0;
  left: 0;
  border-radius: 30px;
  transition: 0.3s ease;
}

.navigation li a::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #3160e0;
  transition: 0.3s ease;
}

.navigation li:hover a::before {
  width: 80%;
}

.navigation li.active a::before {
  width: 0;
}

/* ================= BUTTON NAV ================= */

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s ease;
}

/* ================= HOME ================= */

.home {
  background-image: url("download (2).jpeg");
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: left;
  padding: 0 100px;
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.home-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  background: rgba(0, 0, 0, 0.45);
  padding: 30px;
  border-radius: 12px;
}

.home-content .judul {
  font-size: 18px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.home-content .tagline {
  font-size: 42px;
  line-height: 1.3;
  font-weight: 700;
}

/* ================= SECTION BUKU ================= */

.buku-section {
  text-align: center;
  padding: 60px 50px;
  background-color: #ffffff;
  font-family: "Poppins", sans-serif;
}

.buku-section .judul-buku {
  font-size: 36px;
  font-weight: 700;
  color: #00a2d9;
  margin-bottom: 10px;
}

.buku-section .deskripsi-buku {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

/* ================= KATEGORI ================= */

.kategori {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-kategori {
  background: transparent;
  border: 2px solid transparent;
  color: #333333;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-kategori.aktif,
.btn-kategori:hover {
  border: 2px solid #00a2d9;
  color: #00a2d9;
  font-weight: 600;
}

/* ================= CARD BUKU ================= */

.daftar-buku {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  justify-items: center;
}

.card-buku {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 190px;
  text-align: left;
  text-decoration: none;
}

.card-buku:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.card-buku img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.info-buku {
  padding: 12px 15px;
}

.info-buku h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 5px;
}

.info-buku p {
  font-size: 14px;
  color: #555555;
  margin: 0;
}

/* ================= FOOTER ================= */

.footer {
  background: linear-gradient(to bottom, #007bff, #004a9f);
  color: white;
  text-align: center;
  padding: 50px 20px 20px;
  position: relative;
  margin-top: 50px;
}

.wave {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 40px;
  background:
    radial-gradient(circle at 50% 120%, #007bff 35%, transparent 36%),
    radial-gradient(circle at 0% 100%, #007bff 35%, transparent 36%),
    radial-gradient(circle at 100% 100%, #007bff 35%, transparent 36%);
  background-size: 50px 40px;
  background-repeat: repeat-x;
}

.footer h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.footer p {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-links {
  margin: 15px 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
  transition: 0.3s ease;
}

.footer-links a:hover,
.footer .copyright a:hover {
  color: #ffea00;
}

.footer .copyright a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    text-align: center;
  }

  .headernama .namee:first-child {
    font-size: 24px;
  }

  .navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .home {
    padding: 0 20px;
    text-align: center;
  }

  .home-content .tagline {
    font-size: 28px;
  }

  .buku-section {
    padding: 40px 20px;
  }
}