/* ========== About page ========== */
/* هم‌سبک با لیست مقالات، پروژه‌ها و تماس با ما */

.ab {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 0 88px;
    color: #fff;
}

.ab__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
}

.ab__glow--1 {
    width: 460px;
    height: 460px;
    top: -160px;
    left: -130px;
    background: var(--page-blue);
    opacity: .35;
}

.ab__glow--2 {
    width: 420px;
    height: 420px;
    bottom: -140px;
    right: -120px;
    background: var(--page-blue);
    opacity: .4;
}

.ab__inner {
    position: relative;
    z-index: 1;
}

/* ---- head ---- */

.ab__head {
    text-align: center;
    margin-bottom: 40px;
}

.ab__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(253, 182, 20, .28);
    background: rgba(253, 182, 20, .07);
    color: var(--page-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

.ab__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--page-orange);
    box-shadow: 0 0 0 0 rgba(253, 182, 20, .55);
    animation: ab-pulse 2.4s ease-out infinite;
}

@keyframes ab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(253, 182, 20, .5); }
    70% { box-shadow: 0 0 0 9px rgba(253, 182, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 182, 20, 0); }
}

.ab__title {
    margin: 16px 0 10px;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.45;
    color: #fff;
}

.ab__subtitle {
    margin: 0 auto;
    max-width: 52ch;
    color: var(--page-muted);
    font-size: 15px;
    line-height: 2;
}

.ab__rule {
    display: block;
    width: 72px;
    height: 3px;
    margin: 20px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--page-orange), transparent);
}

/* ---- highlight cards ---- */

.ab__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 36px;
}

.ab-card {
    position: relative;
    min-width: 0;
}

.ab-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 240px;
    padding: 28px 26px 24px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--page-card) 0%, #191d28 100%);
    border: 1px solid var(--page-line);
    box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .8);
    transition:
        transform .5s cubic-bezier(.22, .7, .2, 1),
        border-color .4s ease,
        box-shadow .5s ease;
}

.ab-card:hover .ab-card__inner {
    transform: translateY(-8px);
    border-color: rgba(253, 182, 20, .42);
    box-shadow: 0 38px 64px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(253, 182, 20, .12);
}

.ab-card__frame {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--page-orange), var(--page-orange-soft));
    transition: width .55s cubic-bezier(.22, .7, .2, 1);
}

.ab-card:hover .ab-card__frame {
    width: 100%;
}

.ab-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 14px;
    color: #1a1305;
    background: var(--page-orange);
    box-shadow: 0 14px 28px -14px rgba(253, 182, 20, .75);
    transition: transform .45s cubic-bezier(.22, .7, .2, 1);
}

.ab-card__icon svg {
    width: 26px;
    height: 26px;
}

.ab-card:hover .ab-card__icon {
    transform: translateY(-3px);
}

.ab-card__label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--page-orange);
    font-size: 12.5px;
    font-weight: 700;
}

.ab-card__name {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.55;
    color: #fff;
}

.ab-card__text {
    margin: 0;
    color: var(--page-muted);
    font-size: 14px;
    line-height: 2;
}

/* ---- content panel ---- */

.ab-panel {
    position: relative;
    margin-bottom: 28px;
    padding: 40px 42px;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(30, 35, 48, .95), rgba(18, 21, 31, .98));
    border: 1px solid var(--page-line);
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .85);
    overflow: hidden;
}

.ab-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--page-orange), transparent);
}

.ab-content {
    position: relative;
    color: rgba(255, 255, 255, .82);
    font-size: 15.5px;
    line-height: 2.15;
    text-align: justify;
}

.ab-content > *:first-child { margin-top: 0; }
.ab-content > *:last-child { margin-bottom: 0; }

.ab-content h1,
.ab-content h2,
.ab-content h3,
.ab-content h4,
.ab-content h5,
.ab-content h6 {
    color: #fff;
    font-weight: 800;
    line-height: 1.6;
    margin: 1.4em 0 .7em;
}

.ab-content h2 { font-size: 1.35rem; }
.ab-content h3 { font-size: 1.2rem; }

.ab-content p {
    margin: 0 0 1.1em;
    color: rgba(255, 255, 255, .78);
}

.ab-content a {
    color: var(--page-orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(253, 182, 20, .35);
    transition: color .3s ease, border-color .3s ease;
}

.ab-content a:hover {
    color: var(--page-orange-soft);
    border-color: var(--page-orange-soft);
}

.ab-content ul,
.ab-content ol {
    margin: 0 0 1.2em;
    padding-right: 1.4em;
}

.ab-content li {
    margin-bottom: .45em;
}

.ab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1em 0;
    border: 1px solid var(--page-line);
}

