/* ===================== VARIABEL ROOT ===================== */
:root {
  --color-primary: #e4630d;
  --color-secondary: #f4f4f4;
  --color-bg: #fafafa;
  --color-text: #333;
  --radius: 8px;
  --transition: 0.3s ease;
  --section-gap: 2rem;
  --border-style: 2px solid #ccc;
}

/* ===================== RESET & DASAR ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding-top: 80px;
}

/* ===================== LINK ===================== */
a {
  text-decoration: none;
  color: inherit;
}

/* ===================== GAMBAR UMUM ===================== */
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
  user-select: none;
  pointer-events: none;
}

/* ===================== HERO ===================== */
/* ===================== HERO CONTAINER FULL LAYAR ===================== */
.hero-container {
  position: relative;
  width: 100vw;        /* ✅ Lebar penuh layar */
  height: 70vh;       /* ✅ Tinggi penuh layar */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e6dedece; /* ✅ Latar belakang jika gambar tidak penuh */
  overflow: hidden;       /* ✅ Bisa dipertahankan jika ada animasi slider */
  margin: 0;
  padding: 0;
}

/* ===================== SLIDER UTAMA ===================== */
.hero-slider {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 2s ease-in-out;
}

/* ===================== SLIDE INDIVIDUAL ===================== */
.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===================== GAMBAR SLIDE ===================== */
.slide img,
.hero-img {
  width: 100vw;        /* ✅ Isi lebar penuh viewport */
  height: 100vh;       /* ✅ Isi tinggi penuh viewport */
  object-fit: contain; /* ✅ GAMBAR TIDAK TERPOTONG (utuh meskipun ada ruang kosong) */
  display: block;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}




/* ===================== TEKS DI HERO ===================== */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  border-radius: var(--radius);
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

/* ===================== GAMBAR KHUSUS ===================== */
.foto-pemimpin {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 3;
  object-fit: cover;
  border: var(--border-style);
  border-radius: var(--radius);
  margin: 0 auto;
}

.umkm-img,
.wisata-img,
.struktur-desa,
.img-center {
  display: block;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: var(--border-style);
  border-radius: var(--radius);
  margin: 1rem auto;
}

/* ===================== WRAPPER GAMBAR ===================== */
.image-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* ===================== INFO LEADER ===================== */
.leader-info {
  text-align: center;
  margin-bottom: 2rem;
}

/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
  border-bottom: 1px solid #ddd;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 45px;
  width: 45px;
  border-radius: 0;
}

.logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  transition: var(--transition);
}

nav a:hover {
  color: var(--color-primary);
}

/* ===================== UTAMA ===================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: var(--section-gap);
}

section {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

section h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

section h3 {
  margin-top: 2rem;
  color: var(--color-primary);
}

.paragraph-center {
  text-align: center;
  margin-bottom: 2rem;
}

.history p {
  margin: 0.5rem 0 1rem;
  text-align: justify;
}

/* ===================== ANIMASI SCROLL ===================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  /* Header dan Navbar */
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 0;
  }

  nav a {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
  }

  .logo img {
    height: 36px;
    width: 36px;
  }

  .logo span {
    font-size: 1rem;
  }

  /* Hero Text */
  .hero-text {
    font-size: 1.2rem;
    padding: 0.7rem 1rem;
    max-width: 90%;
    word-break: break-word;
  }

  /* Hero Container */
  .hero-container {
    height: 80vh;
  }

  .hero-img,
  .slide img {
    height: 100%;
    object-fit: cover;
  }

  /* Layout dan Section */
  main {
    padding: 0 0.7rem;
  }

  section {
    padding: 1rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  section h3 {
    font-size: 1.1rem;
  }

  .paragraph-center {
    font-size: 0.95rem;
  }

  /* Gambar Responsif */
  .foto-pemimpin,
  .umkm-img,
  .wisata-img,
  .struktur-desa,
  .img-center {
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    margin: 1rem auto;
  }

  /* Card Layout */
  .card {
    margin-bottom: 1.5rem;
  }

  /* Leader Info */
  .leader-info {
    font-size: 0.95rem;
  }
}
/* SEMBUNYIKAN HAMBURGER DI DESKTOP */
@media screen and (min-width: 769px) {
  .hamburger {
    display: none !important;
    position: relative; 
  }
}
