*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'segoe UI',sans-serif;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  z-index: 1000;
}

.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: 50px;
  color: #0a3d62;
  font-weight: bold;
}

.headernama h2 {
  font-size: 14px;
  color: #555;
  font-weight: normal;
}

body{
   min-height: 100vh;
   background-color:#ffffff;
   margin: 0;
   padding: 0;
} 

.nav-container{
    position: relative;
    background: #2d2d2d;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0,2);
}

.navigation{
    position: relative;
    display: flex;
    gap: 30px;
    color: #fff;
}

.navigasi li {
    list-style: none;
    position: relative;
}

.navigation li a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: 1.2em;
    padding: 10px 20px;
    transition: 0.3s;
    z-index: 2;
}
.navigation li.active a{
    color: #fff;
}

.highlight{
    position: absolute;
    background: #3160e0;
    height: 100%;
    width: 90px;
    top: 0;
    left: 0;
    border-radius: 30px;
    transition: 0.3s;
}

.navigation li a::before{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #3160e0;
    transition: 0.3s;
}

.navigation li:hover a::before{
    width: 80%;
}

.navigation li.active a::before{
    width: 0;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;

}

.btn-login {
  background: #1aa6b7;
  color: #fff;
}

.btn-login:hover {
  background: #14808a;
}

.btn-register {
  background: #1a39b7;
  color: #fff;
}

.btn-register:hover {
  background: #152e8f;
}

.logo {
  display:flex
}




.home {
  background-image:url(../perpustakaan.jpg);
  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;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.4);
  padding: 30px;
  border-radius: 12px;
}


.home-content .judul {
  font-size: 20px;
  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;
}





/* ====== BAGIAN BUKU DIGITAL ====== */
.buku-section {
  text-align: center;
  padding: 60px 50px;
  background-color: #fff;
  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: #333;
  margin-bottom: 30px;
}

/* Tombol Kategori */
.kategori {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-kategori {
  background: transparent;
  border: 2px solid transparent;
  color: #333;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-kategori.aktif {
  border: 2px solid #00a2d9;
  color: #00a2d9;
  font-weight: 600;
}

.btn-kategori:hover {
  border: 2px solid #00a2d9;
  color: #00a2d9;
}

/* Daftar Buku */
.daftar-buku {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  justify-items: center;
}

.card-buku {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 190px;
  text-align: left;
  text-decoration: none;
}

.card-buku:hover {
  transform: translateY(-6px);
}

.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: #111;
  margin-bottom: 5px;
}

.info-buku p {
  font-size: 14px;
  color: #555;
  margin: 0;
}






.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;
}

.footer-links a:hover {
  color: #ffea00;
}

.footer .copyright {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 15px
}
