/* ============================================================
   JaSenta — Fresh & Clean Theme
   ============================================================ */
:root {
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --teal-700: #0F766E;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
section[id] { scroll-margin-top: 96px; }
::selection { background: #99F6E4; color: #134E4A; }
a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- Scrollbar lembut ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CCFBF1; border-radius: 999px; border: 2px solid #FAFDFB; }
::-webkit-scrollbar-thumb:hover { background: #99F6E4; }

/* ---------- Navbar ---------- */
#navbar {
  transition: background-color .45s var(--ease-smooth),
              box-shadow .45s var(--ease-smooth);
}
#navbar.navbar-scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgb(229 231 235 / .6), 0 12px 32px -18px rgb(15 118 110 / .25);
}
.nav-link { color: #4B5563; font-weight: 500; }
.nav-link:hover { color: var(--teal-600); background: #F0FDFA; }
.nav-link.active { color: var(--teal-700); background: #CCFBF1; font-weight: 600; }

/* ---------- Filter buttons ---------- */
.filter-btn {
  background: #fff;
  border: 1px solid #E5E7EB;
  color: #6B7280;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}
.filter-btn:hover { border-color: #5EEAD4; color: var(--teal-700); background: #F0FDFA; }
.filter-btn.active {
  background: linear-gradient(135deg, #14B8A6, #059669);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgb(20 184 166 / .55);
}

/* ---------- Line clamp ---------- */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-smooth), transform .8s var(--ease-smooth);
  will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Accessibility: kurangi gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}