/* ===== SERVICE DETAIL PAGES — shared page-specific CSS (Medical Billing, Medical Coding, Claims Management) ===== */
.svc-hero {
            position: relative;
            padding: 168px 0 100px;
            overflow: hidden;
            background: linear-gradient(180deg, var(--gray-50), #fff);
        }

.svc-hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            position: relative;
            z-index: 2;
        }

.svc-hero-text {
            opacity: 0;
            transform: translateX(-40px);
            transition: opacity 1s cubic-bezier(0.23,1,0.32,1), transform 1s cubic-bezier(0.23,1,0.32,1);
        }

.svc-hero-text.visible { opacity: 1; transform: translateX(0); }

.svc-hero-text h1 {
            font-size: clamp(2.2rem, 4.2vw, 3.4rem);
            font-weight: 800;
            line-height: 1.12;
            color: var(--gray-900);
            margin: 18px 0 20px;
            letter-spacing: -0.02em;
        }

.svc-hero-text h1 .highlight { color: var(--primary); }

.svc-hero-text p {
            font-size: 1.08rem;
            color: var(--gray-500);
            line-height: 1.75;
            max-width: 520px;
            margin-bottom: 30px;
        }

.svc-hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.svc-hero-pillars { display: flex; gap: 28px; flex-wrap: wrap; }

.svc-hero-pillar { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }

.svc-hero-pillar .pill-ic {
            width: 34px; height: 34px; border-radius: 10px;
            background: var(--primary-soft); color: var(--primary);
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }

.svc-hero-pillar .pill-ic svg { width: 17px; height: 17px; }

.svc-hero-visual {
            position: relative;
            display: flex; justify-content: center; align-items: center;
            min-height: 520px;
            opacity: 0;
            transform: translateX(50px);
            transition: opacity 1.1s cubic-bezier(0.23,1,0.32,1) 0.15s, transform 1.1s cubic-bezier(0.23,1,0.32,1) 0.15s;
        }

.svc-hero-visual.visible { opacity: 1; transform: translateX(0); }

.svc-hv-glow {
            position: absolute; width: 82%; max-width: 460px; aspect-ratio: 1;
            border-radius: 50%;
            background: radial-gradient(circle, var(--primary-glow), rgba(0,58,175,0.04) 55%, transparent 72%);
            z-index: 0; filter: blur(6px);
            animation: floatBg 10s ease-in-out infinite;
        }

.svc-hv-ring {
            position: absolute; width: 92%; max-width: 500px; aspect-ratio: 1;
            border-radius: 50%; border: 1px dashed rgba(0,58,175,0.16);
            z-index: 0; animation: spinSlow 46s linear infinite;
        }

.svc-hv-frame {
            position: relative; z-index: 2; width: 100%; max-width: 460px;
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: 0 40px 80px -24px rgba(0,58,175,0.28);
            border: 1px solid rgba(255,255,255,0.5);
            animation: svcFloat 6.5s ease-in-out infinite;
        }

.svc-hv-frame img {
            display: block; width: 100%; height: 480px; object-fit: cover;
        }

.svc-hv-frame::after {
            content: '';
            position: absolute; inset: 0;
            background: linear-gradient(180deg, transparent 50%, rgba(0,42,128,0.55) 100%);
        }

.svc-hv-caption {
            position: absolute; z-index: 3; left: 24px; bottom: 24px;
            color: #fff;
        }

.svc-hv-caption strong { display: block; font-size: 1.05rem; font-weight: 700; }

.svc-hv-caption span { font-size: 0.8rem; color: rgba(255,255,255,0.8); }

.svc-hv-orbit-card {
            position: absolute; z-index: 4;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(0,58,175,0.12);
            border-radius: 16px;
            padding: 12px 18px;
            box-shadow: 0 20px 44px -18px rgba(0,58,175,0.32);
            display: flex; align-items: center; gap: 10px;
            font-size: 0.78rem; font-weight: 600; color: var(--gray-700);
            animation: floatBadge 5.2s ease-in-out infinite;
            white-space: nowrap;
        }

.svc-hv-orbit-card svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.svc-hv-orbit-1 { top: 6%; left: -4%; animation-delay: 0s; }

.svc-hv-orbit-2 { bottom: 12%; right: -6%; animation-delay: 1.1s; }

.svc-hv-orbit-3 { top: 42%; right: -10%; animation-delay: 2s; }

