:root {
  --text: #3d3127;
  --muted: #766554;
  --accent: #c29a63;
  --accent-dark: #8b6336;
  --brown: #6b4d31;
  --line: rgba(61, 49, 39, 0.12);
  --shadow: 0 15px 35px rgba(78, 56, 36, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: "Georgia", serif;
  color: var(--text);
  background-color: #f7f3ed;
  overflow-x: hidden;

  background-image:
  linear-gradient(rgba(245 ,241, 232, 0.85), rgba(245 ,241, 232, 0.85)),
  url(batikjawa.png);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 30px;
  overflow-x:hidden;
  margin:0;
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left:0;
  z-index: 999;
  background: rgba(82, 58, 36, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;

      background-image:
  linear-gradient(145deg, rgba(82, 58, 36, 0.95), rgba(82, 58, 36, 0.95)),
  url(batikjawa1.png);
  backdrop-filter: blur(10px);

}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: bold;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-btn {
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.9rem;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.1);
}

.css-logic {
  display: none;
}

.page {
  display: none;
  min-height: 100vh;
  padding: 60px 20p;
  position: relative;
  z-index: 1;
}

#nav-home:checked ~ main #home,
#nav-budaya:checked ~ main #budaya,
#nav-algoritma:checked ~ main #algoritma,
#nav-pameran:checked ~ main #pameran,
#nav-galeri:checked ~ main #galeri {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#nav-home:checked ~ .navbar label[for="nav-home"],
#nav-budaya:checked ~ .navbar label[for="nav-budaya"],
#nav-algoritma:checked ~ .navbar label[for="nav-algoritma"],
#nav-pameran:checked ~ .navbar label[for="nav-pameran"],
#nav-galeri:checked ~ .navbar label[for="nav-galeri"] {
  background: var(--accent);
  color: #2f2012;
  font-weight: bold;
}

.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* HOME */
.hero-banner {
  background: linear-gradient(145deg, rgba(140, 106, 71, 0.85), rgba(164, 130, 92, 0.85));
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  color: #fffdf8;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 40px;

    background-image:
  linear-gradient(145deg, rgba(140, 106, 71, 0.96), rgba(164, 130, 92, 0.96)),
  url(batikjawa5.png);
  backdrop-filter: blur(10px);

}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin: 0 0 15px;
  font-weight: normal;
}

.hero-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
  margin: 0;
}

.image-placeholder {
  margin: 0 auto 40px;
  border-radius: 25px;
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow);
  border: 5px solid white;
  width: 100%;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.quick-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.3s;
}

.quick-card:hover {
  transform: translateY(-5px);
  background: #fffcf5;
}

.quick-card .icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.quick-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.quick-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

/* TITLE */
.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title .mini {
  color: var(--accent-dark);
  font-weight: bold;
  letter-spacing: 2px;
  margin-top: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--brown);
  margin: 10px 0;
}

/* BUDAYA */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.culture-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.culture-pro-row {
  display: grid;
  gap: 30px;
}

.culture-pro-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
  align-items: center;
}

.pro-img {
  height: 280px;
  width:100%;
  overflow:hidden;
  padding:30px;
    border-radius:18px;
}

.pro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:center;
  display:block;
    border-radius:18px;
}

.pro-text {
  padding: 40px;
}

.pro-text h3 {
  color: var(--brown);
  font-size: 1.8rem;
  margin-top: 0;
}

.pro-text p {
  line-height: 1.7;
  color: var(--muted);
}

.culture-big-photo {
  margin-top: 35px;
  height: 420px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid white;
}

.culture-big-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ALGORITMA */
.cards-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stage-card {
  overflow: hidden;
  padding: 0;
  background: rgba(255,253,248,0.95);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.3s ease;
}

.stage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(78, 56, 36, 0.2);
}

.stage-top {
  background: linear-gradient(160deg, rgba(107,77,49,0.97), rgba(165,125,83,0.92));
  color: #fff8ef;
  padding: 28px 24px 22px;
}

.stage-no {
  font-size: 2.3rem;
  opacity: 0.22;
  font-weight: 700;
}

.stage-label {
  margin-top: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.85;
  letter-spacing: 1px;
}

.stage-title {
  margin-top: 10px;
  font-size: 1.7rem;
  font-weight: 700;
}

.stage-body {
  padding: 22px 24px 26px;
  background: linear-gradient(180deg, rgba(255,252,246,0.98), rgba(247,240,230,0.98));
}

.stage-body p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.6;
}

.open-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eee2d1;
  color: #4a3a31;
  font-weight: bold;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* MODAL SLIDE */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px;
}

