/* =====================================================================
   OKRATOKSIN | KARANTINA LAMPUNG — COKLAT KRAFT PAPER THEME
   Konsep: Dosier pemeriksaan karantina + 3D interaktif
===================================================================== */

:root {
  --ink:        #1B140F;
  --ink-soft:   #2A2019;
  --kraft:      #E4D5B7;
  --kraft-dark: #C8B287;
  --crema:      #F5ECDA;
  --stamp:      #A8311F;
  --roast:      #6B4226;
  --inspect:    #4DD8C0;
  
  --font-display: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --shadow: 0 12px 32px rgba(27,20,15,0.14);
  --trans: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--crema);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--kraft); }
::-webkit-scrollbar-thumb { background: var(--roast); border-radius: 3px; }

/* ── NAVBAR STICKY ───────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(228,213,183,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--roast);
  box-shadow: 0 4px 20px rgba(27,20,15,0.08);
  transition: var(--trans);
  transform-style: preserve-3d;
}
.navbar.scrolled {
  height: 56px;
  background: rgba(228,213,183,0.98);
  box-shadow: 0 6px 30px rgba(27,20,15,0.15);
}

.nav-brand {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none;
  transform: translateZ(20px);
  transition: transform 0.3s;
}
.nav-brand:hover { transform: translateZ(30px) scale(1.02); }
.nav-logos-group {
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-logos-group .nav-logo-unib {
  padding-right: 0.4rem;
  border-right: 1.5px solid rgba(139,90,43,0.25);
}
.nav-logo {
  width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(27,20,15,0.2));
}
.brand-text-wrap { display: flex; flex-direction: column; }
.brand-title {
  color: var(--ink);
  font-size: 1rem; font-weight: 700; line-height: 1.2;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.brand-sub {
  color: var(--roast);
  font-size: 0.65rem; line-height: 1;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex; list-style: none; gap: 0.25rem;
  transform-style: preserve-3d;
}
.nav-link {
  color: var(--roast);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transform: translateZ(10px);
}
.nav-link::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--stamp);
  opacity: 0;
  border-radius: 6px;
  transition: opacity 0.3s;
  z-index: -1;
}
.nav-link:hover {
  color: var(--crema);
  transform: translateZ(20px) translateY(-2px);
}
.nav-link:hover::before { opacity: 1; }
.nav-link.active {
  color: var(--stamp);
  background: rgba(168,49,31,0.1);
}

.hamburger {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer;
  transform: translateZ(15px);
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--roast);
  border-radius: 2px;
  transition: var(--trans);
}

@media (max-width:800px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(228,213,183,0.98);
    padding: 1rem;
    border-bottom: 2px solid var(--roast);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 0.75rem 1rem; }
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 80% 15%, rgba(168,49,31,0.08), transparent 45%),
    repeating-linear-gradient(135deg, rgba(107,66,38,0.04) 0 2px, transparent 2px 26px),
    var(--kraft);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  padding: 0 2rem;
  perspective: 1200px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  transform-style: preserve-3d;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.15;
  filter: sepia(60%) contrast(0.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(228,213,183,0.3) 0%, rgba(228,213,183,0.85) 100%);
}

/* Molekul 3D kanan atas - lebih besar & interaktif */
.mol-mini {
  position: absolute;
  top: 120px; right: 8vw; z-index: 3;
  width: 160px; height: 160px;
  transform-style: preserve-3d;
  animation: molFloat 5s ease-in-out infinite;
  cursor: grab;
  transition: transform 0.3s;
}
.mol-mini:hover {
  animation-play-state: paused;
  transform: scale(1.15) rotateY(20deg);
}
@keyframes molFloat {
  0%, 100% { transform: translateY(0) rotateX(20deg) rotateY(0deg); }
  50% { transform: translateY(-15px) rotateX(20deg) rotateY(180deg); }
}

.mol-atom {
  position: absolute;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  color: var(--crema);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 20px currentColor;
  transform-style: preserve-3d;
}
.mol-atom::before {
  content: '';
  position: absolute; inset: -8px;
  border: 2px dashed currentColor;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
  animation: orbit 4s linear infinite;
}
.mol-atom:hover {
  transform: scale(1.4) translateZ(30px);
  z-index: 10;
}
.mol-atom:hover::before { opacity: 0.4; }
@keyframes orbit {
  to { transform: rotate(360deg); }
}

