/* ==========================================================================
   ARBORIA - Eco-Brutalist Pure CSS Stylesheet
   ========================================================================== */

/* CSS Variables */
:root {
  --bg-forest-950: #060b08;
  --bg-forest-900: #0a120d;
  --bg-forest-850: #111e16;
  --bg-forest-800: #172b1f;
  --emerald-accent: #10b981;
  --emerald-bright: #34d399;
  --emerald-glow: #a7f3d0;
  --emerald-muted: #d1f4e2;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-forest-950);
  color: var(--emerald-muted);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Background Fractal Noise SVG Overlay */
.noise-bg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-forest-950);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-forest-800);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-accent);
}

/* Pixel Grid Corner Crosses (RunRobRun Style) */
.pixel-cross {
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  z-index: 40;
}
.pixel-cross::before, .pixel-cross::after {
  content: '';
  position: absolute;
  background: rgba(16, 185, 129, 0.4);
}
.pixel-cross::before {
  top: 5px;
  left: 0;
  width: 11px;
  height: 1px;
}
.pixel-cross::after {
  top: 0;
  left: 5px;
  width: 1px;
  height: 11px;
}

/* Pixel Transition Grid Overlay */
.pixel-transition-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(6, 1fr);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pixel-transition-overlay.active {
  opacity: 1;
}
.pixel-cell {
  background: var(--bg-forest-900);
  border: 1px solid rgba(16, 185, 129, 0.08);
  animation: pixelFade 0.7s ease-in-out forwards;
}
@keyframes pixelFade {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Glowing Custom Cursor Orb */
.cursor-orb {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  left: -100px;
  top: -100px;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
}
.cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald-bright);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--emerald-bright);
}
.cursor-orb.hovered .cursor-ring {
  width: 56px;
  height: 56px;
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--emerald-bright);
  backdrop-filter: blur(1px);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(17, 30, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  items-center: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--emerald-accent);
  color: var(--bg-forest-950);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  background-color: var(--emerald-bright);
  transform: scale(1.03);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(10, 18, 13, 0.9);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background-color: var(--bg-forest-850);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  background: rgba(6, 11, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}
.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-accent);
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  display: block;
}
.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-accent);
  margin-top: -0.25rem;
  display: block;
}

.live-counter-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-forest-900);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.live-pulse {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}
.live-pulse .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--emerald-bright);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.live-pulse .dot {
  position: relative;
  border-radius: 50%;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--emerald-accent);
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}
.nav-link {
  color: rgba(209, 244, 226, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--emerald-bright);
}

.mobile-toggle {
  background: none;
  border: none;
  color: var(--emerald-accent);
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-drawer {
  background: var(--bg-forest-900);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding: 1rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.mobile-drawer a {
  color: var(--emerald-muted);
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 7rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  overflow: hidden;
}
.hero-radial-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(16,185,129,0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(16,185,129,0.04) 1px, transparent 1px);
  background-size: 4rem 4rem;
  pointer-events: none;
}
.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  z-index: 10;
}
.hero-top-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .hero-top-row { flex-direction: row; align-items: center; }
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tag-ping {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--emerald-bright);
}
.tag-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--emerald-bright);
  letter-spacing: 0.1em;
}

/* Audio Player (RunRobRun Style) */
.audio-player {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(10, 18, 13, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-bright);
}
.equalizer-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 14px;
}
.eq-bar {
  width: 2px;
  background-color: var(--emerald-bright);
  border-radius: 2px;
  height: 4px;
  transition: height 0.3s ease;
}
.audio-player.playing .bar-1 { animation: eqBounce 0.8s ease-in-out infinite alternate; }
.audio-player.playing .bar-2 { animation: eqBounce 1.1s ease-in-out infinite alternate 0.2s; }
.audio-player.playing .bar-3 { animation: eqBounce 0.9s ease-in-out infinite alternate 0.4s; }
@keyframes eqBounce { 0% { height: 3px; } 100% { height: 12px; } }

.audio-play-btn, .audio-dropdown-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.track-title {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 16rem;
  background: var(--bg-forest-900);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 50;
}
.playlist-header {
  font-size: 0.625rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--emerald-accent);
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid var(--bg-forest-800);
  margin-bottom: 0.25rem;
}
.playlist-item {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  color: rgba(209, 244, 226, 0.8);
  font-family: var(--font-body);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.playlist-item:hover, .playlist-item.active {
  background: var(--bg-forest-850);
  color: var(--emerald-bright);
}

/* Kinetic Title */
.hero-content {
  margin: 3rem 0;
}
.badge-subhead {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  background: rgba(6, 11, 8, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 0.95;
  color: white;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 7rem; } }

.gradient-text {
  background: linear-gradient(to right, #65c592, #34d399, #9ce3bc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-action-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-end;
}
@media (min-width: 1024px) {
  .hero-action-grid { grid-template-columns: 7fr 5fr; }
}
.hero-description {
  color: rgba(209, 244, 226, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Marquee Ticker */
.ticker-bar {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.75rem 0;
  background: rgba(10, 18, 13, 0.4);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.8);
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Sections Common */
.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .section-heading { font-size: 3.5rem; } }

/* About & Impact Stats */
.about-section {
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) { .mission-grid { grid-template-columns: 7fr 5fr; } }

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }

.metric-card {
  padding: 1.5rem;
  border-radius: 1rem;
}
.metric-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-accent);
  margin-bottom: 1rem;
}
.metric-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: white;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--emerald-accent);
  margin-top: 0.25rem;
}
.metric-sub {
  font-size: 0.75rem;
  color: rgba(209, 244, 226, 0.5);
  margin-top: 0.5rem;
}

