/* ═══════════════════════════════════════════
   pages.css — استایل صفحات داخلی
   صفحات: پروژه، مقاله، ۴۰۴، Maintenance
   ═══════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--fm);
    font-size: .72rem;
    color: var(--t2);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--c1);
    text-decoration: none;
    transition: opacity .2s;
}

.breadcrumb a:hover {
    opacity: .8;
}

.breadcrumb span {
    color: var(--t3);
}

/* ── Project Detail ── */
.project-header {
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.project-icon-large {
    font-size: 4rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 20px rgba(91, 184, 255, .4));
}

.project-badge {
    display: inline-block;
    font-family: var(--fm);
    font-size: .62rem;
    padding: .18rem .65rem;
    border-radius: 6px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: .55rem;
}

.project-badge.bsec {
    background: rgba(255, 107, 107, .1);
    color: var(--cr);
    border: 1px solid rgba(255, 107, 107, .2);
}

.project-badge.bdev {
    background: rgba(61, 255, 160, .08);
    color: var(--c3);
    border: 1px solid rgba(61, 255, 160, .2);
}

.project-badge.bnet {
    background: rgba(91, 184, 255, .08);
    color: var(--c1);
    border: 1px solid rgba(91, 184, 255, .2);
}

.project-badge.blnx {
    background: rgba(255, 204, 68, .08);
    color: var(--c5);
    border: 1px solid rgba(255, 204, 68, .2);
}

.project-stars {
    font-family: var(--fm);
    font-size: .82rem;
    color: var(--c5);
    margin-top: .4rem;
}

/* ── Detail Grid ── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    padding: 1.5rem;
    border-radius: var(--rd);
}

.detail-card h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--w);
    margin-bottom: 1rem;
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--w);
    margin-bottom: 1rem;
}

.detail-links {
    display: flex;
    gap: .85rem;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* ── Article Detail ── */
article.page-detail,
main.page-detail {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-header .arcat {
    display: inline-block;
    font-family: var(--fm);
    font-size: .65rem;
    color: var(--c1);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .7rem;
    padding: .2rem .75rem;
    border-radius: 20px;
    background: rgba(91, 184, 255, .06);
    border: 1px solid rgba(91, 184, 255, .15);
}

.article-header .hlg {
    margin-bottom: .7rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-family: var(--fm);
    font-size: .7rem;
    color: var(--t2);
}

.article-content {
    font-size: .92rem;
    color: var(--t1);
    line-height: 2;
    max-width: 800px;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--w);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--w);
    margin: 2rem 0 .8rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: .5rem;
}

.article-content pre {
    margin: 1.5rem 0;
}

.article-content code {
    font-family: var(--fm);
    font-size: .82rem;
}

.article-content blockquote {
    border-right: 3px solid var(--c1);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(91, 184, 255, .04);
    border-radius: 0 var(--rs) var(--rs) 0;
    color: var(--t3);
}

.article-content img {
    max-width: 100%;
    border-radius: var(--rd);
    margin: 1.5rem 0;
}

.article-content a {
    color: var(--c1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--c2);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* ── 404 Page ── */
.page-404 {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-404 .si {
    text-align: center;
}

/* ── Maintenance Page ── */
.page-maintenance {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-maintenance h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-maintenance p {
    color: var(--t2);
    font-size: 1.1rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-links {
        justify-content: center;
    }

    .article-content {
        font-size: .88rem;
    }
}

@media (max-width: 600px) {
    .breadcrumb {
        font-size: .65rem;
    }

    .article-meta {
        flex-direction: column;
        gap: .3rem;
    }
}

/* ── Page Detail Base ── */
.page-detail {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.si {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--fm);
    font-size: .72rem;
    color: var(--t2);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: .6rem 1rem;
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 10px;
    width: fit-content;
}

.breadcrumb a { color: var(--c1); text-decoration: none; transition: opacity .2s; }
.breadcrumb a:hover { opacity: .8; }
.breadcrumb span { color: var(--t3); }

/* ── Page Header ── */
.page-header {
    margin-bottom: 3rem;
    max-width: 700px;
}

.page-header .lbl { margin-bottom: .5rem; }
.page-header .hlg { margin-bottom: .8rem; }
.page-header .desc { margin-bottom: 0; }

/* ── ABOUT PAGE ── */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-hero-text .hlg {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.about-hero-desc {
    padding: 2rem;
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: var(--rd);
    position: relative;
    overflow: hidden;
}

.about-hero-desc::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91,184,255,.04), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.about-hero-desc p {
    font-size: .9rem;
    color: var(--t2);
    line-height: 1.95;
    margin-bottom: .8rem;
    position: relative;
    z-index: 1;
}

.about-hero-desc p:last-child { margin-bottom: 0; }

/* Stats Row */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,.02), rgba(255,255,255,.005));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--rd);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.about-stats-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c1), transparent);
    opacity: .3;
}

