/**
 * Africa Surveys - Core Styles
 * A modern, responsive stylesheet with improved accessibility and performance
 */

/* 
 * CSS Variables and Custom Properties
 * Enables consistent theming and easier customization
 */
:root {
  /* Primary color palette - Enhanced for better contrast and visual appeal */
  --primary-color: #4361ee;
  --primary-dark: #3a4cd1;
  --primary-light: #738afc;
  --primary-very-light: #eef2ff;
  
  /* Secondary/accent colors - Vibrant and complementary to primary */
  --secondary-color: #ff5a5f;
  --secondary-dark: #e84c52;
  --secondary-light: #ff8589;
  
  /* Neutral colors */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Semantic colors */
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-family-headings: 'Poppins', var(--font-family-base);
  --font-size-base: 16px;
  --line-height-base: 1.5;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-xxl: 3rem;     /* 48px */
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;
  --border-radius-full: 9999px;
  --border-width: 1px;
  --border-color: var(--neutral-400);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
  
  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
  --header-height-mobile: 70px;
  --section-spacing: 80px;
  --section-spacing-mobile: 50px;
  
  /* Z-index levels */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

/* Dark Mode Theme Variables */
:root.dark-mode {
  --primary-color: #5a7ee6;
  --primary-dark: #4a6fdc;
  --primary-light: #8ca4eb;
  --primary-very-light: #2a3851;
  
  --neutral-100: #212529;
  --neutral-200: #343a40;
  --neutral-300: #495057;
  --neutral-400: #6c757d;
  --neutral-500: #adb5bd;
  --neutral-600: #ced4da;
  --neutral-700: #dee2e6;
  --neutral-800: #e9ecef;
  --neutral-900: #f8f9fa;
  
  --border-color: #495057;
  
  /* Adjusted shadows for dark mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-base);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root.dark-mode body {
  color: var(--neutral-700);
  background-color: var(--neutral-100);
}

/* Remove focus outline for mouse users, keep it for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--neutral-900);
}

:root.dark-mode h1, 
:root.dark-mode h2, 
:root.dark-mode h3, 
:root.dark-mode h4, 
:root.dark-mode h5, 
:root.dark-mode h6 {
  color: var(--neutral-900);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

:root.dark-mode a {
  color: var(--primary-light);
}

:root.dark-mode a:hover {
  color: var(--neutral-100);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--section-spacing) 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-success {
  color: var(--success-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-muted {
  color: var(--neutral-600);
}

.bg-primary {
  background-color: var(--primary-color);
  color: white;
}

.bg-light {
  background-color: var(--neutral-200);
}

.bg-dark {
  background-color: var(--neutral-800);
  color: white;
}

/* Visibility utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header & Navigation - World Class Design */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-index-fixed);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  height: var(--header-height);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark Mode Header */
:root.dark-mode header {
  background-color: rgba(33, 37, 41, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

:root.dark-mode header.scrolled {
  background-color: rgba(33, 37, 41, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

/* Theme Toggle Button - General Styles */
.theme-toggle {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #495057;
  z-index: 1001;
}

.theme-toggle:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: scale(1.05);
}

.theme-toggle i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Dark mode theme toggle styles */
:root.dark-mode .theme-toggle {
  background: #495057;
  border-color: #6c757d;
  color: #ffffff;
}

:root.dark-mode .theme-toggle:hover {
  background: #6c757d;
  border-color: #adb5bd;
}

/* World Class Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

:root.dark-mode .logo {
  color: #ffffff;
}

.logo:hover {
  transform: scale(1.02);
  color: var(--primary-color);
}

.logo-img {
  height: 40px;
  width: auto;
}

/* World Class Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0.7rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

:root.dark-mode .mobile-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mobile-toggle:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

:root.dark-mode .mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

header nav {
  display: flex;
  align-items: center;
}

header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.6rem; /* Adjusted spacing between menu items */
  align-items: center;
}

header nav ul li {
  position: relative;
  margin: 0;
}

/* World Class Navigation Links */
header nav ul li a {
  display: block;
  color: #1a1a1a;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 12px;
  letter-spacing: 0.02em;
  position: relative;
  text-transform: capitalize;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark Mode Navigation Links */
:root.dark-mode header nav ul li a {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects - Light Mode */
header nav ul li a:hover {
  color: #000000;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hover Effects - Dark Mode */
:root.dark-mode header nav ul li a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* World Class Navigation Effects */
header nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 8px;
  left: 50%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(-50%);
  opacity: 0;
  border-radius: 2px;
}

header nav ul li a:hover::after {
  width: 24px;
  opacity: 1;
}

/* Active Navigation Item - Light Mode */
header nav ul li.active a {
  color: #000000;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Active Navigation Item - Dark Mode */
:root.dark-mode header nav ul li.active a {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

header nav ul li.active a::after {
  width: 24px;
  opacity: 1;
}

/* World Class CTA Buttons - Contact & Become a Panelist */
header nav ul li:nth-last-child(2) a::after,
header nav ul li:nth-last-child(1) a::after {
  display: none;
}

/* Contact Button - World Class Design */
header nav ul li:nth-last-child(2) a {
  background: linear-gradient(135deg, #4361ee 0%, #3a4cd1 100%);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  margin-left: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 2px solid transparent;
  backdrop-filter: none;
  background-clip: padding-box;
}

/* Become a Panelist Button - World Class Design */
header nav ul li:nth-last-child(1) a {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ff4b50 100%);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  margin-left: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 2px solid transparent;
  backdrop-filter: none;
  background-clip: padding-box;
}

/* Contact Button Hover Effects */
header nav ul li:nth-last-child(2) a:hover {
  background: linear-gradient(135deg, #3a4cd1 0%, #2f3db8 100%);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Become a Panelist Button Hover Effects */
header nav ul li:nth-last-child(1) a:hover {
  background: linear-gradient(135deg, #ff4b50 0%, #e8434a 100%);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 90, 95, 0.4);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* World Class Button Shimmer Effects */
header nav ul li:nth-last-child(2) a:before,
header nav ul li:nth-last-child(1) a:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

header nav ul li:nth-last-child(2) a:hover:before,
header nav ul li:nth-last-child(1) a:hover:before {
  left: 100%;
}

/* Button Icons */
header nav ul li:nth-last-child(2) a i,
header nav ul li:nth-last-child(1) a i {
  margin-right: 8px;
  font-size: 0.9em;
  position: relative;
  z-index: 2;
}

/* Additional Professional Touch - Subtle Pulse Animation */
header nav ul li:nth-last-child(2) a,
header nav ul li:nth-last-child(1) a {
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.4);
  }
}

header nav ul li:nth-last-child(1) a {
  animation: subtle-pulse-red 3s ease-in-out infinite;
}

@keyframes subtle-pulse-red {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(255, 90, 95, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(255, 90, 95, 0.4);
  }
}

/* Hero Section */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.slider-container {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: var(--spacing-xl);
  color: white;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-md);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.slider-btn.prev {
  left: var(--spacing-lg);
}

.slider-btn.next {
  right: var(--spacing-lg);
}

.slider-dots {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active, .dot:hover {
  background-color: white;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: none;
  border-radius: var(--border-radius-md);
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn:hover, .btn:focus {
  background-color: var(--primary-dark);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
}

.btn-secondary.btn-outline {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-secondary.btn-outline:hover, .btn-secondary.btn-outline:focus {
  background-color: var(--secondary-color);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Service Cards */
.section-title {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  color: var(--neutral-600);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.service-card {
  display: flex;
  flex-direction: column;
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid var(--neutral-300);
  text-decoration: none;
  color: inherit;
}

:root.dark-mode .service-card {
  background-color: var(--neutral-200);
  border-color: var(--neutral-300);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: var(--primary-very-light);
  color: var(--primary-color);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  font-size: 1.75rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.service-card p {
  margin-bottom: var(--spacing-lg);
  color: var(--neutral-700);
}

.service-link {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: var(--transition-fast);
}

.service-card:hover .service-link {
  color: var(--primary-dark);
}

/* Feature Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background-color: var(--neutral-100);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

:root.dark-mode .feature-card {
  background-color: var(--neutral-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-very-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  color: var(--neutral-600);
  font-size: 0.95rem;
}

/* Stats Section */
.stats {
  background-color: var(--primary-color);
  color: white;
}

.stats .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Map Section */
.map-container {
  position: relative;
  margin-top: var(--spacing-xl);
}

.africa-map {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.africa-map img {
  width: 100%;
  display: block;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-xl);
  color: white;
}

.map-overlay h3 {
  font-size: 2rem;
  color: white;
  margin-bottom: var(--spacing-md);
  max-width: 400px;
}

.map-overlay p {
  max-width: 500px;
  margin-bottom: var(--spacing-lg);
}

/* Testimonial Section */
.testimonials {
  background-color: var(--neutral-200);
}

:root.dark-mode .testimonials {
  background-color: var(--neutral-200);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.testimonial {
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

:root.dark-mode .testimonial {
  background-color: var(--neutral-300);
}

.testimonial-text {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
  color: var(--neutral-800);
  flex: 1;
  position: relative;
  padding-top: var(--spacing-lg);
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 5rem;
  color: var(--primary-very-light);
  line-height: 1;
  z-index: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-author-info {
  font-weight: var(--font-weight-bold);
  color: var(--neutral-800);
}

.testimonial-author-info span {
  display: block;
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: var(--font-weight-normal);
  margin-top: var(--spacing-xs);
}

/* FAQ Section */
.faq-section {
  background-color: var(--neutral-100);
}

:root.dark-mode .faq-section {
  background-color: var(--neutral-100);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--neutral-300);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.faq-question {
  padding: var(--spacing-lg);
  background-color: var(--neutral-200);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

:root.dark-mode .faq-question {
  background-color: var(--neutral-200);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
  padding-right: 30px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--neutral-300);
  margin: 0;
}

/* Contact Section */
.contact-section {
  background-color: var(--neutral-200);
}

:root.dark-mode .contact-section {
  background-color: var(--neutral-200);
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-container {
  background-color: var(--neutral-100);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

:root.dark-mode .form-container {
  background-color: var(--neutral-300);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-weight-medium);
  color: var(--neutral-800);
}

:root.dark-mode .form-group label {
  color: var(--neutral-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--neutral-400);
  border-radius: var(--border-radius-md);
  background-color: var(--neutral-100);
  color: var(--neutral-800);
  transition: var(--transition-fast);
}

:root.dark-mode .form-group input,
:root.dark-mode .form-group select,
:root.dark-mode .form-group textarea {
  background-color: var(--neutral-200);
  color: var(--neutral-900);
  border-color: var(--neutral-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 220, 0.2);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--danger-color);
}

.form-group input.invalid:focus,
.form-group select.invalid:focus,
.form-group textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-contact {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* Form validation messages */
.form-error-message {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.form-success-message {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Footer */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding-top: var(--spacing-xxl);
}

:root.dark-mode .footer {
  background-color: var(--neutral-200);
  color: var(--neutral-700);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

:root.dark-mode .social-icon {
  background-color: var(--neutral-300);
  color: var(--neutral-900);
}

:root.dark-mode .social-icon:hover {
  background-color: var(--primary-color);
  color: var(--neutral-100);
}

.footer-menus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-xl);
}

.footer-menu h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

:root.dark-mode .footer-menu h4 {
  color: var(--neutral-900);
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-menu ul li a {
  color: var(--neutral-400);
  transition: var(--transition-fast);
}

.footer-menu ul li a:hover {
  color: white;
  text-decoration: none;
}

:root.dark-mode .footer-menu ul li a {
  color: var(--neutral-700);
}

:root.dark-mode .footer-menu ul li a:hover {
  color: var(--neutral-900);
}

.footer-contact h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

:root.dark-mode .footer-contact h4 {
  color: var(--neutral-900);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-info li i {
  color: var(--primary-color);
  margin-top: 3px;
}

.newsletter-container {
  margin-top: var(--spacing-lg);
}

.newsletter-form {
  margin-top: var(--spacing-sm);
}

.newsletter-input-group {
  display: flex;
  gap: 0;
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-top-left-radius: var(--border-radius-md);
  border-bottom-left-radius: var(--border-radius-md);
  font-size: 0.875rem;
}

.newsletter-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 var(--spacing-md);
  border-top-right-radius: var(--border-radius-md);
  border-bottom-right-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: var(--primary-dark);
}

.footer-bottom {
  padding: var(--spacing-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-bottom p {
  margin: 0;
}

:root.dark-mode .footer-bottom {
  border-top-color: var(--neutral-300);
}

.footer-bottom .theme-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.footer-bottom .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

:root.dark-mode .footer-bottom .theme-toggle {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  :root {
    --section-spacing: 60px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --section-spacing: var(--section-spacing-mobile);
  }
  
  .hero-slider {
    height: 500px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  /* World Class Mobile Navigation */
  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: var(--spacing-lg) 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: none;
  }
  
  :root.dark-mode header nav {
    background-color: rgba(33, 37, 41, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
  
  header nav.active {
    display: flex;
    animation: slideDown 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  header nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  header nav ul li {
    margin: 0;
    width: 100%;
    padding: 0 var(--spacing-lg);
  }
  
  header nav ul li a {
    padding: var(--spacing-md) var(--spacing-lg);
    width: 100%;
    border-radius: 12px;
    margin: 0;
    background-color: transparent;
    border: 1px solid transparent;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .btn {
    width: 100%;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slider-btn.prev {
    left: var(--spacing-sm);
  }
  
  .slider-btn.next {
    right: var(--spacing-sm);
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-menus {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing-mobile: 40px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .hero-slider {
    height: 450px;
  }
  
  .hero-content {
    padding: var(--spacing-md);
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .service-card, 
  .feature-card, 
  .testimonial {
    padding: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  header, 
  .hero-slider, 
  .slider-btn, 
  .slider-dots, 
  .footer {
    display: none;
  }
  
  body {
    color: black;
    background-color: white;
  }
  
  .container {
    max-width: 100%;
  }
  
  .section {
    padding: 20px 0;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
  
  .service-card, 
  .feature-card, 
  .testimonial {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}/* Countries Showcase Styles */
.countries-showcase {
  margin-top: 60px;
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--primary-very-light) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-lg);
}

.showcase-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.showcase-title {
  font-size: 2.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--neutral-800);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-full);
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
  animation: pulse-glow 3s ease-in-out infinite;
}

.badge-icon {
  font-size: 1.2rem;
  animation: bounce-icon 2s ease-in-out infinite;
}

.showcase-subtitle {
  font-size: 1.1rem;
  color: var(--neutral-600);
  font-style: italic;
  margin: 0;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin-bottom: var(--spacing-xxl);
}

.country-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
  border: 1px solid var(--neutral-300);
  position: relative;
  display: inline-block;
  width: fit-content;
  min-width: 100px;
}

.country-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-light);
}

.country-card a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--neutral-800);
  font-weight: var(--font-weight-medium);
  font-size: 0.75rem;
  position: relative;
  transition: var(--transition-base);
  white-space: nowrap;
}

.country-card a:hover {
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(67, 97, 238, 0.1));
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition-base);
}

.country-card:hover::before {
  opacity: 1;
}

.coverage-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xxl);
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xxl);
  border-top: 2px solid var(--neutral-300);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  transition: var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--neutral-600);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
  }
}

@keyframes bounce-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .countries-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 4px;
  }
  
  .country-card {
    min-width: 90px;
  }
  
  .country-card a {
    font-size: 0.7rem;
    padding: 4px 6px;
    gap: 3px;
  }
  
  .coverage-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
  }
  
  .stat-item {
    min-width: 120px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .showcase-title {
    font-size: 1.8rem;
  }
  
  .countries-showcase {
    margin-top: 40px;
    padding: var(--spacing-xl) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .countries-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 3px;
  }
  
  .country-card {
    min-width: 75px;
  }
  
  .country-card a {
    font-size: 0.65rem;
    gap: 2px;
    padding: 3px 5px;
  }
  
  .showcase-badge {
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
  }
}