/* KrosRemit 2025 UI Styles - Enhanced */
/* Brand Colors: White (#FFFFFF), Black (#000000), Green (#00D4AA) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary-white: #FFFFFF;
  --primary-black: #000000;
  --primary-green: #4BAF4E;
  --primary-green-hover: #409442;
  --primary-green-dark: #357a38;
  --primary-green-light: #e9f7e9;

  /* Enhanced Color Palette */
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-orange: #F59E0B;
  --accent-pink: #EC4899;

  /* Neutral Colors - Enhanced */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Gradients - Enhanced */
  --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  --gradient-subtle: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-white) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-white) 50%, var(--primary-green-light) 100%);
  --gradient-card: linear-gradient(135deg, var(--primary-white) 0%, var(--gray-50) 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-900) 100%);

  /* Shadows - Enhanced */
  --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);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.3);
  --shadow-glow-green: 0 0 30px rgba(0, 212, 170, 0.2);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Border Radius - Enhanced */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Transitions - Enhanced */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Typography - Enhanced */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* Development Banner */


/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    max-width: 150px;
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-bar {
    width: 200px;
    height: 5px;
    background: var(--gray-200);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-inner {
    width: 0;
    height: 100%;
    background: var(--primary-green);
    border-radius: 5px;
    transition: width 0.3s ease;
}


/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9998;
  backdrop-filter: blur(10px);
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
  width: 0%;
  transition: width var(--transition-fast);
  box-shadow: 0 0 10px var(--primary-green);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--primary-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Adjust for banner */
  margin-top: 0;
  padding-top: 0; /* Remove padding to eliminate white space */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); font-weight: 500; }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; }

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-green-hover);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 8rem 0;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header - Enhanced */
.header {
  position: fixed;
  top: 0; /* No development banner to account for */
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
  background: var(--primary-white);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(30px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  min-height: 70px;
  margin: auto 6rem;
  max-width: 88.7%;
}

.nav-container {
    display: flex;
    align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-black);
  transition: transform var(--transition-fast);
  display: flex;
  align-items: center;
  height: 40px;
}

.logo img {
  height: 175%;
  width: auto;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.05);
}

.logo .green {
  color: var(--primary-green);
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  position: relative;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition-fast);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  position: relative;
  margin: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
    /* background: rgba(0, 212, 170, 0.1); */ /* Removed background on hover */
}

.btn-nav {
    background-color: var(--primary-green);
    color: var(--primary-white) !important;
    border-radius: var(--radius-md);
    transition: var(--transition-fast) ease-in-out; /* Changed transition */
    margin-left: 1rem;
}

.btn-nav:hover {
    background-color: var(--primary-green-hover);
    color: var(--primary-white) !important;
    transform: scale(1.1); /* Scale up on hover */
    box-shadow: var(--shadow-lg);
}

/* Hero Network Page Specific Styles */
.hero-network {
    position: relative;
    overflow: hidden;
}

.hero-background-segments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 0;
}

.segment {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.segment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.segment:hover .segment-overlay {
    opacity: 1;
}

.segment-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.segment-text p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

.hero-network .hero-content {
    position: relative;
    z-index: 1;
}


/* Enhanced Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
  color: var(--primary-green);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  z-index: 2000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-dropdown-item {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--gray-100);
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: var(--primary-green-light);
  color: var(--primary-green);
  padding-left: 1.5rem;
  font-weight: 600;
}

.nav-dropdown-item.active {
  border-left: 3px solid var(--primary-green);
}

.nav-dropdown-item i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--gray-100);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-black);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section - Enhanced */
.hero {
  position: relative;
  min-height: 100vh; /* Full viewport height since trust badge is now inside */
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 60px; /* Reduced top padding to eliminate white space */
  margin-top: 0;
  padding-bottom: 0; /* Remove bottom padding to eliminate white space */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

/* Homepage-specific hero background */
#home.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%; /* Adjust width as needed */
  height: 100%; /* Adjust height as needed */
  background-image: url('../images/bg.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  transform: scaleX(-1); /* Flips the image on its vertical axis */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* Reduced gap for cleaner look */
  padding: 0; /* Remove any padding that might cause white space */
}

.hero h1 {
  margin-bottom: 0.75rem;
  margin-top: 0; /* Remove top margin to minimize spacing */
  color: var(--primary-black);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: slideInLeft 1.2s ease-out 0.2s both;
  text-align: center;
}

.hero .subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1s ease-out 0.5s both;
  line-height: 1.6;
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  align-self: center;
  margin-top: 2rem;
}

/* Spacing override for buttons in specific contexts */
.hero-content .btn,
.footer .btn {
  margin-top: 0;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-white);
  box-shadow: var(--shadow-xl);
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-2xl), var(--shadow-glow-green);
  color: var(--primary-white);
}