.about-stat-item {
    text-align: center;
    position: relative;
}

.about-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,.06);
}

.about-stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--fm);
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .3rem;
}

.about-stat-label {
    font-size: .75rem;
    color: var(--t2);
    letter-spacing: .05em;
}

/* Sections */
.about-section {
    margin-bottom: 3.5rem;
}

.about-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--w);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.about-section-icon { font-size: 1.4rem; }

/* Timeline in about */
.about-section .tl {
    padding-right: 1rem;
}

.about-section .tl::before {
    right: 5px;
}

.about-section .tli {
    opacity: 1;
    transform: none;
    padding-bottom: 2rem;
}

.about-section .tli::before {
    border-color: var(--c1);
    background: rgba(91,184,255,.15);
    box-shadow: 0 0 16px rgba(91,184,255,.5), 0 0 32px rgba(91,184,255,.2);
}

/* ── PROJECTS PAGE ── */
.project-filters {
    display: flex;
    gap: .5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: .5rem 1.2rem;
    border-radius: 25px;
    font-size: .78rem;
    color: var(--t2);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.015);
    transition: all .3s;
    font-weight: 500;
}

.filter-tag:hover {
    border-color: var(--c1);
    color: var(--c1);
    background: rgba(91,184,255,.04);
    transform: translateY(-1px);
}

.filter-tag.active {
    background: rgba(91,184,255,.1);
    border-color: var(--c1);
    color: var(--c1);
    box-shadow: 0 0 20px rgba(91,184,255,.1);
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--t2);
    background: rgba(255,255,255,.01);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: var(--rd);
}

.empty-state p {
    margin-top: 1rem;
    font-size: .9rem;
}

/* ── ARTICLES PAGE ── */
.featured-article {
    background: linear-gradient(135deg, rgba(91,184,255,.04), rgba(176,136,255,.02));
    border: 1px solid rgba(91,184,255,.1);
    border-radius: var(--rd);
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(91,184,255,.06), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.featured-badge {
    display: inline-block;
    font-family: var(--fm);
    font-size: .62rem;
    padding: .25rem .8rem;
    border-radius: 20px;
    background: rgba(255,204,68,.1);
    color: var(--c5);
    border: 1px solid rgba(255,204,68,.2);
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .8rem;
    line-height: 1.5;
}

.featured-title a {
    color: var(--w);
    text-decoration: none;
    transition: color .2s;
}

.featured-title a:hover { color: var(--c1); }

.featured-excerpt {
    font-size: .9rem;
    color: var(--t2);
    line-height: 1.85;
    margin-bottom: 1.2rem;
    max-width: 650px;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1.5rem;
    font-family: var(--fm);
    font-size: .72rem;
    color: var(--t2);
    flex-wrap: wrap;
}

/* ── PROJECT & ARTICLE DETAIL ── */
.project-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project-icon-large {
    font-size: 4.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 25px rgba(91,184,255,.5));
}

.project-badge {
    display: inline-block;
    font-family: var(--fm);
    font-size: .62rem;
    padding: .2rem .7rem;
    border-radius: 6px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: .6rem;
}

.bsec { background: rgba(255,107,107,.1); color: var(--cr); border: 1px solid rgba(255,107,107,.2); }
.bdev { background: rgba(61,255,160,.08); color: var(--c3); border: 1px solid rgba(61,255,160,.2); }
.bnet { background: rgba(91,184,255,.08); color: var(--c1); border: 1px solid rgba(91,184,255,.2); }
.blnx { background: rgba(255,204,68,.08); color: var(--c5); border: 1px solid rgba(255,204,68,.2); }

