/* ========================================
   Main Stylesheet - Dr. Yemi Adeyeye Portfolio
   ======================================== */

/* Root Variables */
:root {
  /* Primary Colors - Nature/Forest Theme */
  --primary-dark: #1B4332;
  --primary-medium: #52796F;
  --primary-light: #84A98C;
  --accent-brown: #3E2723;
  
  /* Neutral Colors - With Greenish Tint */
  --white: #F8FBF9;
  --off-white: #F1F9F4;
  --light-gray: #E8F3ED;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --black: #000000;
  
  /* Functional Colors */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(27, 67, 50, 0.1);
  --shadow-md: 0 4px 12px rgba(27, 67, 50, 0.15);
  --shadow-lg: 0 8px 24px rgba(27, 67, 50, 0.2);
  --shadow-xl: 0 12px 48px rgba(27, 67, 50, 0.25);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Font Awesome Icons Fix - Enhanced */
i.fa, i.fas, i.far, i.fab,
.fa, .fas, .far, .fab {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Ensure icons are visible */
[class^="fa-"]::before,
[class*=" fa-"]::before {
  display: inline-block;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* Focus Styles for Keyboard Navigation */
*:focus {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* High contrast focus for better visibility */
.btn:focus {
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.5);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: var(--off-white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.breadcrumb {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--gray);
}

.breadcrumb-item a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary-medium);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--gray);
  font-weight: 500;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* PREMIUM LOADER - World-Class Design */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #52796F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.loader.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.loader-content {
  text-align: center;
  position: relative;
}

/* Animated Forest Scene */
.loader-forest-scene {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 40px;
}

/* Glowing Circle Background */
.loader-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(132, 169, 140, 0.3), transparent 70%);
  border-radius: 50%;
  animation: glow 3s ease-in-out infinite;
}

/* Main Profile Image in Loader */
.loader-main-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #B7E4C7;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: floatTree 4s ease-in-out infinite;
}

.loader-main-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Orbiting Leaves */
.loader-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
}

.loader-leaf {
  position: absolute;
  font-size: 24px;
  color: #B7E4C7;
  animation: orbit 8s linear infinite;
}

.loader-leaf:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.loader-leaf:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: -2s;
}

.loader-leaf:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -4s;
}

.loader-leaf:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-delay: -6s;
}

/* Progress Ring */
.loader-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
}

.loader-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.loader-ring circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.loader-ring .ring-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.loader-ring .ring-progress {
  stroke: #B7E4C7;
  stroke-dasharray: 785;
  stroke-dashoffset: 785;
  animation: ringFill 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 8px rgba(183, 228, 199, 0.6));
}

/* Text */
.loader-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.loader-tagline {
  font-size: 1rem;
  color: #B7E4C7;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Particles */
.loader-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(183, 228, 199, 0.6);
  border-radius: 50%;
  animation: float 6s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 7s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(5) { left: 50%; animation-delay: 0.5s; animation-duration: 11s; }
.particle:nth-child(6) { left: 60%; animation-delay: 1.5s; animation-duration: 8s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 10s; }
.particle:nth-child(8) { left: 80%; animation-delay: 3.5s; animation-duration: 9s; }

/* Animations */
@keyframes glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes floatTree {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
  50% { transform: translate(-50%, -50%) translateY(-15px) scale(1.05); }
}

@keyframes orbit {
  0% { opacity: 0; transform: rotate(0deg) translateX(100px) rotate(0deg); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes ringFill {
  0% { stroke-dashoffset: 785; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 785; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 67, 50, 0.7);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
  padding: var(--spacing-xxl) 0;
}

.hero-text {
  color: var(--white);
}

.path-indicator {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--primary-light);
  margin-bottom: var(--spacing-md);
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--primary-light);
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-profile {
  position: relative;
}

.profile-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

.profile-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-light);
  border-radius: 20px;
  z-index: -1;
}

/* Forest Elements Animation */
.forest-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.animated-leaf {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--primary-light);
  opacity: 0.3;
  clip-path: polygon(50% 0%, 0% 100%, 50% 85%, 100% 100%);
  animation: float 20s infinite ease-in-out;
}

