/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  color: #f5f5f5;
  line-height: 1.6;
}

/* NAVBAR */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #1b5e20, #2e7d32);
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px;
  z-index: 1000;
}
.nav-brand {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 20px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { text-decoration: underline; }
.nav-toggle {
  display: none;
  background: none; border: none;
  color: white; font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px; right: 0;
    flex-direction: column;
    background: #2e7d32;
    width: 200px;
    padding: 15px;
    gap: 15px;

    /* Animasi */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  }
  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-toggle { display: block; }
}

/* HERO */
.hero {
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: #1e1e1e;
  padding-top: 60px;
}
.profile-photo {
  width: 140px; height: 140px;
  border-radius: 50%; margin-bottom: 20px;
}
.name { font-size: 2rem; margin-bottom: 10px; }
.quote {
  font-style: italic;
  font-size: 1.2rem;
  color: #a5d6a7;
  display: inline-block;
  border-right: 2px solid #a5d6a7;
  white-space: nowrap;
  overflow: hidden;
  min-height: 1.5em;
}

/* Tombol Hero */
.hero-buttons {
  margin-top: 20px;
  display: flex; gap: 15px; justify-content: center;
}
.hero-buttons a {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: flex; align-items: center; gap: 8px;
}
.btn-wa { background: #25d366; color: white; }
.btn-wa:hover { background: #20b857; }
.btn-yt { background: #ff0000; color: white; }
.btn-yt:hover { background: #cc0000; }

/* SECTION */
.section { padding: 80px 20px; max-width: 1000px; margin: auto; }
.section h2 { text-align: center; margin-bottom: 20px; }
.lead { text-align: center; margin-bottom: 20px; }

/* BUDIDAYA */
.budidaya-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.budidaya-card {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);

  /* Animasi slide-up + scale-in */
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: slideScaleIn 0.5s ease forwards;
}

/* Delay bertingkat */
.budidaya-card:nth-child(1) { animation-delay: 0.1s; }
.budidaya-card:nth-child(2) { animation-delay: 0.2s; }
.budidaya-card:nth-child(3) { animation-delay: 0.3s; }
.budidaya-card:nth-child(4) { animation-delay: 0.4s; }
.budidaya-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideScaleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.budidaya-photo { position: relative; }
.budidaya-photo img { width: 100%; display: block; }
.budidaya-photo .year {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.7);
  padding: 4px 8px; border-radius: 6px;
  font-size: 0.9rem;
}
.budidaya-info { padding: 15px; }




/* PENCApaian */
.decor-line {
  height: 3px;
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
  margin: 20px auto; border-radius: 2px;
}
.achievement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px; margin-top: 30px;
}
.achievement-item {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}
.achievement-item .label { font-weight: bold; display: block; margin-bottom: 10px; }
.achievement-item .value { font-size: 1.5rem; color: #a5d6a7; }
.glow { text-shadow: 0 0 8px #81c784; }

/* Omzet */
.omzet-card {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  text-align: center;
  margin: 40px auto 0;
  padding: 25px 20px;
  border-radius: 16px;
  max-width: 420px;
  box-shadow: 0 0 20px rgba(46,125,50,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}
.omzet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(76,175,80,0.7);
}
.omzet-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #c8e6c9;
}
.omzet-card p {
  font-size: 2rem;
  font-weight: bold;
  color: #ffeb3b;
  text-shadow: 0 0 10px #fdd835, 0 0 20px #fbc02d;
  letter-spacing: 1px;
}

/* KONTAK */
.contact-row {
  display: flex; flex-wrap: wrap;
  gap: 20px; justify-content: center;
  margin-top: 20px;
}
.contact-card {
  flex: 1; min-width: 220px;
  padding: 15px 20px; border-radius: 12px;
  text-decoration: none; color: white;
  display: flex; align-items: center; gap: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.contact-card i { font-size: 2rem; }
.contact-card.wa { background: #25d366; }
.contact-card.wa:hover {
  background: #20b857;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(32,184,87,0.6);
}
.contact-card.yt { background: #ff0000; }
.contact-card.yt:hover {
  background: #cc0000;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(204,0,0,0.6);
}

/* FOOTER */
.footer { background: #1b5e20; text-align: center; padding: 20px; }

/* ANIMASI */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Foto budidaya: kasih background fallback */
.budidaya-photo img {  
  border: 2px solid green !important;  
}  
.budidaya-photo img {
  width: 100%;
  display: block;
  min-height: 150px;
  object-fit: cover;
  background: #2e7d32; /* hijau sebagai placeholder */
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination button {
  background: #263238;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.pagination button:hover {
  background: linear-gradient(135deg, #2e7d32, #66bb6a);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(46,125,50,0.6);
}

.pagination button.active {
  background: linear-gradient(135deg, #1b5e20, #43a047);
  font-weight: bold;
  color: #ffeb3b;
  box-shadow: 0 0 15px rgba(67,160,71,0.8);
  transform: scale(1.1);
}

.pagination button:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}

/* Highlight animasi untuk kartu budidaya */
.budidaya-card.highlight {
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.9);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* FITUR META */
#fitur {
  text-align: center;
  padding: 60px 20px;
}

#fitur h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #c8e6c9;
}

#fitur .lead {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #a5d6a7;
}

.fitur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.fitur-card {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: fiturIn 0.8s ease forwards;
}

.fitur-card:nth-child(1) { animation-delay: 0.2s; }
.fitur-card:nth-child(2) { animation-delay: 0.4s; }
.fitur-card:nth-child(3) { animation-delay: 0.6s; }

.fitur-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(76,175,80,0.7), 0 0 20px rgba(67,160,71,0.8);
}

.fitur-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.fitur-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #81c784;
}

.fitur-desc {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.5;
}

@keyframes fiturIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}