.ma-c {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #8B6F47, #6B4226);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) translateZ(20px);
}
.ma-o {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #A8311F, #7A1F12);
  top: 8%; left: 50%;
  transform: translateX(-50%) translateZ(15px);
}
.ma-n {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #4DD8C0, #2A9D8F);
  top: 50%; left: 8%;
  transform: translateY(-50%) translateZ(15px);
}
.ma-cl {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #C8B287, #A8936B);
  top: 50%; right: 8%;
  transform: translateY(-50%) translateZ(15px);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 740px;
  transform-style: preserve-3d;
}
.hero-badges {
  display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
  transform: translateZ(30px);
}
.hbadge {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background: rgba(107,66,38,0.15);
  border: 1.5px solid var(--roast);
  color: var(--roast);
  transition: all 0.3s;
  transform-style: preserve-3d;
}
.hbadge:hover {
  transform: translateZ(20px) scale(1.05);
  box-shadow: 0 6px 20px rgba(107,66,38,0.2);
}
.hbadge-red {
  background: rgba(168,49,31,0.15);
  border-color: var(--stamp);
  color: var(--stamp);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transform: translateZ(40px);
  text-shadow: 2px 2px 0 rgba(107,66,38,0.1);
  transition: transform 0.3s;
}
.hero-title:hover {
  transform: translateZ(60px) scale(1.02);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--stamp);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1rem;
  transform: translateZ(35px);
}

.hero-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  transform: translateZ(30px);
}

.hero-btns {
  display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
  transform: translateZ(35px);
}
.btn-primary {
  display: inline-flex;
  background: var(--stamp);
  color: var(--crema);
  padding: 0.85rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(168,49,31,0.3);
  transform-style: preserve-3d;
}
.btn-primary:hover {
  background: #8B2819;
  transform: translateY(-3px) translateZ(20px);
  box-shadow: 0 8px 24px rgba(168,49,31,0.4);
}

.btn-outline {
  display: inline-flex;
  background: transparent;
  color: var(--roast);
  padding: 0.85rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--roast);
  transition: all 0.3s;
  transform-style: preserve-3d;
}
.btn-outline:hover {
  background: var(--roast);
  color: var(--crema);
  transform: translateY(-3px) translateZ(20px);
  box-shadow: 0 6px 20px rgba(107,66,38,0.25);
}

@media (max-width:800px) {
  .mol-mini { width: 100px; height: 100px; top: 90px; right: 5%; }
  .ma-c { width: 32px; height: 32px; font-size: 0.6rem; }
  .ma-o, .ma-n, .ma-cl { width: 24px; height: 24px; font-size: 0.5rem; }
}

/* ── STAT BAR dengan 3D parallax ────────────────────────────── */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--kraft);
  border-top: 3px solid var(--roast);
  border-bottom: 3px solid var(--roast);
  perspective: 1000px;
  transform-style: preserve-3d;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 2.5rem 1rem;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  transform-style: preserve-3d;
  cursor: default;
}
.stat-item::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--roast);
  opacity: 0;
  transition: opacity 0.3s;
  transform: translateZ(-10px);
}
.stat-item:hover {
  transform: translateZ(30px) rotateX(5deg);
}
.stat-item:hover::before { opacity: 0.05; }
.stat-num {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--stamp);
  line-height: 1;
  font-family: var(--font-mono);
  transform: translateZ(20px);
  text-shadow: 2px 2px 0 rgba(168,49,31,0.1);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--roast);
  margin-top: 0.5rem;
  font-weight: 500;
  transform: translateZ(10px);
}
@media (max-width:600px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }

/* ── SECTION dengan parallax scroll ─────────────────────────── */
.section {
  padding: 6rem 0;
  position: relative;
  transform-style: preserve-3d;
}
.section-alt {
  background:
    repeating-linear-gradient(90deg, rgba(107,66,38,0.02) 0 1px, transparent 1px 40px),
    var(--crema);
}
.section-danger {
  background:
    radial-gradient(ellipse at center, rgba(168,49,31,0.06) 0%, transparent 70%),
    var(--kraft);
}
.container {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  transform-style: preserve-3d;
}

