/* CSS utama untuk Profil Kampung Pugeran (dummy) */

:root {
  --bg: #0f1620;
  --bg-elev: #131c28;
  --text: #e6edf6;
  --body-text: #dbe7f3;
  --muted: #9fb0c3;
  --primary: #3abff8;
  --primary-600: #27a8e1;
  --accent: #a78bfa;
  --success: #34d399;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #223044;
  --shadow: rgba(3, 10, 20, 0.35);
  --hero-text: #e6edf6;
  --hero-muted: #dbe7f3;
}

/* Light mode custom palette */
body[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --text: #191e2b;
  --body-text: #3c4a63;
  --muted: #4b5565;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --accent: #c026d3;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --border: #e2e8f0;
  --shadow: rgba(15, 23, 42, 0.12);
  --hero-text: #e6edf6;
  --hero-muted: #dbe7f3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.narrow {
  width: min(820px, 92%);
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 24px;
}

.two-cols {
  grid-template-columns: 1.2fr 1fr;
}

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

@media (max-width: 920px) {
  .two-cols,
  .three-cols {
    grid-template-columns: 1fr;
  }
}

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 22, 32, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

body[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
}

.theme-toggle {
  appearance: none;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  padding: 2px;
}

.theme-toggle::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transform: translateX(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body[data-theme="dark"] .theme-toggle::after {
  transform: translateX(22px);
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(19, 28, 40, 0.85);
}

@media (max-width: 880px) {
  .theme-toggle {
    margin-left: auto;
  }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 64px 0 auto 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { display: grid; gap: 0; }
  .site-nav li { border-top: 1px solid var(--border); }
  .site-nav a { display: block; padding: 14px 4%; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15,22,32,0.35), rgba(15,22,32,0.75)), url('../images/balai.webp') center/cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-content { text-align: center; color: var(--hero-text); }

.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 8px;
  color: var(--hero-text);
}

.hero-subtitle { color: var(--hero-muted); margin: 0 0 20px; font-size: clamp(1rem, 2.2vw, 1.15rem); }

.hero-cta { display: flex; gap: 14px; justify-content: center; }

body[data-theme="light"] .hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}

body[data-theme="light"] .hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--shadow); }

.btn-primary { background: var(--primary); color: #0a0f18; }
.btn-primary:hover { background: var(--primary-600); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: #0f1620; }

.hero-scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); opacity: .7; }
.hero-scroll .chevron { display: inline-block; width: 24px; height: 24px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); animation: floatDown 1.9s infinite; }

@keyframes floatDown { 0%, 100% { transform: translate(-2px, -2px) rotate(45deg);} 50% { transform: translate(2px, 2px) rotate(45deg);} }

/* Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section-balanced { background: linear-gradient(180deg, rgba(19,28,40,.35), rgba(19,28,40,0)); }
body[data-theme="light"] .section-balanced { background: linear-gradient(180deg, rgba(209, 231, 204, 1), rgba(43,66,41,0.95)); }
body[data-theme="light"] .section-balanced {
  --text: #fdfdf7;
  --body-text: #f3f8ff;
  --muted: #e1ecff;
}
.section-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 12px; }
.section-intro { color: var(--muted); margin: 0 0 28px; }

.content p { margin: 0 0 14px; color: var(--body-text); }
.content .list { margin: 12px 0 0; padding-left: 18px; color: var(--body-text); }
.media img { border-radius: 14px; box-shadow: 0 18px 48px var(--shadow); border: 1px solid var(--border); }

/* Image Carousel */
.image-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px var(--shadow);
  border: 1px solid var(--border);
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
}

/* Timeline */
.timeline { position: relative; margin: 28px 0 0; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-left: 36px; margin: 18px 0; }
.timeline-dot { position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(167,139,250,.15); }
.timeline-content h3 { margin: 0 0 6px; }
.timeline-content p { margin: 0; color: var(--body-text); }

/* Cards */
.cards { margin-top: 12px; }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 36px var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px var(--shadow); }
.card img { height: 200px; object-fit: cover; }
.card-body { padding: 16px; }
.card-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card-body p { margin: 0; color: var(--body-text); }

/* Activities Carousel */
.activities-carousel-wrapper {
  margin-top: 28px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.activities-carousel {
  display: flex;
  gap: 20px;
  will-change: transform;
}

.activities-carousel:hover {
  animation-play-state: paused;
}

.activities-carousel .card {
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
}

@keyframes slideInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

@media (max-width: 920px) {
  .activities-carousel .card {
    flex: 0 0 280px;
    min-width: 280px;
  }
}

@media (max-width: 560px) {
  .activities-carousel .card {
    flex: 0 0 260px;
    min-width: 260px;
  }
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 28px var(--shadow); position: relative; }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  min-height: 200px;
}

.gallery-more:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px var(--shadow);
  background: var(--bg);
}

.gallery-more-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.gallery-more-icon {
  font-size: 3rem;
  opacity: 0.8;
}

.gallery-more-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 920px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0b111a; border-top: 1px solid var(--border); margin-top: 24px; }

body[data-theme="light"] .site-footer {
  background: #f9fafb;
}
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 32px 0; }
.footer-brand h3 { margin: 0 0 8px; font-family: "Playfair Display", Georgia, serif; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: var(--text); }
.copyright { border-top: 1px solid var(--border); padding: 12px 0; color: var(--muted); font-size: .95rem; }

@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.is-visible { opacity: 1 !important; transform: translateY(0) scale(1) !important; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 10, 18, 0.8); display: none; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox-image { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 12px; box-shadow: 0 24px 64px var(--shadow); border: 1px solid var(--border); }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 10px 28px var(--shadow); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: rgba(19,28,40,0.85); color: var(--text); font-size: 20px; cursor: pointer; box-shadow: 0 10px 28px var(--shadow); display: grid; place-items: center; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.lightbox-nav:hover, .lightbox-close:hover { background: var(--bg); }

/* Video */
.video-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.video-wrapper {
  width: min(1024px, 100%);
  margin-inline: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: 0 18px 48px var(--shadow);
}
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.drive-video {
  cursor: pointer;
}

.drive-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.drive-video-play {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 15, 24, 0.55);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.25s ease;
}

.drive-video-play:hover,
.drive-video-play:focus-visible {
  background: rgba(10, 15, 24, 0.7);
  transform: scale(1.02);
  outline: 2px solid var(--primary);
  outline-offset: -8px;
}

.drive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.drive-video.is-loaded {
  cursor: default;
}

.drive-video.is-loaded .drive-video-thumb,
.drive-video.is-loaded .drive-video-play {
  opacity: 0;
  pointer-events: none;
}

.drive-video.is-loaded iframe {
  opacity: 1;
  pointer-events: auto;
}


