* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f7f2e8;
  color: #2b2b2b;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

/* LOADING */
#loader {
  position: fixed;
  inset: 0;
  background: #143c1e;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.loader-box {
  text-align: center;
  animation: pulse 1.5s infinite;
}

.loader-box h2 {
  color: #ffd76a;
  font-family: 'Playfair Display', serif;
  font-size: 34px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 0;
  background: rgba(20, 60, 30, 0.88);
  z-index: 999;
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff4c2;
  font-weight: 700;
  font-size: 20px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover {
  color: #ffd76a;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: url('../assets/hero.jpg') center/cover no-repeat;
}

.hero-overlay {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.35));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 30px;
  text-align: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 78px);
  margin: 0;
  text-shadow: 0 8px 25px rgba(0,0,0,0.65);
}

.hero p {
  font-size: 21px;
  margin: 18px 0 30px;
}

/* BUTTON */
.btn {
  display: inline-block;
  background: #2e7d32;
  color: white;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.btn:hover {
  background: #1b5e20;
  transform: translateY(-3px);
}

/* SECTION */
section {
  padding: 85px 0;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #2e7d32;
  text-align: center;
  margin-bottom: 16px;
}

.about p,
.virtual-tour p,
.map-section p,
.section-subtitle {
  max-width: 760px;
  margin: auto;
  text-align: center;
  color: #666;
  line-height: 1.8;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* CARD */
.card-container {
  margin-top: 45px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.card {
  width: 320px;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  color: #2e7d32;
  padding: 0 20px;
}

.card p {
  padding: 0 20px 24px;
  color: #666;
}

/* GALLERY */
.gallery-section {
  background: #efe6d3;
}

.filter {
  text-align: center;
  margin: 25px 0 35px;
}

.filter button {
  margin: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid #2e7d32;
  background: white;
  color: #2e7d32;
  cursor: pointer;
  font-weight: 600;
}

.filter button.active,
.filter button:hover {
  background: #2e7d32;
  color: white;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  transition: 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  padding: 30px;
}

#lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 18px;
}

#close-lightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

/* VIRTUAL TOUR */
.virtual-tour {
  background: #f7f2e8;
  text-align: center;
}

.fullscreen-btn {
  margin-top: 25px;
}

.tour-frame {
  margin-top: 35px;
  height: 650px;
  border-radius: 24px;
  overflow: hidden;
  background: black;
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

.tour-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* MAP */
.map-section {
  background: #efe6d3;
  text-align: center;
}

.map-frame {
  margin-top: 35px;
  height: 430px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.22);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FOOTER */
footer {
  background: #0d2614;
  color: white;
  text-align: center;
  padding: 24px;
}

/* BACK TO TOP */
#backTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2e7d32;
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: none;
  z-index: 999;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: 64px;
    right: 24px;
    width: 220px;
    background: #143c1e;
    display: none;
    flex-direction: column;
    padding: 22px;
    border-radius: 16px;
  }

  .menu.active {
    display: flex;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  section {
    padding: 65px 0;
  }

  .tour-frame {
    height: 430px;
  }

  .map-frame {
    height: 330px;
    .aksara-bali {
  font-family: 'Noto Sans Balinese', sans-serif;
  font-size: 30px;
  margin: 12px 0 8px;
  color: #ffd76a;
  letter-spacing: 3px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.7);
  animation: fadeBali 1.5s ease;
}

@keyframes fadeBali {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    .alamat {
  margin: 10px 0 20px;
  font-weight: 500;
  color: #444;
}
  }
}
  }
}