.leaf-1 { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 18s; }
.leaf-2 { top: 40%; left: 80%; animation-delay: 3s; animation-duration: 22s; }
.leaf-3 { top: 60%; left: 20%; animation-delay: 6s; animation-duration: 20s; }
.leaf-4 { top: 30%; left: 60%; animation-delay: 9s; animation-duration: 25s; }
.leaf-5 { top: 80%; left: 90%; animation-delay: 12s; animation-duration: 19s; }

/* Wave Separator */
.wave-separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.wave-separator svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Expertise Section */
.expertise-section {
  padding: var(--spacing-xxl) 0;
  background: var(--off-white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.expertise-card {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
}

.icon-svg {
  width: 100%;
  height: 100%;
}

.expertise-card h3 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

/* Impact Section */
.impact-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #004d29 0%, #00331a 50%, #001a0d 100%);
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(5, 150, 105, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.impact-section .container {
  position: relative;
  z-index: 1;
}

.impact-section .section-title,
.impact-section .section-subtitle {
  color: var(--white);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #10b981;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(16, 185, 129, 0.5),
               0 0 30px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* World Map */
.world-map {
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.map-container {
  position: relative;
  width: 100%;
  height: 500px;
  background: rgba(0, 30, 15, 0.5);
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

#worldMapContainer {
  width: 100% !important;
  height: 500px !important;
  border-radius: 12px;
  overflow: hidden;
}

#worldMapContainer.leaflet-container {
  background: rgba(27, 67, 50, 0.3);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}

#worldMapContainer .leaflet-tile-pane {
  filter: brightness(0.85) contrast(1.1) saturate(0.8);
}

#worldMapContainer .leaflet-control-attribution {
  display: none;
}

#worldMapContainer .leaflet-control-zoom {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#worldMapContainer .leaflet-control-zoom a {
  background: rgba(27, 67, 50, 0.9);
  color: #B7E4C7;
  border: none;
  width: 34px;
  height: 34px;
  line-height: 34px;
  font-size: 18px;
}

#worldMapContainer .leaflet-control-zoom a:hover {
  background: rgba(27, 67, 50, 1);
  color: #FFFFFF;
}

/* Map Legend Control */
.map-legend-control {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
}

.map-legend-control h4 {
  margin: 0 0 12px 0;
  color: #1B4332;
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #E8F3ED;
}