.ab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}

.ab-content table td,
.ab-content table th {
    border: 1px solid var(--page-line);
    padding: 10px 12px;
}

.ab-content blockquote {
    margin: 1.2em 0;
    padding: 14px 18px;
    border-right: 3px solid var(--page-orange);
    background: rgba(253, 182, 20, .06);
    border-radius: 0 10px 10px 0;
    color: rgba(255, 255, 255, .85);
}

/* ---- media / iframe ---- */

.ab-media {
    margin-bottom: 28px;
}

.ab-media__frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--page-line);
    background: #12151d;
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .85);
    aspect-ratio: 16 / 9;
}

.ab-media__frame iframe,
.ab-media__frame video,
.ab-media__frame embed,
.ab-media__frame object {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* ---- CTA ---- */

.ab-cta {
    margin-top: 8px;
}

.ab-cta__inner {
    position: relative;
    text-align: center;
    padding: 48px 36px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .18));
    border: 1px solid var(--page-line);
}

.ab-cta__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(253, 182, 20, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(253, 182, 20, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 30%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 50% 30%, #000, transparent 75%);
    pointer-events: none;
}

.ab-cta__eyebrow,
.ab-cta__title,
.ab-cta__text,
.ab-cta__actions {
    position: relative;
}

.ab-cta__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--page-orange);
    font-size: 13px;
    font-weight: 700;
}

.ab-cta__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    color: #fff;
    line-height: 1.55;
}

.ab-cta__text {
    margin: 0 auto 28px;
    max-width: 46ch;
    color: var(--page-muted);
    font-size: 14.5px;
    line-height: 2;
}

.ab-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---- buttons ---- */

.ab__btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    border-radius: 999px;
    border: 1px solid rgba(253, 182, 20, .55);
    background: rgba(253, 182, 20, .08);
    color: var(--page-orange);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: color .35s ease, border-color .35s ease, transform .4s cubic-bezier(.22, .7, .2, 1), box-shadow .45s ease;
}

.ab__btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(90deg, #e5a000, var(--page-orange) 55%, var(--page-orange-soft));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .5s cubic-bezier(.22, .7, .2, 1);
}

.ab__btn:hover,
.ab__btn:focus-visible {
    color: #1a1305;
    border-color: var(--page-orange);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -18px rgba(253, 182, 20, .65);
    text-decoration: none;
}

.ab__btn:hover::before,
.ab__btn:focus-visible::before {
    transform: scaleX(1);
}

.ab__btn--ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--page-line);
    color: rgba(255, 255, 255, .82);
}

.ab__btn--ghost::before {
    display: none;
}

.ab__btn--ghost:hover,
.ab__btn--ghost:focus-visible {
    color: #fff;
    border-color: rgba(253, 182, 20, .45);
    background: rgba(253, 182, 20, .08);
    box-shadow: none;
}

.ab__btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform .4s cubic-bezier(.22, .7, .2, 1);
}

.ab__btn:hover .ab__btn-arrow {
    transform: translateX(-6px);
}

/* ---- reveal ---- */

[data-ab-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .7s cubic-bezier(.22, .7, .2, 1) var(--ab-delay, 0ms),
        transform .7s cubic-bezier(.22, .7, .2, 1) var(--ab-delay, 0ms);
    will-change: opacity, transform;
}

[data-ab-reveal].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---- responsive ---- */

@media (max-width: 991.98px) {
    .ab {
        padding: 48px 0 64px;
    }

    .ab__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 480px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 28px;
    }

    .ab-panel {
        padding: 32px 24px;
    }

    .ab-cta__inner {
        padding: 40px 24px;
    }
}

@media (max-width: 575.98px) {
    .ab {
        padding: 40px 0 52px;
    }

    .ab__title {
        font-size: 25px;
    }

    .ab-card__inner {
        min-height: 0;
        padding: 24px 20px 20px;
    }

    .ab-panel {
        padding: 26px 18px;
    }

    .ab-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ab__btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ab__eyebrow-dot,
    [data-ab-reveal],
    .ab-card__inner,
    .ab-card__icon,
    .ab__btn,
    .ab__btn::before {
        animation: none !important;
        transition: none !important;
    }

    [data-ab-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .ab-card:hover .ab-card__inner {
        transform: none;
    }
}
