/* ── Portfolio public theme ───────────────────────────────────────────── */
:root {
    --p-primary: #2c53a9;
    --p-primary-dark: #1e3a7a;
    --p-secondary: #3a8f19;
    --p-ink: #0f172a;
    --p-body: #475569;
    --p-muted: #94a3b8;
    --p-line: #e2e8f0;
    --p-bg: #ffffff;
    --p-bg-soft: #f8fafc;
    --p-radius: 16px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--p-body);
    background: var(--p-bg);
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--p-primary); text-decoration: none; }
h1, h2, h3, h4 { color: var(--p-ink); font-weight: 800; line-height: 1.2; margin: 0; }
img { max-width: 100%; }

.container-p { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--p-bg-soft); }
.eyebrow { color: var(--p-primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.section-title { font-size: 34px; margin: 8px 0 12px; }
.section-lead { font-size: 16px; max-width: 600px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn-p {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
    border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-p:hover { transform: translateY(-2px); }
.btn-p-primary { background: var(--p-primary); color: #fff; box-shadow: 0 8px 20px rgba(44, 83, 169, .25); }
.btn-p-primary:hover { background: var(--p-primary-dark); color: #fff; }
.btn-p-outline { background: #fff; color: var(--p-ink); border-color: var(--p-line); }
.btn-p-outline:hover { border-color: var(--p-primary); color: var(--p-primary); }

/* ── Navbar ── */
.p-nav {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--p-line);
}
.p-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.p-brand { font-weight: 800; font-size: 18px; color: var(--p-ink); display: flex; align-items: center; gap: 8px; }
.p-brand i { color: var(--p-primary); }
.p-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.p-nav-links a { color: var(--p-body); font-weight: 500; font-size: 14.5px; }
.p-nav-links a:hover { color: var(--p-primary); }
.p-nav-links a.btn-p-primary, .p-nav-links a.btn-p-primary:hover { color: #fff; }
.p-nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--p-ink); }

/* ── Hero ── */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -140px; right: -120px; width: 540px; height: 540px; z-index: 0;
    background: radial-gradient(circle, rgba(44, 83, 169, .10), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-trust { display: flex; align-items: center; gap: 9px; margin: 20px 0 0; font-size: 13.5px; color: var(--p-muted); }
.hero-trust i { color: var(--p-secondary); font-size: 14px; }
.hero-hi { color: var(--p-primary); font-weight: 700; font-size: 16px; }
.hero-name { font-size: 56px; letter-spacing: -.02em; margin: 6px 0 10px; }
.hero-role { font-size: 22px; color: var(--p-body); font-weight: 600; margin-bottom: 18px; }
.hero-bio { font-size: 17px; max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
    width: 100%; aspect-ratio: 1; border-radius: 24px; object-fit: cover;
    border: 1px solid var(--p-line);
    box-shadow: 0 30px 60px rgba(15, 23, 42, .18), 0 0 0 6px rgba(44, 83, 169, .05);
}
.hero-photo-fallback {
    width: 100%; aspect-ratio: 1; border-radius: 24px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--p-primary), var(--p-primary-dark)); color: #fff; font-size: 90px; font-weight: 800;
}
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
    width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--p-line); color: var(--p-ink); font-size: 17px; transition: all .15s;
}
.socials a:hover { background: var(--p-primary); color: #fff; border-color: var(--p-primary); transform: translateY(-2px); }

/* ── Founder / CEO credential badge ── */
.hero-founder-badge {
    display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
    padding: 7px 16px 7px 7px; border: 1px solid var(--p-line); border-radius: 100px;
    background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.hero-founder-badge:hover { border-color: var(--p-primary); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(44, 83, 169, .14); }
.hfb-mark {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--p-primary), var(--p-primary-dark)); color: #fff; font-size: 13px;
    box-shadow: 0 4px 10px rgba(44, 83, 169, .3);
}
.hfb-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.hfb-text small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--p-muted); font-weight: 700; }
.hfb-text strong { font-size: 14px; color: var(--p-ink); font-weight: 700; }
.hfb-go { font-size: 11px; color: var(--p-muted); transition: color .15s, transform .15s; }
.hero-founder-badge:hover .hfb-go { color: var(--p-primary); transform: translate(2px, -2px); }

/* ── Founder metrics ── */
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.hero-stats > div {
    flex: 1; min-width: 140px; padding: 16px 18px;
    border: 1px solid var(--p-line); border-radius: 14px; background: var(--p-bg-soft);
    transition: border-color .15s, transform .15s;
}
.hero-stats > div:hover { border-color: var(--p-primary); transform: translateY(-2px); }
.hero-stats strong { display: block; color: var(--p-primary); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 3px; }
.hero-stats small { color: var(--p-body); font-size: 12.5px; font-weight: 500; }

/* ── Cards / projects ── */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.proj-card {
    background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); overflow: hidden;
    transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 23, 42, .1); }
.proj-thumb { height: 190px; background: var(--p-bg-soft); object-fit: cover; width: 100%; }
.proj-thumb-fallback {
    height: 190px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: var(--p-primary); font-size: 40px;
}
.proj-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.proj-title { font-size: 19px; margin-bottom: 8px; }
.proj-summary { font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tech-tag { font-size: 12px; font-weight: 600; color: var(--p-primary); background: #eef2ff; padding: 4px 11px; border-radius: 20px; }
.proj-links { display: flex; gap: 16px; margin-top: 16px; font-size: 14px; font-weight: 600; }

/* ── Skills ── */
.skill-cat { margin-bottom: 32px; }
.skill-cat-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); margin-bottom: 16px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.skill-row { }
.skill-row-top { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; color: var(--p-ink); margin-bottom: 7px; }
.skill-bar { height: 8px; background: #e9eef7; border-radius: 6px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--p-primary), #4f6fc5); border-radius: 6px; }

/* ── Timeline ── */
.timeline { position: relative; margin-top: 40px; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--p-line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--p-primary); }
.tl-role { font-size: 18px; }
.tl-meta { font-size: 14px; color: var(--p-primary); font-weight: 600; margin: 2px 0 8px; }
.tl-company { color: var(--p-body); font-weight: 600; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; margin-top: 40px; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 46px; height: 46px; border-radius: 12px; background: #eef2ff; color: var(--p-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item small { color: var(--p-muted); display: block; font-size: 12.5px; }
.contact-item strong { color: var(--p-ink); font-size: 15px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--p-ink); margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; font-size: 14.5px; border: 1.5px solid var(--p-line);
    border-radius: 10px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(44, 83, 169, .1); }
.field .err { color: #dc2626; font-size: 12.5px; margin-top: 5px; }
.alert-ok { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }

/* ── Footer ── */
.p-footer { border-top: 1px solid var(--p-line); padding: 32px 0; color: var(--p-muted); font-size: 14px; }
.p-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Detail page ── */
.detail-hero { padding: 56px 0 0; }
.detail-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--p-radius); margin-top: 28px; }
.prose { font-size: 16px; line-height: 1.8; color: var(--p-body); max-width: 760px; }
.prose p { margin: 0 0 18px; }

@media (max-width: 860px) {
    .hero-grid, .proj-grid, .skill-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-name { font-size: 40px; }
    .section-title { font-size: 28px; }
    .section { padding: 60px 0; }
    .p-nav-links { display: none; }
    .p-nav-links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
        background: #fff; border-bottom: 1px solid var(--p-line); padding: 16px 24px; gap: 16px; }
    .p-nav-toggle { display: block; }
    .hero-order-photo { order: -1; }
    .hero-photo, .hero-photo-fallback { max-width: 280px; }
}