.legend-filter-item {
  margin: 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.legend-filter-item:hover {
  background: #F8FAF9;
}

.legend-checkbox {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.legend-color-box {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.legend-label {
  color: #1B4332;
  font-size: 0.9rem;
  flex: 1;
}

.legend-label i {
  margin-right: 6px;
  width: 16px;
}

.country-path {
  fill: #064e3b;
  stroke: #10b981;
  stroke-width: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.country-path:hover {
  fill: #10b981;
  filter: brightness(1.3);
}

.country-path.active {
  fill: #34d399;
  stroke: #6ee7b7;
  stroke-width: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.5);
  }
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.legend-item.active {
  opacity: 1;
}

.legend-item:not(.active) {
  opacity: 0.5;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Projects Preview */
.projects-preview {
  padding: var(--spacing-xxl) 0;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-category {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: 0.875rem;
}

.project-content {
  padding: var(--spacing-xl);
}

.project-content h3 {
  margin-bottom: var(--spacing-sm);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-medium);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  gap: var(--spacing-sm);
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-xxl) 0;
  background: var(--primary-dark);
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  color: var(--primary-light);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
}

/* Footer - Modern Redesign */
.main-footer {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #1B4332 100%);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #52796F, #84A98C, #B7E4C7, #84A98C, #52796F);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.main-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(183, 228, 199, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(132, 169, 140, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(82, 121, 111, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.footer-logo img {
  transition: transform 0.3s ease;
}

.footer-logo:hover img {
  transform: scale(1.05) rotate(5deg);
  filter: brightness(1.1);
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #B7E4C7;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #B7E4C7, #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.footer-social a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(183, 228, 199, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B7E4C7;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(132, 169, 140, 0.3), rgba(183, 228, 199, 0.3));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover::before {
  transform: translateY(0);
}

.footer-social a span {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.footer-social a span {
  font-size: 20px;
  color: #B7E4C7;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  font-weight: 600;
}

.footer-social a:hover {
  background: rgba(183, 228, 199, 0.25);
  border-color: #B7E4C7;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.footer-social a:hover span {
  color: #ffffff;
  transform: scale(1.15);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-social a:hover span {
  color: #ffffff;
  transform: scale(1.15);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Individual social media colors on hover */
.footer-social a[aria-label="LinkedIn"] {
  background: rgba(0, 119, 181, 0.15);
  border-color: rgba(0, 119, 181, 0.4);
}

.footer-social a[aria-label="LinkedIn"]:hover {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 10px 30px rgba(0, 119, 181, 0.5);
}

.footer-social a[aria-label="Twitter"] {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-social a[aria-label="Twitter"]:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.footer-social a[aria-label="Instagram"] {
  background: rgba(228, 64, 95, 0.15);
  border-color: rgba(228, 64, 95, 0.4);
}

.footer-social a[aria-label="Instagram"]:hover {
  background: #E4405F;
  border-color: #E4405F;
  box-shadow: 0 10px 30px rgba(228, 64, 95, 0.5);
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: var(--spacing-md);
  color: #B7E4C7;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #84A98C;
}

.footer-links a:hover {
  color: #B7E4C7;
  padding-left: 20px;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  left: 0;
  opacity: 1;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-contact p i {
  color: #84A98C;
  font-size: 16px;
  width: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }

/* Page Headers */
.page-header {
  padding: calc(var(--spacing-xxl) + 80px) 0 var(--spacing-xxl);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  text-align: center;
  color: var(--white);
}

.page-title {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--primary-light);
  max-width: 600px;
  margin: 0 auto;
}

@keyframes socialPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Footer Animations Container */
.footer-animations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* CSS-Drawn Falling Leaves */
.css-leaf {
  position: absolute;
  width: 20px;
  height: 16px;
  opacity: 0.7;
  animation: fallLeaves 15s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.css-leaf::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #B7E4C7 0%, #84A98C 50%, #52796F 100%);
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
}

.css-leaf::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, #2F3E46 0%, #354F52 100%);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  top: 20%;
  left: 20%;
}

.css-leaf.leaf-1 {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.css-leaf.leaf-2 {
  left: 30%;
  animation-delay: 3s;
  animation-duration: 22s;
}

.css-leaf.leaf-3 {
  left: 60%;
  animation-delay: 6s;
  animation-duration: 16s;
}

.css-leaf.leaf-4 {
  left: 45%;
  animation-delay: 9s;
  animation-duration: 20s;
}

.css-leaf.leaf-5 {
  left: 75%;
  animation-delay: 12s;
  animation-duration: 25s;
}

.css-leaf.leaf-6 {
  left: 90%;
  animation-delay: 15s;
  animation-duration: 19s;
}

/* CSS-Drawn Floating Particles (Pollen/Fireflies) */
.css-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  opacity: 0.5;
  animation: floatPollen 8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(183, 228, 199, 0.6));
}

.css-particle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #FFD700 0%, #FFA500 70%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.8);
}

.css-particle.particle-1 {
  bottom: 20%;
  left: 15%;
  animation-delay: 0s;
}

.css-particle.particle-2 {
  bottom: 35%;
  left: 45%;
  animation-delay: 2s;
}

.css-particle.particle-3 {
  bottom: 25%;
  left: 75%;
  animation-delay: 4s;
}

.css-particle.particle-4 {
  bottom: 40%;
  left: 25%;
  animation-delay: 1s;
}

.css-particle.particle-5 {
  bottom: 30%;
  left: 65%;
  animation-delay: 3s;
}

.css-particle.particle-6 {
  bottom: 50%;
  left: 35%;
  animation-delay: 5s;
}

.css-particle.particle-7 {
  bottom: 15%;
  left: 85%;
  animation-delay: 7s;
}

/* CSS-Drawn Butterflies */
.css-butterfly {
  position: absolute;
  width: 24px;
  height: 20px;
  opacity: 0.8;
  animation: flutterButterfly 6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(139, 69, 19, 0.4));
}

.css-butterfly::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 16px;
  background: linear-gradient(45deg, #8B4513 0%, #A0522D 100%);
  border-radius: 50% 50% 0 50%;
  transform: rotate(-20deg);
  left: 0;
}

.css-butterfly::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 16px;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(20deg);
  right: 0;
}

.css-butterfly.butterfly-1 {
  bottom: 15%;
  right: 20%;
  animation-delay: 0s;
}

.css-butterfly.butterfly-2 {
  bottom: 45%;
  right: 10%;
  animation-delay: 3s;
}

.css-butterfly.butterfly-3 {
  bottom: 60%;
  right: 30%;
  animation-delay: 5s;
}

.css-butterfly.butterfly-4 {
  bottom: 25%;
  right: 50%;
  animation-delay: 7s;
}

/* CSS-Drawn Birds */
.css-bird {
  position: absolute;
  width: 20px;
  height: 16px;
  opacity: 0.8;
  animation: flyBird 12s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.css-bird::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 8px;
  background: #52796F;
  border-radius: 50% 50% 0 50%;
  transform: rotate(-10deg);
}

.css-bird::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 6px;
  background: #2F3E46;
  border-radius: 50%;
  top: 2px;
  left: 12px;
}

.css-bird.bird-1 {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
}

.css-bird.bird-2 {
  top: 25%;
  right: -10%;
  animation-delay: 4s;
  animation-direction: reverse;
}

.css-bird.bird-3 {
  top: 35%;
  left: -10%;
  animation-delay: 8s;
}

/* CSS-Drawn Forest Animals */
.css-deer {
  position: absolute;
  width: 28px;
  height: 20px;
  opacity: 0.7;
  animation: animalWander 20s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.css-deer::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 12px;
  background: #8B4513;
  border-radius: 50% 50% 20% 20%;
}

.css-deer::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #8B4513;
  border-radius: 50%;
  top: -4px;
  left: 6px;
}

