/* ------------------------------
   Revive RCM Solutions - Modern Design System
------------------------------ */

:root {
  /* Professional Color Palette - Refined */
  --primary-color: #0056b3; /* Deep professional blue */
  --primary-dark: #003d82; /* Darker blue for hover states */
  --primary-light: #e1f0ff; /* Light blue for backgrounds */
  --secondary-color: #2c3e50; /* Deep blue-gray */
  --accent-color: #00b8d4; /* Vibrant teal accent */
  --success-color: #28a745; /* Fresh green */
  --info-color: #0dcaf0; /* Info blue */
  --warning-color: #ffc107; /* Muted gold */
  --danger-color: #dc3545; /* Soft red */
  
  /* Neutral Colors */
  --text-light: #ffffff;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #121212;
  --bg-gradient: linear-gradient(135deg, #0056b3, #00b8d4);
  --bg-gradient-light: linear-gradient(135deg, #e1f0ff, #f8f9fa);
  
  /* UI Elements */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.175);
  --box-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.2);
  --transition-speed: 0.3s;
  --transition-function: cubic-bezier(0.4, 0, 0.2, 1);
  --container-max-width: 1320px;
  --section-spacing: 5rem;
}

/* Base Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Color utility classes */
.bg-primary-light {
  background-color: var(--primary-light);
}

.bg-accent-light {
  background-color: rgba(0, 184, 212, 0.1);
}

.bg-secondary-light {
  background-color: rgba(44, 62, 80, 0.1);
}

.bg-success-light {
  background-color: rgba(40, 167, 69, 0.1);
}

