/* ── Base Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:     #3ddc84;
  --green-dim: #2ab36a;
  --green-glow: rgba(61,220,132,0.18);
  --dark:      #0b0e0f;
  --surface:   #111518;
  --surface-2: #181d20;
  --border:    rgba(255,255,255,0.07);
  --text:      #e8ede9;
  --text-muted:#8a9b8d;
  --sidebar-w: 260px;
  --radius:    18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Ambient background orbs ── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  animation: floatOrb 14s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: #1a5c38; top: -120px; left: 30%; }
.orb-2 { width: 320px; height: 320px; background: #0d3b25; bottom: 10%; right: 5%; animation-delay: -5s; }
.orb-3 { width: 240px; height: 240px; background: #2ab36a; top: 40%; left: -80px; animation-delay: -9s; opacity: 0.1; }
@keyframes floatOrb { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,25px) scale(1.08); } }

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #2a3530; border-radius: 4px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--border);
}
.brand-icon { font-size: 2rem; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-family: 'Syne', sans-serif; font-size: 1rem; color: var(--green); }
.brand-text span { font-size: 0.72rem; color: var(--text-muted); }

.sidebar-nav { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}
.nav-btn:hover {
  background: rgba(61,220,132,0.07);
  color: var(--text);
}
.nav-btn.active {
  background: rgba(61,220,132,0.12);
  color: var(--green);
  font-weight: 500;
}
.nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: var(--green);
  border-radius: 0 3px 3px 0;
}
.nav-icon { width: 22px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }

.sidebar-footer { padding: 16px 20px; font-size: 0.72rem; color: #3a4840; border-top: 1px solid var(--border); }

/* ── Mobile top bar ── */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  z-index: 200;
}
.hamburger {
  background: none; border: none;
  color: var(--text); font-size: 1.2rem;
  cursor: pointer; padding: 6px;
}
.mobile-title { font-family: 'Syne', sans-serif; font-size: 1rem; color: var(--green); }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99;
}

/* ── Main content ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 48px 48px 80px;
  position: relative;
  z-index: 1;
}

/* ── Modules ── */
.module { display: none; max-width: 820px; animation: fadeSlide 0.4s ease; }
.module.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Module header ── */
.module-header { margin-bottom: 36px; }
.module-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(61,220,132,0.1);
  border: 1px solid rgba(61,220,132,0.25);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.module-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}
.module-header h2 em {
  font-style: normal;
  color: var(--green);
}
.module-desc {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Section image ── */
.section-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

/* ── INTRO cards ── */
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.hero-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}
.hero-overlay-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.intro-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.intro-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.25s, border-color 0.25s;
}
.intro-card:hover { transform: translateY(-4px); border-color: rgba(61,220,132,0.3); }
.card-emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.intro-card h4 { font-family: 'Syne', sans-serif; font-size: 1rem; color: var(--green); margin-bottom: 8px; }
.intro-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }

/* ── TIPS grid ── */
.tips-grid { display: flex; flex-direction: column; gap: 28px; }
.tip-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.tip-card:hover { border-color: rgba(61,220,132,0.3); box-shadow: 0 0 24px rgba(61,220,132,0.06); }
.tip-number {
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(61,220,132,0.12);
}
.tip-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin: 12px 0;
  background: rgba(255,255,255,0.02);
}
.tip-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 8px;
}
.tip-content p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 14px; }
.tip-media { border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(61,220,132,0.12);
  border: 1px solid rgba(61,220,132,0.3);
  color: var(--green);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}
.download-btn:hover { background: rgba(61,220,132,0.22); }

/* ── CLEANING steps ── */
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 38px; height: 38px;
  background: rgba(61,220,132,0.12);
  border: 1px solid rgba(61,220,132,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}