.css-deer.deer-1 {
  bottom: 10%;
  left: -5%;
  animation-delay: 0s;
}

.css-rabbit {
  position: absolute;
  width: 20px;
  height: 16px;
  opacity: 0.7;
  animation: animalWander 20s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.css-rabbit::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 10px;
  background: #D2B48C;
  border-radius: 50% 50% 30% 30%;
}

.css-rabbit::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #D2B48C;
  border-radius: 50%;
  top: -3px;
  left: 4px;
}

.css-rabbit.rabbit-1 {
  bottom: 20%;
  right: -5%;
  animation-delay: 7s;
  animation-direction: reverse;
}

.css-fox {
  position: absolute;
  width: 24px;
  height: 18px;
  opacity: 0.7;
  animation: animalWander 20s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.css-fox::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 12px;
  background: linear-gradient(45deg, #FF6347 0%, #CD5C5C 100%);
  border-radius: 50% 50% 25% 25%;
}

.css-fox::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #FF6347;
  border-radius: 50%;
  top: -3px;
  left: 6px;
}

.css-fox.fox-1 {
  bottom: 30%;
  left: -5%;
  animation-delay: 14s;
}

/* CSS-Drawn Trees */
.css-tree {
  position: absolute;
  width: 32px;
  height: 28px;
  opacity: 0.3;
  animation: swayBranch 4s ease-in-out infinite;
}

.css-tree::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 20px;
  background: #8B4513;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.css-tree::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 16px solid #2F3E46;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.css-tree.tree-1 {
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.css-tree.tree-2 {
  top: 20%;
  left: 5%;
  animation-delay: 2s;
}

.css-tree.tree-3 {
  top: 35%;
  right: 15%;
  animation-delay: 4s;
}

.css-tree.tree-4 {
  top: 50%;
  left: 20%;
  animation-delay: 6s;
}

/* CSS-Drawn Flowers */
.css-flower {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.6;
  animation: bloomFlower 8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 192, 203, 0.5));
}

