/* 
========================================================================
   WORLD ENVIRONMENTAL STUDIES (WES) - CORE STYLE SYSTEM
   Design Identity: Apple + National Geographic + WWF + UNEP
========================================================================
*/

/* 1. GOOGLE FONTS & STYLESHEET RESETS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors (Light Mode Default) */
  --primary: #1B5E20;       /* Forest Green */
  --primary-rgb: 27, 94, 32;
  --secondary: #43A047;     /* Nature Green */
  --secondary-rgb: 67, 160, 71;
  --accent: #29B6F6;        /* Sky Blue */
  --accent-rgb: 41, 182, 246;
  
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;  /* Light slate gray */
  --bg-tertiary: #E8F5E9;   /* Soft forest tint */
  
  --text-primary: #0F172A;  /* Dark slate */
  --text-secondary: #475569;/* Medium slate */
  --text-light: #94A3B8;
  
  /* Glassmorphism Design Tokens */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: rgba(15, 23, 42, 0.05);
  --border-color: rgba(226, 232, 240, 0.8);
  --card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
  --inset-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-sky: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --gradient-light: linear-gradient(135deg, #F0FDFA 0%, #EFF6FF 100%);
  --gradient-hero: linear-gradient(180deg, #F0FBF2 0%, #FFFFFF 100%);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Poppins', sans-serif;
  
  /* Smooth Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Spacing */
  --nav-height: 80px;
}

/* Dark Mode Tokens Override */
html.dark {
  --bg-primary: #080D09;     /* Deep forest dark */
  --bg-secondary: #0F1710;   /* Slightly lighter dark green */
  --bg-tertiary: #142216;    /* Dark forest accent */
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-light: #64748B;
  
  --glass-bg: rgba(8, 13, 9, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --border-color: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  
  --gradient-light: linear-gradient(135deg, #09130B 0%, #080F16 100%);
  --gradient-hero: linear-gradient(180deg, #050A06 0%, #080D09 100%);
}

/* 2. BASE STYLING */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: auto; /* Handled by Lenis */
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* 3. PREMIUM UI GLOWS & BACKGROUND EFFECTS */
.cursor-glow-element {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(67, 160, 71, 0.12) 0%, rgba(41, 182, 246, 0.05) 50%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  z-index: 10001;
  transition: width 0.1s ease;
}

/* 4. PRELOADER SCREEN */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.preloader-logo {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
  animation: floatLogo 3s ease-in-out infinite;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preloader-bar-wrap {
  width: 200px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.preloader-text {
  margin-top: 1rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* 5. FLOATING LEAVES */
.floating-leaf {
  position: fixed;
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  animation: leafAnimation 12s linear infinite;
  transform-origin: center;
}

@keyframes leafAnimation {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) translateX(150px) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}

/* 6. GLASSMORPHISM UTILITIES */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(190%);
  -webkit-backdrop-filter: blur(12px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(190%);
  -webkit-backdrop-filter: blur(12px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(67, 160, 71, 0.3);
  box-shadow: 0 30px 60px -15px var(--glass-shadow);
}

/* 7. LAYOUT CONTAINERS & SECTIONS */
.wrap {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.section-tag {
  font-family: var(--font-accent);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* 8. STICKY NAVBAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

header.scrolled {
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(195%);
  -webkit-backdrop-filter: blur(16px) saturate(195%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -10px var(--glass-shadow);
}

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.logo img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}

header.scrolled .logo img {
  height: 40px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: var(--transition-fast);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Magnetic / Premium Buttons */
.btn {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(27, 94, 32, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 15px 30px -5px rgba(27, 94, 32, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Theme Toggle Slider Button */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  color: var(--secondary);
}

.theme-toggle-btn .fa-sun {
  display: none;
}

html.dark .theme-toggle-btn .fa-moon {
  display: none;
}

html.dark .theme-toggle-btn .fa-sun {
  display: block;
}

/* Hamburger menu */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* 9. FULL-SCREEN HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  padding-top: 100px;
  padding-bottom: 6rem;
  z-index: 1;
}

/* Background layers for mouse parallax */
.hero-bg-layers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-layer {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  object-fit: cover;
  pointer-events: none;
}

.hero-layer-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  filter: saturate(1.1);
}

html.dark .hero-layer-image {
  opacity: 0.12;
}

/* SVG Flying Birds */
.birds-container {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 40%;
  pointer-events: none;
  z-index: 2;
}

.bird {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B5E20'%3E%3Cpath d='M12 2C11.5 5 9.5 8 5 8c4.5 0 6.5-3 7-6m0 0c.5 3 2.5 6 7 6c-4.5 0-6.5-3-7-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  width: 32px;
  height: 32px;
  position: absolute;
  opacity: 0;
  transform: translate(-50px, 50px);
}

html.dark .bird {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2329B6F6'%3E%3Cpath d='M12 2C11.5 5 9.5 8 5 8c4.5 0 6.5-3 7-6m0 0c.5 3 2.5 6 7 6c-4.5 0-6.5-3-7-6'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  max-width: 750px;
}

.hero-logo-container {
  margin-bottom: 2rem;
}

.hero-logo-container img {
  height: 100px;
  animation: floatHeroLogo 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 30px rgba(67,160,71,0.25));
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-content h1 span.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Floating interactive card for Hero Visual */
.hero-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-card-tag {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.hero-card-title {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Wave Divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-divider .shape-fill {
  fill: var(--bg-secondary);
}

html.dark .wave-divider .shape-fill {
  fill: var(--bg-secondary);
}

@keyframes floatHeroLogo {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

/* 10. INFINITE MARQUEE */
.marquee-container {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 4rem;
  animation: marqueeAnimation 35s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.marquee-item span {
  color: var(--secondary);
}

@keyframes marqueeAnimation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 11. ABOUT SECTION & STATS */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-box {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.about-img-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-floating-stat {
  position: absolute;
  bottom: 2rem;
  right: -2rem;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-floating-stat i {
  font-size: 2rem;
  color: var(--secondary);
}

.about-floating-stat span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.stat-item {
  border-left: 3px solid var(--secondary);
  padding-left: 1.5rem;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Earth Rotation Frame (Extra Premium) */
.earth-illustration-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.earth-sphere {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4fc3f7, #0288d1 40%, #0d47a1 90%);
  box-shadow: 0 0 40px rgba(41,182,246,0.4), inset -20px -20px 50px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
  animation: earthSpin 20s linear infinite;
}

.earth-sphere::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cpath fill='%2366bb6a' fill-opacity='0.85' d='M10,20 Q20,10 30,30 T50,20 T70,40 T90,20 T110,35 T130,20 T150,45 T170,20 T190,30 T200,20 L200,100 L0,100 Z'/%3E%3Cpath fill='%2381c784' fill-opacity='0.7' d='M0,40 Q25,25 50,50 T100,45 T150,55 T200,40 L200,100 L0,100 Z'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  animation: moveClouds 20s linear infinite;
  opacity: 0.85;
}

.earth-sphere::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 10px 10px 20px rgba(255,255,255,0.4), inset -10px -10px 25px rgba(0,0,0,0.6);
  border-radius: 50%;
}

@keyframes earthSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* 12. ACTIVITIES SECTION */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.activity-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.activity-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.activity-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.activity-card:hover .activity-image-wrapper img {
  transform: scale(1.08);
}

.activity-icon-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
}

.activity-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.activity-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.activity-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.activity-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: 10px;
  width: 0; /* Animated dynamically */
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 13. RESEARCH SECTION (TIMELINE & PUBLICATIONS) */
.research-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.research-categories-box {
  position: sticky;
  top: 120px;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.research-nav-item {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  padding: 1.5rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.research-nav-item.active {
  border-color: var(--secondary);
  box-shadow: var(--card-shadow);
  background: var(--bg-secondary);
}

.research-nav-item-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.research-nav-item-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.research-nav-item i {
  color: var(--text-light);
  transition: var(--transition-fast);
}

.research-nav-item.active i {
  color: var(--secondary);
  transform: translateX(5px);
}

/* Timeline Layout */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(67, 160, 71, 0.5);
  transition: var(--transition-fast);
  z-index: 2;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 15px rgba(41, 182, 246, 0.8);
  transform: scale(1.3);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
}

.timeline-date {
  font-weight: 700;
  color: var(--secondary);
}

.timeline-tag {
  background: var(--bg-tertiary);
  color: var(--primary);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.timeline-download-btn {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.timeline-download-btn:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* 14. NEWS SECTION (BLOG) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-image-wrapper img {
  transform: scale(1.08);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 500;
}

.news-category {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-date {
  color: var(--text-light);
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  transition: var(--transition-fast);
}

.news-card:hover h3 {
  color: var(--secondary);
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-read-more {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  transition: var(--transition-fast);
}

.news-read-more i {
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.news-card:hover .news-read-more {
  color: var(--secondary);
}

.news-card:hover .news-read-more i {
  transform: translateX(4px);
}

/* 15. GALLERY SECTION (MASONRY GRID & LIGHTBOX) */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 20px -5px rgba(27, 94, 32, 0.2);
}

/* Masonry Columns */
.gallery-grid {
  columns: 3 320px;
  column-gap: 1.5rem;
  width: 100%;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
  will-change: transform;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(8, 13, 9, 0.85) 0%, rgba(8, 13, 9, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
  z-index: 2;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-cat {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 13, 9, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 100002;
}

.lightbox-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 1rem;
  user-select: none;
  z-index: 100001;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-nav:hover {
  color: var(--accent);
}

/* 16. CONTACT SECTION & MAP */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--bg-tertiary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

html.dark .contact-info-icon {
  background: var(--bg-tertiary);
  color: var(--accent);
}

.contact-info-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Leaflet Map Frame */
.map-container {
  width: 100%;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  z-index: 5;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px -5px rgba(27, 94, 32, 0.3);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
}

.form-group label {
  position: absolute;
  left: 1.5rem;
  top: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  pointer-events: none;
  background: var(--bg-primary);
  padding: 0 0.25rem;
}

/* Float label effect on focus or populated */
.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
}

/* 17. PREMIUM GLASS FOOTER */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-wave {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.footer-wave .shape-fill {
  fill: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col-about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-col-about p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.newsletter-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.newsletter-form {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 0.25rem;
}

.newsletter-form input {
  border: none;
  background: none;
  outline: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  flex-grow: 1;
}

.newsletter-form button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(27, 94, 32, 0.2);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(27, 94, 32, 0.35);
}

/* 18. MULTI-PAGE & SUB-PAGE DECORATIVE HEROES */
.subpage-hero {
  height: 50vh;
  min-height: 400px;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  z-index: 1;
}

.subpage-hero .hero-bg-layers .hero-layer-image {
  opacity: 0.15;
}

html.dark .subpage-hero .hero-bg-layers .hero-layer-image {
  opacity: 0.08;
}

.subpage-hero h1 {
  margin-bottom: 1rem;
}

.subpage-breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.subpage-breadcrumbs a {
  color: var(--text-light);
}

.subpage-breadcrumbs a:hover {
  color: var(--secondary);
}

/* Interactive Timeline Component (About & Activities Page) */
.interactive-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}

.timeline-card {
  padding: 2rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  align-items: center;
}

.timeline-year-badge {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* 19. RESPONSIVE MEDIA QUERIES (MOBILE-FIRST PRINCIPLE OVERRIDES) */
@media (max-width: 1200px) {
  .about-grid {
    gap: 4rem;
  }
  .contact-grid {
    gap: 3rem;
  }
}

@media (max-width: 991px) {
  section {
    padding: 6rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-logo-container {
    display: flex;
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .research-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .research-categories-box {
    position: static;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    columns: 2 300px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Navigation mobile menu */
  nav {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 300px;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-primary);
    box-shadow: -15px 0 30px rgba(0,0,0,0.05);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.5rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
    z-index: 1001;
    border-left: 1px solid var(--border-color);
  }
  
  nav.active {
    right: 0;
  }
  
  .menu-btn {
    display: flex;
  }
  
  /* Hamburger animation active state */
  .menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .activities-grid,
  .news-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .gallery-grid {
    columns: 1 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .timeline-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 1.25rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .logo span {
    display: none; /* Keep logo mark only on very small devices */
  }
}
