.pf {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px 22px 40px;
}

.pf-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.pf-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-2);
    margin: 0 0 14px;
}

.pf-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin: 0 0 10px;
}

.pf-name span {
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pf-role {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    margin: 0 0 18px;
}

.pf-bio {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 0 26px;
}

.pf-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pf-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 13px 26px;
    border-radius: 13px;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.pf-btn-primary {
    color: #0a0610;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.pf-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.pf-btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-brd);
}

.pf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.pf-skin {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}

.pf-skin-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
    filter: blur(10px);
}

.pf-skin img {
    position: relative;
    z-index: 1;
    height: 360px;
    width: auto;
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s ease;
}

.pf-skin img:hover {
    transform: translateY(-6px);
}

.pf-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    margin: 0 0 24px;
    text-align: center;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.proj-card {
    display: flex;
    flex-direction: column;
    background: rgba(20, 14, 30, 0.62);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.proj-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow);
}

.proj-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.proj-top h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
}

.proj-lang {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-2);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.proj-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px;
}

.proj-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.proj-meta b {
    color: var(--ink);
    font-weight: 600;
}

.repolink {
    margin-top: auto;
    color: var(--brand-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    gap: 6px;
    transition: gap 0.2s ease;
}

.proj-card:hover .repolink {
    gap: 12px;
}

@media (max-width: 820px) {
    .pf-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        margin-bottom: 56px;
    }

    .pf-bio {
        margin-left: auto;
        margin-right: auto;
    }

    .pf-tags,
    .pf-cta {
        justify-content: center;
    }

    .pf-skin {
        order: -1;
        min-height: 280px;
    }

    .pf-skin img {
        height: 260px;
    }
}
