

/* ============================================================
   GLOBAL OVERFLOW PREVENTION
   ============================================================ */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}



/* Prevent any section from causing horizontal scroll */
section,
.section,
.hero-cm,
.page-hero,
.cta-section,
.footer-cm {
    overflow-x: hidden;
    max-width: 100%;
}

/* Container safe */
.container,
.container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Bootstrap row fix */
@media (max-width: 991.98px) {
    .row {
        --bs-gutter-x: 1.25rem;
    }
}



/* ============================================================
   CODMEDIX — Medical Billing Solutions
   Master Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --cm-navy:       #0A1E5C;
    --cm-primary:    #0D47A1;
    --cm-accent:     #1E88E5;
    --cm-sky:        #42A5F5;
    --cm-light:      #E3F2FD;
    --cm-lighter:    #F0F7FF;
    --cm-dark-text:  #1A1A2E;
    --cm-gray:       #6B7280;
    --cm-gray-light: #9CA3AF;
    --cm-border:     #E5E7EB;
    --cm-success:    #10B981;
    --cm-warning:    #F59E0B;
    --cm-danger:     #EF4444;
    --cm-white:      #FFFFFF;
    --cm-shadow:     0 4px 20px rgba(10, 30, 92, 0.08);
    --cm-shadow-lg:  0 20px 50px rgba(10, 30, 92, 0.12);
    --cm-radius:     12px;
    --cm-radius-lg:  20px;
    --cm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--cm-dark-text);
    background: var(--cm-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--cm-navy);
    font-weight: 700;
    line-height: 1.3;
}

a { text-decoration: none; transition: var(--cm-transition); }
img { max-width: 100%; height: auto; }

::selection {
    background: var(--cm-accent);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cm-light); }
::-webkit-scrollbar-thumb { background: var(--cm-primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--cm-navy); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-40px); }
[data-animate="fade-left"]  { transform: translateX(-50px); }
[data-animate="fade-right"] { transform: translateX(50px); }
[data-animate="zoom-in"]    { transform: scale(0.85); }
[data-animate="zoom-out"]   { transform: scale(1.15); }

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger delays */
[data-delay="100"]  { transition-delay: 0.1s; }
[data-delay="200"]  { transition-delay: 0.2s; }
[data-delay="300"]  { transition-delay: 0.3s; }
[data-delay="400"]  { transition-delay: 0.4s; }
[data-delay="500"]  { transition-delay: 0.5s; }
[data-delay="600"]  { transition-delay: 0.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.float-anim  { animation: float 4s ease-in-out infinite; }
.pulse-anim  { animation: pulse 2.5s ease-in-out infinite; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-cm {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(10, 30, 92, 0.08);
    padding: 10px 0;
    transition: var(--cm-transition);
    z-index: 1050;
}
.navbar-cm.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 30px rgba(10, 30, 92, 0.12);
}
.navbar-cm .navbar-brand img { height: 52px; transition: var(--cm-transition); }
.navbar-cm.scrolled .navbar-brand img { height: 44px; }

.navbar-cm .nav-link {
    color: var(--cm-navy);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 16px !important;
    position: relative;
}
.navbar-cm .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cm-accent);
    transition: var(--cm-transition);
    transform: translateX(-50%);
}
.navbar-cm .nav-link:hover::after,
.navbar-cm .nav-link.active::after { width: 60%; }
.navbar-cm .nav-link:hover { color: var(--cm-accent); }

/* Dropdown */
.navbar-cm .dropdown-menu {
    border: none;
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow-lg);
    padding: 12px 8px;
    margin-top: 8px;
    min-width: 240px;
    animation: fadeInDown 0.25s ease;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.navbar-cm .dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--cm-navy);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-cm .dropdown-item i {
    color: var(--cm-accent);
    width: 18px;
    text-align: center;
}
.navbar-cm .dropdown-item:hover {
    background: var(--cm-light);
    color: var(--cm-primary);
    padding-left: 22px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-cm-primary {
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--cm-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-cm-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cm-navy), var(--cm-primary));
    opacity: 0;
    transition: var(--cm-transition);
    z-index: -1;
}
.btn-cm-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(13, 71, 161, 0.35);
}
.btn-cm-primary:hover::before { opacity: 1; }