.css-flower::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, #FFB6C1 0%, #FF69B4 50%, #DC143C 100%);
  border-radius: 50%;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.css-flower::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #FFD700;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.css-flower.flower-1 {
  bottom: 5%;
  left: 20%;
  animation-delay: 0s;
}

.css-flower.flower-2 {
  bottom: 8%;
  left: 70%;
  animation-delay: 3s;
}

.css-flower.flower-3 {
  bottom: 12%;
  left: 45%;
  animation-delay: 6s;
}

/* CSS-Drawn Wind Effects */
.css-wind {
  position: absolute;
  width: 40px;
  height: 4px;
  opacity: 0.4;
  animation: windBlow 10s linear infinite;
  filter: drop-shadow(0 0 10px rgba(135, 206, 235, 0.4));
}

.css-wind::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(135, 206, 235, 0.6) 20%, rgba(135, 206, 235, 0.8) 50%, rgba(135, 206, 235, 0.6) 80%, transparent 100%);
  border-radius: 2px;
}

.css-wind.wind-1 {
  top: 30%;
  left: -5%;
  animation-delay: 0s;
}

.css-wind.wind-2 {
  top: 60%;
  right: -5%;
  animation-delay: 5s;
  animation-direction: reverse;
}

/* CSS-Drawn Seasonal Elements */
.css-snow {
  position: absolute;
  width: 8px;
  height: 8px;
  opacity: 0.5;
  animation: seasonalFall 15s linear infinite;
  color: #E0FFFF;
}

.css-snow::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #E0FFFF 0%, #B0E0E6 70%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(224, 255, 255, 0.8);
}

.css-snow.snow-1 {
  top: -5%;
  left: 50%;
  animation-delay: 0s;
}

.css-rain {
  position: absolute;
  width: 2px;
  height: 16px;
  opacity: 0.5;
  animation: seasonalFall 15s linear infinite;
  color: #4682B4;
}

.css-rain::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, #4682B4 50%, #1E90FF 100%);
  border-radius: 1px;
}

.css-rain.rain-1 {
  top: -5%;
  left: 30%;
  animation-delay: 10s;
}

@keyframes floatPollen {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) translateX(-5px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-25px) translateX(15px) rotate(270deg);
    opacity: 0.7;
  }
}

@keyframes swayBranch {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-1deg);
  }
  75% {
    transform: rotate(1deg);
  }
}

@keyframes flutterButterfly {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) translateX(8px) rotate(5deg);
  }
  50% {
    transform: translateY(-8px) translateX(-3px) rotate(-3deg);
  }
  75% {
    transform: translateY(-20px) translateX(12px) rotate(8deg);
  }
}

@keyframes flyBird {
  0% {
    transform: translateX(-100px) translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(-20px) rotate(5deg);
    opacity: 0;
  }
}

@keyframes animalWander {
  0% {
    transform: translateX(-100px) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    transform: translateX(calc(50vw)) scale(1.1);
  }
  90% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    transform: translateX(calc(100vw + 100px)) scale(0.8);
    opacity: 0;
  }
}

