/* ===============================================
   # CUSTOM STYLES
   =============================================== */

/* ===============================================
   # ENTERPRISE-GRADE DESIGN SYSTEM
   =============================================== */

/* Global Variables - World-Class Design System */
:root {
  /* Primary Brand Colors */
  --primary: #2563eb;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  
  
  /* Animation Variables */
  --animation-duration: 0.6s;
  --animation-delay: 0.1s;
  --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
  
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  /* Secondary Colors */
  --secondary: #10b981;
  --secondary-50: #ecfdf5;
  --secondary-100: #d1fae5;
  --secondary-200: #a7f3d0;
  --secondary-300: #6ee7b7;
  --secondary-400: #34d399;
  --secondary-500: #10b981;
  --secondary-600: #059669;
  --secondary-700: #047857;
  --secondary-800: #065f46;
  --secondary-900: #064e3b;
  
  /* Neutral Colors */
  --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;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Cal Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Shadows - Enterprise Grade */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
  --gradient-brand: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ===============================================
   # SMOOTH ANIMATIONS & MICRO-INTERACTIONS
   =============================================== */

/* Base Animation Classes */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn var(--animation-duration) var(--animation-easing) forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp var(--animation-duration) var(--animation-easing) forwards;
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideLeft var(--animation-duration) var(--animation-easing) forwards;
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(30px);
  animation: slideRight var(--animation-duration) var(--animation-easing) forwards;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn var(--animation-duration) var(--animation-easing) forwards;
}

/* Animation Delays */
.animate-delay-1 { animation-delay: calc(var(--animation-delay) * 1); }
.animate-delay-2 { animation-delay: calc(var(--animation-delay) * 2); }
.animate-delay-3 { animation-delay: calc(var(--animation-delay) * 3); }
.animate-delay-4 { animation-delay: calc(var(--animation-delay) * 4); }
.animate-delay-5 { animation-delay: calc(var(--animation-delay) * 5); }

