/* ============================================================
   PORTFOLIO HOMEPAGE — accent #2176ff
   ============================================================ */

/* ── Reset / Base ─────────────────────────────────────────── */
.pf-section { padding: 90px 0; }
.pf-section--sm { padding: 60px 0; }
.pf-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section eyebrow + title */
.pf-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2176ff;
    margin-bottom: 14px;
}

.pf-title {
    font-size: 40px;
    font-weight: 900;
    color: #0a0f1e;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin: 0 0 18px;
}

.pf-sub {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 40px;
    max-width: 580px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
    cursor: pointer;
    white-space: nowrap;
}

.pf-btn--primary {
    background: #2176ff;
    color: #fff;
    box-shadow: 0 4px 22px rgba(33,118,255,0.32);
}
.pf-btn--primary:hover {
    background: #1660d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(33,118,255,0.42);
    color: #fff;
}

.pf-btn--ghost {
    background: transparent;
    color: #334155;
    border: 1.5px solid #d0d9e4;
}
.pf-btn--ghost:hover {
    border-color: #2176ff;
    color: #2176ff;
    background: rgba(33,118,255,0.05);
}

.pf-btn--ghost-dark {
    background: transparent;
    color: #2176ff;
    border: 1.5px solid #2176ff;
}
.pf-btn--ghost-dark:hover {
    background: #2176ff;
    color: #fff;
    box-shadow: 0 4px 18px rgba(33,118,255,0.28);
}

.pf-btn--lg {
    padding: 17px 36px;
    font-size: 16px;
    border-radius: 10px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.pf-hero {
    background: #fff;
    /* right side picks up the teal tint of the photo naturally */
    background: linear-gradient(120deg, #ffffff 48%, #edf8fa 100%);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2eff1;
}

/* Soft blue radial behind left text */
.pf-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: -150px;
    width: 700px; height: 700px;
    background: radial-gradient(ellipse at center, rgba(33,118,255,0.06) 0%, transparent 68%);
    pointer-events: none; z-index: 0;
}

/* Split layout */
.pf-hero-split {
    display: grid;
    grid-template-columns: 1fr 460px;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
    min-height: 560px;
}

/* ── Left column ── */
.pf-hero-left {
    padding: 60px 60px 60px 0;
    align-self: center;
}

/* Available badge */
.pf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(33,118,255,0.07);
    border: 1px solid rgba(33,118,255,0.2);
    color: #2176ff;
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
}

.pf-hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pf-pulse 2.2s ease-in-out infinite;
}

@keyframes pf-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
    50%       { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}

/* Hero headline */
.pf-hero-h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.1;
    color: #0a0f1e;
    letter-spacing: -2px;
    margin: 0 0 20px;
    max-width: none;
}

.pf-hero-h1 .pf-accent  { color: #2176ff; }
.pf-hero-h1 .pf-accent-2{ color: #2176ff; }

.pf-hero-lead {
    font-size: 17px;
    color: #64748b;
    max-width: 500px;
    margin: 0 0 34px;
    line-height: 1.72;
    font-weight: 400;
}

.pf-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Stats strip */
.pf-hero-stats {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 18px 6px;
    gap: 0;
}

/* ── Right column: photo ── */
.pf-hero-right {
    position: relative;
    align-self: center;
}

.pf-hero-photo-wrap {
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 98%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 98%);
}

/* Glow blob behind photo */
.pf-hero-photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(33,118,255,1) 0%,rgba(33,118,255,0.59) 41%,rgba(255,255,255,0.35) 65%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.pf-hero-photo {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}

/* Floating badge */
.pf-hero-float-badge {
    position: absolute;
    bottom: 120px;
    right: 10px;
    left: auto;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px 10px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: pf-float 3.5s ease-in-out infinite;
}

@keyframes pf-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

.pf-hero-float-badge i {
    font-size: 20px;
    color: #2176ff;
    flex-shrink: 0;
}

.pf-hero-float-badge strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0a0f1e;
    line-height: 1.2;
}