@keyframes bloomFlower {
  0%, 100% {
    transform: scale(0.5) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

@keyframes windBlow {
  0% {
    transform: translateX(-100px) scaleX(0.5);
    opacity: 0;
  }
  50% {
    transform: translateX(calc(50vw)) scaleX(1.5);
    opacity: 0.6;
  }
  100% {
    transform: translateX(calc(100vw + 100px)) scaleX(0.5);
    opacity: 0;
  }
}

@keyframes seasonalFall {
  0% {
    transform: translateY(-50px) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) translateX(50px);
    opacity: 0;
  }
}

/* Water Ecosystem Footer Animations */
@keyframes forestDrift {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(-10px) translateY(-5px);
  }
  50% {
    transform: translateX(5px) translateY(-10px);
  }
  75% {
    transform: translateX(-5px) translateY(5px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-elements .floating-leaf-1 {
  position: absolute;
  top: 20%;
  left: 10%;
  animation: floatLeaf 8s ease-in-out infinite;
}

.floating-elements .floating-particle-1 {
  position: absolute;
  top: 60%;
  right: 15%;
  animation: floatParticle 12s ease-in-out infinite;
}

.floating-elements .floating-bird-1 {
  position: absolute;
  top: 30%;
  right: 20%;
  animation: floatBird 15s ease-in-out infinite;
}

.floating-elements .floating-butterfly-1 {
  position: absolute;
  bottom: 25%;
  left: 20%;
  animation: floatButterfly 10s ease-in-out infinite;
}

@keyframes floatLeaf {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.8;
  }
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  33% {
    transform: translateY(-15px) translateX(10px);
    opacity: 0.6;
  }
  66% {
    transform: translateY(10px) translateX(-5px);
    opacity: 0.5;
  }
}

@keyframes floatBird {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateX(30px) translateY(-10px) rotate(2deg);
    opacity: 0.8;
  }
  50% {
    transform: translateX(60px) translateY(5px) rotate(-1deg);
    opacity: 0.6;
  }
  75% {
    transform: translateX(90px) translateY(-5px) rotate(1deg);
    opacity: 0.7;
  }
}

@keyframes floatButterfly {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-25px) translateX(15px) rotate(3deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-40px) translateX(30px) rotate(-2deg);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-25px) translateX(45px) rotate(1deg);
    opacity: 0.7;
  }
}

/* Water Ecosystem Footer Animations */
.css-fish {
  position: absolute;
  width: 40px;
  height: 20px;
  background: linear-gradient(45deg, #FF6B6B 0%, #FFA500 50%, #FFD700 100%);
  border-radius: 50% 20px 20px 50%;
  opacity: 0.8;
  animation: swimFish 8s ease-in-out infinite;
}

.css-fish::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 8px;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
}

.css-fish::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid #FFD700;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.css-fish.fish-1 {
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.css-fish.fish-2 {
  top: 40%;
  left: -10%;
  animation-delay: 2s;
  transform: scaleX(-1);
}

.css-fish.fish-3 {
  top: 60%;
  left: -10%;
  animation-delay: 4s;
}

.css-fish.fish-4 {
  top: 30%;
  right: -10%;
  animation-delay: 1s;
  transform: scaleX(-1);
}

.css-fish.fish-5 {
  top: 70%;
  right: -10%;
  animation-delay: 3s;
}

.css-fish.fish-6 {
  top: 50%;
  right: -10%;
  animation-delay: 5s;
  transform: scaleX(-1);
}

@keyframes swimFish {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(calc(100vw + 50px)) translateY(-10px) rotate(2deg);
  }
  50% {
    transform: translateX(calc(100vw + 50px)) translateY(5px) rotate(-1deg);
  }
  75% {
    transform: translateX(calc(100vw + 50px)) translateY(-5px) rotate(1deg);
  }
  100% {
    transform: translateX(calc(100vw + 50px)) translateY(0) rotate(0deg);
  }
}

.css-bubble {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 70%, transparent 100%);
  border-radius: 50%;
  animation: bubbleRise 6s ease-out infinite;
}

.css-bubble.bubble-1 {
  bottom: 10%;
  left: 15%;
  animation-delay: 0s;
}

.css-bubble.bubble-2 {
  bottom: 10%;
  left: 35%;
  animation-delay: 1s;
  width: 6px;
  height: 6px;
}

.css-bubble.bubble-3 {
  bottom: 10%;
  left: 55%;
  animation-delay: 2s;
}

.css-bubble.bubble-4 {
  bottom: 10%;
  left: 75%;
  animation-delay: 0.5s;
  width: 10px;
  height: 10px;
}

.css-bubble.bubble-5 {
  bottom: 10%;
  right: 20%;
  animation-delay: 1.5s;
  width: 5px;
  height: 5px;
}

.css-bubble.bubble-6 {
  bottom: 10%;
  right: 40%;
  animation-delay: 2.5s;
}

.css-bubble.bubble-7 {
  bottom: 10%;
  right: 60%;
  animation-delay: 3s;
  width: 7px;
  height: 7px;
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-30px) scale(1.1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-60px) scale(0.8);
    opacity: 0;
  }
}

.css-water-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(135, 206, 235, 0.6);
  border-radius: 50%;
  animation: waterRipple 4s ease-out infinite;
}

