* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.logo-text h3 {
  color: #2c5530;
  font-size: 1.2rem;
  font-weight: 600;
}

.logo-text p {
  color: #666;
  font-size: 0.9rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #2c5530;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2c5530;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 85, 48, 0.7), rgba(44, 85, 48, 0.7)), url("../images/kantor2.jpg")
    center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.bg-light {
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #2c5530;
  margin-bottom: 1rem;
}

.section-line {
  width: 80px;
  height: 4px;
  background: #2c5530;
  margin: 0 auto;
}

/* Visi Misi Section */
.visi-misi-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.visi-card,
.misi-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card-icon {
  width: 80px;
  height: 80px;
  background: #2c5530;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon i {
  font-size: 2rem;
  color: white;
}

.visi-card h3,
.misi-card h3 {
  font-size: 1.8rem;
  color: #2c5530;
  margin-bottom: 1.5rem;
}

.visi-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.misi-card ul {
  list-style: none;
  text-align: left;
}

.misi-card li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
  color: #666;
}

.misi-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2c5530;
  font-weight: bold;
}

/* Tentang Section */
.tentang-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tentang-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item i {
  font-size: 1.5rem;
  color: #2c5530;
  width: 30px;
}

.info-item h4 {
  color: #2c5530;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.tentang-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Lokasi Section */
.lokasi-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.map-container {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#map {
  width: 100%;
  height: 100%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #666;
}

.lokasi-info {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.lokasi-info h3 {
  color: #2c5530;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.koordinat {
  margin-bottom: 2rem;
}

.koordinat p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.batas-wilayah h4,
.akses-lokasi h4 {
  color: #2c5530;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.batas-wilayah ul,
.akses-lokasi ul {
  list-style: none;
}

.batas-wilayah li,
.akses-lokasi li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.akses-lokasi li {
  border-bottom: none;
  padding: 0.3rem 0;
}

/* Sejarah Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #2c5530;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  background: #2c5530;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 45%;
  margin: 0 2.5%;
}

.timeline-item:nth-child(odd) .timeline-content,
.timeline-item:nth-child(even) .timeline-content {
  margin: 0;
}

.timeline-content h4 {
  color: #2c5530;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
}

/* Struktur Section */
.struktur-content {
  text-align: center;
}

.kepala-desa {
  margin-bottom: 3rem;
}

.official-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.official-card:hover {
  transform: translateY(-5px);
}

.official-card.main {
  max-width: 400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.official-photo {
  margin-bottom: 1.5rem;
}

.official-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #2c5530;
}

.official-card:not(.main) .official-photo img {
  width: 120px;
  height: 120px;
}

.official-info h3,
.official-info h4 {
  color: #2c5530;
  margin-bottom: 0.5rem;
}

.official-info h3 {
  font-size: 1.5rem;
}

.official-info h4 {
  font-size: 1.2rem;
}

.position {
  color: #666;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.period {
  color: #999;
  font-size: 0.9rem;
}

.perangkat-desa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Footer */
.footer {
  background: #2c5530;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .visi-misi-content,
  .tentang-content,
  .lokasi-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }

  .timeline-year {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-content {
    width: 100%;
    margin: 0;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0;
  }

  .perangkat-desa {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .official-card {
    padding: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2c5530;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-kunjungi {
  display: inline-block;
  background-color: #2c5530;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-top: 20px;
  text-align: center;
}

.btn-kunjungi:hover {
  background-color: #1f3c22;
}