.modal-bg-close {
  position: absolute;
  inset: 0;
  background: rgba(38, 28, 19, 0.7);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-card {
  width: min(1120px, 100%);
  height: 92vh;
  background: linear-gradient(180deg, #fffdf8, #f7efe5);
  border-radius: 30px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.7);
}

.modal-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(107,77,49,0.98), rgba(155,120,83,0.94));
  color: #fff8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.close-btn {
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-area {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 28px;
}

.slide {
  position: absolute;
  inset: 28px;
  background: rgba(255,250,242,0.82);
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 16px 40px rgba(61, 27, 38, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateX(50px);
  transition: 0.4s ease;
  pointer-events: none;
  z-index: 1;
  overflow-y: auto;
}

.slide-step {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(194,154,99,0.2);
  color: var(--accent-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

.slide h4 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 16px;
  color: var(--brown);
}

.slide p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.08rem;
  margin: 0;
}

/* FOTO SLIDE SUPER BESAR - bisa scroll ke bawah */
.slide-picture-box {
  width: 100%;
  height: auto;
  min-height: 650px;
  margin-top: 28px;
  border-radius: 24px;
  overflow: visible;
  background: rgba(107,77,49,0.08);
  border: 5px solid white;
  box-shadow: var(--shadow);
}

.slide-picture-box img {
  width: 100%;
  height: auto;
  min-height: 650px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.slide-picture-box video {
  width: 100%;
  height: auto;
  min-height: 650px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  overflow:hidden;
}

.slide-picture-box {
  height: auto;
  min-height: 420px;
}

.slide-picture-box img {
  min-height: 420px;
}

.slide-picture-box video {
  min-height: 420px;
}

/* ANGGOTA DI INPUT */
.input-members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.input-member-card {
  background: white;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107,77,49,0.12);
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}

.input-member-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.input-member-img {
  width: 100%;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: #eee2d1;
}

.input-member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.input-member-card h5 {
  margin: 10px 0 0;
  color: var(--brown);
  font-size: 0.95rem;
}

/* POPUP DETAIL ANGGOTA */
.member-detail-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.member-popup-bg {
  position: absolute;
  inset: 0;
  background: rgba(38, 28, 19, 0.7);
  backdrop-filter: blur(8px);
}

.member-popup-card {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  background: linear-gradient(180deg, #fffdf8, #f7efe5);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  overflow: hidden;
}

.member-popup-header {
  background: linear-gradient(135deg, rgba(107,77,49,0.98), rgba(155,120,83,0.94));
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.member-popup-header h3 {
  margin: 0;
}

.member-popup-body {
  padding: 28px;
}

.member-popup-body p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.member-close-btn {
  font-size: 1.4rem;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FOOTER MODAL */
.modal-footer {
  padding: 18px 24px;
  background: rgba(255,255,255,0.5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress span {
  display: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: bold;
}

.dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8cfc2;
  cursor: pointer;
  transition: 0.3s;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.ghost-btn,
.primary-btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  transition: 0.3s;
}

.ghost-btn {
  background: #eee2d1;
  color: #4a3a31;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #ddb57f);
  color: #392313;
}

/* SHOW MAIN MODAL */
#modal-slide-1:checked ~ .main-modal,
#modal-slide-2:checked ~ .main-modal,
#modal-slide-3:checked ~ .main-modal,
#modal-slide-4:checked ~ .main-modal,
#modal-slide-5:checked ~ .main-modal,
#modal-slide-6:checked ~ .main-modal,
#modal-slide-7:checked ~ .main-modal,
#modal-slide-8:checked ~ .main-modal,
#modal-slide-9:checked ~ .main-modal {
  display: flex;
}

/* SHOW ACTIVE SLIDE */
#modal-slide-1:checked ~ .main-modal .slide-1,
#modal-slide-2:checked ~ .main-modal .slide-2,
#modal-slide-3:checked ~ .main-modal .slide-3,
#modal-slide-4:checked ~ .main-modal .slide-4,
#modal-slide-5:checked ~ .main-modal .slide-5,
#modal-slide-6:checked ~ .main-modal .slide-6,
#modal-slide-7:checked ~ .main-modal .slide-7,
#modal-slide-8:checked ~ .main-modal .slide-8,
#modal-slide-9:checked ~ .main-modal .slide-9 {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

/* DOT ACTIVE */
#modal-slide-1:checked ~ .main-modal .dot-1,
#modal-slide-2:checked ~ .main-modal .dot-2,
#modal-slide-3:checked ~ .main-modal .dot-3,
#modal-slide-4:checked ~ .main-modal .dot-4,
#modal-slide-5:checked ~ .main-modal .dot-5,
#modal-slide-6:checked ~ .main-modal .dot-6,
#modal-slide-7:checked ~ .main-modal .dot-7,
#modal-slide-8:checked ~ .main-modal .dot-8,
#modal-slide-9:checked ~ .main-modal .dot-9 {
  width: 28px;
  background: var(--accent);
}

/* PROGRESS */
#modal-slide-1:checked ~ .main-modal .prog-1,
#modal-slide-2:checked ~ .main-modal .prog-2,
#modal-slide-3:checked ~ .main-modal .prog-3,
#modal-slide-4:checked ~ .main-modal .prog-4,
#modal-slide-5:checked ~ .main-modal .prog-5,
#modal-slide-6:checked ~ .main-modal .prog-6,
#modal-slide-7:checked ~ .main-modal .prog-7,
#modal-slide-8:checked ~ .main-modal .prog-8,
#modal-slide-9:checked ~ .main-modal .prog-9 {
  display: inline;
}

/* BUTTONS */
#modal-slide-1:checked ~ .main-modal .next-1,
#modal-slide-2:checked ~ .main-modal .prev-2,
#modal-slide-2:checked ~ .main-modal .next-2,
#modal-slide-3:checked ~ .main-modal .prev-3,
#modal-slide-3:checked ~ .main-modal .next-3,
#modal-slide-4:checked ~ .main-modal .prev-4,
#modal-slide-4:checked ~ .main-modal .next-4,
#modal-slide-5:checked ~ .main-modal .prev-5,
#modal-slide-5:checked ~ .main-modal .next-5,
#modal-slide-6:checked ~ .main-modal .prev-6,
#modal-slide-6:checked ~ .main-modal .next-6,
#modal-slide-7:checked ~ .main-modal .prev-7,
#modal-slide-7:checked ~ .main-modal .next-7,
#modal-slide-8:checked ~ .main-modal .prev-8,
#modal-slide-8:checked ~ .main-modal .next-8,
#modal-slide-9:checked ~ .main-modal .prev-9,
#modal-slide-9:checked ~ .main-modal .done-9 {
  display: inline-block;
}

#modal-slide-1:checked ~ .main-modal .prev-disabled {
  display: inline-block;
  opacity: 0.5;
  cursor: not-allowed;
}