.section-header {
  text-align: center; margin-bottom: 3.5rem;
  transform-style: preserve-3d;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--roast);
  border-radius: 4px;
  color: var(--roast);
  margin-bottom: 1rem;
  background: rgba(107,66,38,0.05);
  transform: translateZ(20px);
  transition: transform 0.3s;
}
.section-label:hover { transform: translateZ(30px) scale(1.05); }
.label-danger { color: var(--stamp); border-color: var(--stamp); background: rgba(168,49,31,0.08); }

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transform: translateZ(25px);
}
.section-header p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  transform: translateZ(15px);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(60px) translateZ(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* ── SPLIT LAYOUT 3D ────────────────────────────────────────── */
.section-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.split-text {
  transform: translateZ(30px);
  transition: transform 0.5s;
}
.split-text p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.split-visual {
  transform-style: preserve-3d;
  transition: transform 0.5s;
}
.split-visual:hover {
  transform: rotateY(5deg) translateZ(20px);
}
.split-visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(27,20,15,0.2),
              inset 0 0 0 1px rgba(107,66,38,0.2);
  border: 3px solid var(--roast);
  transition: transform 0.4s;
}
.split-visual:hover img {
  transform: scale(1.02);
}
@media (max-width:800px) {
  .section-split { grid-template-columns: 1fr; gap: 3rem; }
  .split-visual { order: -1; }
}

/* ── CHARACTERISTICS GRID ────────────────────────────────────── */
.chars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.char-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--kraft);
  border-radius: 12px;
  border: 2px solid var(--roast);
  transition: all 0.4s;
  transform-style: preserve-3d;
}

.char-item:hover {
  transform: translateY(-8px) translateZ(20px);
  box-shadow: 0 12px 32px rgba(27,20,15,0.2);
}

.char-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.char-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.char-item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── HEALTH CARDS GRID ───────────────────────────────────────── */
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.health-card {
  background: linear-gradient(135deg, var(--kraft) 0%, var(--kraft-dark) 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--roast);
  box-shadow: 0 8px 24px rgba(27,20,15,0.15);
  transition: all 0.4s;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.health-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168,49,31,0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.health-card:hover {
  transform: translateY(-10px) translateZ(25px);
  box-shadow: 0 16px 40px rgba(27,20,15,0.25);
}

.health-card:hover::before {
  opacity: 1;
}

/* 3D Icon - EXTRA LARGE - Card Size */
.health-icon-3d {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  perspective: 1200px;
  transform-style: preserve-3d;
  z-index: 2;
}

.icon-3d-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--stamp) 0%, #7A1F12 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 
    0 20px 60px rgba(168,49,31,0.6),
    inset 0 -10px 20px rgba(0,0,0,0.4),
    inset 0 10px 20px rgba(255,255,255,0.2);
  transform: rotateX(12deg) rotateY(-12deg) translateZ(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float3d 4s ease-in-out infinite;
  border: 4px solid rgba(228,213,183,0.5);
  overflow: hidden;
  position: relative;
}

.icon-3d-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.health-icon-img {
  width: 115%;
  height: 115%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  mix-blend-mode: screen;
  filter: saturate(1.4) contrast(1.3) brightness(1.15);
  transition: all 0.6s;
  transform: scale(1.08);
}

.health-card:hover .health-icon-img {
  transform: scale(1.2);
  filter: saturate(1.6) contrast(1.4) brightness(1.25);
}

@keyframes float3d {
  0%, 100% {
    transform: rotateX(12deg) rotateY(-12deg) translateZ(30px) translateY(0);
  }
  50% {
    transform: rotateX(15deg) rotateY(-15deg) translateZ(35px) translateY(-12px);
  }
}

.health-card:hover .icon-3d-inner {
  transform: rotateX(0deg) rotateY(0deg) translateZ(50px) scale(1.08);
  box-shadow: 
    0 30px 80px rgba(168,49,31,0.7),
    inset 0 -10px 25px rgba(0,0,0,0.5),
    inset 0 10px 25px rgba(255,255,255,0.3);
  animation-play-state: paused;
}

@keyframes float3d {
  0%, 100% {
    transform: rotateX(15deg) rotateY(-15deg) translateZ(20px) translateY(0);
  }
  50% {
    transform: rotateX(20deg) rotateY(-20deg) translateZ(25px) translateY(-10px);
  }
}

