html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url( "IMG/Screenshot 2025-06-30 121048.png"); /* <-- gambar kau */
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
	font-family:  Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";}

/* Header Navigation */
header {
  background-color: transparent;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  background-color: #fff;
  width: 100%;                /* Full width dari kiri ke kanan */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  padding: 0px 20px;         /* Adjust ruang kiri-kanan ikut suka */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 90px; padding-left: 190px;
}


.logo span {
  font-weight: bold;
  color: #a1247c;
  font-size: 24px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 45px; padding-right: 90px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: #a1247c; /* match your logo color */
  border-radius: 2px;
}
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-left: 100px;
  padding-top: 100px;
  padding-bottom: 10px; /* ✅ reduce this value */
  position: relative;scroll-margin-top: 120px;
}

.text-content {
  padding-top:10px; padding-left: 90px;
}

.text-content h1 {
  font-size: 50px;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 0px; padding-top: 70px; font-family:   "droid-sans";
}

.text-content p {
  font-size: 25px;
  line-height: 2;
  color: #333; padding-top:90px; padding-left: 20px;
}
.text-content h1 {
  transition: all 0.3s ease;
}

.text-content h1:hover {
  transform: translateY(-10px);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Optional: adds a soft glow */
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: #a1247c;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a.active::after {
  transform: scaleX(1);
}
.book-stack {
  position: relative;
  width: 220px;
  height: 320px;
  margin-left: auto;
  margin-right: 90px;
}

.book-stack {
  position: relative;
  width: 250px; /* enough width for the visible front book */
  height: 360px;
  margin-right: 220px;
}

.book-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  z-index: 1;
  transform: translateX(60px) scale(0.9);
}

/* First (active) book */
.book-cover.active {
  z-index: 5;
  opacity: 1;
  transform: scale(1) translateX(-20px); /* tambah nilai negatif sini */
}

/* Second book (peeking) */
.book-cover.active + .book-cover {
  z-index: 4;
  opacity: 0.6;
  transform: translateX(30px) scale(0.95);
}

/* Third book */
.book-cover.active + .book-cover + .book-cover {
  z-index: 3;
  opacity: 0.4;
  transform: translateX(60px) scale(0.9);
}

/* Hide others */
.book-cover:not(.active):not(:nth-child(n+2)) {
  opacity: 0;
}
/* ABOUT SECTION */
.about-section {
  background: transparent;
  padding: 100px 150px 150px 150px;
  position: relative;
}

.about-section h1 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 50px; margin-top: 45px;
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.about-image {
  width: 300px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ABOUT TEXT */
.about-content p {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
#books {
  padding-top: 100px; /* ruang dari atas */
  scroll-margin-top: 120px; /* untuk scroll behavior */
}
.books-section {
  padding: 100px 60px 150px 60px; /* Top Right Bottom Left */
  scroll-margin-top: 120px;
}
.books-section h1 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 50px; margin-top: -50px;
}
.book-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.book-card {
  background-color: white;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  width: 200px;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card img {
  width: 100%;
  border-radius: 15px;
}

.book-card p {
  margin: 15px 0;
  font-weight: bold;
  min-height: 48px; /* ensures same height title block */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.view-btn {
  background-color: antiquewhite;
  color: saddlebrown;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}

/* #contact section */
#contact {
  min-height: 100vh;
  background-color: #f8f5f0;
  padding: 150px 20px;
  display: flex;
  align-items: flex-start;  /* sebelumnya center */
  justify-content: center;
}

.contact-section {
  text-align: center;
  width: 100%;
}

/* title */
.contact-section h2 {
  font-size: 40px;       /* dulu 32px */
  margin-bottom: 15px;
  color: #a1247c;
}
/* subtitle */
.contact-section p {
  font-size: 18px;       /* dulu 16px */
  margin-bottom: 40px;
  color: #555;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  margin: 30px auto 0 auto;
  text-align: left;margin-top: 10px; /* atau di sini */
}

.contact-left {
  flex: 1;
  min-width: 250px;
}

.contact-form {
  flex: 1;
  max-width: 400px;
}
/* icon & text container */
.contact-info div {
  margin-bottom: 20px;padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.contact-info div:hover {
  transform: scale(1.05);
}

/* icon gambar */
.contact-info img.contact-icon {
  width: 40px;     /* dulu 24px */
  height: 40px;
  object-fit: contain;padding-top: 10px;
}

/* text sebelah icon */
.contact-info span,
.contact-info a {
  font-size: 20px;   /* dulu 16px–18px */
  color: #333;
  font-weight: 500;
}



.contact-form {
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
  height: 120px;
}

.contact-form button {
  background-color: #a1247c;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #841964;
}