/* Keyframe Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hover Animations */
.hover-lift {
  transition: transform 0.3s var(--animation-easing), box-shadow 0.3s var(--animation-easing);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s var(--animation-easing);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Button Animations */
.btn {
  transition: all 0.3s var(--animation-easing);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Card Animations */
.card {
  transition: all 0.3s var(--animation-easing);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Intersection Observer Classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--animation-easing);
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================================
   # ENTERPRISE BASE STYLES
   =============================================== */

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Focus Management for Accessibility */
:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Enhanced Accessibility Styles */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-600);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 6px;
  z-index: 10000;
  transition: top 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skip-to-content:focus {
  top: 6px;
  outline: 3px solid var(--warning-400);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-600: #000000;
    --neutral-900: #000000;
    --neutral-100: #ffffff;
  }
  
  .btn-primary {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
  }
  
  .btn-primary:hover {
    background: #333333;
    border-color: #333333;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.form-select:focus,
.navbar-nav .nav-link:focus {
  outline: 3px solid var(--primary-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ===============================================
   # PROFESSIONAL TYPOGRAPHY SYSTEM
   =============================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-600);
}

.text-muted {
  color: var(--gray-500) !important;
}

.text-subtle {
  color: var(--gray-400) !important;
}

/* Professional Link Styles */
a {
  color: var(--primary-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===============================================
   # RESPONSIVE TYPOGRAPHY SCALE
   =============================================== */

.text-xs { font-size: 0.75rem; line-height: 1.2; }
.text-sm { font-size: 0.875rem; line-height: 1.4; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-xl { font-size: 1.25rem; line-height: 1.6; }
.text-2xl { font-size: 1.5rem; line-height: 1.4; }
.text-3xl { font-size: 1.875rem; line-height: 1.3; }
.text-4xl { font-size: 2.25rem; line-height: 1.2; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* Display Typography - Responsive */
.display-1 { 
  font-size: clamp(3rem, 8vw, 6rem); 
  font-weight: 900; 
  line-height: 1; 
  letter-spacing: -0.05em;
}
.display-2 { 
  font-size: clamp(2.5rem, 7vw, 5rem); 
  font-weight: 800; 
  line-height: 1.05; 
  letter-spacing: -0.04em;
}
.display-3 { 
  font-size: clamp(2rem, 6vw, 4rem); 
  font-weight: 700; 
  line-height: 1.1; 
  letter-spacing: -0.03em;
}
.display-4 { 
  font-size: clamp(1.75rem, 5vw, 3.5rem); 
  font-weight: 700; 
  line-height: 1.15; 
  letter-spacing: -0.025em;
}
.display-5 { 
  font-size: clamp(1.5rem, 4vw, 3rem); 
  font-weight: 600; 
  line-height: 1.2; 
  letter-spacing: -0.02em;
}

/* Text Utilities */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* ===============================================
   # ENTERPRISE BUTTON SYSTEM
   =============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Sizes */
.btn-xs {
  padding: var(--space-1) var(--space-3);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: 1.125rem;
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Outline Buttons */
.btn-outline-primary {
  background: transparent;
  color: var(--primary-600);
  border-color: var(--primary-600);
}

.btn-outline-primary:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}

.btn-outline-secondary:hover {
  background: var(--gray-600);
  color: white;
  border-color: var(--gray-600);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* Link Button */
.btn-link {
  background: transparent;
  color: var(--primary-600);
  border-color: transparent;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  color: var(--primary-700);
  text-decoration-thickness: 2px;
}



/* ===============================================
   # MODERN CARD SYSTEM
   =============================================== */

.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

.card-body {
  padding: var(--space-8);
}

.card-header {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.card-footer {
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}


/* ===============================================
   # ABOUT PAGE CARDS - CRITICAL TEXT OVERRIDE
   =============================================== */

/* Force white text in About page dark cards with maximum specificity */
body section#story .bg-800 h3,
body section#story .plans-cards h3,
body .col-sm-9 .bg-800 h3,
body .col-md-4 .bg-800 h3,
body div.bg-800.plans-cards h3 {
  color: #ffffff !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
}

body section#story .bg-800 p,
body section#story .plans-cards p,
body .col-sm-9 .bg-800 p,
body .col-md-4 .bg-800 p,
body div.bg-800.plans-cards p,
body .bg-800 p.mt-5,
body .bg-800 p.text-light {
  color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
  background: none !important;
}

/* ===============================================
   # TEXT VISIBILITY & CONTRAST ENHANCEMENTS - CRITICAL OVERRIDES
   =============================================== */

/* Force text visibility with maximum specificity */
body section#home h1,
body .pb-6 h1,
body section h1.fw-semi-bold,
body h1.mt-6 {
  color: #ffffff !important;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9) !important;
  font-weight: 800 !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
}

body section#home p,
body .pb-6 p,
body section p.mb-4,
body p.fs-1.text-white {
  color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* Critical overlay fix */
body .bg-holder.overlay::before,
body .bg-holder.overlay-light::before {
  background: rgba(0, 0, 0, 0.7) !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

/* ===============================================
   # TEXT VISIBILITY & CONTRAST ENHANCEMENTS
   =============================================== */

/* Enhanced text contrast for all hero sections */
.hero-section h1,
.hero h1,
.hero-title,
h1.hero-title,
section h1,
#home h1,
.pb-6 h1 {
  color: white !important;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  -webkit-text-fill-color: white !important;
  background: none !important;
}

.hero-section p,
.hero p,
.hero-subtitle,
p.hero-subtitle,
section p,
#home p,
.pb-6 p,
.text-white {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: none !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
}

/* Enhanced background overlay for better text readability */
.hero-section,
.hero,
section.pb-6,
#home {
  position: relative;
}

.hero-section::before,
.hero::before,
section.pb-6::before,
#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Override existing overlay classes */
.bg-holder.overlay.overlay-light::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  opacity: 1 !important;
}

/* Ensure content is above overlay */
.hero-content,
.hero .container,
.hero .row,
.hero .col-md-6,
section.pb-6 .container,
section.pb-6 .row,
section.pb-6 .col-md-7,
#home .container,
#home .row,
#home .col-md-7 {
  position: relative;
  z-index: 2;
}

/* Button visibility enhancements */
.hero .btn,
.hero-section .btn {
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero .btn:hover,
.hero-section .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Text readability for all sections */
.section-title h2,
.section h2 {
  color: var(--gray-900) !important;
  text-shadow: none;
}

.section-title p,
.section p {
  color: var(--gray-600) !important;
}

/* Ensure proper contrast for light backgrounds */
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
  color: var(--gray-900) !important;
}

.bg-light p,
.bg-light .lead {
  color: var(--gray-700) !important;
}

/* Dark section text visibility */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
  color: white !important;
  text-shadow: none;
}

.bg-dark p,
.bg-dark .lead {
  color: white !important;
  text-shadow: none;
}

/* All colored background text visibility */
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3, .bg-secondary h4, .bg-secondary h5, .bg-secondary h6,
.bg-success h1, .bg-success h2, .bg-success h3, .bg-success h4, .bg-success h5, .bg-success h6,
.bg-info h1, .bg-info h2, .bg-info h3, .bg-info h4, .bg-info h5, .bg-info h6,
.bg-warning h1, .bg-warning h2, .bg-warning h3, .bg-warning h4, .bg-warning h5, .bg-warning h6,
.bg-danger h1, .bg-danger h2, .bg-danger h3, .bg-danger h4, .bg-danger h5, .bg-danger h6,
.bg-800 h1, .bg-800 h2, .bg-800 h3, .bg-800 h4, .bg-800 h5, .bg-800 h6 {
  color: white !important;
  text-shadow: none !important;
}

.bg-primary p, .bg-primary .lead, .bg-primary li,
.bg-secondary p, .bg-secondary .lead, .bg-secondary li,
.bg-success p, .bg-success .lead, .bg-success li,
.bg-info p, .bg-info .lead, .bg-info li,
.bg-warning p, .bg-warning .lead, .bg-warning li,
.bg-danger p, .bg-danger .lead, .bg-danger li,
.bg-800 p, .bg-800 .lead, .bg-800 li,
.bg-800 .pricing-lists {
  color: white !important;
  text-shadow: none !important;
}

/* Card backgrounds with dark colors */
.plans-cards h1,
.plans-cards h2,
.plans-cards h3,
.plans-cards h4,
.plans-cards h5,
.plans-cards h6 {
  color: white !important;
  text-shadow: none !important;
}

.plans-cards p,
.plans-cards li,
.plans-cards .pricing-lists,
.plans-cards .text-light {
  color: white !important;
  text-shadow: none !important;
}

/* Specific targeting for About page cards - Maximum Specificity */
body .bg-800 h1,
body .bg-800 h2,
body .bg-800 h3,
body .bg-800 h4,
body .bg-800 h5,
body .bg-800 h6,
body .plans-cards h1,
body .plans-cards h2,
body .plans-cards h3,
body .plans-cards h4,
body .plans-cards h5,
body .plans-cards h6 {
  color: #ffffff !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

body .bg-800 p,
body .bg-800 .text-light,
body .bg-800 .mt-5,
body .plans-cards p,
body .plans-cards .text-light,
body .plans-cards .mt-5,
body section .bg-800 p,
body section .plans-cards p {
  color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* ===============================================
   # ENTERPRISE NAVIGATION
   =============================================== */

/* Force permanent white navbar background with maximum specificity */
body .navbar,
html body .navbar,
.navbar[style],
.navbar.scrolled,
.navbar.scrolled[style] {
  background: #ffffff !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-fixed);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gray-900);
  text-decoration: none;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary-600);
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-600);
  background: var(--gray-50);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

/* ===============================================
   # HERO SECTION ENHANCEMENTS
   =============================================== */

.hero-section {
  background: var(--gradient-brand);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%),
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
  opacity: 0.9;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: white !important;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 400;
  text-shadow: none;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  transition: var(--transition-slow);
}

.hero-image:hover img {
  transform: scale(1.02) rotate(1deg);
}

/* ===============================================
   # ICON SYSTEM
   =============================================== */

.icon-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  opacity: 0.1;
  transition: var(--transition);
  border-radius: inherit;
}

.icon-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}

.card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

.card:hover .icon-box::after {
  opacity: 1;
}

.icon-box i {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
}

/* ===============================================
   # COLOR SYSTEM
   =============================================== */

/* Background Colors */
.bg-primary { background: var(--primary-600) !important; }
.bg-primary-50 { background: var(--primary-50) !important; }
.bg-primary-100 { background: var(--primary-100) !important; }
.bg-primary-500 { background: var(--primary-500) !important; }

.bg-secondary { background: var(--secondary-600) !important; }
.bg-secondary-50 { background: var(--secondary-50) !important; }
.bg-secondary-100 { background: var(--secondary-100) !important; }

.bg-gray-50 { background: var(--gray-50) !important; }
.bg-gray-100 { background: var(--gray-100) !important; }
.bg-gray-200 { background: var(--gray-200) !important; }

/* Soft Background Colors */
.bg-primary-soft { background: var(--primary-50) !important; }
.bg-success-soft { background: var(--secondary-50) !important; }
.bg-warning-soft { background: rgba(245, 158, 11, 0.1) !important; }
.bg-danger-soft { background: rgba(239, 68, 68, 0.1) !important; }
.bg-info-soft { background: rgba(59, 130, 246, 0.1) !important; }
.bg-purple-soft { background: rgba(139, 92, 246, 0.1) !important; }

/* Text Colors */
.text-primary { color: var(--primary-600) !important; }
.text-secondary { color: var(--secondary-600) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--error) !important; }
.text-info { color: var(--info) !important; }
.text-purple { color: #8b5cf6 !important; }

.text-gray-400 { color: var(--gray-400) !important; }
.text-gray-500 { color: var(--gray-500) !important; }
.text-gray-600 { color: var(--gray-600) !important; }
.text-gray-700 { color: var(--gray-700) !important; }
.text-gray-900 { color: var(--gray-900) !important; }

/* Gradient Backgrounds */
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-secondary { background: var(--gradient-secondary) !important; }
.bg-gradient-brand { background: var(--gradient-brand) !important; }

/* ===============================================
   # PROFESSIONAL ANIMATIONS
   =============================================== */

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(40px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from { 
    opacity: 0; 
    transform: translateY(-40px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-40px);
  }
  to { 
    opacity: 1; 
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from { 
    opacity: 0; 
    transform: translateX(40px);
  }
  to { 
    opacity: 1; 
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.6); }
}

/* Animation Classes */
.animate-fadeInUp { animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-fadeInDown { animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-fadeInLeft { animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-fadeInRight { animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-slideUp { animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Stagger Animation Delays */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* Hover Animations */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: var(--transition);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}


/* Section Spacing */
.py-section { padding: 5rem 0; }
.py-section-lg { padding: 7rem 0; }

/* Responsive Design */
@media (max-width: 768px) {
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.5rem; }
  .display-3 { font-size: 2.25rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  
  .btn-xl { padding: 1rem 1.5rem; font-size: 1rem; }
  .btn-lg { padding: 0.875rem 1.25rem; font-size: 1rem; }
  
  .py-section { padding: 3rem 0; }
  .py-section-lg { padding: 4rem 0; }
  
  .hero-section { min-height: 80vh; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { 
  background: var(--primary-color); 
  border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
}

/* Navigation */
.navbar {
  padding: 1.5rem 0;
  transition: var(--transition);
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: #ffffff !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: none;
  font-weight: 400;
  line-height: 1.6;
}

.hero-img {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Features */
.feature-box {
  padding: 2.5rem;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--secondary);
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 1rem 0;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.testimonial-text:before {
  content: '\201C';
  font-size: 5rem;
  position: absolute;
  left: -1.5rem;
  top: -1.5rem;
  color: rgba(52, 152, 219, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.testimonial-author h5 {
  margin: 0;
  font-size: 1rem;
}

.testimonial-author p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 5rem 0 2rem;
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ===============================================
   # LOGO RESPONSIVE DESIGN SYSTEM
   =============================================== */

/* Main Logo Styling */
.logo-main {
  height: 125px;
  width: auto;
  max-width: none;
  object-fit: cover;
  transition: all var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  margin: 0;
  padding: var(--space-2);
}

.logo-footer {
  height: 150px;
  width: auto;
  max-width: 270px;
  object-fit: cover;
  transition: all var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  margin: 0;
  padding: 0;
}

/* Logo Hover Effects */
.navbar-brand:hover .logo-main {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

.logo-footer:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.2));
}

/* Responsive Logo Sizing */
@media (max-width: 1200px) {
  .logo-main {
    height: 60px;
    max-width: 260px;
  }
  .logo-footer {
    height: 65px;
  }
}

@media (max-width: 992px) {
  .logo-main {
    height: 55px;
    max-width: 240px;
  }
  .logo-footer {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .logo-main {
    height: 50px;
    max-width: 220px;
    padding: var(--space-1);
  }
  .logo-footer {
    height: 55px;
  }
  
  .navbar-brand {
    padding: var(--space-2);
    margin-right: var(--space-3);
  }
}

@media (max-width: 576px) {
  .logo-main {
    height: 45px;
    max-width: 200px;
  }
  .logo-footer {
    height: 140px;
    max-width: 300px;
  }
}

/* Logo Animation on Page Load */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.logo-main,
.logo-footer {
  animation: logoFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Navbar for Larger Logo */
.navbar {
  padding: var(--space-4) 0;
  transition: all var(--transition);
  min-height: 100px;
  background: #ffffff !important;
}

.navbar.scrolled {
  padding: var(--space-3) 0;
  min-height: 85px;
  background: #ffffff !important;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  margin-right: var(--space-4);
  transition: all var(--transition);
}

/* Responsive Navbar Adjustments */
@media (max-width: 768px) {
  .navbar {
    min-height: 85px;
    padding: var(--space-3) 0;
  }
  
  .navbar .container {
    min-height: 70px;
  }
  
  .navbar-brand {
    padding: var(--space-1) var(--space-2);
    margin-right: var(--space-2);
  }
}

/* Scrolled Navbar Logo Adjustment */
.navbar.scrolled .logo-main {
  height: 70px;
}

@media (max-width: 768px) {
  .navbar {
    padding: var(--space-3) 0;
    min-height: 80px;
  }
  
  .navbar .container {
    min-height: 60px;
  }
  
  .navbar.scrolled .logo-main {
    height: 60px;
  }
}

/* ===============================================
   # SERVICES SECTION
   =============================================== */
#services {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

#services .card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  height: 100%;
  background: white;
  overflow: hidden;
}

#services .card-body {
  padding: 2.5rem;
}

#services .icon-box {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  font-size: 2rem;
  border-radius: 50%;
}

#services .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

#services .card:hover .icon-box {
  transform: scale(1.1);
}

#services .hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Icon box colors */
.icon-box.bg-primary-soft { background-color: var(--primary-soft) !important; color: var(--primary) !important; }
.icon-box.bg-success-soft { background-color: var(--success-soft) !important; color: var(--success) !important; }
.icon-box.bg-info-soft { background-color: var(--info-soft) !important; color: var(--info) !important; }
.icon-box.bg-warning-soft { background-color: var(--warning-soft) !important; color: var(--warning) !important; }
.icon-box.bg-danger-soft { background-color: var(--danger-soft) !important; color: var(--danger) !important; }
.icon-box.bg-purple-soft { background-color: var(--purple-soft) !important; color: var(--purple) !important; }

/* ===============================================
   # TEXT CONTRAST FIXES
   =============================================== */

/* Dark background cards - ensure white text */
.bg-800, .bg-dark, .plans-cards {
  color: #ffffff !important;
}

.bg-800 h1, .bg-800 h2, .bg-800 h3, .bg-800 h4, .bg-800 h5, .bg-800 h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.plans-cards h1, .plans-cards h2, .plans-cards h3, .plans-cards h4, .plans-cards h5, .plans-cards h6 {
  color: #ffffff !important;
}

.bg-800 p, .bg-800 li, .bg-800 span,
.bg-dark p, .bg-dark li, .bg-dark span,
.plans-cards p, .plans-cards li, .plans-cards span {
  color: #ffffff !important;
}

/* Colored backgrounds - ensure white text */
.bg-primary, .bg-secondary, .bg-success, .bg-danger, .bg-warning, .bg-info, .bg-dark, .bg-800, .plans-cards {
  color: #ffffff !important;
}

.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3, .bg-secondary h4, .bg-secondary h5, .bg-secondary h6,
.bg-success h1, .bg-success h2, .bg-success h3, .bg-success h4, .bg-success h5, .bg-success h6,
.bg-danger h1, .bg-danger h2, .bg-danger h3, .bg-danger h4, .bg-danger h5, .bg-danger h6,
.bg-warning h1, .bg-warning h2, .bg-warning h3, .bg-warning h4, .bg-warning h5, .bg-warning h6,
.bg-info h1, .bg-info h2, .bg-info h3, .bg-info h4, .bg-info h5, .bg-info h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-800 h1, .bg-800 h2, .bg-800 h3, .bg-800 h4, .bg-800 h5, .bg-800 h6,
.plans-cards h1, .plans-cards h2, .plans-cards h3, .plans-cards h4, .plans-cards h5, .plans-cards h6 {
  color: #ffffff !important;
}

.bg-primary p, .bg-primary li, .bg-primary span, .bg-primary a,
.bg-secondary p, .bg-secondary li, .bg-secondary span, .bg-secondary a,
.bg-success p, .bg-success li, .bg-success span, .bg-success a,
.bg-danger p, .bg-danger li, .bg-danger span, .bg-danger a,
.bg-warning p, .bg-warning li, .bg-warning span, .bg-warning a,
.bg-info p, .bg-info li, .bg-info span, .bg-info a,
.bg-dark p, .bg-dark li, .bg-dark span, .bg-dark a,
.bg-800 p, .bg-800 li, .bg-800 span, .bg-800 a,
.plans-cards p, .plans-cards li, .plans-cards span, .plans-cards a {
  color: #ffffff !important;
}

/* Light backgrounds - ensure dark text */
.bg-light, .bg-white {
  color: #374151 !important;
}

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6 {
  color: #374151 !important;
}

.bg-light p, .bg-light li, .bg-light span, .bg-light a,
.bg-white p, .bg-white li, .bg-white span, .bg-white a {
  color: #374151 !important;
}

/* Pricing lists specific fixes */
.pricing-lists {
  color: #ffffff !important;
  margin-bottom: 0.75rem;
}

/* Text color utilities with high specificity */
.text-white { color: #ffffff !important; }
.text-dark { color: #1f2937 !important; }
.text-light-50 { color: rgba(255, 255, 255, 0.8) !important; }
.text-600 { color: #4b5563 !important; }
.text-1000 { color: #ffffff !important; }

/* Service card specific fixes */
.plans-cards .pricing-lists {
  color: #ffffff !important;
}

.plans-cards .pricing-lists i {
  color: inherit !important;
}

/* Button text fixes */
.btn .text-white {
  color: #ffffff !important;
}

/* Footer text fixes */
footer.bg-dark, footer.bg-dark * {
  color: #ffffff !important;
}

footer.bg-dark .text-light-50 {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero section text fixes */
.hero h1, .hero p {
  color: #ffffff !important;
}

/* About section text fixes */
section:not(.bg-dark):not(.bg-800) h1,
section:not(.bg-dark):not(.bg-800) h2,
section:not(.bg-dark):not(.bg-800) h3,
section:not(.bg-dark):not(.bg-800) h4,
section:not(.bg-dark):not(.bg-800) h5,
section:not(.bg-dark):not(.bg-800) h6 {
  color: #1f2937 !important;
}

section:not(.bg-dark):not(.bg-800) p {
  color: #374151 !important;
}

/* ===============================================
   # FEATURES SECTION
   =============================================== */
#features {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-item {
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: white;
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* ===============================================
   # CTA SECTION
   =============================================== */
.cta-section {
  position: relative;
  padding: 5rem 0;
  background: var(--gradient-primary);
  color: white;
  overflow: hidden;
}

.cta-section .btn-light {
  background: white;
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
}

.cta-section .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
}

.cta-section .btn-light:hover,
.cta-section .btn-outline-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  #services .card-body {
    padding: 1.5rem;
  }
  
  #services .icon-box {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .feature-item {
    margin-bottom: 1.5rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

/* Utility Classes */
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }

/* Background Soft Colors */
.bg-primary-soft { background-color: var(--primary-soft) !important; }
.bg-success-soft { background-color: var(--success-soft) !important; }
.bg-info-soft { background-color: var(--info-soft) !important; }
.bg-warning-soft { background-color: var(--warning-soft) !important; }
.bg-danger-soft { background-color: var(--danger-soft) !important; }
.bg-purple-soft { background-color: var(--purple-soft) !important; }

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 1rem;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 1s ease-out;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero {
    padding: 6rem 0 4rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .feature-box {
    margin-bottom: 1.5rem;
  }
}

/* Utility Classes */
.bg-light {
  background-color: var(--bg-light) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.mb-6 {
  margin-bottom: 4rem !important;
}

.mt-6 {
  margin-top: 4rem !important;
}

.py-6 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  color: white;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Back to Top Button Enhancement */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6c5ce7 0%, #4e2a8c 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
  color: white;
}

/* Mobile Navigation Improvements */
.navbar-toggler {
  color: #000 !important;
  border: none !important;
}

.navbar-toggler .fas {
  color: #000 !important;
  font-size: 1.2rem;
}

/* Mobile menu styling for better visibility */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    color: #000 !important;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    padding-left: 10px;
    transition: all 0.3s ease;
  }
  
  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
  }
  
  .navbar-nav .btn {
    margin: 10px auto;
    text-align: center;
    width: 200px;
    display: block;
  }
  
  .navbar-nav .nav-item {
    text-align: center;
  }
  
  .ms-lg-3.mt-3.mt-lg-0 {
    text-align: center;
    margin-top: 15px !important;
    display: flex;
    justify-content: center;
  }
  
  .ms-lg-3.mt-3.mt-lg-0 .btn {
    width: 200px;
    margin: 0 auto;
  }
  
  .navbar-nav .btn-outline-dark {
    color: #000 !important;
    border-color: #000 !important;
  }
  
  .navbar-nav .btn-outline-dark:hover {
    background-color: #000 !important;
    color: white !important;
  }
}

/* ===============================================
   # MOBILE RESPONSIVE HERO PADDING
   =============================================== */

/* Hero section mobile padding */
@media (max-width: 768px) {
  .hero-section,
  section[class*="hero"],
  section:first-of-type,
  .py-5.py-md-8 {
    padding: 20px !important;
  }
  
  .hero-section .container,
  section[class*="hero"] .container,
  section:first-of-type .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Ensure hero content has proper spacing on mobile */
  .hero-content {
    padding: 20px !important;
  }
}