.css-water-ripple.ripple-1 {
  bottom: 15%;
  left: 10%;
  animation-delay: 0s;
}

.css-water-ripple.ripple-2 {
  bottom: 20%;
  left: 40%;
  animation-delay: 1s;
  width: 40px;
  height: 40px;
}

.css-water-ripple.ripple-3 {
  bottom: 25%;
  left: 70%;
  animation-delay: 2s;
}

.css-water-ripple.ripple-4 {
  bottom: 18%;
  right: 15%;
  animation-delay: 0.5s;
  width: 50px;
  height: 50px;
}

@keyframes waterRipple {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.css-water-plant {
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 40px;
  background: linear-gradient(to top, #228B22 0%, #32CD32 50%, #90EE90 100%);
  border-radius: 15px 15px 0 0;
  animation: swayPlant 5s ease-in-out infinite;
}

.css-water-plant::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 10px;
  width: 10px;
  height: 15px;
  background: linear-gradient(to top, #228B22 0%, #32CD32 100%);
  border-radius: 5px 5px 0 0;
  transform: rotate(-10deg);
}

.css-water-plant::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 8px;
  width: 8px;
  height: 12px;
  background: linear-gradient(to top, #228B22 0%, #32CD32 100%);
  border-radius: 4px 4px 0 0;
  transform: rotate(15deg);
}

.css-water-plant.plant-1 {
  left: 5%;
  animation-delay: 0s;
}

.css-water-plant.plant-2 {
  left: 25%;
  animation-delay: 1s;
  height: 35px;
}

.css-water-plant.plant-3 {
  left: 50%;
  animation-delay: 2s;
}

.css-water-plant.plant-4 {
  left: 75%;
  animation-delay: 0.5s;
  height: 45px;
}

.css-water-plant.plant-5 {
  right: 10%;
  animation-delay: 1.5s;
}

@keyframes swayPlant {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.css-turtle {
  position: absolute;
  width: 25px;
  height: 15px;
  background: linear-gradient(45deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
  border-radius: 12px 8px 8px 12px;
  animation: swimTurtle 12s ease-in-out infinite;
}

.css-turtle::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 5px;
  width: 8px;
  height: 8px;
  background: #8B4513;
  border-radius: 50%;
}

.css-turtle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 6px;
  height: 4px;
  background: #228B22;
  border-radius: 2px;
}

.css-turtle.turtle-1 {
  bottom: 25%;
  left: -8%;
  animation-delay: 0s;
}

.css-turtle.turtle-2 {
  bottom: 35%;
  right: -8%;
  animation-delay: 6s;
  transform: scaleX(-1);
}

@keyframes swimTurtle {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(calc(100vw + 30px)) translateY(-5px);
  }
  50% {
    transform: translateX(calc(100vw + 30px)) translateY(3px);
  }
  75% {
    transform: translateX(calc(100vw + 30px)) translateY(-2px);
  }
  100% {
    transform: translateX(calc(100vw + 30px)) translateY(0);
  }
}

.css-duck {
  position: absolute;
  width: 30px;
  height: 20px;
  background: linear-gradient(45deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
  border-radius: 15px 10px 10px 15px;
  animation: swimDuck 10s ease-in-out infinite;
}

.css-duck::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 8px;
  width: 12px;
  height: 8px;
  background: linear-gradient(45deg, #FFF 0%, #F0F8FF 100%);
  border-radius: 6px 6px 0 0;
}

.css-duck::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -2px;
  width: 8px;
  height: 6px;
  background: #228B22;
  border-radius: 4px;
}

.css-duck.duck-1 {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
}

.css-duck.duck-2 {
  top: 25%;
  right: -10%;
  animation-delay: 5s;
  transform: scaleX(-1);
}

@keyframes swimDuck {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(calc(100vw + 40px)) translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateX(calc(100vw + 40px)) translateY(4px) rotate(-1deg);
  }
  75% {
    transform: translateX(calc(100vw + 40px)) translateY(-3px) rotate(0.5deg);
  }
  100% {
    transform: translateX(calc(100vw + 40px)) translateY(0) rotate(0deg);
  }
}