@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* === RESET DAN DASAR === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f9fafc;
  color: #333;
  line-height: 1.6;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #0D9488, #14B8A6);
  padding: 15px 40px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: linear-gradient(90deg, #0f766e, #0d9488);
  padding: 10px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.logo h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo span {
  color: #FFD700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #FFD700;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: #FFD700;
}

/* === HERO SECTION === */
.hero {
  background: url('https://source.unsplash.com/1600x700/?lake,toba,indonesia') no-repeat center/cover;
  color: #fff;
  text-align: center;
  padding: 130px 20px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-text {
  position: relative;
  z-index: 2;
  animation: slideUp 1.2s ease;
}

.hero-text h2 {
  font-size: 42px;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-text span {
  color: #FFD700;
}

.hero-text p {
  max-width: 650px;
  margin: 10px auto 20px;
  font-size: 16px;
}

.btn-primary {
  background: #FFD700;
  color: #0D9488;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: #fff;
  color: #0D9488;
  transform: scale(1.05);
}

/* === BERANDA / DASHBOARD === */
.beranda-section {
  padding: 70px 40px;
  background: #f4fdfc;
  animation: fadeIn 1s ease-in;
}

.beranda-section h2 {
  text-align: center;
  color: #0D9488;
  margin-bottom: 40px;
  font-weight: 700;
}

.chart-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.chart-card h3 {
  color: #0D9488;
  margin-bottom: 20px;
}

/* === BERITA === */
.berita-section {
  padding: 70px 40px;
  background: #f4fdfc;
}

.berita-section h2 {
  text-align: center;
  color: #0D9488;
  margin-bottom: 40px;
  font-weight: 700;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.news-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.news-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.news-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13,148,136,0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-item:hover::after {
  opacity: 1;
}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-item h3 {
  color: #0D9488;
  font-size: 18px;
  margin: 10px 15px 5px;
  position: relative;
  z-index: 2;
}

.news-item p {
  color: #555;
  font-size: 14px;
  margin: 0 15px 15px;
  position: relative;
  z-index: 2;
}

/* === DESA === */
.desa-section {
  padding: 70px 40px;
  background: #fff;
}

.desa-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #0D9488;
  font-weight: 700;
}

.desa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.desa-card {
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(135deg, #E0F7FA, #B2EBF2);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.desa-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.desa-card h3 {
  color: #0D9488;
  margin-bottom: 10px;
  font-weight: 700;
}

.desa-card p {
  font-size: 15px;
  line-height: 1.5;
}

/* === POTENSI === */
.potensi-section {
  padding: 70px 40px;
  text-align: center;
  background: #fff;
}

.potensi-section h2 {
  color: #0D9488;
  margin-bottom: 20px;
  font-weight: 700;
}

.potensi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.potensi-card {
  background: #f9fafc;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  overflow: hidden;
}

.potensi-card:hover {
  transform: translateY(-6px);
}

.potensi-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.potensi-card h4 {
  padding: 15px;
  color: #0D9488;
  font-weight: 600;
}

/* === KONTAK === */
.kontak-section {
  background: #f4fdfc;
  text-align: center;
  padding: 60px 40px;
}

.kontak-section h2 {
  color: #0D9488;
  margin-bottom: 20px;
}

.kontak-section p {
  font-size: 15px;
  color: #555;
  margin: 8px 0;
}

/* === FOOTER === */
.footer {
  background: #0D9488;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 50px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .hero-text h2 {
    font-size: 30px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .desa-grid, .news-list, .potensi-grid {
    grid-template-columns: 1fr;
  }

  .chart-card {
    width: 100%;
  }
}

/* === ANIMASI === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