.btn-cm-outline {
    background: transparent;
    color: var(--cm-primary);
    border: 2px solid var(--cm-primary);
    padding: 11px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--cm-transition);
}
.btn-cm-outline:hover {
    background: var(--cm-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(13, 71, 161, 0.25);
}

.btn-cm-white {
    background: #fff;
    color: var(--cm-primary);
    border: none;
    padding: 13px 32px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--cm-transition);
}
.btn-cm-white:hover {
    background: var(--cm-light);
    color: var(--cm-navy);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero-cm {
    background: linear-gradient(135deg, var(--cm-navy) 0%, var(--cm-primary) 55%, var(--cm-accent) 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    color: #fff;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero-cm::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-cm h1, .hero-cm h2, .hero-cm h3, .hero-cm h4 { color: #fff; }
.hero-cm .lead { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; }
.hero-cm .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge i { color: #7DD3FC; }

.hero-img-wrap {
    position: relative;
    border-radius: var(--cm-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}
.hero-img-wrap img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-img-wrap:hover img { transform: scale(1.05); }

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--cm-navy), var(--cm-primary));
    color: #fff;
    padding: 130px 0 70px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    clip-path: ellipse(75% 100% at 50% 100%);
}
.page-hero h1 { color: #fff; font-size: 2.75rem; }
.page-hero .breadcrumb-cm {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
}
.page-hero .breadcrumb-cm a { color: #7DD3FC; }
.page-hero .breadcrumb-cm a:hover { color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-light { background: var(--cm-lighter); }
.section-dark {
    background: var(--cm-navy);
    color: #fff;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.85); }

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.section-subtitle {
    color: var(--cm-gray);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}
.section-tag {
    display: inline-block;
    background: var(--cm-light);
    color: var(--cm-primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-cm {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    padding: 36px 30px;
    height: 100%;
    transition: var(--cm-transition);
    position: relative;
    overflow: hidden;
}
.card-cm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cm-primary), var(--cm-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--cm-transition);
}
.card-cm:hover {
    transform: translateY(-8px);
    box-shadow: var(--cm-shadow-lg);
    border-color: transparent;
}
.card-cm:hover::before { transform: scaleX(1); }

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cm-light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--cm-primary);
    margin-bottom: 22px;
    transition: var(--cm-transition);
}
.card-cm:hover .card-icon {
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    color: #fff;
    transform: rotate(-8deg) scale(1.08);
}
.card-cm h4 { font-size: 1.2rem; margin-bottom: 12px; }
.card-cm p { color: var(--cm-gray); font-size: 0.94rem; margin-bottom: 0; }

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--cm-gray);
    font-size: 0.95rem;
}
.feature-list li i {
    color: var(--cm-success);
    margin-top: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================================
   CHECK BADGES
   ============================================================ */
.badge-cm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cm-light);
    color: var(--cm-primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px;
    transition: var(--cm-transition);
}
.badge-cm i { color: var(--cm-success); }
.badge-cm:hover {
    background: var(--cm-primary);
    color: #fff;
    transform: translateY(-3px);
}
.badge-cm:hover i { color: #7DD3FC; }

.badge-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--cm-success);
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.badge-check i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* ============================================================
   STATS
   ============================================================ */
.stat-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--cm-radius);
    transition: var(--cm-transition);
}
.stat-box:hover { transform: translateY(-6px); }
.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.section-dark .stat-number {
    background: linear-gradient(135deg, #7DD3FC, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    color: var(--cm-gray);
    font-size: 0.9rem;
    font-weight: 500;
}
.section-dark .stat-label { color: rgba(255, 255, 255, 0.75); }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion-cm .accordion-item {
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-cm .accordion-button {
    font-weight: 600;
    color: var(--cm-navy);
    font-size: 1rem;
    padding: 20px 24px;
    background: #fff;
}
.accordion-cm .accordion-button:not(.collapsed) {
    background: var(--cm-light);
    color: var(--cm-primary);
    box-shadow: none;
}
.accordion-cm .accordion-button:focus { box-shadow: none; border: none; }
.accordion-cm .accordion-body {
    color: var(--cm-gray);
    font-size: 0.94rem;
    padding: 0 24px 20px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: #fff;
    border-radius: var(--cm-radius-lg);
    padding: 32px 28px;
    box-shadow: var(--cm-shadow);
    height: 100%;
    position: relative;
    transition: var(--cm-transition);
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cm-shadow-lg);
}
.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--cm-light);
    margin-bottom: 16px;
}
.testimonial-card p {
    color: var(--cm-gray);
    font-size: 0.94rem;
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author h6 { margin: 0; font-size: 0.95rem; }
.testimonial-author small { color: var(--cm-gray-light); font-size: 0.8rem; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-step {
    text-align: center;
    position: relative;
    padding: 20px 15px;
}
.process-step .step-num {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Poppins', sans-serif;
    transition: var(--cm-transition);
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.25);
}
.process-step:hover .step-num {
    transform: scale(1.1) rotate(-8deg);
}
.process-step h5 { font-size: 1.05rem; margin-bottom: 10px; }
.process-step p { color: var(--cm-gray); font-size: 0.9rem; }
.process-connector {
    position: absolute;
    top: 55px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: dashed var(--cm-accent);
    opacity: 0.3;
}
@media (max-width: 991px) { .process-connector { display: none; } }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--cm-navy), var(--cm-primary), var(--cm-accent));
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    border-radius: 50%;
}
.cta-section h2 { color: #fff; font-size: 2.25rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-cm {
    background: var(--cm-navy);
    color: #CBD5E1;
    padding: 70px 0 0;
    position: relative;
}
.footer-cm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cm-primary), var(--cm-accent), var(--cm-sky));
}
.footer-cm h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 22px;
    font-weight: 600;
}
.footer-cm p, .footer-cm a {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer-cm a { display: block; margin-bottom: 10px; }
.footer-cm a:hover { color: var(--cm-sky); padding-left: 5px; }
.footer-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-right: 8px;
    margin-bottom: 0;
    transition: var(--cm-transition);
}
.footer-social a:hover {
    background: var(--cm-accent);
    color: #fff;
    padding-left: 0;
    transform: translateY(-4px);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.footer-contact-item i {
    color: var(--cm-sky);
    margin-top: 5px;
    width: 18px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    padding: 24px 0;
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
}
.footer-bottom a { display: inline; color: var(--cm-sky); }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid var(--cm-border);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--cm-transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--cm-accent);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}
.form-label {
    font-weight: 600;
    color: var(--cm-navy);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .hero-cm { padding: 110px 0 70px; text-align: center; }
    .hero-cm h1 { font-size: 2.2rem; }
    .hero-img-wrap { margin-top: 40px; }
    .hero-img-wrap img { height: 320px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.75rem; }
    .page-hero h1 { font-size: 2rem; }
    .navbar-cm .nav-link::after { display: none; }
    .navbar-cm .nav-link { padding: 8px 12px !important; }
}

