/* ===================================
    Founder profile page (/Md-Riasath-Arif-Prodhan)
    Loaded by the two profile pages only: the CEO page (/Rumia-Akter-Ruma) reuses the hero, portrait, chips,
    tags and contact panel, and adds its own pieces in ceo.css. Colours, fonts and the bd-* pieces come from codefix.css.
====================================== */

/* hero: the one dark hero on the site, so the profile reads as a person's page rather than another service page.
   On the navy, accents use the light cyan (8.6:1) and body copy 72% white, the same rule as the footer. */
.pf-hero {
    padding: 80px 0 140px;
    background-color: var(--charcoal-blue);
    background-image: radial-gradient(circle at 85% 20%, rgba(var(--secondary-color-rgb), 0.22), transparent 42%),
        radial-gradient(circle at 5% 90%, rgba(var(--base-color-rgb), 0.55), transparent 50%);
    color: rgba(255, 255, 255, 0.72);
}
/* a faint engineering grid, faded out towards the edges */
.pf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%);
    pointer-events: none;
}
.pf-available {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 6px 16px 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}
.pf-available-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc84;
}
.pf-available-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #3ddc84;
    animation: pf-pulse 2s ease-out infinite;
}
@keyframes pf-pulse {
    from { transform: scale(0.6); opacity: 0.9; }
    to { transform: scale(1.6); opacity: 0; }
}
.pf-hero-title {
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -2.5px;
    color: #fff;
    margin-bottom: 18px;
}
.pf-hero-accent {
    background-image: linear-gradient(to right, var(--secondary-color-light), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pf-hero-role {
    font-size: 21px;
    font-weight: 500;
    line-height: 30px;
    color: var(--secondary-color-light);
    margin-bottom: 18px;
}
.pf-hero-lede {
    max-width: 600px;
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 34px;
}
.pf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}
.pf-hero-actions .btn {
    height: 54px;
    display: inline-flex;
    align-items: center;
    /* the brand gradient starts at the navy of the page behind it, so on this hero it runs mid-blue to cyan-blue */
    background-image: linear-gradient(to right, var(--brand-mid), #1e8ad6, var(--brand-mid));
    background-size: 200% auto;
}
.pf-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pf-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.pf-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 24px;
}
.pf-hero-meta li,
.pf-hero-meta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
}
.pf-hero-meta a:hover {
    color: var(--secondary-color-light);
}
.pf-hero-meta i {
    font-size: 16px;
    color: var(--secondary-color-light);
}

/* portrait: the source photo is 460px square, so the frame never grows past that */
.pf-portrait {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}
.pf-portrait-frame {
    padding: 6px;
    border-radius: 32px;
    background: linear-gradient(140deg, var(--secondary-color), rgba(var(--secondary-color-rgb), 0.05) 45%, var(--base-color));
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.pf-portrait-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 27px;
}
.pf-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.30);
}
.pf-chip i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--base-color);
    background: rgba(var(--base-color-rgb), 0.10);
}
.pf-chip span {
    display: block;
    font-size: 12px;
    line-height: 16px;
    color: var(--medium-gray);
}
.pf-chip strong {
    display: block;
    font-family: var(--alt-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    color: var(--dark-gray);
    white-space: nowrap;
}
.pf-chip--top {
    top: 34px;
    left: -50px;
}
.pf-chip--bottom {
    right: -30px;
    bottom: 40px;
}
.pf-chip--bottom i {
    color: var(--secondary-color-text);
    background: var(--secondary-color-tint);
}
/* the stats card from the Bangladesh page, here straddling the dark hero and the white page */
.pf-proof .bd-stats {
    margin-top: -64px;
    box-shadow: 0 25px 60px rgba(21, 23, 63, 0.16);
}

/* shared pieces */
/* in-page links (See my work, Start a project) stop below the fixed header, not under it */
#about-me,
#expertise,
#work,
#contact {
    scroll-margin-top: 80px;
}
.pf-subtitle {
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.5px;
    color: var(--dark-gray);
    margin-bottom: 26px;
}
.pf-subtitle--center {
    text-align: center;
    margin-top: 70px;
}
.pf-subtitle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 20px;
    margin-bottom: 26px;
}
.pf-subtitle-row .pf-subtitle {
    margin-bottom: 0;
}
.pf-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--base-color);
    background: rgba(var(--base-color-rgb), 0.08);
}