.step-text { font-size: 0.96rem; line-height: 1.65; padding-top: 7px; }
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}
.tag.green { background: rgba(76,175,80,0.15); color: #4caf50; }
.tag.blue  { background: rgba(33,150,243,0.15); color: #64b5f6; }

/* ── SURVEY ── */
.survey-embed-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

/* ── PROBLEMS ── */
.problems-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.problem-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.problem-issue {
  padding: 14px 20px;
  background: rgba(244,67,54,0.07);
  border-bottom: 1px solid rgba(244,67,54,0.15);
  font-size: 0.92rem;
  color: #f48fb1;
}
.problem-issue .fas { color: #f44336; margin-right: 8px; }
.problem-solution {
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.problem-solution .fas { color: var(--green); margin-right: 8px; }

/* ── QUIZ ── */
.quiz-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: 8px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}
.quiz-progress-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 28px; }

.quiz-form { display: flex; flex-direction: column; gap: 24px; }
.quiz-q {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s;
}
.quiz-q:focus-within { border-color: rgba(61,220,132,0.3); }
.q-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 8px;
}
.quiz-q p { font-size: 1rem; font-weight: 500; margin-bottom: 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.18s;
}
.quiz-opt:hover { border-color: rgba(61,220,132,0.4); background: rgba(61,220,132,0.05); }
.quiz-opt input[type="radio"] { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; }

.submit-btn {
  padding: 15px 32px;
  background: var(--green);
  color: #081a10;
  border: none;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover { transform: scale(1.03); box-shadow: 0 0 22px rgba(61,220,132,0.35); }

.quiz-result {
  margin-top: 24px;
  padding: 22px 26px;
  border-radius: var(--radius);
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid;
}
.quiz-result.hidden { display: none; }
.quiz-result.perfect { background: rgba(61,220,132,0.1); border-color: rgba(61,220,132,0.35); color: var(--green); }
.quiz-result.good    { background: rgba(255,167,38,0.1); border-color: rgba(255,167,38,0.35); color: #ffa726; }
.quiz-result.low     { background: rgba(244,67,54,0.1);  border-color: rgba(244,67,54,0.35);  color: #ef5350; }

/* ── WASTE icon list ── */
.icon-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.icon-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.93rem;
  line-height: 1.6;
}
.list-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

.bin-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.bin-card {
  flex: 1; min-width: 140px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 18px 14px;
  border-radius: 14px; border: 1px solid;
  font-size: 0.85rem; text-align: center;
}
.bin-card span { font-size: 1.6rem; }
.bin-card strong { font-size: 0.95rem; }
.bin-card small { color: var(--text-muted); font-size: 0.78rem; }
.green-bin { background: rgba(76,175,80,0.08); border-color: rgba(76,175,80,0.25); }
.blue-bin  { background: rgba(33,150,243,0.08); border-color: rgba(33,150,243,0.25); }
.red-bin   { background: rgba(244,67,54,0.08);  border-color: rgba(244,67,54,0.25); }

/* ── PLASTIC grid ── */
.plastic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.plastic-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.plastic-card:hover { border-color: rgba(61,220,132,0.3); transform: translateY(-3px); }
.plastic-icon { font-size: 2rem; flex-shrink: 0; }
.plastic-text { display: flex; flex-direction: column; gap: 3px; }
.plastic-text strong { font-size: 0.95rem; color: var(--text); }
.plastic-text span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }

/* ── WATER tips ── */
.water-tips { display: flex; flex-direction: column; gap: 14px; }
.water-tip {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(61,220,132,0.4);
  border-radius: 0 12px 12px 0;
  font-size: 0.93rem; line-height: 1.65;
}
.water-emoji { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }

/* ── WEATHER card ── */
.weather-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.weather-loading { color: var(--text-muted); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.weather-display {
  font-size: 1.1rem;
  line-height: 1.8;
}
.weather-display strong { color: var(--green); }
.health-tip-display {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(61,220,132,0.07);
  border: 1px solid rgba(61,220,132,0.2);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.65;
}
.health-tip-display strong { color: var(--green); }
.hidden { display: none !important; }

/* ── ABOUT ── */
.about-content { display: flex; flex-direction: column; gap: 24px; }
.about-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.about-contact {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.contact-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
}
.contact-item .fas { color: var(--green); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 8px 0 30px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.visible { display: block; }
  .mobile-topbar { display: flex; }
  .main-content { margin-left: 0; padding: 80px 20px 60px; }
  .module-header h2 { font-size: 2rem; }
  .intro-cards { grid-template-columns: 1fr; }
  .bin-legend { flex-direction: column; }
}

@media (max-width: 560px) {
  .plastic-grid { grid-template-columns: 1fr; }
  .module-header h2 { font-size: 1.7rem; }
}