@media (max-width: 575.98px) {
    .hero-cm { padding: 100px 0 60px; }
    .hero-cm h1 { font-size: 1.7rem; }
    .hero-cm .lead { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .card-cm { padding: 26px 22px; }
    .stat-number { font-size: 2.2rem; }
    .cta-section h2 { font-size: 1.6rem; }
    .btn-cm-primary, .btn-cm-outline { padding: 11px 22px; font-size: 0.88rem; }
    .page-hero h1 { font-size: 1.6rem; }
}

/* ---------- Utilities ---------- */
.text-cm-primary { color: var(--cm-primary) !important; }
.text-cm-accent  { color: var(--cm-accent) !important; }
.bg-cm-light     { background: var(--cm-light) !important; }
.bg-cm-lighter   { background: var(--cm-lighter) !important; }
.bg-cm-navy      { background: var(--cm-navy) !important; }
.rounded-cm      { border-radius: var(--cm-radius) !important; }
.rounded-cm-lg   { border-radius: var(--cm-radius-lg) !important; }
.shadow-cm       { box-shadow: var(--cm-shadow) !important; }
.shadow-cm-lg    { box-shadow: var(--cm-shadow-lg) !important; }










/* ============================================================
   NESTED DROPDOWN (Business Solutions)
   ============================================================ */
.navbar-cm .dropdown-submenu {
    position: relative;
}

.navbar-cm .dropdown-submenu > .dropdown-menu.submenu-cm {
    position: absolute;
    top: 0;                    /* ← Parent item ke saath align */
    left: 100%;
    margin: 0 0 0 4px;            /* ← Chhota gap, no vertical shift */
    min-width: 270px;
    max-height: 70vh;             /* ← Tall menus me scroll */
    overflow-y: auto;
    display: none;
    animation: submenuFade 0.22s ease;
    box-shadow: 0 12px 40px rgba(10, 30, 92, 0.15);
    border: none;
    border-radius: 12px;
    padding: 10px 8px;
}
.navbar-cm .dropdown-submenu > .dropdown-menu.submenu-cm::-webkit-scrollbar {
    width: 5px;
}
.navbar-cm .dropdown-submenu > .dropdown-menu.submenu-cm::-webkit-scrollbar-thumb {
    background: var(--cm-light);
    border-radius: 3px;
}

.navbar-cm .dropdown-submenu:hover > .dropdown-menu.submenu-cm {
    display: block;
}

@keyframes submenuFade {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.navbar-cm .dropdown-submenu > a {
    position: relative;
    padding-right: 36px !important;
}
.navbar-cm .dropdown-submenu > a::after {
    content: '';
    display: none;
}
.navbar-cm .dropdown-submenu > a .fa-chevron-right {
    transition: transform 0.25s ease;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.navbar-cm .dropdown-submenu:hover > a .fa-chevron-right {
    transform: translateY(-50%) translateX(3px);
    color: var(--cm-primary) !important;
}

/* ============================================================
   MOBILE: Stacked Submenu
   ============================================================ */
@media (max-width: 991.98px) {
    .navbar-cm .dropdown-submenu > .dropdown-menu.submenu-cm {
        position: static;
        left: auto;
        top: auto;
        margin: 4px 0 4px 16px;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        max-height: none;
        overflow: visible;
        border-left: 2px solid var(--cm-light);
        border-radius: 0;
        display: block !important;
        background: transparent;
    }
    .navbar-cm .dropdown-submenu > .dropdown-menu.submenu-cm .dropdown-item {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 0;
    }
    .navbar-cm .dropdown-submenu > a .fa-chevron-right {
        position: static;
        transform: none;
        margin-left: auto;
    }
    .navbar-cm .dropdown-submenu:hover > a .fa-chevron-right {
        transform: none;
    }
}











/* ============================================================
   COMPLIANCE CARDS — Badge on Left Corner
   ============================================================ */
.compliance-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    position: relative;
    overflow: hidden;
    padding: 32px 30px;
}

/* Left gradient bar (blue for HIPAA, navy for NSA) */
.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--cm-primary), var(--cm-accent));
    transform: scaleY(1);
    transition: transform 0.4s ease;
}