.health-card:hover .icon-3d-inner {
  transform: rotateX(0deg) rotateY(0deg) translateZ(40px) scale(1.15);
  box-shadow: 
    0 20px 50px rgba(168,49,31,0.6),
    inset 0 -5px 10px rgba(0,0,0,0.3),
    inset 0 5px 15px rgba(255,255,255,0.2);
  animation-play-state: paused;
}

/* Health card content with padding for EXTRA LARGE icon */
.health-card {
  padding-top: 11rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}

.health-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.health-organ {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: rgba(107,66,38,0.2);
  border-radius: 4px;
  color: var(--roast);
}

.health-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-high { background: rgba(168,49,31,0.15); color: var(--stamp); }
.level-med { background: rgba(255,200,87,0.2); color: #C67D00; }
.level-extreme { background: rgba(168,49,31,0.25); color: var(--stamp); font-weight: 800; }

.health-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1rem 0 0.75rem;
}

.health-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.health-bar {
  height: 8px;
  background: rgba(107,66,38,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.health-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--stamp) 0%, #C62828 100%);
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(168,49,31,0.5);
}

/* ── STEPS GRID ──────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--kraft);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--roast);
  position: relative;
  transition: all 0.4s;
  transform-style: preserve-3d;
}

.step-card:hover {
  transform: translateY(-8px) translateZ(20px);
  box-shadow: 0 12px 32px rgba(27,20,15,0.2);
}

.step-num {
  position: absolute;
  top: -18px;
  left: 20px;
  width: 52px;
  height: 52px;
  background: var(--stamp);
  color: var(--crema);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 6px 20px rgba(168,49,31,0.4);
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
}

.step-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.step-highlight {
  background: linear-gradient(135deg, var(--kraft) 0%, rgba(77,216,192,0.1) 100%);
  border-color: var(--inspect);
}

.step-highlight .step-num {
  background: var(--inspect);
  color: var(--ink);
}

.moisture-bar {
  margin-top: 1rem;
  height: 28px;
  background: rgba(107,66,38,0.2);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.moisture-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--inspect) 0%, #2A9D8F 100%);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(77,216,192,0.5);
}

.moisture-mark {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--roast);
}

/* ── INTERACTIVE 3D STEPS ───────────────────────────────────────────────── */
.steps-interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.step-card-3d {
  background: var(--kraft);
  border: 3px solid var(--roast);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
}

.step-card-3d:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 
    0 25px 50px rgba(107,66,38,0.35),
    0 10px 25px rgba(168,49,31,0.25);
  border-color: var(--inspect);
}

.step-card-3d.step-highlight {
  border-width: 4px;
  border-color: var(--inspect);
  background: linear-gradient(135deg, var(--kraft) 0%, rgba(77,216,192,0.08) 100%);
  box-shadow: 0 8px 30px rgba(77,216,192,0.2);
}

.step-card-3d.step-highlight:hover {
  box-shadow: 
    0 30px 60px rgba(77,216,192,0.4),
    0 15px 30px rgba(168,49,31,0.3);
}

/* Image Container with 3D Effect */
.step-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.step-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transform: translateZ(20px);
  transition: transform 0.6s;
}

.step-card-3d:hover .step-image-wrapper {
  transform: translateZ(30px) scale(1.08);
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.6s;
  filter: brightness(0.92) contrast(1.1) saturate(1.1);
}

.step-card-3d:hover .step-img {
  filter: brightness(1) contrast(1.15) saturate(1.2);
  transform: scale(1.1);
}

.step-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(107,66,38,0) 0%,
    rgba(107,66,38,0.4) 60%,
    rgba(107,66,38,0.85) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.4s;
}

.step-card-3d:hover .step-image-overlay {
  opacity: 1;
}

.step-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Number Badge - Floating */
.step-number-badge {
  position: absolute;
  top: -25px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--stamp) 0%, #7A1F12 100%);
  border: 4px solid var(--crema);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(168,49,31,0.5),
    inset 0 -3px 8px rgba(0,0,0,0.3),
    inset 0 3px 8px rgba(255,255,255,0.2);
  transform: translateZ(50px);
  transition: all 0.4s;
  z-index: 10;
}