.pf-hero-float-badge span {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.pf-hstat {
    padding: 0 20px;
    text-align: center;
    flex-shrink: 1;
}

.pf-hstat strong {
    display: block;
    font-size: 34px;
    font-weight: 900;
    color: #0a0f1e;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.pf-hstat strong sup {
    font-size: 22px;
    font-weight: 900;
    color: #2176ff;
    vertical-align: super;
    line-height: 0;
}

.pf-hstat span {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.4;
    max-width: 140px;
    margin: 0 auto;
}

.pf-hstat-div {
    width: 1px;
    height: 44px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* ── LATEST PROJECTS ──────────────────────────────────────── */
.pf-projects {
    background: #fff;
    padding: 90px 0;
}

.pf-projects-header {
    text-align: center;
    margin-bottom: 56px;
}

.pf-proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Card */
.pf-proj-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}

.pf-proj-card:hover {
    box-shadow: 0 14px 48px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Tabs */
.pf-proj-tabs {
    display: flex;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.pf-proj-tab {
    flex: 1;
    padding: 11px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.pf-proj-tab:hover { color: #2176ff; }

.pf-proj-tab--active {
    color: #2176ff;
    border-bottom-color: #2176ff;
    background: #fff;
}

/* Viewer */
.pf-proj-viewer {
    position: relative;
    background: #f4f7fb;
}

.pf-proj-pane {
    display: none;
}

.pf-proj-pane--active {
    display: block;
}

/* Desktop scroll box */
.pf-proj-scroll-box--desktop {
    height: 360px;
    overflow: hidden;
    position: relative;
    cursor: ns-resize;
    user-select: none;
}

.pf-proj-scroll-box--desktop .pf-proj-img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(0);
    will-change: transform;
    /* position controlled by manual scroll JS */
}

/* Mobile frame */
.pf-proj-mobile-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 16px;
    background: #f4f7fb;
    min-height: 400px;
}

.pf-proj-mobile-frame {
    width: 190px;
    background: #0a0f1e;
    border-radius: 28px;
    padding: 12px 8px 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
}

/* Top bar (camera notch area) */
.pf-proj-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.pf-proj-mobile-bar span {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.pf-proj-mobile-bar span:nth-child(1) { width: 36px; height: 6px; }
.pf-proj-mobile-bar span:nth-child(2) { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.pf-proj-mobile-bar span:nth-child(3) { display: none; }

.pf-proj-scroll-box--mobile {
    height: 340px;
    overflow: hidden;
    border-radius: 14px;
    position: relative;
    cursor: ns-resize;
    user-select: none;
}

.pf-proj-scroll-box--mobile .pf-proj-img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(0);
}

/* Auto-scroll animation (applied via JS) */
@keyframes pf-scroll-down {
    0%,  6%  { transform: translateY(0); }
    44%, 56% { transform: translateY(var(--pf-scroll, 0px)); }
    94%,100% { transform: translateY(0); }
}

.pf-proj-img.pf-scrolling {
    animation: pf-scroll-down var(--pf-duration, 10s) ease-in-out infinite;
}

.pf-proj-img.pf-paused {
    animation-play-state: paused;
}

/* Info */
.pf-proj-info {
    padding: 20px 22px 22px;
    flex: 1;
}

.pf-proj-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.pf-proj-info h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0a0f1e;
    margin: 0;
    line-height: 1.3;
}

.pf-proj-info p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 12px;
}

.pf-proj-visit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #2176ff;
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid #c7dcff;
    border-radius: 6px;
    background: #f0f6ff;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s;
}

.pf-proj-visit:hover {
    background: #2176ff;
    border-color: #2176ff;
    color: #fff;
}

.pf-proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-proj-tags span {
    display: inline-block;
    background: #f0f6ff;
    color: #2176ff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #d0e4ff;
}

/* ── TRUST BAR ────────────────────────────────────────────── */
.pf-trust {
    background: #fff;
    padding: 28px 0;
    border-bottom: 1px solid #f0f4f8;
}

.pf-trust-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.pf-trust-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    white-space: nowrap;
}