.btn-secondary {
  background: var(--primary-white);
  color: var(--primary-black);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: var(--primary-black);
  color: var(--primary-white);
  border-color: var(--primary-black);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  box-shadow: var(--shadow-md);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--primary-white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-xl); }
  50% { box-shadow: var(--shadow-xl), var(--shadow-glow); }
}

/* Trust Bar */
.trust-bar {
  background: var(--primary-black);
  color: var(--primary-white);
  padding: 1rem 0;
  text-align: center;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.66rem 1.32rem; /* Scaled up padding for 110% size */
  background: var(--primary-green); /* Green background */
  color: var(--primary-white); /* White text for contrast */
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9625rem; /* Scaled up slightly for 110% size */
  transform: scale(0.88); /* 88% scale (110% of 80%) */
  transform-origin: center;
  border: none; /* Remove border */
  box-shadow: none; /* Remove shadow */
}

.hero-content .trust-badge {
    background-color: #000;
}

.footer .trust-badge {
    color: #000; /* Black text */
    margin-top: 1rem; /* Spacing from paragraph above */
    margin-right: auto; /* Aligns to the left */
}

/* Set initial state for animated elements */
.card, .comparison-column, .process-step, .stat-item {
  opacity: 0;
}

/* Enhanced Cards - 2025 Frosted Glass Aesthetic */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-green-light);
}

.card-header {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-black), var(--gray-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-description {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.card-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.card-list li {
  margin-bottom: 0.5rem;
}

.card-header > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card > h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary-black);
  margin-bottom: 2rem;
}

/* Country Flags and Grid */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.country-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-bounce);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.country-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary-green-light), transparent);
  transition: left var(--transition-slow);
}

.country-item:hover::before {
  left: 100%;
}

.country-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green-light);
}

.country-flag {
  width: 40px;
  height: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  border: 2px solid var(--primary-white);
}

.country-flag:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.country-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.country-name {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 1.125rem;
  margin: 0;
}

.country-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

.country-count {
  display: none !important;
}

.country-region {
  animation: fadeInUp 0.8s ease-out forwards;
}

.country-region:nth-child(1) { animation-delay: 0.1s; }
.country-region:nth-child(2) { animation-delay: 0.2s; }
.country-region:nth-child(3) { animation-delay: 0.3s; }
.country-region:nth-child(4) { animation-delay: 0.4s; }
.country-region:nth-child(5) { animation-delay: 0.5s; }

/* Interactive Elements */
.interactive-card {
  position: relative;
  overflow: hidden;
}

.interactive-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
  transition: left var(--transition-slow);
}

.interactive-card:hover::after {
  left: 100%;
}

/* Enhanced Animations */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-slide-up {
  animation: slideInFromBottom 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease-out forwards;
}

/* Stagger animations */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }

/* Enhanced Process Steps */
.process-step {
  text-align: center;
  position: relative;
  padding: 2.5rem 1.5rem;
  background: var(--gradient-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-bounce);
  border: 1px solid var(--gray-200);
}

.process-step:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green-light);
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  color: var(--primary-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--primary-white);
}

.process-step h4 {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
}

/* Enhanced Statistics */
.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--gradient-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-bounce);
  border: 1px solid var(--gray-200);
}

.stat-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green-light);
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-green);
  margin-bottom: 1rem;
  display: block;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-label {
  font-size: 1.25rem;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Comparison Section */
.comparison {
  background: var(--gray-50);
  padding: 5rem 0;
}

.comparison .container {
  max-width: 1000px;
}

.comparison-header {
  text-align: center;
  margin-bottom: 4rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.comparison-column {
  padding: 2rem;
  border-radius: var(--radius-xl);
  min-height: 400px;
}

.comparison-column.bad {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border: 2px solid #F87171;
}

.comparison-column.good {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border: 2px solid var(--primary-green);
  position: relative;
}

.comparison-column.good::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.1;
}

.comparison-column h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-item:last-child {
  border-bottom: none;
}

.comparison-item.bad .icon {
  color: #DC2626;
}

.comparison-item.good .icon {
  color: var(--primary-green);
}

.comparison-item .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.comparison-item .text {
  font-weight: 500;
}

/* Process Steps */
.process {
  padding: 5rem 0;
  /* background: var(--primary-white); */
  background: transparent;
}

.process .container {
  max-width: 1000px;
}

.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--primary-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.process-step h4 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Network Spotlight */
.network-spotlight {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-black) 100%);
  color: var(--primary-white);
  padding: 5rem 0;
}

