/* One Care - Professional Healthcare Theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Healthcare Color Palette (Emerald Green Theme) */
    --primary-color: #008080;          /* Deep Emerald Green */
    --primary-dark: #9be4e4;           /* Darker Green for depth */
    --primary-light: #00A0A0;          /* Lighter Green for accents */
    --secondary-color: #63e1a0;        /* Soft Mint Green */
    --accent-color: #2ECC71;           /* Success Green (retained for specific use) */
    --accent-light: #58D68D;           /* Light Success Green */
    --warning-color: #E67E22;          /* Professional Orange */
    --error-color: #E74C3C;            /* Medical Red */
    --text-color: #000000;             /* Deep Charcoal */
    --text-secondary: #07090c;         /* Medium Gray */
    --text-light: #07090a;             /* Light Gray */
    --text-muted: #85929E;             /* Muted Gray */
    --light-bg: #FBFCFD;               /* Off White */
    --lighter-bg: #F8F9FA;             /* Very Light Gray */
    --white: #FFFFFF;                  /* Pure White */
    
    /* Sophisticated Gray Scale */
    --gray-50: #FAFBFC;
    --gray-100: #F4F6F8;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --gray-900: #1C2833;
    
    --border-color: #E9ECEF;
    --border-light: #F4F6F8;
    
    /* Professional Shadows */
    --shadow-sm: 0 2px 4px 0 rgba(28, 40, 51, 0.04);
    --shadow: 0 4px 12px 0 rgba(28, 40, 51, 0.08);
    --shadow-md: 0 8px 24px 0 rgba(28, 40, 51, 0.12);
    --shadow-lg: 0 16px 32px 0 rgba(28, 40, 51, 0.16);
    --shadow-xl: 0 24px 48px 0 rgba(28, 40, 51, 0.20);
    --shadow-green: 0 8px 24px 0 rgba(0, 128, 128, 0.12); /* Updated for primary color */
    --shadow-mint: 0 8px 24px 0 rgba(99, 225, 160, 0.12); /* Updated for secondary color */
    
    /* Professional Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-light) 100%); /* Adjusted secondary gradient */
    --gradient-success: linear-gradient(135deg, #2ECC71 0%, #58D68D 100%);
    --gradient-healthcare: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 40%, var(--secondary-color) 100%);
    --gradient-card: linear-gradient(145deg, var(--white) 0%, var(--light-bg) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.10) 100%);
    --gradient-professional: linear-gradient(135deg, var(--gray-50) 0%, var(--lighter-bg) 100%);
    
    /* Spacing and Layout */
    --border-radius-sm: 6px;
    --border-radius: 10px;
    --border-radius-lg: 14px;
    --border-radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Import Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Enhanced Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}
.home-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem); /* smooth scaling */
  font-weight: 900;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-color);
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-color);
}

h4 { font-size: 1.5rem; color: var(--text-color); }
h5 { font-size: 1.25rem; color: var(--text-color); }
h6 { font-size: 1.125rem; color: var(--text-color); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Enhanced Header with Glassmorphism */
header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: var(--gray-50);
    transform: translateY(-1px);
}

/* Mobile Menu Enhancement */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-menu:hover {
    background: var(--gray-100);
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Progress Bar Enhancement */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section - Professional Design */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 128, 128, 0.4) 0%, transparent 50%), /* Updated for primary color */
        radial-gradient(circle at 80% 20%, rgba(99, 225, 160, 0.3) 0%, transparent 50%), /* Updated for secondary color */
        radial-gradient(circle at 40% 40%, rgba(0, 160, 160, 0.2) 0%, transparent 50%); /* Updated for primary light */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content img:not(.hero-doctor-img) {
    width: 450px;
    position: absolute;
    right: 70px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Enhanced Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.20);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item div:last-child {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Professional Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-green); /* Updated for primary color */
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--gradient-secondary); /* Changed to secondary color gradient */
    color: var(--white);
    box-shadow: var(--shadow-mint); /* Updated for secondary color */
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.05);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Enhanced Card System */
.card {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card:hover::before {
    transform: translateX(0);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-green); /* Updated for primary color */
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(-45deg);
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: var(--shadow-xl);
}