.step-card-3d:hover .step-number-badge {
  transform: translateZ(60px) scale(1.1) rotate(8deg);
  box-shadow: 
    0 15px 40px rgba(168,49,31,0.6),
    inset 0 -3px 8px rgba(0,0,0,0.4),
    inset 0 3px 8px rgba(255,255,255,0.3);
}

.step-num-large {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--crema);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.step-critical {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--inspect);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.step-badge-highlight {
  background: linear-gradient(135deg, var(--inspect) 0%, #2A9D8F 100%);
  border-color: var(--stamp);
}

.step-badge-highlight .step-num-large {
  color: var(--ink);
}

/* Content Section */
.step-content {
  padding: 2rem 1.5rem 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

/* Tags */
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.step-tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: rgba(107,66,38,0.15);
  border: 1.5px solid var(--roast);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--roast);
  transition: all 0.3s;
}

.step-tag.tag-danger {
  background: rgba(168,49,31,0.15);
  border-color: var(--stamp);
  color: var(--stamp);
}

.step-card-3d:hover .step-tag {
  background: rgba(107,66,38,0.25);
  transform: translateY(-2px);
}

/* Enhanced Moisture Widget for Step 3 */
.moisture-widget {
  margin: 1.5rem 0 1rem;
  padding: 1.25rem;
  background: rgba(107,66,38,0.08);
  border: 2px solid var(--roast);
  border-radius: 12px;
}

.moisture-bar-new {
  height: 40px;
  background: rgba(107,66,38,0.25);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.moisture-fill-new {
  height: 100%;
  background: linear-gradient(90deg, 
    #E63946 0%, 
    #F77F00 25%, 
    #FCBF49 50%, 
    var(--inspect) 100%
  );
  width: 0;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(77,216,192,0.6);
  position: relative;
}

.moisture-fill-new::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.3) 0%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.3) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.moisture-marker {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.marker-line {
  width: 3px;
  height: 100%;
  background: var(--stamp);
  box-shadow: 0 0 10px rgba(168,49,31,0.8);
  position: relative;
}

.marker-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--stamp);
  border: 2px solid var(--crema);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(168,49,31,0.9);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.7;
  }
}

.marker-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--stamp);
  background: var(--crema);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 2px solid var(--stamp);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(168,49,31,0.3);
}

.moisture-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--roast);
}

.moisture-label-center {
  font-weight: 700;
  color: var(--stamp);
}

/* Stats Display for Step 6 */
.step-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.step-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: rgba(107,66,38,0.1);
  border: 2px solid var(--roast);
  border-radius: 10px;
  transition: all 0.3s;
}

.step-stat:hover {
  background: rgba(107,66,38,0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(107,66,38,0.2);
}

.stat-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--roast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--ink);
}

/* ── TEAM GRID ───────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--kraft);
  padding: 0;
  border-radius: 16px;
  border: 2px solid var(--roast);
  text-align: center;
  transition: all 0.4s;
  transform-style: preserve-3d;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-10px) translateZ(25px);
  box-shadow: 0 16px 40px rgba(27,20,15,0.25);
  border-color: var(--inspect);
}

.team-photo {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--roast) 0%, var(--kraft-dark) 100%);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s;
  filter: grayscale(20%) contrast(1.05);
}

.team-card:hover .team-photo img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(1.1);
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(27,20,15,0.4) 100%);
  pointer-events: none;
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.25rem 1rem 0.5rem;
  line-height: 1.3;
}

.team-nim {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--roast);
  font-weight: 600;
  padding-bottom: 1.25rem;
}

/* Legacy avatar support (fallback) */
.team-avatar {
  width: 64px;
  height: 64px;
  background: var(--stamp);
  color: var(--crema);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 0 auto 1rem;
  box-shadow: 0 6px 20px rgba(168,49,31,0.3);
  transition: all 0.3s;
}

.team-card:hover .team-avatar {
  transform: scale(1.15) rotate(360deg);
  background: var(--inspect);
  color: var(--ink);
}

/* ── TABLE STYLING ───────────────────────────────────────────── */
.filter-btns {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: var(--kraft);
  border: 2px solid var(--roast);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--roast);
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn:hover {
  background: var(--roast);
  color: var(--crema);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--crema);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(27,20,15,0.15);
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--kraft);
  font-family: var(--font-display);
}