/* ============================================================
   BADGE IMAGE WRAPPER
   ============================================================ */
.compliance-badge-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.compliance-badge {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(13, 71, 161, 0.20));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.4s ease;
}

/* Hover — subtle scale + stronger glow */
.compliance-card:hover .compliance-badge {
    transform: scale(1.08) rotate(-4deg);
    filter: drop-shadow(0 10px 22px rgba(13, 71, 161, 0.35));
}

.compliance-card:hover .compliance-badge-wrap {
    transform: translateY(-4px);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.compliance-content {
    flex: 1;
    min-width: 0;
}

.compliance-content .badge-check {
    margin-bottom: 6px;
}

.compliance-date {
    display: block;
    color: var(--cm-gray);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.compliance-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cm-navy);
    margin-bottom: 12px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.compliance-text {
    color: #4B5563;
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 991.98px) {
    .compliance-card {
        gap: 18px;
        padding: 28px 26px;
    }
    .compliance-badge-wrap {
        width: 95px;
        height: 95px;
    }
    .compliance-title {
        font-size: 1.1rem;
    }
    .compliance-text {
        font-size: 0.88rem;
        line-height: 1.7;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (large)
   ============================================================ */
@media (max-width: 767.98px) {
    .compliance-card {
        gap: 16px;
        padding: 24px 22px;
        /* Ensure flex keeps badge left, content right */
        flex-direction: row;
    }
    .compliance-badge-wrap {
        width: 80px;
        height: 80px;
    }
    .compliance-title {
        font-size: 1.02rem;
        margin-bottom: 10px;
    }
    .compliance-text {
        font-size: 0.85rem;
        line-height: 1.65;
    }
    .compliance-date {
        font-size: 0.76rem;
        margin-bottom: 10px;
    }
    .compliance-content .badge-check {
        font-size: 0.85rem;
        gap: 8px;
    }
    .compliance-content .badge-check i {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (small) — Badge stacks on top
   ============================================================ */
@media (max-width: 480px) {
    .compliance-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 26px 20px 24px;
        gap: 14px;
    }
    .compliance-badge-wrap {
        width: 90px;
        height: 90px;
        margin: 0 auto;
    }
    .compliance-content {
        width: 100%;
    }
    .compliance-content .badge-check {
        justify-content: center;
    }
    .compliance-title {
        text-align: center;
        font-size: 1.02rem;
    }
    .compliance-text {
        text-align: left;
    }
    .compliance-date {
        text-align: center;
    }
}











/* ============================================================
   FOOTER — Mobile Responsive Fix
   ============================================================ */
@media (max-width: 991.98px) {
    .footer-cm {
        padding: 55px 0 0;
    }
    .footer-cm h5 {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    .footer-cm p,
    .footer-cm a {
        font-size: 0.88rem;
    }
    .footer-cm .row {
        --bs-gutter-y: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .footer-cm {
        padding: 45px 0 0;
        text-align: center;
    }
    .footer-cm h5 {
        font-size: 0.92rem;
        margin-top: 8px;
        margin-bottom: 14px;
    }
    .footer-cm p,
    .footer-cm a {
        font-size: 0.86rem;
        line-height: 1.7;
    }

    /* Brand column */
    .footer-cm .footer-brand-col {
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-cm .footer-brand-col img {
        height: 58px !important;
        margin-bottom: 14px;
    }
    .footer-cm .footer-brand-col p {
        max-width: 100% !important;
        margin: 0 auto;
    }

    /* Social links center */
    .footer-social {
        justify-content: center;
        margin-top: 16px;
    }

    /* Contact items center */
    .footer-contact-item {
        justify-content: center;
        text-align: left;
        max-width: 300px;
        margin: 0 auto 12px;
    }
    .footer-contact-item i {
        margin-top: 4px;
    }

    /* Bottom bar */
    .footer-bottom {
        margin-top: 30px;
        padding: 20px 15px;
        font-size: 0.8rem;
        text-align: center;
    }
    .footer-bottom .col-md-6 {
        text-align: center !important;
    }
    .footer-bottom .col-md-6:first-child {
        margin-bottom: 10px;
    }
    .footer-bottom a {
        display: inline-block;
        margin: 4px 4px;
        font-size: 0.8rem;
    }
    .footer-bottom .mx-2 {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .footer-cm {
        padding: 40px 0 0;
    }
    .footer-cm h5 {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }
    .footer-cm p,
    .footer-cm a {
        font-size: 0.83rem;
    }
    .footer-cm .footer-brand-col img {
        height: 50px !important;
    }
    .footer-social a {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
    .footer-contact-item {
        font-size: 0.83rem;
        margin-bottom: 10px;
    }
    .footer-bottom {
        font-size: 0.78rem;
        padding: 16px 12px;
    }
    .footer-bottom a {
        font-size: 0.78rem;
        margin: 3px 3px;
    }
}











/* ============================================================
   ============================================================
   PROFESSIONAL POLISH LAYER
   Premium animations, typography & micro-interactions
   ============================================================
   ============================================================ */

/* ============================================================
   1. ENHANCED TYPOGRAPHY — White Background Headings
   ============================================================ */

/* Main headings on light backgrounds */
.section .section-title,
.section-light .section-title,
.about-section .section-title,
h2.section-title:not(.section-dark h2) {
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(10, 30, 92, 0.04);
}

/* All h1-h6 in white/light areas get subtle shadow */
body h1:not(.section-dark h1):not(.hero-cm h1):not(.page-hero h1):not(.cta-section h1),
body h2:not(.section-dark h2):not(.hero-cm h2):not(.page-hero h2):not(.cta-section h2),
body h3:not(.section-dark h3):not(.hero-cm h3):not(.page-hero h3):not(.cta-section h3),
body h4:not(.section-dark h4):not(.hero-cm h4):not(.page-hero h4):not(.cta-section h4) {
    text-shadow: 0 1px 3px rgba(10, 30, 92, 0.05);
}

/* Body paragraphs slightly darker for readability */
.section p,
.section-subtitle,
.overview-content p {
    color: #4B5563;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Card text — softer */
.card-cm p {
    color: #5A6675;
    letter-spacing: 0.1px;
}

/* ============================================================
   2. HERO SECTION ANIMATIONS — Entrance choreography
   ============================================================ */

/* Hero badge — slide + fade */
.hero-cm .hero-badge {
    animation: heroSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
}

/* Hero heading — slide from left */
.hero-cm h1,
.hero-cm h2 {
    animation: heroSlideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.25s;
    letter-spacing: -0.8px;
}

/* Hero lead text */
.hero-cm .lead {
    animation: heroSlideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s;
}

/* Hero buttons */
.hero-cm .btn-cm-white,
.hero-cm .btn-cm-outline {
    animation: heroSlideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.55s;
}

/* Hero image — scale in with rotation */
.hero-img-wrap {
    animation: heroImageIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.35s;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

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

/* ============================================================
   3. CARD ENTRANCE — Staggered reveal on scroll
   ============================================================ */

/* Enhanced version of [data-animate] */
[data-animate] {
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
    filter: blur(2px);
}

[data-animate="fade-left"] {
    transform: translateX(-40px);
    filter: blur(2px);
}

[data-animate="fade-right"] {
    transform: translateX(40px);
    filter: blur(2px);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
    filter: blur(2px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* Section-level fade — subtle */
.section {
    position: relative;
}

.section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* ============================================================
   4. CARD HOVER POLISH — Micro-interactions
   ============================================================ */

.card-cm,
.biz-card,
.process-card,
.other-card,
.testimonial-card,
.tech-item {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                background 0.3s ease;
    will-change: transform;
}

/* Card icon — subtle rotate and scale */
.card-icon,
.biz-icon,
.other-card-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.4s ease,
                color 0.3s ease,
                box-shadow 0.4s ease;
}

.card-cm:hover .card-icon,
.biz-card:hover .biz-icon,
.other-card:hover .other-card-icon {
    transform: translateY(-3px) rotate(-6deg) scale(1.1);
    box-shadow: 0 12px 25px rgba(13, 71, 161, 0.18);
}

/* Card heading — subtle lift on hover */
.card-cm h4,
.biz-card h4,
.other-card h5 {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.card-cm:hover h4 {
    color: var(--cm-primary);
    letter-spacing: 0.2px;
}

/* ============================================================
   5. BUTTON MICRO-INTERACTIONS — Premium feel
   ============================================================ */

/* Primary Button */
.btn-cm-primary {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.4s ease;
    will-change: transform;
}

.btn-cm-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(13, 71, 161, 0.35),
                0 6px 12px rgba(13, 71, 161, 0.15);
}

.btn-cm-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(13, 71, 161, 0.28);
    transition-duration: 0.1s;
}

/* Shine effect on hover */
.btn-cm-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.btn-cm-primary:hover::after {
    left: 100%;
}

/* Outline Button */
.btn-cm-outline {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-cm-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-cm-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-cm-outline:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(13, 71, 161, 0.28);
}

.btn-cm-outline:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

/* White Button (on dark backgrounds) */
.btn-cm-white {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-cm-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cm-light), #fff);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-cm-white:hover::before {
    opacity: 1;
}

.btn-cm-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn-cm-white:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

/* Arrow icon in buttons — slides on hover */
.btn-cm-primary .fa-arrow-right,
.btn-cm-outline .fa-arrow-right,
.btn-cm-white .fa-arrow-right {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cm-primary:hover .fa-arrow-right,
.btn-cm-outline:hover .fa-arrow-right,
.btn-cm-white:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* ============================================================
   6. SECTION TAG — Subtle float animation
   ============================================================ */

.section-tag {
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.section-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.15);
}

/* ============================================================
   7. STAT BOX ANIMATION — Counter + reveal
   ============================================================ */

.stat-box {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-box:hover {
    transform: translateY(-6px);
}

.stat-number {
    text-shadow: 0 2px 4px rgba(13, 71, 161, 0.08);
    letter-spacing: -1px;
}

/* ============================================================
   8. PROCESS / STEP NUMBERS — Rotate on hover
   ============================================================ */

.process-step .step-num,
.process-num {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                background 0.4s ease;
}

.process-card:hover .process-num,
.process-step:hover .step-num {
    transform: translateY(-4px) scale(1.12) rotate(-8deg);
    box-shadow: 0 16px 32px rgba(13, 71, 161, 0.32);
}

/* ============================================================
   9. BADGE — Pulse on hover
   ============================================================ */

.badge-cm {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
}

.badge-cm:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.20);
}

/* ============================================================
   10. LINK HOVER — Underline animate
   ============================================================ */

.biz-card-link,
.blog-card-readmore,
.back-to-blog {
    transition: gap 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease;
}

.biz-card:hover .biz-card-link,
.blog-card:hover .blog-card-readmore {
    gap: 14px;
    color: var(--cm-navy);
}

/* ============================================================
   11. NAVBAR — Smooth link transitions
   ============================================================ */

.navbar-cm .nav-link {
    transition: color 0.3s ease, padding 0.3s ease;
}

.navbar-cm .nav-link::after {
    transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease;
}

/* Dropdown item hover — slide effect */
.navbar-cm .dropdown-item {
    transition: background 0.25s ease,
                padding 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.25s ease;
}

/* ============================================================
   12. IMAGE ZOOM ON HOVER — Smooth
   ============================================================ */

.hero-img-wrap img,
.blog-card-img img,
.related-card img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s ease;
}

.hero-img-wrap:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* ============================================================
   13. TESTIMONIAL CARD — Quote icon rotate
   ============================================================ */

.testimonial-card .quote-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.4s ease;
}

.testimonial-card:hover .quote-icon {
    transform: translateY(-3px) rotate(-8deg);
    color: var(--cm-accent);
}

/* Author image — subtle scale */
.testimonial-author img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover .testimonial-author img {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.20);
}

/* ============================================================
   14. ACCORDION — Smooth transitions
   ============================================================ */

.accordion-cm .accordion-item {
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.accordion-cm .accordion-item:hover {
    border-color: var(--cm-accent);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.08);
}

.accordion-cm .accordion-button {
    transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease;
}

/* ============================================================
   15. TECH ITEM — Lift with color glow
   ============================================================ */

.tech-item {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.35s ease;
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--cm-accent);
    box-shadow: 0 18px 38px rgba(30, 136, 229, 0.18);
}

.tech-item i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-item:hover i {
    transform: scale(1.12);
}

/* ============================================================
   16. FOOTER — Link underline slide
   ============================================================ */

.footer-cm a {
    transition: color 0.3s ease, padding-left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.footer-social a {
    transition: background 0.3s ease,
                color 0.3s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 22px rgba(30, 136, 229, 0.35);
}

/* ============================================================
   17. CTA SECTION — Pulsing glow
   ============================================================ */

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    transform: translate(-50%, -50%);
    animation: ctaGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaGlow {
    0%, 100% {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }
    50% {
        width: 600px;
        height: 600px;
        opacity: 0.15;
    }
}

.cta-section h2 {
    animation: ctaFade 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ============================================================
   18. SCROLL REVEAL — Extra smooth for cards
   ============================================================ */

@media (min-width: 992px) {
    /* Staggered reveal for card grids */
    .row > [class*="col-"]:nth-child(1) [data-animate] { transition-delay: 0s; }
    .row > [class*="col-"]:nth-child(2) [data-animate] { transition-delay: 0.1s; }
    .row > [class*="col-"]:nth-child(3) [data-animate] { transition-delay: 0.2s; }
    .row > [class*="col-"]:nth-child(4) [data-animate] { transition-delay: 0.15s; }
    .row > [class*="col-"]:nth-child(5) [data-animate] { transition-delay: 0.25s; }
    .row > [class*="col-"]:nth-child(6) [data-animate] { transition-delay: 0.3s; }
}

/* ============================================================
   19. HERO BADGE — Subtle floating
   ============================================================ */

.hero-badge {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   20. BACK TO TOP — Already in main.js, enhancing
   ============================================================ */

.back-to-top {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 16px 32px rgba(13, 71, 161, 0.45);
}

/* ============================================================
   21. PAGE HERO — Entrance animation
   ============================================================ */

.page-hero h1 {
    animation: pageHeroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.15s;
    letter-spacing: -0.6px;
}

.page-hero .lead {
    animation: pageHeroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

.page-hero .breadcrumb-cm {
    animation: pageHeroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.45s;
}

@keyframes pageHeroIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ============================================================
   22. FORM CONTROLS — Focus glow
   ============================================================ */

.form-control,
.form-select {
    transition: border-color 0.3s ease,
                box-shadow 0.4s ease,
                background 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cm-accent);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12),
                0 2px 8px rgba(30, 136, 229, 0.08);
}

/* ============================================================
   23. SECTION LIGHT — Subtle texture
   ============================================================ */

.section-light {
    position: relative;
}

.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(30, 136, 229, 0.15),
        transparent
    );
}

/* ============================================================
   24. SMOOTH REVEAL FOR SECTIONS
   ============================================================ */

.section {
    animation: sectionFade 0.7s ease-out both;
}

@keyframes sectionFade {
    from { opacity: 0.85; }
    to   { opacity: 1; }
}

/* ============================================================
   25. REDUCED MOTION SUPPORT — Accessibility
   ============================================================ */

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