@import url('/templates/_shared/fonts/fonts.css');

/* ============================================================
   BusinessCard_v5 — Dark Tech Card with Animated Gradient Border
   Developer / software-engineer digital business card.
   Neon cyan/violet on near-black, monospace micro-labels,
   code-row link buttons, glowing social chips, > save_contact().
   ============================================================ */

.bc5-root {
    --bc5-bg: #05060a;
    --bc5-card: #0c0e16;
    --bc5-card-2: #11131f;
    --bc5-line: rgba(125, 142, 200, .14);
    --bc5-ink: #e8ecf6;
    --bc5-muted: #8a93ad;
    --bc5-faint: #5d6680;
    --bc5-cyan: #38f3e0;
    --bc5-violet: #8b5cff;
    --bc5-pink: #ff5cc8;
    --bc5-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, 'Cascadia Code', Consolas, monospace;

    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background:
        radial-gradient(900px 600px at 15% -10%, rgba(139, 92, 255, .18), transparent 60%),
        radial-gradient(700px 600px at 100% 110%, rgba(56, 243, 224, .12), transparent 55%),
        var(--bc5-bg);
    color: var(--bc5-ink);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(18px, 5vw, 56px) 16px;
    direction: rtl;
    line-height: 1.85;
    overflow-x: hidden;
}

/* ---- animated gradient border frame ---- */
.bc5-frame {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(115deg, var(--bc5-cyan), var(--bc5-violet), var(--bc5-pink), var(--bc5-cyan));
    background-size: 300% 300%;
    animation: bc5-border 7s linear infinite;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .03),
        0 30px 80px -30px rgba(139, 92, 255, .55),
        0 10px 40px -20px rgba(56, 243, 224, .4);
}

.bc5-frame::before {
    /* soft outer glow halo */
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    background-size: 300% 300%;
    animation: bc5-border 7s linear infinite;
    filter: blur(22px);
    opacity: .35;
    z-index: -1;
}

@keyframes bc5-border {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.bc5-card {
    position: relative;
    border-radius: 26px;
    background:
        linear-gradient(180deg, var(--bc5-card-2), var(--bc5-card) 240px);
    overflow: hidden;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

/* ---- window chrome ---- */
.bc5-chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--bc5-line);
    background: rgba(255, 255, 255, .015);
    flex-direction: row-reverse;
}

.bc5-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.bc5-dot--r { background: #ff5f57; }
.bc5-dot--y { background: #febc2e; }
.bc5-dot--g { background: #28c840; }

.bc5-chrome-path {
    margin-right: auto;
    font-family: var(--bc5-mono);
    font-size: .72rem;
    color: var(--bc5-faint);
    letter-spacing: .02em;
    direction: ltr;
}

/* ---- cover ---- */
.bc5-cover {
    position: relative;
    height: 132px;
    overflow: hidden;
}

.bc5-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05) brightness(.72) hue-rotate(-6deg);
    transform: scale(1.04);
}

.bc5-cover-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 243, 224, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 255, .18) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
    opacity: .5;
}

.bc5-cover-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 14, 22, .25) 0%, rgba(12, 14, 22, .9) 78%, var(--bc5-card-2) 100%);
}

/* ---- identity head ---- */
.bc5-head {
    position: relative;
    text-align: center;
    padding: 0 22px 6px;
    margin-top: -52px;
}

.bc5-avatar-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 14px;
}

.bc5-avatar {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
    border: 2px solid rgba(56, 243, 224, .55);
    box-shadow:
        0 0 0 4px rgba(12, 14, 22, .9),
        0 0 26px rgba(56, 243, 224, .35),
        0 14px 30px rgba(0, 0, 0, .55);
    background: var(--bc5-card);
}

.bc5-status {
    position: absolute;
    bottom: 6px;
    inset-inline-start: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #28c840;
    border: 3px solid var(--bc5-card);
    box-shadow: 0 0 12px rgba(40, 200, 64, .8);
    animation: bc5-pulse 2.4s ease-in-out infinite;
}

@keyframes bc5-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.82); opacity: .7; }
}

.bc5-mono {
    font-family: var(--bc5-mono);
    direction: ltr;
}

.bc5-role-tag {
    display: inline-block;
    font-size: .72rem;
    color: var(--bc5-cyan);
    letter-spacing: .08em;
    margin-bottom: 4px;
    opacity: .9;
}

.bc5-name {
    font-size: clamp(1.5rem, 6vw, 1.95rem);
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -.01em;
    background: linear-gradient(100deg, #fff, var(--bc5-cyan) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bc5-role {
    font-family: var(--bc5-mono);
    direction: ltr;
    font-size: .82rem;
    color: var(--bc5-ink);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35em;
    margin-bottom: 10px;
}

.bc5-prompt { color: var(--bc5-violet); font-weight: 700; }
.bc5-role-at { color: var(--bc5-faint); }
.bc5-org { color: var(--bc5-cyan); }

.bc5-tagline {
    font-size: .95rem;
    color: var(--bc5-muted);
    margin: 0 auto 12px;
    max-width: 34ch;
}

.bc5-bio {
    font-size: .88rem;
    color: var(--bc5-muted);
    text-align: justify;
    padding: 14px 16px;
    margin: 6px 0 4px;
    border: 1px solid var(--bc5-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .02);
    line-height: 2;
}

/* ---- generic block ---- */
.bc5-block {
    padding: 16px 22px 6px;
}

.bc5-block-label {
    font-size: .72rem;
    color: var(--bc5-faint);
    letter-spacing: .06em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bc5-block-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--bc5-line), transparent);
}