.text-accent {
  color: var(--accent-color);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

h1 {
  font-size: calc(2rem + 1.5vw);
  letter-spacing: -0.5px;
}

h2 {
  font-size: calc(1.5rem + 1vw);
  letter-spacing: -0.3px;
}

h3 {
  font-size: calc(1.3rem + 0.6vw);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

.text-gradient {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Custom Container */
.container-custom {
  width: 100%;
  max-width: var(--container-max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

/* Section Spacing */
section {
  padding: var(--section-spacing) 0;
}

.section-sm {
  padding: calc(var(--section-spacing) / 2) 0;
}

/* Enhanced Navigation */
.navbar {
  padding: 1.25rem 1rem;
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-scrolled {
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.navbar-brand:hover {
  color: var(--accent-color);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color) !important;
}

/* Dark Theme Styles */
body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: var(--text-light);
}

body.dark-theme .navbar {
  background-color: rgba(18, 18, 18, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .bg-light {
  background-color: #1e293b !important;
}

body.dark-theme .bg-white {
  background-color: #1e293b !important;
  color: var(--text-light);
}

body.dark-theme .text-dark {
  color: var(--text-light) !important;
}

body.dark-theme .border-light {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .card,
body.dark-theme .shadow-sm,
body.dark-theme .shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* System Theme Detection */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--bg-dark);
    color: var(--text-light);
  }
  .navbar, .footer {
    background-color: #1f1f1f;
  }
  .nav-link,
  .navbar-brand,
  footer a {
    color: var(--text-light) !important;
  }
  .btn-warning {
    background-color: #e0a800;
    color: #000;
  }
}

@media (prefers-color-scheme: light) {
  body {
    background-color: var(--bg-light);
    color: var(--text-dark);
  }
}

/* Typography Enhancements - Updated */

h1 {
  color: var(--primary-dark);
}

h2 {
  color: var(--secondary-color);
}

h3 {
  color: var(--secondary-color);
}

.lead {
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Hero Section */
.hero h1 {
  color: var(--primary-dark);
  font-size: calc(1.5rem + 1.5vw);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Navbar Enhancements */
.navbar {
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  transition: color var(--transition-speed) ease;
}

.navbar-brand:hover {
  color: var(--accent-color) !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.75rem 1.25rem !important;
  transition: color var(--transition-speed) ease;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

.nav-link.active {
  color: var(--accent-color) !important;
  font-weight: 600;
}

/* Card Enhancements */
.card {
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  overflow: hidden;
  border: none;
  background-color: white;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
}

.card p {
  color: var(--text-muted);
}

.card-title, .card h5, .card h6 {
  color: var(--secondary-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Feature Cards */
.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.feature-icon {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.feature-title {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.feature-text {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Stat Cards */
.stat-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.stat-label {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.stat-progress {
  margin-top: 1rem;
}

/* Timeline Styles */
.timeline-section {
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  padding: 2rem 0;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: var(--primary-light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timeline-point {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 0 5px var(--primary-light);
}

.timeline-content {
  position: relative;
  width: 45%;
  margin-left: auto;
  margin-right: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 0;
  margin-left: auto;
  padding-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
  padding-right: 2rem;
}

.timeline-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  position: relative;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.timeline-year {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-title {
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.timeline-text {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Testimonial Cards */
.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

/* Continuous Carousel */
.testimonial-continuous {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
  margin: 2rem 0;
}

.testimonial-track {
  display: flex;
  animation: testimonial-scroll 40s linear infinite;
  width: max-content;
  gap: 2rem;
}

.testimonial-continuous:hover .testimonial-track {
  animation-play-state: paused;
}

@keyframes testimonial-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-item {
  flex: 0 0 auto;
  width: 400px;
  max-width: 90vw;
}

.testimonial-rating {
  font-size: 1.25rem;
  color: var(--warning-color);
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3rem;
  position: absolute;
  left: -0.5rem;
  top: -1rem;
  color: var(--primary-light);
  opacity: 0.7;
}

.testimonial-avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive timeline adjustments */
@media (max-width: 768px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-point {
    left: 40px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Button Enhancements */
.btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--box-shadow);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.2rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline-dark:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-light);
}

/* Footer Enhancements */
footer {
  transition: background-color var(--transition-speed) ease;
}

footer a {
  transition: color var(--transition-speed) ease, text-decoration var(--transition-speed) ease;
}

footer a:hover {
  text-decoration: underline;
  color: var(--accent-color) !important;
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  box-shadow: var(--box-shadow);
}

/* Decorative Shapes */
.stats-shape-1 {
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(0, 86, 179, 0.1);
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
  z-index: -1;
}

.testimonial-shape-1 {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(0, 184, 212, 0.1);
  border-radius: 50%;
  top: -50px;
  left: -80px;
  z-index: -1;
}

/* Partners Section */
.partners-logos {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.partners-logos-inner {
  display: flex;
  gap: 3rem;
  animation: marquee-right 30s linear infinite;
  width: max-content;
}

.partners-logos:hover .partners-logos-inner {
  animation-play-state: paused;
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.partner-logo-container {
  flex: 0 0 auto;
  transition: transform var(--transition-speed) ease;
}

.partner-logo-container:hover {
  transform: translateY(-5px);
}

.partner-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* CTA Section */
.cta-section {
  background: var(--bg-gradient);
  position: relative;
  color: white;
  padding: 4rem 0;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTEyODAgMTQwVjBTOTkzLjQ2IDE0MCA2NDAgMTM5IDAgMCAwIDB2MTQweiIvPjwvZz48L3N2Zz4=');
  background-size: 100% 100px;
  background-position: top;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.trust-badge {
  font-size: 0.9rem;
}

/* Footer Styling */
.footer {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.footer-heading {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 50px;
  background-color: var(--primary-color);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-link:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-5px);
}

/* Fixed Action Buttons */
.fixed-action-buttons {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.fixed-action-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border: none;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.fixed-action-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

#scrollTopBtn {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  z-index: 999;
  transform: translateY(100%);
  transition: transform var(--transition-speed) ease;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.sticky-cta.show {
  transform: translateY(0);
}

.img-hover:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-hover);
}

/* Animation Delays */
[data-aos][data-aos][data-aos-delay="100"].aos-animate {
  transition-delay: 100ms;
}

[data-aos][data-aos][data-aos-delay="200"].aos-animate {
  transition-delay: 200ms;
}

[data-aos][data-aos][data-aos-delay="300"].aos-animate {
  transition-delay: 300ms;
}

/* Scroll to Top Button Enhancements */
#scrollTopBtn {
  transition: all var(--transition-speed) ease;
  opacity: 0.8;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: var(--accent-color);
  border: none;
  box-shadow: var(--box-shadow);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollTopBtn:hover {
  opacity: 1;
  transform: translateY(-3px);
  background-color: var(--primary-dark);
  box-shadow: var(--box-shadow-hover);
}

/* Testimonial Slider */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  transition: opacity var(--transition-speed) ease;
}

/* Form Styling */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* Marquee Animation */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: rgba(65, 182, 230, 0.1);
  padding: 0.75rem 0;
  border-radius: var(--border-radius);
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-weight: 500;
  color: var(--primary-color);
  padding-left: 100%;
}

.marquee-content span {
  display: inline-block;
  transition: all 0.2s ease;
}

.marquee-content span:not(.mx-4):hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