.network-spotlight .container {
  max-width: 800px;
  text-align: center;
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-300);
  font-weight: 500;
}

/* Final CTA */
.final-cta {
  background: var(--gradient-primary);
  color: var(--primary-white);
  padding: 5rem 0;
  text-align: center;
}

.final-cta .container {
  max-width: 600px;
}

.final-cta h2 {
  margin-bottom: 2rem;
  color: var(--primary-white);
}

.final-cta .btn-outline {
  color: var(--primary-white);
  border-color: var(--primary-white);
}

.final-cta .btn-outline:hover {
  background: var(--primary-white);
  color: var(--primary-green);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer .container {
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--primary-white);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer .trust-badge {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
  .nav-dropdown-menu {
    min-width: 200px;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
  }

  .hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
}

@media (max-width: 768px) {


  /* Header Mobile */
  .header .container {
    justify-content: center;
    position: relative;
    padding: 1rem;
    margin: 0;
    min-width: 100%;
  }

  .nav-container {
      position: absolute;
      right: 1rem;
      top: 0;
      bottom: 0;
      display: flex;
      align-items: center;
  }

  .nav {
    display: none;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 70px; /* Matched to header height */
    left: 0;
    right: 0;
    width: 100%; /* Ensure it spans full width */
    background: var(--primary-white);
    flex-direction: column;
    padding: 2rem 1rem;
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-normal);
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-links a {
    padding: 1rem 1.5rem;
    display: block;
    border-radius: var(--radius-lg);
    text-align: left;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hero Mobile */
  .hero {
    padding-top: 50px; /* Reduced to eliminate white space on mobile */
    padding-bottom: 0;
    min-height: 100vh; /* Full viewport height */
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
    margin-top: 0;
  }

  .hero .subtitle {
    font-size: clamp(0.9rem, 4vw, 1.125rem);
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  /* Cards Mobile */
  .card {
    padding: 2rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-description {
    font-size: 1rem;
  }

  /* Grid Mobile */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .network-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Process Steps Mobile */
  .process-step {
    padding: 2rem 1rem;
  }

  .process-step::before {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .process-step h4 {
    margin-top: 3rem;
    font-size: 1.25rem;
  }

  /* Stats Mobile */
  .stat-item {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 3rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-section h4 {
    margin-bottom: 1rem;
  }

  .footer-section div[style*="display: flex"] {
    justify-content: center;
  }

  /* Country Items Mobile */
  .country-item {
    padding: 1rem 0;
  }

  .country-flag {
    width: 28px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  /* Container Mobile */
  .container {
    padding: 0 1rem;
  }

  #home.hero::after {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }



  /* Header Mobile Small */
  .header {
    top: 0; /* No banner to adjust for */
  }

  .nav-links {
    top: 40px; /* Adjust for mobile header height only */
    padding: 1.5rem 1rem;
  }

  /* Hero Mobile Small */
  .hero {
    padding-top: 45px; /* Reduced to eliminate white space on mobile small */
    padding-bottom: 0;
    min-height: 100vh; /* Full viewport height */
  }

  .hero h1 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
    margin-bottom: 1rem;
    margin-top: 0;
  }

  .hero .subtitle {
    font-size: clamp(0.875rem, 5vw, 1rem);
    margin-bottom: 1rem;
  }

  /* Trust Bar Mobile */
  .trust-bar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .trust-badge {
    padding: 0.53rem 1.1rem; /* Scaled up for 110% size */
    font-size: 0.825rem; /* Scaled up for 110% size */
  }

  /* Network Stats Mobile Small */
  .network-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Comparison Mobile */
  .comparison-column {
    padding: 1.5rem;
  }

  .comparison-column h3 {
    font-size: 1.25rem;
  }

  .comparison-item {
    padding: 0.75rem 0;
  }

  /* Cards Mobile Small */
  .card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-description {
    font-size: 0.95rem;
  }

  /* Buttons Mobile */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Process Steps Mobile Small */
  .process-step {
    padding: 1.5rem 1rem;
  }

  .process-step::before {
    width: 50px;
    height: 50px;
    font-size: 1.125rem;
  }

  .process-step h4 {
    margin-top: 2.5rem;
    font-size: 1.125rem;
  }
}

/* Print Styles - Enhanced */
@media print {
  .header,
  .footer,
  .btn,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    margin: 0;
  }

  .section {
    page-break-inside: avoid;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus States */
.btn:focus,
a:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.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;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}