/* business domains */
.pf-domains {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pf-domain {
    display: flex;
    gap: 16px;
}
.pf-domain-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    color: var(--dark-gray);
    margin-bottom: 4px;
}
.pf-domain p {
    font-size: 15px;
    line-height: 25px;
    margin: 0;
}

/* tech stack */
.pf-stack {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.pf-stack-group {
    padding: 26px 24px 28px;
    border: 1px solid var(--extra-medium-gray);
    border-radius: 14px;
    background: #fff;
}
.pf-stack-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 0;
    color: var(--dark-gray);
    margin: 18px 0 14px;
}
.pf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pf-tags li {
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--base-color-tint);
    color: var(--dark-gray);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

/* certifications */
.pf-cert {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 30px 30px 28px;
    border-radius: 14px;
    background: var(--charcoal-blue);
    background-image: radial-gradient(circle at 100% 0%, rgba(var(--secondary-color-rgb), 0.25), transparent 55%);
    color: rgba(255, 255, 255, 0.72);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pf-cert:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(21, 23, 63, 0.30);
    color: rgba(255, 255, 255, 0.72);
}
.pf-cert-badge {
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    color: var(--charcoal-blue);
    background-image: linear-gradient(135deg, var(--secondary-color-light), var(--secondary-color));
}
.pf-cert-level {
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--secondary-color-light);
    margin-bottom: 6px;
}
.pf-cert-name {
    font-size: 21px;
    font-weight: 600;
    line-height: 28px;
    color: #fff;
    margin-bottom: 22px;
}
.pf-cert-verify {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.pf-cert-verify i {
    transition: transform 0.2s ease;
}
.pf-cert:hover .pf-cert-verify i {
    transform: translate(3px, -3px);
}

/* open source */
.pf-repo {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 28px;
    border: 1px solid var(--extra-medium-gray);
    border-radius: 14px;
    background: #fff;
    color: var(--medium-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pf-repo:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 25px 50px rgba(29, 29, 58, 0.10);
    color: var(--medium-gray);
}
.pf-repo-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 19px;
    color: var(--dark-gray);
}
.pf-repo-name {
    flex: 1;
    min-width: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 26px;
    overflow-wrap: anywhere;
}
.pf-repo-arrow {
    color: var(--medium-gray);
    transition: transform 0.2s ease, color 0.2s ease;
}
.pf-repo:hover .pf-repo-name,
.pf-repo:hover .pf-repo-arrow {
    color: var(--base-color);
}
.pf-repo:hover .pf-repo-arrow {
    transform: translate(3px, -3px);
}
.pf-repo-text {
    font-size: 15px;
    line-height: 25px;
    margin-bottom: 18px;
}
.pf-repo-lang {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}
/* GitHub's own language colours, so the dot means what visitors expect */
.pf-repo-lang::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--medium-gray);
}
.pf-repo-lang--php::before {
    background: #4f5d95;
}
.pf-repo-lang--javascript::before {
    background: #f1e05a;
}

/* working together */
.pf-sticky {
    position: sticky;
    top: 120px;
}
.pf-engagements {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pf-engagements li {
    padding: 16px 0;
    border-top: 1px solid var(--extra-medium-gray);
    font-size: 15px;
    line-height: 25px;
}
.pf-engagements strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-gray);
}
.pf-reason {
    height: 100%;
    padding: 30px 28px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(29, 29, 58, 0.05);
}
.pf-reason-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 0;
    color: var(--dark-gray);
    margin: 20px 0 8px;
}
.pf-reason p {
    font-size: 15px;
    line-height: 25px;
    margin: 0;
}