.card:hover .card-icon::before {
    animation: shine 0.8s ease-in-out;
}

.card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.card p {
    margin-bottom: 2rem;
    flex-grow: 1;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Enhanced Testimonials */
.testimonial {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin: 2rem 0;
    position: relative;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
}

.testimonial.active {
    opacity: 1;
    height: auto;
    padding: 3rem;
    margin: 2rem 0;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
}

/* Professional Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.control-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.control-btn.active {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-green); /* Updated for primary color */
    transform: scale(1.2);
}

.control-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.08) 0%, transparent 70%); /* Updated for primary color */
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 2rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section p {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--secondary-color); /* Changed to secondary color */
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--gray-800);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid var(--gray-700);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-green); /* Updated for primary color */
    border-color: transparent;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(-45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(-45deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Medical Billing Statistics Section */
.billing-stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.billing-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 225, 160, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 160, 160, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.billing-stats .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-mint);
    position: relative;
    overflow: hidden;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon::after {
    opacity: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Comprehensive Billing Services Grid */
.billing-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.billing-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.billing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.billing-card:hover::before {
    transform: translateX(0);
}

.billing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.card-badge {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.billing-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.billing-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Revenue Cycle Management */
.revenue-cycle {
    background: var(--light-bg);
}

.cycle-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cycle-step {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cycle-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.cycle-step:hover::before {
    transform: translateX(0);
}

.cycle-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-green);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-mint);
}

.cycle-step h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.cycle-step p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-metrics .metric {
    background: var(--light-bg);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--border-light);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .section-padding { padding: 100px 0; }
    .hero { padding: 180px 0 100px; }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .billing-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .cycle-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 8rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active { right: 0; }
    
    .section-padding { padding: 80px 0; }
    .hero { padding: 160px 0 80px; }
    
    .hero-content img:not(.hero-doctor-img) {
        position: relative;
        right: auto;
        width: 100%;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .card { padding: 2rem; }
    .testimonial { padding: 2rem; }
    .testimonial.active { padding: 2rem; }
    
    /* Mobile styles for new sections */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .billing-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .billing-card {
        padding: 2rem;
    }
    
    .card-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cycle-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cycle-step {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-padding { padding: 60px 0; }
    .hero { padding: 140px 0 60px; }
    
    .stats { grid-template-columns: 1fr; }
    .btn { padding: 14px 28px; font-size: 0.9rem; }
    .card { padding: 1.5rem; }
    .testimonial { padding: 1.5rem; }
    .testimonial.active { padding: 1.5rem; }
    
    .footer-content { gap: 2rem; }
    .social-links { flex-wrap: wrap; justify-content: center; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-lg);
    background: var(--gradient-primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-green);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    z-index: 1050;
}

.back-to-top i {
    pointer-events: none;
}

.back-to-top:hover {
    transform: translateY(8px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.05);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.25), var(--shadow-xl);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Cookie Consent (Bottom Banner) */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(28, 40, 51, 0.08);
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.hidden {
    transform: translateY(110%);
}

.cookie-consent .cookie-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.cookie-consent .cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.cookie-consent .cookie-title {
    font-weight: 700;
    color: var(--text-color);
}

.cookie-consent .cookie-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-consent .cookie-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent .cookie-text a:hover {
    text-decoration: underline;
}

.cookie-consent .cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-consent .cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-consent .cookie-btn:hover {
    background: var(--gray-50);
}

.cookie-consent .cookie-btn.accept {
    border-color: transparent;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.cookie-consent .cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cookie-consent .cookie-btn.decline {
    background: var(--gray-100);
    border-color: var(--border-color);
    color: var(--text-color);
}

.cookie-consent .cookie-btn.decline:hover {
    background: var(--gray-200);
}

@media (max-width: 768px) {
    .cookie-consent .cookie-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cookie-consent .cookie-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Print Styles */
@media print {
    .progress-bar, .mobile-menu, .cookie-consent { display: none !important; }
    header { position: static; }
    .hero { background: var(--white) !important; color: var(--text-color) !important; }
}