.svc-dataflow { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.svc-dataflow i {
            position: absolute; width: 5px; height: 5px; border-radius: 50%;
            background: var(--primary); opacity: 0.35;
            animation: dataFlowMove linear infinite;
        }

@media (max-width: 1024px) {
.svc-hero { padding: 148px 0 70px; }

.svc-hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }

.svc-hero-text { margin: 0 auto; }

.svc-hero-text p { margin-left: auto; margin-right: auto; }

.svc-hero-buttons, .svc-hero-pillars { justify-content: center; }

.svc-hero-visual { min-height: 420px; }

.svc-hv-orbit-1, .svc-hv-orbit-2, .svc-hv-orbit-3 { display: none; }
}

@media (max-width: 640px) {
.svc-hv-frame img { height: 340px; }
}

.svc-category-num {
            display: inline-flex; align-items: center; gap: 12px;
            font-family: var(--font); font-size: 0.8rem; font-weight: 700;
            letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
            margin-bottom: 16px;
        }

.svc-category-num .num-box {
            display: inline-flex; align-items: center; justify-content: center;
            width: 30px; height: 30px; border-radius: 9px;
            background: var(--primary); color: #fff; font-size: 0.75rem;
        }

.svc-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 26px;
            margin-top: 44px;
        }

@media (max-width: 1024px) {
.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
.svc-grid { grid-template-columns: 1fr; gap: 18px; }
}

@keyframes svcFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-16px); }
        }

@keyframes dataFlowMove {
            0% { transform: translateY(40px) translateX(0); opacity: 0; }
            15% { opacity: 0.5; }
            85% { opacity: 0.5; }
            100% { transform: translateY(-420px) translateX(var(--drift, 20px)); opacity: 0; }
        }