/* contact */
.pf-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 64px 70px;
    border-radius: 24px;
    background-color: var(--base-color);
    background-image: radial-gradient(circle at 100% 0%, rgba(var(--secondary-color-rgb), 0.45), transparent 55%),
        linear-gradient(120deg, var(--charcoal-blue), var(--base-color));
    color: rgba(255, 255, 255, 0.80);
}
.pf-cta-copy {
    max-width: 520px;
}
.pf-cta-title {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 14px;
}
.pf-cta-copy p {
    font-size: 17px;
    line-height: 29px;
    margin: 0;
}
.pf-cta-actions {
    flex-shrink: 0;
}
.pf-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 30px;
    border-radius: 8px;
    background: #fff;
    color: var(--base-color);
    font-family: var(--alt-font);
    font-size: 19px;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pf-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.30);
    color: var(--base-color-dark);
}
.pf-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 24px;
}
.pf-cta-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.85);
}
.pf-cta-links a:hover {
    color: var(--secondary-color-light);
}

@media (max-width: 1399px) {
    .pf-chip--top {
        left: -20px;
    }
    .pf-chip--bottom {
        right: -10px;
    }
}
@media (max-width: 1199px) {
    .pf-hero-title {
        font-size: 54px;
    }
    .pf-stack {
        grid-template-columns: repeat(3, 1fr);
    }
    .pf-cta {
        padding: 54px 50px;
    }
    .pf-cta-title {
        font-size: 34px;
    }
}
@media (max-width: 991px) {
    .pf-hero {
        padding: 50px 0 120px;
    }
    .pf-hero-lede {
        margin-left: auto;
        margin-right: auto;
    }
    .pf-hero-actions,
    .pf-hero-meta {
        justify-content: center;
    }
    .pf-portrait {
        max-width: 340px;
    }
    .pf-sticky {
        position: static;
    }
    .pf-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 767px) {
    .pf-hero {
        padding: 40px 0 100px;
    }
    .pf-hero-title {
        font-size: 42px;
        letter-spacing: -1.5px;
    }
    .pf-hero-role {
        font-size: 18px;
        line-height: 27px;
    }
    .pf-hero-lede {
        font-size: 16px;
        line-height: 28px;
    }
    .pf-domains {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    /* on a phone a card per group is a lot of scrolling for a few words: the icon moves beside the name */
    .pf-stack {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .pf-stack-group,
    .pf-reason {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 14px;
        padding: 22px;
    }
    .pf-stack-name,
    .pf-reason-title {
        margin: 0;
    }
    .pf-tags,
    .pf-reason p {
        grid-column: 1 / -1;
        margin-top: 16px;
    }
    .pf-reason p {
        margin-top: 12px;
    }
    #work .bd-product-img {
        height: 150px;
        padding: 20px;
    }
    .pf-subtitle--center {
        margin-top: 50px;
    }
    .pf-cta {
        padding: 44px 30px;
        border-radius: 18px;
    }
    .pf-cta-title {
        font-size: 30px;
        letter-spacing: -1px;
    }
}
@media (max-width: 575px) {
    .pf-hero-actions .btn,
    .pf-btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .pf-portrait {
        max-width: 280px;
    }
    /* no room to hang the chips outside the photo on a phone: they sit under it instead */
    .pf-chip {
        position: static;
        margin-top: 12px;
    }
    .pf-cta-primary {
        width: 100%;
        justify-content: center;
        padding: 0 16px;
        font-size: 17px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pf-available-dot::after {
        animation: none;
    }
    .pf-cert,
    .pf-repo,
    .pf-cta-primary {
        transition: none;
    }
    .pf-cert:hover,
    .pf-repo:hover,
    .pf-cta-primary:hover {
        transform: none;
    }
}