.reg-table thead {
  background: var(--roast);
  color: var(--crema);
}

.reg-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reg-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.reg-table th.sortable:hover {
  background: #543018;
}

.sort-ico {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-left: 0.25rem;
}

.reg-table tbody tr {
  border-bottom: 1px solid var(--kraft-dark);
  transition: background 0.3s;
}

.reg-table tbody tr:hover {
  background: rgba(107,66,38,0.08);
}

.reg-table td {
  padding: 0.9rem 1.25rem;
  color: var(--ink);
}

.lim-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.lim-low {
  background: rgba(77,216,192,0.2);
  color: #2A9D8F;
}

.lim-mid {
  background: rgba(255,200,87,0.2);
  color: #C67D00;
}

.lim-high {
  background: rgba(168,49,31,0.15);
  color: var(--stamp);
}

/* ── FAB QUIZ BUTTON ─────────────────────────────────────────── */
.fab-quiz {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--stamp);
  color: var(--crema);
  border-radius: 50%;
  border: none;
  box-shadow: 0 8px 24px rgba(168,49,31,0.4);
  cursor: pointer;
  z-index: 998;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.fab-quiz:hover {
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 12px 32px rgba(168,49,31,0.6);
}

.fab-quiz:active {
  transform: scale(1.05);
}

/* ── QUIZ MODAL ──────────────────────────────────────────────── */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,20,15,0.9);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.quiz-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.quiz-modal {
  background: var(--crema);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.quiz-overlay.open .quiz-modal {
  transform: scale(1);
}

.quiz-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--roast);
  color: var(--crema);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.quiz-close:hover {
  background: var(--stamp);
  transform: rotate(90deg);
}

.quiz-header {
  margin-bottom: 1.5rem;
}

.quiz-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
}

.quiz-progress {
  height: 6px;
  background: rgba(107,66,38,0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.quiz-progress div {
  height: 100%;
  background: linear-gradient(90deg, var(--inspect) 0%, var(--stamp) 100%);
  transition: width 0.4s;
}

.quiz-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--roast);
}


/* ══════════════════════════════════════════════════════════════
   FUNGI CARDS NEW — ESTETIK & INTERAKTIF 3D
══════════════════════════════════════════════════════════════ */
.fungi-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.fungi-card-new {
  background: linear-gradient(135deg, #F5ECDA 0%, #E4D5B7 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(27, 20, 15, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.4);
  border: 2px solid var(--kraft-dark);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
}

.fungi-card-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(77,216,192,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

.fungi-card-new:hover {
  transform: translateY(-12px) translateZ(40px) rotateX(2deg);
  box-shadow: 
    0 30px 80px rgba(27, 20, 15, 0.25),
    0 0 0 3px var(--roast),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.fungi-card-new:hover::before {
  opacity: 1;
}

/* Photo Container dengan frame estetik */
.fungi-photo-container {
  position: relative;
  background: var(--roast);
  padding: 1.5rem;
  transform-style: preserve-3d;
}

.fungi-photo-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 0 0 4px rgba(228,213,183,0.3),
    inset 0 0 0 8px var(--roast);
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.fungi-card-new:hover .fungi-photo-frame {
  transform: scale(1.05) translateZ(20px);
}

.fungi-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: all 0.5s;
  filter: saturate(0.9) contrast(1.05);
}

.fungi-card-new:hover .fungi-photo {
  filter: saturate(1.1) contrast(1.1);
  transform: scale(1.08);
}

/* Overlay hover dengan zoom icon */
.fungi-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(107, 66, 38, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.fungi-card-new:hover .fungi-photo-overlay {
  opacity: 1;
}

.fungi-zoom-icon {
  font-size: 3rem;
  transform: scale(0.5);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fungi-card-new:hover .fungi-zoom-icon {
  transform: scale(1) rotate(360deg);
}

/* Toxicity Bar */
.fungi-toxicity {
  margin-top: 1rem;
  transform: translateZ(10px);
}

.tox-bar {
  height: 8px;
  background: rgba(228,213,183,0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.tox-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    #4DD8C0 0%, 
    #FFC857 40%, 
    #FF6B35 70%, 
    #A8311F 100%);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(168,49,31,0.6);
  position: relative;
}

.tox-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.3) 50%, 
    transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.fungi-card-new.visible .tox-fill {
  width: var(--tox-width, 0%);
}

.tox-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--crema);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

/* Info Section */
.fungi-info {
  padding: 2rem;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}

.fungi-label-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--stamp);
  color: var(--crema);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(168,49,31,0.3);
  transform: translateZ(15px);
  transition: transform 0.3s;
}

.fungi-card-new:hover .fungi-label-badge {
  transform: translateZ(30px) scale(1.05);
}

.badge-secondary {
  background: var(--inspect);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(77,216,192,0.3);
}

.fungi-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--ink);
  transform: translateZ(20px);
  transition: transform 0.3s;
}