/* ---- contact ---- */
.bc5-meta {
    display: grid;
    gap: 8px;
}

.bc5-meta-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 13px;
    border: 1px solid var(--bc5-line);
    background: rgba(255, 255, 255, .015);
    color: var(--bc5-ink);
    text-decoration: none;
    font-size: .86rem;
    transition: border-color .2s, background .2s, transform .2s;
}

.bc5-meta-row[dir="ltr"] span { direction: ltr; }

.bc5-meta-row i {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: .82rem;
    color: var(--bc5-cyan);
    background: rgba(56, 243, 224, .1);
    border: 1px solid rgba(56, 243, 224, .22);
}

a.bc5-meta-row:hover {
    border-color: rgba(56, 243, 224, .4);
    background: rgba(56, 243, 224, .05);
    transform: translateX(-3px);
}

/* ---- CTAs ---- */
.bc5-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 22px 4px;
}

.bc5-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 14px;
    border-radius: 14px;
    font-family: var(--bc5-mono);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .2s, box-shadow .2s, filter .2s;
    direction: ltr;
}

.bc5-cta-primary {
    color: #04121a;
    background: linear-gradient(120deg, var(--bc5-cyan), var(--bc5-violet));
    box-shadow: 0 10px 26px -8px rgba(56, 243, 224, .6);
}

.bc5-cta-primary .bc5-prompt { color: rgba(4, 18, 26, .7); }

.bc5-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -8px rgba(139, 92, 255, .7);
    filter: brightness(1.06);
}

.bc5-cta-ghost {
    color: var(--bc5-ink);
    background: rgba(255, 255, 255, .03);
    border-color: var(--bc5-line);
}

.bc5-cta-ghost i { color: var(--bc5-cyan); }

.bc5-cta-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 243, 224, .45);
    box-shadow: 0 0 22px rgba(56, 243, 224, .18);
}

/* ---- highlights ---- */
.bc5-highlights {
    display: grid;
    gap: 9px;
}

.bc5-hl {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid var(--bc5-line);
    background: rgba(255, 255, 255, .015);
    transition: border-color .2s, transform .2s;
}

.bc5-hl:hover {
    border-color: rgba(139, 92, 255, .4);
    transform: translateX(-3px);
}

.bc5-hl-ico {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 1rem;
    color: var(--bc5-violet);
    background: rgba(139, 92, 255, .12);
    border: 1px solid rgba(139, 92, 255, .25);
}

.bc5-hl-body { display: flex; flex-direction: column; gap: 2px; }
.bc5-hl-title { font-weight: 700; font-size: .92rem; color: var(--bc5-ink); }
.bc5-hl-text { font-size: .8rem; color: var(--bc5-muted); line-height: 1.7; }

/* ---- links (code rows) ---- */
.bc5-links { display: grid; gap: 9px; }

.bc5-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--bc5-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
    color: var(--bc5-ink);
    text-decoration: none;
    transition: border-color .22s, transform .22s, box-shadow .22s;
}

.bc5-link-ico {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: .92rem;
    color: var(--bc5-cyan);
    background: rgba(56, 243, 224, .1);
    border: 1px solid rgba(56, 243, 224, .22);
}

.bc5-link-title { flex: 1; font-weight: 600; font-size: .9rem; }

.bc5-link-arrow {
    color: var(--bc5-faint);
    font-size: .82rem;
    transition: transform .22s, color .22s;
}

.bc5-link:hover {
    border-color: rgba(56, 243, 224, .45);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -14px rgba(56, 243, 224, .6);
}

.bc5-link:hover .bc5-link-arrow {
    color: var(--bc5-cyan);
    transform: translateX(-5px);
}

/* ---- gallery ---- */
.bc5-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.bc5-gitem {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--bc5-line);
    aspect-ratio: 4 / 3;
}

.bc5-gitem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, filter .4s ease;
    filter: saturate(1.05) brightness(.92);
}

.bc5-gitem:hover img { transform: scale(1.07); filter: saturate(1.15) brightness(1); }

.bc5-gitem figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px 10px 8px;
    font-size: .74rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(5, 6, 10, .85));
}

/* ---- socials ---- */
.bc5-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    padding-bottom: 4px;
}

.bc5-social {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--bc5-ink);
    font-size: 1.08rem;
    text-decoration: none;
    border: 1px solid var(--bc5-line);
    background: rgba(255, 255, 255, .03);
    transition: transform .2s, color .2s, box-shadow .2s, border-color .2s;
}

.bc5-social:hover {
    color: var(--bc5-cyan);
    transform: translateY(-3px);
    border-color: rgba(56, 243, 224, .55);
    box-shadow: 0 0 18px rgba(56, 243, 224, .45);
}

/* ---- footer ---- */
.bc5-foot {
    text-align: center;
    padding: 20px 22px 24px;
    margin-top: 8px;
    border-top: 1px solid var(--bc5-line);
    font-size: .82rem;
    color: var(--bc5-muted);
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.bc5-foot .bc5-mono { color: var(--bc5-faint); font-size: .74rem; }

/* ---- responsive ---- */
@media (max-width: 380px) {
    .bc5-cta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .bc5-frame,
    .bc5-frame::before,
    .bc5-status { animation: none; }
    .bc5-card { transition: none; }
}