.activity-stream-card {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(10, 18, 13, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.stream-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-bright);
  margin-bottom: 1rem;
}
.activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .activity-grid { grid-template-columns: repeat(3, 1fr); } }

.activity-item {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(17, 30, 22, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.15);
  font-size: 0.75rem;
}
.activity-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  color: var(--emerald-accent);
  margin-bottom: 0.25rem;
}
.activity-tree { color: white; font-weight: 600; }
.activity-loc { color: rgba(209, 244, 226, 0.5); font-size: 0.6875rem; }

/* 3D Canopy Carousel */
.carousel-section {
  position: relative;
  background: rgba(10, 18, 13, 0.4);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}
.carousel-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .carousel-header { flex-direction: row; align-items: flex-end; } }

.carousel-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.carousel-arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-forest-850);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-arrow:hover {
  background: var(--emerald-accent);
  color: var(--bg-forest-950);
}
.carousel-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-accent);
  padding: 0 0.5rem;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
}
@media (min-width: 1024px) {
  .spotlight-card { grid-template-columns: 1fr 1fr; padding: 2.5rem; }
}

.spotlight-image-wrap {
  position: relative;
  height: 380px;
  border-radius: 1rem;
  overflow: hidden;
}
.spotlight-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.spotlight-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(6, 11, 8, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.spotlight-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(6, 11, 8, 0.8);
  backdrop-filter: blur(8px);
}
.scientific-name { font-family: var(--font-mono); font-size: 0.75rem; color: var(--emerald-accent); font-style: italic; }
.category-name { color: white; font-weight: 700; font-size: 1.125rem; }

.spotlight-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.tree-title { font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; color: white; }
.tree-desc { color: rgba(209, 244, 226, 0.7); font-size: 0.875rem; line-height: 1.6; }

.tree-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.metric-box {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(17, 30, 22, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  flex-direction: column;
}
.box-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--emerald-accent); display: flex; align-items: center; gap: 0.375rem; }
.box-val { font-weight: 700; font-size: 1.125rem; color: white; margin-top: 0.25rem; }

.eco-benefit-box {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-bright);
}
.benefit-title { font-weight: 700; display: block; margin-bottom: 0.25rem; }

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .thumbnail-grid { grid-template-columns: repeat(6, 1fr); } }

.thumb-card {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: rgba(6, 11, 8, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.15);
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}
.thumb-card.active, .thumb-card:hover {
  background: var(--bg-forest-850);
  border-color: var(--emerald-bright);
}
.thumb-img { height: 4rem; border-radius: 0.5rem; overflow: hidden; margin-bottom: 0.5rem; }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-name { font-weight: 700; font-size: 0.75rem; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-sub { font-family: var(--font-mono); font-size: 0.625rem; color: var(--emerald-accent); }

/* Events Section */
.events-section {
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}
.events-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .events-header { flex-direction: row; align-items: flex-end; } }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--bg-forest-900);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--emerald-accent);
  color: var(--bg-forest-950);
  font-weight: 700;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }

.event-card {
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.event-banner {
  position: relative;
  height: 15rem;
}
.event-banner img { width: 100%; height: 100%; object-fit: cover; }
.event-status-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.status-live { background: rgba(16, 185, 129, 0.2); color: var(--emerald-bright); border: 1px solid var(--emerald-bright); }
.status-upcoming { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; border: 1px solid #2dd4bf; }
.status-completed { background: rgba(17, 30, 22, 0.8); color: rgba(209, 244, 226, 0.6); }

.event-category-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(6, 11, 8, 0.8);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-accent);
}

.event-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.event-title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: white; }
.event-desc { color: rgba(209, 244, 226, 0.7); font-size: 0.875rem; line-height: 1.5; }
.event-meta { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(52, 211, 153, 0.8); display: flex; flex-direction: column; gap: 0.375rem; border-top: 1px solid var(--bg-forest-850); padding-top: 0.75rem; }

.event-progress-wrap { margin-top: 0.5rem; }
.progress-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--emerald-accent); margin-bottom: 0.25rem; }
.progress-bar { width: 100%; height: 0.5rem; border-radius: 9999px; background: var(--bg-forest-850); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, #10b981, #34d399); border-radius: 9999px; }

/* Contact Section & Formspree */
.contact-section {
  background: rgba(10, 18, 13, 0.5);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: 0.375rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-forest-850);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: white;
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.form-input:focus {
  border-color: var(--emerald-bright);
}

.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}
.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bg-forest-850);
  font-size: 0.75rem;
  color: rgba(209, 244, 226, 0.7);
  line-height: 1.6;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 11, 8, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-container {
  width: 100%;
  max-width: 32rem;
  border-radius: 1.5rem;
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg-forest-850);
  border: none;
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--bg-forest-950);
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--bg-forest-900);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(209, 244, 226, 0.4);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--bg-forest-900);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-btn:hover {
  background: var(--emerald-accent);
  color: var(--bg-forest-950);
}

.hidden { display: none !important; }