.fungi-card-new:hover .fungi-name {
  transform: translateZ(35px);
  color: var(--stamp);
}

.fungi-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  transform: translateZ(15px);
}

/* Meta Information Grid */
.fungi-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transform: translateZ(20px);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  background: rgba(107,66,38,0.05);
  border-left: 3px solid var(--roast);
  border-radius: 6px;
  transition: all 0.3s;
  transform-style: preserve-3d;
}

.meta-item:hover {
  background: rgba(107,66,38,0.12);
  border-left-width: 5px;
  transform: translateX(6px) translateZ(10px);
}

.meta-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transform: translateZ(5px);
}

.meta-item div {
  flex: 1;
}

.meta-item strong {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--roast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.meta-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .fungi-grid-new {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .fungi-photo {
    height: 220px;
  }
  
  .fungi-info {
    padding: 1.5rem;
  }
}

/* Animation on scroll */
.fungi-card-new {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.45s ease-out,
              transform 0.45s ease-out;
}

.fungi-card-new.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delay — minimal agar tidak terasa lag */
.fungi-card-new:nth-child(1) { transition-delay: 0s; }
.fungi-card-new:nth-child(2) { transition-delay: 0.08s; }
.fungi-card-new:nth-child(3) { transition-delay: 0.16s; }


/* ══════════════════════════════════════════════════════════════
   FOOTER — RAPI & TERSTRUKTUR
══════════════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(135deg, var(--roast) 0%, #543018 100%);
  color: var(--crema);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(228,213,183,0.03) 20px,
      rgba(228,213,183,0.03) 40px
    );
  pointer-events: none;
}

.footer-main {
  padding: 4rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
}

/* Column Styling */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-col-brand {
  padding-right: 1rem;
}

/* Logo & Branding */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)) brightness(1.1);
  transition: transform 0.3s;
}

.footer-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--crema);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.footer-sub {
  font-size: 0.75rem;
  color: var(--kraft);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(228,213,183,0.85);
  margin: 0;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(228,213,183,0.15);
  border: 1.5px solid rgba(228,213,183,0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--kraft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.badge-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Headings */
.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--kraft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(228,213,183,0.2);
}

/* Info Cards */
.footer-info-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  background: rgba(228,213,183,0.08);
  border-left: 3px solid rgba(228,213,183,0.3);
  border-radius: 6px;
  transition: all 0.3s;
}

.footer-info-card:hover {
  background: rgba(228,213,183,0.15);
  border-left-color: var(--kraft);
  transform: translateX(4px);
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-content strong {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--kraft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-content span,
.info-content a {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(228,213,183,0.9);
}

.footer-link {
  color: var(--inspect);
  text-decoration: none;
  transition: color 0.3s;
  word-break: break-word;
}

.footer-link:hover {
  color: #4DD8C0;
  text-decoration: underline;
}

/* Navigation Links */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(228,213,183,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s;
  font-weight: 500;
}

.footer-nav-link:hover {
  color: var(--crema);
  background: rgba(228,213,183,0.1);
  transform: translateX(6px);
}

.nav-dot {
  color: var(--inspect);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s;
}

.footer-nav-link:hover .nav-dot {
  transform: scale(1.5);
}

/* Footer Bottom Bar */
.footer-bottom {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(228,213,183,0.2);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(228,213,183,0.75);
  font-family: var(--font-mono);
}

.copyright-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(228,213,183,0.15);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--kraft);
}

.footer-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(228,213,183,0.7);
  font-family: var(--font-mono);
  font-weight: 600;
}

