@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-darkest: #05080A;
  --bg-primary: #080D10;
  --bg-surface: #0E161B;
  --bg-card: rgba(14, 23, 29, 0.75);
  --bg-card-hover: rgba(20, 33, 41, 0.88);
  --border-subtle: rgba(16, 185, 129, 0.12);
  --border-accent: rgba(16, 185, 129, 0.35);
  --border-hover: rgba(52, 211, 153, 0.5);
  
  --emerald: #10B981;
  --emerald-light: #34D399;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-deep: #064E3B;
  
  --burgundy: #9F1239;
  --burgundy-light: #E11D48;
  --burgundy-glow: rgba(159, 18, 57, 0.25);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-highlight: #A7F3D0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald);
}

/* Selection */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #FFFFFF;
}

/* Typography Utility */
.font-heading {
  font-family: 'Outfit', sans-serif;
}
.font-mono-tag {
  font-family: 'Space Grotesk', sans-serif;
}

/* Background Ambient Glows */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(6, 78, 59, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.glow-orb-2 {
  position: absolute;
  top: 35%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(159, 18, 57, 0.08) 0%, rgba(136, 19, 55, 0.02) 60%, transparent 75%);
  filter: blur(90px);
  border-radius: 50%;
  animation: floatOrb2 26s ease-in-out infinite alternate;
}

.glow-orb-3 {
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.09) 0%, transparent 70%);
  filter: blur(75px);
  border-radius: 50%;
  animation: floatOrb 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.05); }
  100% { transform: translate(30px, 50px) scale(0.92); }
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #34D399, #F59E0B, #E11D48);
  width: 0%;
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px -5px var(--emerald-glow);
}

/* Highlight badge */
.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-burgundy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(159, 18, 57, 0.15);
  color: #FDA4AF;
  border: 1px solid rgba(159, 18, 57, 0.3);
}

/* Hero Portrait Aura */
.portrait-wrapper {
  position: relative;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(159, 18, 57, 0.3) 50%, rgba(52, 211, 153, 0.2) 100%);
  box-shadow: 0 0 50px -10px rgba(16, 185, 129, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.portrait-wrapper:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 0 65px -5px rgba(16, 185, 129, 0.35), 0 35px 60px -15px rgba(0, 0, 0, 0.8);
}

.portrait-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  filter: contrast(1.03) saturate(1.05);
}

/* Floating Status Pill on Portrait */
.portrait-floating-pill {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(8, 13, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Glowing text */
.text-gradient-emerald {
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #A7F3D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #042F2E;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #02201E;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: rgba(16, 185, 129, 0.08);
  color: #F8FAFC;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.5);
  color: #34D399;
  transform: translateY(-2px);
}

.btn-burgundy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, #9F1239 0%, #881337 100%);
  color: #FFF1F2;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(225, 29, 72, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(159, 18, 57, 0.4);
  text-decoration: none;
}

.btn-burgundy:hover {
  background: linear-gradient(135deg, #BE123C 0%, #9F1239 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(225, 29, 72, 0.5);
}

/* Section Container */
.section-wrapper {
  position: relative;
  z-index: 1;
  padding: 6.5rem 1.5rem;
}

@media (min-width: 768px) {
  .section-wrapper {
    padding: 7.5rem 2rem;
  }
}

/* Timeline Custom Styles */
.timeline-stem {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, #10B981 0%, rgba(16, 185, 129, 0.25) 50%, rgba(159, 18, 57, 0.3) 100%);
}

@media (min-width: 768px) {
  .timeline-stem {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--emerald);
  box-shadow: 0 0 14px var(--emerald);
  top: 24px;
}

/* Filter Tab Pills */
.filter-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.4);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.filter-btn.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border-color: var(--emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* SDG & Climate Advocacy Badges */
.sdg-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(16, 185, 129, 0.12);
  background: linear-gradient(145deg, rgba(14, 23, 29, 0.7) 0%, rgba(9, 14, 18, 0.9) 100%);
}

.sdg-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px -3px rgba(16, 185, 129, 0.25);
}

/* Media Gallery Cards */
.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px var(--emerald-glow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 13, 16, 0.95) 0%, rgba(8, 13, 16, 0.4) 50%, transparent 100%);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0E161B;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(14, 23, 29, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--emerald);
  color: #F8FAFC;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 0 15px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideToast 0.3s ease forwards;
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reveal on Scroll */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle Leaf Float Effect */
.leaf-accent {
  animation: leafHover 4s ease-in-out infinite alternate;
}

@keyframes leafHover {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(4deg); }
  100% { transform: translateY(3px) rotate(-3deg); }
}
