@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

@theme {
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --color-x-blue: #1d9bf0;
  --color-x-blue-hover: #1a8cd8;
  --color-tiger: #f59e0b;
  --color-tiger-dark: #d97706;
  --color-tiger-glow: #fbbf24;
  --color-jungle: #22c55e;
  --color-jungle-dark: #14532d;
  --color-jungle-mid: #166534;
  --color-jungle-light: #4ade80;
  --color-surface: #0a1a0f;
  --color-surface-raised: #0f2418;
  --color-border: #1e3a2a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: #041008;
  color: #f0fdf4;
}

::selection {
  background-color: rgb(34 197 94 / 0.35);
  color: #fff;
}

/* ── Jungle background layers ── */
.jungle-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.jungle-canopy {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgb(34 197 94 / 0.18), transparent 55%),
    radial-gradient(ellipse 80% 50% at 15% 20%, rgb(21 128 61 / 0.25), transparent 50%),
    radial-gradient(ellipse 70% 45% at 85% 25%, rgb(22 101 52 / 0.22), transparent 50%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgb(4 47 22 / 0.9), transparent 60%),
    linear-gradient(180deg, #021408 0%, #041a0c 35%, #062010 65%, #041008 100%);
}

.jungle-vines-left,
.jungle-vines-right {
  position: absolute;
  top: 0;
  width: 180px;
  height: 100%;
  opacity: 0.35;
  background-repeat: repeat-y;
  background-size: 100% 320px;
}

.jungle-vines-left {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='320' viewBox='0 0 120 320'%3E%3Cpath d='M20 0 Q40 80 15 160 Q-5 240 25 320' fill='none' stroke='%2322c55e' stroke-width='3' opacity='0.5'/%3E%3Cpath d='M50 0 Q70 100 45 200 Q30 280 55 320' fill='none' stroke='%23166534' stroke-width='5' opacity='0.4'/%3E%3Cellipse cx='15' cy='90' rx='18' ry='10' fill='%23166534' opacity='0.5' transform='rotate(-30 15 90)'/%3E%3Cellipse cx='48' cy='210' rx='22' ry='11' fill='%2322c55e' opacity='0.4' transform='rotate(20 48 210)'/%3E%3C/svg%3E");
}

.jungle-vines-right {
  right: 0;
  transform: scaleX(-1);
}

.jungle-leaves {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cellipse cx='40' cy='30' rx='28' ry='14' fill='%23166534' opacity='0.12' transform='rotate(-25 40 30)'/%3E%3Cellipse cx='160' cy='60' rx='32' ry='15' fill='%2322c55e' opacity='0.1' transform='rotate(35 160 60)'/%3E%3Cellipse cx='100' cy='150' rx='36' ry='16' fill='%2314532d' opacity='0.14' transform='rotate(-10 100 150)'/%3E%3Cellipse cx='30' cy='170' rx='24' ry='12' fill='%234ade80' opacity='0.08' transform='rotate(50 30 170)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  animation: leafDrift 60s linear infinite;
}

@keyframes leafDrift {
  from { background-position: 0 0; }
  to { background-position: 280px 560px; }
}

.jungle-mist {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgb(4 20 10 / 0.85), transparent);
}

.jungle-fireflies {
  position: absolute;
  inset: 0;
}

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #bbf7d0;
  box-shadow: 0 0 8px 2px rgb(187 247 208 / 0.8);
  animation: fireflyFloat var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

@keyframes fireflyFloat {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  20% { opacity: 0.9; }
  50% { opacity: 0.4; transform: translate(var(--dx, 30px), var(--dy, -60px)) scale(1); }
  80% { opacity: 0.7; }
}

.jungle-sunbeam {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 200px;
  height: 120%;
  background: linear-gradient(180deg, rgb(251 191 36 / 0.07), transparent 70%);
  transform: rotate(15deg);
  filter: blur(20px);
}

.jungle-sunbeam-2 {
  left: 65%;
  width: 140px;
  opacity: 0.6;
  transform: rotate(-8deg);
}

/* ── Content styles ── */
.hero-banner {
  background-size: cover;
  background-position: center;
  mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
  opacity: 0.35;
}

.hero-glow {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgb(34 197 94 / 0.2), transparent),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgb(245 158 11 / 0.1), transparent),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgb(22 101 52 / 0.15), transparent);
}

.grid-bg {
  background-image:
    linear-gradient(rgb(34 197 94 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(34 197 94 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.avatar-ring {
  background: linear-gradient(135deg, #22c55e, #f59e0b, #4ade80);
  padding: 3px;
}

.profile-card {
  background: linear-gradient(160deg, rgb(15 36 24 / 0.92) 0%, rgb(6 20 12 / 0.96) 100%);
  box-shadow:
    0 0 0 1px rgb(34 197 94 / 0.15),
    0 24px 48px rgb(0 0 0 / 0.45),
    0 0 80px rgb(34 197 94 / 0.08);
  backdrop-filter: blur(8px);
}

.card-hover {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgb(34 197 94 / 0.45);
  box-shadow: 0 12px 40px rgb(34 197 94 / 0.12);
}

.nav-scrolled {
  background-color: rgb(4 16 8 / 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(30 58 42 / 0.9);
}

.btn-tiger {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 24px rgb(245 158 11 / 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-tiger:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 32px rgb(245 158 11 / 0.4);
  transform: translateY(-1px);
}

.btn-x {
  background: rgb(0 0 0 / 0.5);
  border: 1px solid rgb(34 197 94 / 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-x:hover {
  background: rgb(34 197 94 / 0.12);
  border-color: rgb(74 222 128 / 0.4);
}

.stat-pill {
  background: rgb(15 36 24 / 0.75);
  border: 1px solid rgb(30 58 42);
  backdrop-filter: blur(4px);
}

.tweet-embed-slot {
  min-height: 200px;
}

.tweet-embed-slot blockquote {
  margin: 0 !important;
}

.fade-in {
  animation: fadeIn 0.7s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: 0.08s; }
.stagger-2 { animation-delay: 0.16s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.4s; }

.highlight-icon {
  background: linear-gradient(135deg, rgb(34 197 94 / 0.2), rgb(22 101 52 / 0.1));
  color: #4ade80;
}

/* Jungle audio toggle */
.jungle-audio-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgb(34 197 94 / 0.35);
  background: rgb(6 24 14 / 0.9);
  backdrop-filter: blur(12px);
  color: #86efac;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.35);
}

.jungle-audio-btn:hover {
  border-color: rgb(74 222 128 / 0.6);
  color: #bbf7d0;
  transform: scale(1.03);
}

.jungle-audio-btn.jungle-audio-active {
  border-color: rgb(74 222 128 / 0.7);
  box-shadow: 0 0 20px rgb(34 197 94 / 0.25);
}

.jungle-audio-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.jungle-enter-hint {
  position: fixed;
  bottom: 4.5rem;
  right: 1.25rem;
  z-index: 59;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  background: rgb(6 24 14 / 0.85);
  border: 1px solid rgb(34 197 94 / 0.2);
  color: #86efac;
  font-size: 0.7rem;
  pointer-events: none;
  animation: hintPulse 2.5s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}