/* ===== PORTFOLIO — OUR LATEST WORK ===== */
.pf-section { background: linear-gradient(180deg, #fff, var(--gray-50)); overflow: hidden; }
.pf-carousel { position: relative; margin-top: 44px; padding: 0 58px; }
.pf-track { position: relative; display: flex; gap: 22px; overflow-x: hidden; padding: 16px 6px 24px; scroll-behavior: smooth; text-align: left; }
.pf-card {
    flex: 0 0 calc((100% - 66px) / 4); background: #fff; border-radius: 18px; cursor: pointer;
    border: 2px solid transparent; box-shadow: 0 10px 30px -16px rgba(0,58,175,0.25);
    transition: transform .4s cubic-bezier(.23,1,.32,1), box-shadow .4s, border-color .4s;
    overflow: hidden; outline: none;
}
.pf-card:hover, .pf-card:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 44px -18px rgba(0,58,175,0.4); }
.pf-card.active { border-color: var(--primary); box-shadow: 0 0 0 5px rgba(0,58,175,0.10), 0 26px 46px -18px rgba(0,58,175,0.45); }
.pf-shot { position: relative; height: 190px; overflow: hidden; background: var(--gray-100, #f1f5f9); }
.pf-shot img { display: block; width: 100%; height: auto; transform: translateY(0); transition: transform .7s ease; will-change: transform; }
.pf-shot::after { content: 'Hover to scroll'; position: absolute; right: 10px; bottom: 10px; font-size: .68rem; font-weight: 600; color: #fff; background: rgba(0,42,128,.75); padding: 4px 10px; border-radius: 20px; opacity: 0; transition: opacity .3s; }
.pf-card:hover .pf-shot::after { opacity: 1; }
.pf-meta { position: relative; padding: 16px 18px 18px; }
.pf-meta h4 { font-size: .98rem; font-weight: 700; color: var(--gray-900); margin: 0 34px 10px 0; }
.pf-open { position: absolute; right: 16px; top: 16px; width: 20px; height: 20px; color: var(--primary); }
.pf-open svg { width: 100%; height: 100%; }
.pf-chip { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--primary); background: var(--primary-soft, #e8f0ff); border: 1px solid rgba(0,58,175,.18); padding: 4px 14px; border-radius: 20px; }

.pf-arrow {
    position: absolute; top: 44%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 26px -8px rgba(0,58,175,.6); transition: transform .25s, background .25s;
}
.pf-arrow:hover { transform: scale(1.1); background: #002a80; }
.pf-arrow svg { width: 20px; height: 20px; }
.pf-prev { left: 0; } .pf-next { right: 0; }

.pf-auto { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; font-size: .72rem; font-weight: 600; color: var(--gray-500); }
.pf-bar { width: 150px; height: 4px; border-radius: 4px; background: rgba(0,58,175,.14); overflow: hidden; }
.pf-bar-fill { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 4px; }
.pf-bar-fill.run { animation: pfFill 4.5s linear forwards; }
.pf-bar-fill.paused { animation-play-state: paused; }
.pf-dots { display: inline-flex; gap: 6px; }
.pf-dots b { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,58,175,.22); cursor: pointer; transition: all .3s; }
.pf-dots b.on { background: var(--primary); width: 20px; border-radius: 6px; }
@keyframes pfFill { from { width: 0; } to { width: 100%; } }

/* Modal */
.pf-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 32px 70px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.pf-modal.open { opacity: 1; visibility: visible; }
.pf-modal-backdrop { position: absolute; inset: 0; background: rgba(8,16,40,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pf-modal-panel {
    position: relative; z-index: 2; display: grid; grid-template-columns: 1.55fr 1fr; width: 100%; max-width: 1120px; height: min(640px, 88vh);
    background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6);
    transform: translateY(24px) scale(.97); transition: transform .45s cubic-bezier(.23,1,.32,1);
}
.pf-modal.open .pf-modal-panel { transform: none; }
.pf-modal-view { position: relative; display: flex; flex-direction: column; background: linear-gradient(160deg, #0b2a7a, #003aaf); padding: 22px 22px 0; min-height: 0; }
.pf-browser { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; border-radius: 12px 12px 0 0; overflow: hidden; }
.pf-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2f9; flex-shrink: 0; }
.pf-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.pf-browser-bar i:nth-child(1) { background: #f87171; } .pf-browser-bar i:nth-child(2) { background: #fbbf24; } .pf-browser-bar i:nth-child(3) { background: #34d399; }
.pf-browser-bar span { margin-left: 10px; flex: 1; font-size: .72rem; color: var(--gray-500); background: #fff; border-radius: 20px; padding: 4px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-browser-screen { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.pf-browser-screen img { display: block; width: 100%; height: auto; }
.pf-browser-screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.pf-view-label { position: absolute; left: 34px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; color: #fff; pointer-events: none; }
.pf-view-label em { font-style: normal; font-size: .7rem; font-weight: 600; background: var(--primary); border: 1px solid rgba(255,255,255,.4); padding: 4px 12px; border-radius: 20px; }
.pf-view-label strong { font-size: .95rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.pf-hint { font-size: .7rem; opacity: .85; background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 20px; }
.pf-modal-info { position: relative; padding: 46px 34px 30px; overflow-y: auto; text-align: left; }
.pf-modal-info h3 { font-size: 1.35rem; font-weight: 800; color: var(--gray-900); margin: 0 0 12px; }
.pf-modal-info p { font-size: .92rem; line-height: 1.7; color: var(--gray-500); margin: 16px 0 18px; }
.pf-modal-info ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.pf-modal-info li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--gray-700); }
.pf-modal-info li::before { content: '✓'; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--primary-soft, #e8f0ff); color: var(--primary); font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pf-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--primary); cursor: pointer; }
.pf-close:hover { background: var(--primary-soft, #e8f0ff); } .pf-close svg { width: 18px; height: 18px; }
.pf-m-prev, .pf-m-next { position: absolute; top: 50%; margin-top: -22px; background: #fff; color: var(--primary); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.pf-m-prev { left: 14px; } .pf-m-next { right: 14px; }
.pf-m-prev:hover, .pf-m-next:hover { background: var(--primary); color: #fff; }
body.pf-lock { overflow: hidden; }

@media (max-width: 1100px) { .pf-card { flex-basis: calc((100% - 44px) / 3); } }
@media (max-width: 820px) {
    .pf-card { flex-basis: calc((100% - 22px) / 2); }
    .pf-modal { padding: 14px; align-items: flex-end; }
    .pf-modal-panel { grid-template-columns: 1fr; grid-template-rows: 52% 48%; height: 92vh; border-radius: 20px; }
    .pf-modal-view { padding: 14px 14px 0; }
    .pf-modal-info { padding: 22px 22px 24px; }
    .pf-m-prev, .pf-m-next { top: 12px; margin-top: 0; width: 36px; height: 36px; }
    .pf-hint { display: none; }
}
@media (max-width: 560px) { .pf-carousel { padding: 0 6px; } .pf-arrow.pf-prev, .pf-arrow.pf-next { display: none; } .pf-card { flex-basis: 82%; } }
@media (prefers-reduced-motion: reduce) { .pf-shot img, .pf-card, .pf-modal-panel { transition: none; } }