.badge-dot {
  color: var(--inspect);
  font-size: 1rem;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-main {
    padding: 3rem 0 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .footer-copyright {
    justify-content: center;
  }
  
  .footer-meta {
    justify-content: center;
  }
}

/* Scroll to top on footer click effect */
.footer-brand:hover {
  color: var(--inspect);
  cursor: pointer;
  text-shadow: 0 0 20px rgba(77,216,192,0.5);
}


/* ══════════════════════════════════════════════════════════════
   3D MOLECULE VIEWER — INTERACTIVE VISUALIZATION
══════════════════════════════════════════════════════════════ */
.molecule-viewer-container {
  margin: 0 auto 4rem;
  max-width: 900px;
  perspective: 2000px;
}

.molecule-viewer {
  position: relative;
  background: linear-gradient(135deg, #1B140F 0%, #2A2019 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 
    0 30px 80px rgba(27, 20, 15, 0.4),
    inset 0 1px 0 rgba(228,213,183,0.1),
    0 0 0 2px var(--roast);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

.molecule-viewer:hover {
  transform: translateZ(20px);
}

#moleculeCanvas {
  width: 100%;
  height: 500px;
  display: block;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, #2A2019 0%, #1B140F 100%);
  cursor: grab;
  touch-action: none;
}

#moleculeCanvas:active {
  cursor: grabbing;
}

/* Info Overlay Badges */
.molecule-info-overlay {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10;
  pointer-events: none;
}

.mol-info-badge {
  background: rgba(228, 213, 183, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--roast);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateZ(30px);
  animation: badgeSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.mol-info-badge:nth-child(1) { animation-delay: 0.2s; }
.mol-info-badge:nth-child(2) { animation-delay: 0.35s; }
.mol-info-badge:nth-child(3) { animation-delay: 0.5s; }

@keyframes badgeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-40px) translateZ(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateZ(30px);
  }
}

.mol-info-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--roast);
}

.mol-info-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* Controls */
.molecule-controls {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.mol-btn {
  width: 42px;
  height: 42px;
  background: rgba(228, 213, 183, 0.95);
  border: 2px solid var(--roast);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateZ(20px);
}

.mol-btn:hover {
  background: var(--kraft);
  transform: translateZ(30px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.mol-btn:active {
  transform: translateZ(25px) scale(1.05);
}

.mol-btn.active {
  background: var(--stamp);
  border-color: var(--stamp);
}

.mol-btn.active span {
  animation: spinBtn 2s linear infinite;
}

@keyframes spinBtn {
  to { transform: rotate(360deg); }
}

/* Hint */
.molecule-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(228, 213, 183, 0.9);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--roast);
  border: 1.5px solid var(--roast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  pointer-events: none;
  z-index: 10;
  animation: hintPulse 3s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-4px); }
}

/* Formula Box Enhancement */
.formula-box {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--kraft) 0%, var(--kraft-dark) 100%);
  border-radius: 16px;
  border: 3px solid var(--roast);
  box-shadow: 0 12px 40px rgba(27, 20, 15, 0.2);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

.formula-box:hover {
  transform: translateY(-8px) translateZ(20px);
  box-shadow: 0 20px 60px rgba(27, 20, 15, 0.3);
}

.formula-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--roast);
  margin-bottom: 0.75rem;
}

.formula-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.formula-big sub {
  font-size: 1.5rem;
  color: var(--stamp);
}

.formula-mw {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.formula-iupac {
  background: rgba(107, 66, 38, 0.1);
  padding: 1.25rem;
  border-radius: 10px;
  border-left: 4px solid var(--stamp);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.formula-iupac strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--roast);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .molecule-viewer {
    padding: 1.5rem;
  }
  
  #moleculeCanvas {
    height: 400px;
  }
  
  .molecule-info-overlay {
    top: 2rem;
    left: 2rem;
    gap: 0.5rem;
  }
  
  .mol-info-badge {
    padding: 0.5rem 0.85rem;
  }
  
  .mol-info-value {
    font-size: 0.85rem;
  }
  
  .molecule-controls {
    top: 2rem;
    right: 2rem;
  }
  
  .mol-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .molecule-hint {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 480px) {
  #moleculeCanvas {
    height: 320px;
  }
  
  .molecule-info-overlay {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }
  
  .molecule-controls {
    flex-direction: row;
    position: static;
    margin-top: 1rem;
    justify-content: center;
  }
}