.project-stars {
    font-family: var(--fm);
    font-size: .85rem;
    color: var(--c5);
    margin-top: .5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.detail-card {
    padding: 1.8rem;
    border-radius: var(--rd);
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.05);
}

.detail-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--w);
    margin-bottom: 1.2rem;
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--w);
    margin-bottom: 1.2rem;
}

.detail-links {
    display: flex;
    gap: .85rem;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* Article Content */
.article-header {
    margin-bottom: 3rem;
}

.article-header .arcat {
    display: inline-block;
    font-family: var(--fm);
    font-size: .65rem;
    color: var(--c1);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .8rem;
    padding: .25rem .8rem;
    border-radius: 20px;
    background: rgba(91,184,255,.06);
    border: 1px solid rgba(91,184,255,.15);
}

.article-content {
    font-size: .92rem;
    color: var(--t1);
    line-height: 2.1;
    max-width: 800px;
}

.article-content p { margin-bottom: 1.3rem; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--w); margin: 2.5rem 0 1rem; }
.article-content h3 { font-size: 1.2rem; font-weight: 600; color: var(--w); margin: 2rem 0 .8rem; }
.article-content pre { margin: 1.5rem 0; }
.article-content a { color: var(--c1); text-decoration: underline; text-underline-offset: 3px; }

/* ── CODE BLOCK (shared) ── */
.cb2 {
    background: rgba(1,3,10,.9);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: var(--rd);
    overflow: hidden;
    margin: 1.5rem 0;
}