.pf-trust-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.pf-trust-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.pf-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pf-trust-pill i {
    color: #2176ff;
    font-size: 12.5px;
}

.pf-trust-pill:hover {
    border-color: #2176ff;
    color: #2176ff;
    background: #f0f6ff;
}

/* ── SERVICES ─────────────────────────────────────────────── */
.pf-services {
    background: #f4f7fb;
    padding: 90px 0;
}

.pf-services-header {
    text-align: center;
    margin-bottom: 56px;
}

.pf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pf-svc-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 36px 32px;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.pf-svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2176ff;
    opacity: 0;
    transition: opacity 0.25s;
}

.pf-svc-card:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.09);
    transform: translateY(-4px);
    border-color: #d0e2ff;
}

.pf-svc-card:hover::before {
    opacity: 1;
}

/* Featured card */
.pf-svc-card--featured {
    background: #0a0f1e;
    border-color: transparent;
    color: #fff;
}

.pf-svc-card--featured::before {
    opacity: 1;
    background: linear-gradient(90deg, #2176ff, #60a5fa);
    height: 3px;
}

.pf-svc-card--featured:hover {
    border-color: transparent;
    box-shadow: 0 16px 56px rgba(33,118,255,0.25);
}

.pf-svc-icon {
    width: 52px;
    height: 52px;
    background: rgba(33,118,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #2176ff;
    margin-bottom: 22px;
    transition: background 0.2s;
}

.pf-svc-card--featured .pf-svc-icon {
    background: rgba(33,118,255,0.18);
}

.pf-svc-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0a0f1e;
    margin: 0 0 12px;
    line-height: 1.3;
}

.pf-svc-card--featured h3 { color: #fff; }

.pf-svc-card p {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 22px;
}

.pf-svc-card--featured p { color: rgba(255,255,255,0.6); }

.pf-svc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pf-svc-list li {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 9px;
}

.pf-svc-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #2176ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.pf-svc-card--featured .pf-svc-list li { color: rgba(255,255,255,0.75); }
.pf-svc-card--featured .pf-svc-list li::before { background: #60a5fa; }

/* ── WHAT'S INCLUDED ──────────────────────────────────────── */
.pf-included {
    background: #fff;
    padding: 90px 0;
}

.pf-included-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.pf-included-left .pf-sub { max-width: 420px; }

.pf-included-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.pf-inc-item {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    transition: border-color 0.2s, background 0.2s;
}

.pf-inc-item:hover {
    border-color: #c7dcff;
    background: #f0f6ff;
    color: #1a4faa;
}

.pf-inc-item i {
    color: #2176ff;
    font-size: 13px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

/* ── PROCESS ──────────────────────────────────────────────── */
.pf-process {
    background: #f4f7fb;
    padding: 90px 0;
}

.pf-process-header { text-align: center; margin-bottom: 60px; }

.pf-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
}

.pf-step {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: box-shadow 0.22s, transform 0.22s;
}

.pf-step:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.pf-step-num {
    font-size: 13px;
    font-weight: 800;
    color: #2176ff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(33,118,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 18px;
}

.pf-step h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0a0f1e;
    margin: 0 0 11px;
}

.pf-step p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.pf-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 20px;
    padding: 0 16px;
    padding-top: 42px;
    flex-shrink: 0;
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.pf-cta {
    background: linear-gradient(135deg, #0f1f4e 0%, #1a3a8f 50%, #2176ff 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pf-cta::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.pf-cta::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.pf-cta > * { position: relative; z-index: 1; }

.pf-cta-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 16px;
}

.pf-cta h2 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin: 0 auto 18px;
    max-width: 700px;
}

.pf-cta p {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    max-width: 500px;
    margin: 0 auto 38px;
    line-height: 1.65;
}

.pf-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.pf-cta .pf-btn--white {
    background: #fff;
    color: #2176ff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.pf-cta .pf-btn--white:hover {
    background: #f0f6ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.25);
    color: #1660d8;
}

.pf-cta .pf-btn--outline-white {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.pf-cta .pf-btn--outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* ── Scroll Progress Bar (injected by JS) ─────────────────── */
.pf-scroll-bar {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 3px;
    height: calc(100% - 16px);
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.pf-scroll-bar-fill {
    width: 100%;
    height: 0%;
    background: #2176ff;
    border-radius: 3px;
    transition: height 0.1s linear;
}

/* Scroll hint label (injected by JS, fades after first scroll) */
.pf-scroll-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    background: rgba(10, 15, 30, 0.62);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.88);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    padding: 5px 11px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.4s ease;
}

.pf-scroll-hint i { font-size: 10px; }

/* Modal screens — also manual scroll */
.pf-browser-viewport,
.pf-phone-modal-screen {
    cursor: ns-resize;
    user-select: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pf-proj-grid { grid-template-columns: 1fr 1fr; }
    .pf-hero-split { grid-template-columns: 1fr; }
    .pf-hero-left  { padding: 0 0 40px; text-align: center; }
    .pf-hero-ctas  { justify-content: center; }
    .pf-hero-stats { margin: 0 auto; }
    .pf-hero-right { display: flex; justify-content: center; margin-top: 36px; }
    .pf-hero-photo { max-width: 320px; margin: 0 auto; }
    .pf-hero-float-badge { bottom: 80px; right: 0; }
    .pf-hero-h1 { font-size: 44px; margin: 0 auto 20px; max-width: 660px; }
    .pf-services-grid { grid-template-columns: 1fr 1fr; }
    .pf-svc-card--featured { grid-column: 1 / -1; }
    .pf-included-layout { grid-template-columns: 1fr; gap: 40px; }
    .pf-steps { grid-template-columns: 1fr; gap: 0; }
    .pf-step-arrow { padding: 10px 0; transform: rotate(90deg); }
    .pf-cta h2 { font-size: 38px; }
    .pf-title { font-size: 34px; }
}

@media (max-width: 768px) {
    .pf-proj-grid { grid-template-columns: 1fr; }
    .pf-hero { padding: 50px 0 0; }
    .pf-hero-left { padding-bottom: 20px; }
    .pf-hero-right { margin-top: 24px; }
    .pf-hero-photo { max-width: 260px; }
    .pf-hero-float-badge { bottom: 60px; right: 0; left: auto; }
    .pf-hero-h1 { font-size: 34px; letter-spacing: -1px; }
    .pf-hero-lead { font-size: 16px; }
    .pf-hero-stats { flex-direction: column; gap: 0; padding: 16px 0; width: 100%; max-width: 320px; margin: 0 auto; }
    .pf-hstat { padding: 14px 0; }
    .pf-hstat-div { width: 80%; height: 1px; background: #e2e8f0; }
    .pf-hstat strong { font-size: 28px; }
    .pf-services { padding: 60px 0; }
    .pf-services-grid { grid-template-columns: 1fr; }
    .pf-svc-card--featured { grid-column: auto; }
    .pf-included-grid { grid-template-columns: 1fr; }
    .pf-cta { padding: 70px 0; }
    .pf-cta h2 { font-size: 30px; }
    .pf-title { font-size: 28px; }
    .pf-section, .pf-process, .pf-included { padding: 60px 0; }
    .pf-trust-divider { display: none; }
}

/* ============================================================
   PROJECT VIEWER MODAL
   ============================================================ */

/* ── Expand button on card viewer ── */
.pf-proj-pane { position: relative; }

.pf-proj-expand-btn {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(33, 118, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.pf-proj-expand-btn:hover {
    background: rgba(10, 15, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.pf-proj-expand-btn i { font-size: 11px; }

/* Mobile expand button sits above the phone frame */
.pf-proj-expand-btn--mobile {
    top: 10px; right: 50%; left: auto;
    transform: translateX(50%);
    z-index: 30;
}

/* ── Modal overlay ── */
.pf-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(3, 6, 18, 0.93);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}
.pf-viewer-modal.pf-modal-open { display: flex; }

/* Close ✕ button */
.pf-modal-x {
    position: fixed;
    top: 18px; right: 22px;
    z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}
.pf-modal-x:hover {
    background: rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Content wrapper (animates in) */
.pf-modal-content {
    width: 100%;
    max-width: 1060px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pf-modal-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pf-modal-pop {
    from { opacity: 0; transform: scale(0.87) translateY(22px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Frame visibility */
.pf-frame-desktop,
.pf-frame-mobile  { display: none; width: 100%; }
.pf-frame-desktop.pf-active { display: flex; flex-direction: column; }
.pf-frame-mobile.pf-active  { display: flex; justify-content: center; align-items: center; }

/* ── Desktop: browser window ── */
.pf-browser-window {
    width: 100%;
    background: #191e2d;
    border-radius: 13px;
    overflow: hidden;
    box-shadow:
        0 50px 130px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255,255,255,0.06);
}

.pf-browser-chrome {
    background: #242a3b;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pf-browser-dots { display: flex; gap: 7px; flex-shrink: 0; }
.pf-browser-dots b {
    display: inline-block;
    width: 13px; height: 13px;
    border-radius: 50%;
}
.pf-browser-dots b:nth-child(1) { background: #ff5f57; }
.pf-browser-dots b:nth-child(2) { background: #febc2e; }
.pf-browser-dots b:nth-child(3) { background: #28c840; }

.pf-browser-urlbar {
    flex: 1; min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 5px 14px;
}
.pf-browser-urlbar i {
    color: rgba(255,255,255,0.3);
    font-size: 10px;
    flex-shrink: 0;
}
.pf-browser-urlbar span {
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
    font-family: 'Roboto Mono', monospace, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-browser-viewport {
    height: 72vh;
    max-height: 700px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}
.pf-browser-viewport img { width: 100%; display: block; }

/* ── Mobile: phone frame ── */
.pf-phone-modal-wrap {
    width: 300px;
    background: linear-gradient(160deg, #1d2440 0%, #0d1020 100%);
    border-radius: 54px;
    padding: 18px 10px 24px;
    box-shadow:
        0 60px 140px rgba(0, 0, 0, 0.82),
        0 0 0 1.5px rgba(255,255,255,0.09),
        inset 0 1px 0 rgba(255,255,255,0.07);
    position: relative;
}
/* Volume buttons (left) */
.pf-phone-modal-wrap::before {
    content: '';
    position: absolute;
    left: -3px; top: 82px;
    width: 3px; height: 32px;
    background: #29304a;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 50px 0 #29304a;
}
/* Power button (right) */
.pf-phone-modal-wrap::after {
    content: '';
    position: absolute;
    right: -3px; top: 118px;
    width: 3px; height: 62px;
    background: #29304a;
    border-radius: 0 2px 2px 0;
}

.pf-phone-modal-notch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 11px;
    padding: 0 16px;
    height: 22px;
}
.pf-pm-speaker {
    width: 52px; height: 5px;
    background: rgba(255,255,255,0.14);
    border-radius: 10px;
}
.pf-pm-camera {
    width: 9px; height: 9px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}

.pf-phone-modal-screen {
    border-radius: 22px;
    overflow: hidden;
    height: 68vh;
    max-height: 620px;
    position: relative;
    background: #000;
}
.pf-phone-modal-screen img { width: 100%; display: block; }

.pf-phone-modal-chin {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}
.pf-phone-modal-chin div {
    width: 88px; height: 5px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
}

/* ── Modal image auto-scroll (reuses keyframe) ── */
.pf-modal-img.pf-modal-scrolling {
    animation: pf-scroll-down var(--pf-duration, 12s) ease-in-out infinite;
}

/* ── Responsive modal ── */
@media (max-width: 768px) {
    .pf-modal-content { max-width: 100%; }
    .pf-browser-viewport { height: 55vh; }
    .pf-phone-modal-wrap { width: 260px; }
    .pf-phone-modal-screen { height: 60vh; }
    .pf-modal-x { top: 12px; right: 14px; }
}
