/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  color: #5a5151;
  line-height: 1.7;
  background-color: #f9f6f2;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: #f0d5cc;
  font-weight: 700;
}

h4 {
  font-family: "Playfair Display", serif;
  color: #f59c7f;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: #5d4037;
  transition: color 0.3s ease;
}

a:hover {
  color: #8b0000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation — Dengan Batik 50% Transparan */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../image/batik.jpg");
  background-repeat: repeat;
  background-size: 100px 100px;
  opacity: 0.5;
  z-index: -1;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #5d4037;
  letter-spacing: 1px;
}

.logo span {
  color: #8b0000;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.1rem;
  color: #5d4037;
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.nav-links a:hover {
  color: #8b0000;
  background-color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../image/bgr.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #d4bfb9ff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.4rem;
  font-weight: 300;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sections */
section {
  padding: 7rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  color: #5d4037;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #8b0000;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #333;
}

.content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 300px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Footer */
footer {
  background-color: #1a120d;
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.footer-text {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.9rem;
  color: #ccc;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  background-color: #fff;
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lightbox img:hover {
  transform: scale(1.01);
}

.lightbox-caption {
  padding: 1rem;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  background-color: #faf9f7;
  border-top: 1px solid #eee;
  margin: 0;
  word-wrap: break-word;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  font-size: 50px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s, transform 0.2s;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #5d4037;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-close {
    top: -30px;
    right: -30px;
    font-size: 36px;
    width: 50px;
    height: 50px;
  }

  .lightbox-caption {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}
/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }
  section {
    padding: 5rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
}
