:root {
    --primary-color: #008080;          /* Deep Emerald Green */
    --primary-dark: #006666;           /* Darker Green for depth */
    --secondary-color: #63e1a0;        /* Soft Mint Green */
    --accent-color: #2ECC71;           /* Success Green */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gray-light: #6c757d;
    --gray-dark: #495057;
    --border-color: #dee2e6;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
#header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

#header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

#header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#header .logo i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

#header .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

#header .nav-links li a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

#header .nav-links li a:hover,
#header .nav-links li a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

#header .mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#header .mobile-menu span {
    display: block;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin: 3px 0;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-accent);
    z-index: 1001;
    transition: width 0.3s ease;
    width: 0;
}

/* Page Hero */
.page-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    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 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.page-hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.specialties-cta {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 110px 0 120px;
    width: 100%;
    margin: 0;
}

.specialties-cta .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
}

.specialties-cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

.specialties-cta p {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: rgba(255,255,255,0.92);
    margin-bottom: 2rem;
}

.specialties-cta .btn.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(0, 128, 128, 0.25);
}

.specialties-cta .btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 128, 128, 0.35);
}

/* Specialties Grid */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.specialty-box {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

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

.specialty-box:hover::before {
    left: 100%;
}

.specialty-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.specialty-box.hidden {
    display: none;
}

.specialty-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.specialty-logo::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;
}

.specialty-box:hover .specialty-logo::after {
    opacity: 1;
}

.specialty-logo i {
    position: relative;
    z-index: 2;
    animation: pulse 2s infinite;
}

.specialty-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.3);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--gray-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gray-light);
    color: var(--white);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    margin: 2rem;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: var(--light-bg);
    border-radius: 0 0 16px 16px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 3.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

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

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

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-bottom: 0.6rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 44px !important;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9) !important;
    transition: var(--transition);
    margin-bottom: 0 !important;
}

.social-link:hover {
    background: var(--gradient-accent);
    color: var(--white) !important;
    transform: translateY(-3px) translateX(0);
    box-shadow: 0 12px 24px rgba(0, 128, 128, 0.25);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 128, 128, 0.25);
    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:hover {
    transform: translateY(8px);
    box-shadow: 0 16px 32px rgba(0, 128, 128, 0.35);
    filter: brightness(1.05);
}

.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;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Responsive adjustments for header */
    #header nav.container {
        padding: 1rem 1rem; /* Adjusted padding for smaller screens */
    }

    .nav-links {
        display: none; /* Hidden by default on mobile, controlled by JS for toggle */
    }

    #header .nav-links { /* Specific mobile menu styles */
        position: fixed;
        top: 60px; /* height of header */
        right: 0;
        background-color: #fff;
        height: calc(100vh - 60px);
        width: 200px;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    #header .nav-links.open {
        transform: translateX(0);
    }

    .mobile-menu {
        display: flex; /* Show mobile menu button */
    }
    /* FIX: Make the heading white */
    
      .page-hero .page-hero-content h1 {
  color: var(--white);
}

    .page-hero p {
        font-size: 1.1rem;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 150px 0 80px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .specialty-box {
        padding: 2rem 1.5rem;
        min-height: 200px;
    }

    .specialty-logo {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Enhanced Specialty Descriptions */
.specialty-billing-info {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid var(--secondary-color);
}

.billing-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-top: 0.5rem;
}