.ch2 {
    background: rgba(255,255,255,.022);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cd { display: flex; gap: 5px; }
.cc { width: 9px; height: 9px; border-radius: 50%; }
.cf { font-family: var(--fm); font-size: .68rem; color: var(--t2); }

.cbody {
    padding: 1.2rem 1.5rem;
    font-family: var(--fm);
    font-size: .75rem;
    line-height: 1.85;
    color: #7a9ab2;
    overflow-x: auto;
    white-space: pre;
}

.kw { color: #c792ea; }
.fn { color: #82aaff; }
.str { color: #c3e88d; }
.cmt { color: #304858; font-style: italic; }
.num { color: #f78c6c; }
.op { color: var(--c2); }

/* ── TAGS & CHIPS ── */
.ch3 { display: flex; flex-wrap: wrap; gap: .5rem; }
.chp {
    font-size: .75rem; padding: .3rem .8rem; border-radius: 20px;
    background: rgba(255,107,107,.07); border: 1px solid rgba(255,107,107,.17); color: var(--cr);
}
.csp {
    font-size: .75rem; padding: .3rem .8rem; border-radius: 20px;
    background: rgba(61,255,160,.06); border: 1px solid rgba(61,255,160,.17); color: var(--c3);
}

.tg {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .7rem;
}

.ti {
    padding: .6rem .8rem; border-radius: 8px;
    background: rgba(91,184,255,.04); border: 1px solid rgba(91,184,255,.1);
    font-size: .72rem; color: var(--c1); font-family: var(--fm);
    display: flex; align-items: center; gap: .4rem;
}

.gal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem;
}

.gi {
    aspect-ratio: 16/9; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; position: relative;
    background: rgba(255,255,255,.015);
}

.gl {
    position: absolute; bottom: .4rem; right: .4rem;
    font-family: var(--fm); font-size: .56rem; color: var(--t2);
    background: rgba(0,0,0,.7); padding: .08rem .4rem; border-radius: 4px;
}

/* ── 404 ── */
.page-404 {
    position: relative; z-index: 10;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}

.page-404 .hlg { margin-bottom: 1rem; }

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    /* ── Layout ── */
    .si {
        padding: 1.5rem 1.2rem;
    }

    .page-detail {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    /* ── Breadcrumb ── */
    .breadcrumb {
        font-size: .65rem;
        margin-bottom: 1.5rem;
        padding: .4rem .8rem;
    }

    /* ── Page Header ── */
    .page-header {
        margin-bottom: 2rem;
    }

    .page-header .hlg {
        font-size: 1.8rem;
    }

    .page-header .desc {
        font-size: .85rem;
    }

    /* ── About ── */
    .about-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-hero-desc {
        padding: 1.5rem;
    }

    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.8rem 1rem;
    }

    .about-stat-item:not(:last-child)::after {
        display: none;
    }

    .about-stat-num {
        font-size: 1.8rem;
    }

    .about-stat-label {
        font-size: .68rem;
    }

    .about-section-title {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    /* ── Projects ── */
    .project-filters {
        gap: .35rem;
        margin-bottom: 1.5rem;
    }

    .filter-tag {
        padding: .4rem .8rem;
        font-size: .7rem;
        border-radius: 20px;
    }

    .pjg {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pjpre {
        height: 120px;
    }

    .pjem {
        font-size: 2rem;
    }

    /* ── Articles ── */
    .featured-article {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .featured-title {
        font-size: 1.2rem;
    }

    .featured-excerpt {
        font-size: .82rem;
    }

    .arg {
        grid-template-columns: 1fr;
        gap: .8rem;
    }

    .arc {
        padding: 1.2rem;
    }

    .article-meta {
        gap: .8rem;
        font-size: .65rem;
    }

    /* ── Project/Article Detail ── */
    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    .project-icon-large {
        font-size: 3rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .detail-card {
        padding: 1.3rem;
    }

    .detail-links {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-links .btn {
        justify-content: center;
        text-align: center;
    }

    .gal {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-content {
        font-size: .85rem;
    }

    .cb2 {
        margin: 1rem 0;
    }

    .cbody {
        padding: .8rem 1rem;
        font-size: .68rem;
    }

    /* ── Empty State ── */
    .empty-state {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .si {
        padding: 1rem .8rem;
    }

    .breadcrumb {
        font-size: .6rem;
        gap: .35rem;
    }

    .about-hero-text .hlg {
        font-size: 1.6rem;
    }

    .about-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.2rem .8rem;
    }

    .about-stat-num {
        font-size: 1.5rem;
    }

    .featured-title {
        font-size: 1.05rem;
    }

    .page-header .hlg {
        font-size: 1.5rem;
    }

    .filter-tag {
        padding: .3rem .65rem;
        font-size: .65rem;
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--w);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.contact-column-icon {
    font-size: 1.3rem;
}

/* ── Contact Cards ── */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    text-decoration: none;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    transition: all .3s;
}

.contact-card-email::before { background: var(--c1); }
.contact-card-github::before { background: var(--c4); }
.contact-card-linkedin::before { background: var(--c1); }
.contact-card-pgp::before { background: var(--c3); }
.contact-card-phone::before { background: var(--c3); }
.contact-card-website::before { background: var(--c5); }
.contact-card-telecom::before { background: var(--c5); }
.contact-card-chat::before { background: var(--c4); }
.contact-card-default::before { background: rgba(255,255,255,.1); }

.contact-card:hover {
    border-color: rgba(91,184,255,.2);
    background: rgba(255,255,255,.03);
    transform: translateX(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.contact-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-body {
    flex: 1;
    min-width: 0;
}

.contact-card-label {
    display: block;
    font-size: .65rem;
    color: var(--t2);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-family: var(--fm);
    margin-bottom: .2rem;
}

.contact-card-value {
    display: block;
    font-size: .85rem;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-card-arrow {
    font-size: 1rem;
    color: var(--t2);
    opacity: 0;
    transition: all .3s;
}

.contact-card:hover .contact-card-arrow {
    opacity: 1;
    color: var(--c1);
}

/* ── PGP Section ── */
.pgp-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(61,255,160,.03);
    border: 1px solid rgba(61,255,160,.1);
    border-radius: 12px;
}

.pgp-section h4 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--c3);
    margin-bottom: .5rem;
}

.pgp-section p {
    font-size: .78rem;
    color: var(--t2);
    margin-bottom: .8rem;
}

.pgp-fingerprint {
    background: rgba(1,3,10,.7);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: .8rem 1rem;
    overflow-x: auto;
}

.pgp-fingerprint code {
    font-family: var(--fm);
    font-size: .72rem;
    color: var(--c3);
    word-break: break-all;
}

/* ── Contact Form Box ── */
.contact-form-box {
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: .2rem;
}

.contact-form-box .fg {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.2rem;
}

.contact-form-box .fg label {
    font-size: .72rem;
    color: var(--t2);
    font-family: var(--fm);
    letter-spacing: .04em;
}

.contact-form-box .fg input,
.contact-form-box .fg textarea {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: .75rem 1rem;
    color: var(--t1);
    font-family: var(--fa);
    font-size: .84rem;
    width: 100%;
    outline: none;
    transition: all .25s;
    resize: vertical;
}

.contact-form-box .fg input:focus,
.contact-form-box .fg textarea:focus {
    border-color: rgba(91,184,255,.3);
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 0 3px rgba(91,184,255,.06);
}

.form-actions {
    margin-top: .5rem;
}

.form-note {
    text-align: center;
    font-size: .7rem;
    color: var(--t2);
    margin-top: 1rem;
}

/* ── Company Section in Contact ── */
.contact-company-section {
    margin-bottom: 3rem;
}

.contact-company-card {
    background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--rd);
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all .3s;
}

.contact-company-card:hover {
    border-color: rgba(91,184,255,.15);
}

.contact-company-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.contact-company-info {
    flex: 1;
}

.contact-company-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--w);
    margin-bottom: .4rem;
}

.contact-company-info p {
    font-size: .84rem;
    color: var(--t2);
    line-height: 1.7;
}

/* ── Availability ── */
.contact-availability {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,.01);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 12px;
    flex-wrap: wrap;
}

.availability-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    color: var(--t2);
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    flex-shrink: 0;
}

.availability-dot.online {
    background: var(--c3);
    box-shadow: 0 0 8px rgba(61,255,160,.4);
}

/* ── Responsive Contact ── */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1rem 1.2rem;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .contact-card-value {
        font-size: .78rem;
    }

    .contact-form-box {
        padding: 1.5rem;
    }

    .contact-company-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .contact-company-card .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-availability {
        flex-direction: column;
        gap: .8rem;
        padding: 1.2rem;
    }
}

.error-page {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.error-container {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #5bb8ff, #3dffa0 40%, #00eeff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .5rem;
    filter: drop-shadow(0 0 30px rgba(91,184,255,.3));
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(91,184,255,.4));
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ecf5ff;
    margin-bottom: .8rem;
}

.error-desc {
    font-size: .9rem;
    color: #4e7090;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.error-details {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .65rem;
    color: #4e7090;
    font-family: 'JetBrains Mono', monospace;
    padding: 1rem;
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 10px;
}

.error-details span {
    display: block;
}

/* ── Article Publication ── */
.article-publication {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(61,255,160,.03);
    border: 1px solid rgba(61,255,160,.1);
    border-radius: 12px;
}

.publication-label {
    font-size: .7rem;
    color: #3dffa0;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.publication-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.publication-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.publication-info {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.publication-name {
    font-size: .9rem;
    font-weight: 600;
    color: #ecf5ff;
}

.publication-link {
    font-size: .75rem;
    color: #5bb8ff;
    text-decoration: none;
    transition: opacity .2s;
}

.publication-link:hover {
    opacity: .8;
}

/* ── Published Badge on Article Cards ── */
.arc-published {
    position: relative;
    border-color: rgba(61,255,160,.12) !important;
}

.arc-published::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(61,255,160,.08), transparent);
    border-radius: 0 0 0 60px;
    pointer-events: none;
}

.arc-published-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    font-size: .58rem;
    font-family: 'JetBrains Mono', monospace;
    color: #3dffa0;
    background: rgba(61,255,160,.08);
    border: 1px solid rgba(61,255,160,.18);
    padding: .15rem .5rem;
    border-radius: 12px;
    letter-spacing: .04em;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.arc-published:hover .arc-published-badge {
    background: rgba(61,255,160,.12);
    border-color: rgba(61,255,160,.25);
}