/* POPUP LOGIC */
#detail-m1:checked ~ .popup-m1,
#detail-m2:checked ~ .popup-m2,
#detail-m3:checked ~ .popup-m3,
#detail-m4:checked ~ .popup-m4,
#detail-m5:checked ~ .popup-m5,
#detail-m6:checked ~ .popup-m6,
#detail-m7:checked ~ .popup-m7,
#detail-m8:checked ~ .popup-m8,
#detail-m9:checked ~ .popup-m9,
#detail-m10:checked ~ .popup-m10,
#detail-m11:checked ~ .popup-m11,
#detail-m12:checked ~ .popup-m12,
#detail-m13:checked ~ .popup-m13,
#detail-m14:checked ~ .popup-m14,
#detail-m15:checked ~ .popup-m15 {
  display: flex;
}

/* PAMERAN */
.pro-gallery-pameran {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pg-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 250px;
  box-shadow: var(--shadow);
  border: 3px solid white;
}

.pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.pg-large {
  grid-column: span 2;
  grid-row: span 2;
  height: 520px;
}

.photo-strip-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 40px 0;
  width: 100%;
}

.strip-card {
  flex: 1;
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  text-align: center;
}

.strip-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strip-card p {
  font-size: 0.85rem;
  font-weight: bold;
  color: #6b4d31;
  margin: 5px 0;
}

.center-video-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px 0;
}

.center-video-box h3 {
  margin-bottom: 20px;
  color: #6b4d31;
}

.main-video-wrapper {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.main-video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}

/* GALERI */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 15px;
}

.bento-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid white;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-1 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-2,
.bento-6 {
  grid-column: span 2;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .culture-pro-card {
    grid-template-columns: 1fr;
  }

  .input-members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .slide-picture-box {
    height: 320px;
  }

  .input-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .input-member-img {
    height: 140px;
  }

  .pro-gallery-pameran,
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pg-large,
  .bento-1,
  .bento-6 {
    grid-column: span 2;
  }

  .photo-strip-row {
    flex-wrap: wrap;
  }

  .strip-card {
    flex: 0 0 45%;
  }

  .main-video-wrapper {
    width: 100%;
  }

  .modal-footer {
    flex-direction: column;
    gap: 12px;
  }
}

