:root {
  --primary: #b6895b;
  --primary-dark: #9a7348;
  --bg: #0a0a0a;
  --bg-light: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #e0e0e0;
  --section-padding: 6rem 7% 3rem;
  --card-bg: rgba(26, 26, 26, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text-light);
  line-height: 1.6;
  background-image: 
    linear-gradient(135deg, rgba(10, 10, 10, 0.97) 0%, rgba(26, 26, 26, 0.95) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(182, 137, 91, 0.03) 35px, rgba(182, 137, 91, 0.03) 70px);
  background-attachment: fixed;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%);
  border-bottom: 2px solid var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  font-style: italic;
  text-shadow: 2px 2px 4px rgba(182, 137, 91, 0.3);
}

.navbar .navbar-logo span {
  color: var(--primary);
}

.navbar .navbar-nav a {
  color: var(--text-light);
  display: inline-block;
  font-size: 1.1rem;
  margin: 0 1rem;
  position: relative;
  padding-bottom: 0.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar .navbar-nav a:hover,
.navbar .navbar-nav a:focus {
  color: var(--primary);
  transform: translateY(-2px);
}

.navbar .navbar-nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.navbar .navbar-nav a:hover::after,
.navbar .navbar-nav a:focus::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar .navbar-extra a {
  color: var(--text-light);
  margin-left: 0.7rem;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#menu {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: 
    linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(182, 137, 91, 0.3) 100%),
    url('background.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 0 7%;
  color: var(--text-light);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top, rgba(182, 137, 91, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(10, 10, 10, 0.8) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 40%;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 0.8) 30%,
    transparent 100%
  );
  pointer-events: none;
}

.hero .content {
  max-width: 700px;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .content h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-weight: 800;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
}

.hero .content h1 span {
  color: var(--primary);
  display: inline-block;
  position: relative;
}

.hero .content h1 span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.hero .content p {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  line-height: 1.8;
}

.hero .content .cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1.2rem 3.5rem;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(182, 137, 91, 0.4);
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .content .cta:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(182, 137, 91, 0.6);
  border-color: var(--primary);
}

/* Sections Shared Styles */
.about,
.struktur,
.sejarah,
.potensi,
.data-penduduk,
.lokasi {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Section Background Alternating */
.about,
.sejarah,
.data-penduduk {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.5) 0%, rgba(10, 10, 10, 0.5) 100%);
  border-radius: 20px;
  margin-top: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
}

h2 span {
  color: var(--primary);
  position: relative;
}

h3 {
  color: var(--text-light);
  font-weight: 600;
}

p,
ul {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.8rem;
}

ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3rem;
}

/* About Section */
.about .row,
.struktur .row,
.potensi .row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.about-img,
.menu-card img {
  border-radius: 15px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.about-img:hover,
.menu-card img:hover {
  transform: scale(1.05);
}

.about-img {
  flex: 1 1 400px;
  overflow: hidden;
  border-radius: 15px;
}

.about .content {
  flex: 1 1 450px;
}

.about .content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.about .content h4 {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

/* Lokasi Section */
.lokasi-content {
  max-width: 1000px;
  margin: 0 auto;
}

.lokasi-map img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
  border: 3px solid var(--primary);
}

.lokasi-map p {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Struktur & Potensi Cards */
.menu-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  width: 260px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  margin-bottom: 2rem;
  border: 1px solid rgba(182, 137, 91, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(182, 137, 91, 0.1), transparent);
  transition: left 0.5s ease;
}

.menu-card:hover::before {
  left: 100%;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(182, 137, 91, 0.3);
  border-color: var(--primary);
}

.menu-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.menu-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.menu-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sejarah Section */
.sejarah-content {
  margin-top: 2rem;
}

.sejarah .sejarah-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-align: justify;
  padding: 0 1rem;
  line-height: 2;
}

/* Data Penduduk (Tabel) */
.data-penduduk h3 {
  color: var(--primary);
  margin: 2.5rem 0 1.5rem 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
}

.data-penduduk table {
  width: 100%;
  max-width: 800px;
  margin: 1.6rem auto 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
}

.data-penduduk th,
.data-penduduk td {
  padding: 1.3rem 1.5rem;
  text-align: left;
  color: var(--text-light);
  font-weight: 500;
  border-bottom: 1px solid rgba(182, 137, 91, 0.2);
}

.data-penduduk th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.data-penduduk tbody tr {
  transition: background-color 0.3s ease;
}

.data-penduduk tbody tr:hover {
  background-color: rgba(182, 137, 91, 0.1);
}

.data-penduduk tr:last-child td {
  border-bottom: none;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-light);
  margin-top: 4rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

footer .links {
  margin-bottom: 2rem;
}

footer .links a {
  color: var(--text-light);
  margin: 0 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

footer .links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-light);
  transition: width 0.3s ease;
}

footer .links a:hover::after {
  width: 100%;
}

footer .links a:hover {
  color: var(--bg);
  transform: translateY(-2px);
}

footer .credit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

footer .credit a {
  color: var(--text-light);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer .credit a:hover {
  color: var(--bg);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .about .row,
  .struktur .row,
  .potensi .row {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .navbar .navbar-nav a {
    margin: 0 0.6rem;
    font-size: 1rem;
  }
  
  .hero .content h1 {
    font-size: 2.8rem;
  }
  
  .hero .content p {
    font-size: 1.2rem;
  }
  
  h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .navbar {
    padding: 1rem 5%;
  }
  
  .navbar .navbar-nav a {
    font-size: 0.9rem;
    margin: 0 0.4rem;
  }
  
  .hero .content h1 {
    font-size: 2rem;
  }
  
  .hero .content p {
    font-size: 1rem;
  }
  
  .hero .content .cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .menu-card {
    width: 100%;
    max-width: 300px;
  }
}

