
:root {
    --bg-deep: #0a0e16;
    --bg-panel: rgba(255, 255, 255, 0.04);
    --panel-border: rgba(232, 184, 75, 0.18);
    --gold: #e8b84b;
    --gold-soft: rgba(232, 184, 75, 0.5);
    --text-main: rgba(255, 255, 255, 0.92);
    --text-dim: rgba(255, 255, 255, 0.6);
    --text-faint: rgba(255, 255, 255, 0.4);
}


main.container {
    margin-top: 100px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 184, 75, 0.06), transparent 55%),
        var(--bg-deep);
    border-radius: 18px;
    padding-top: 10px;
    padding-bottom: 30px;
}

/* ===== عنوان ===== */
h1 {
    color: var(--text-main) !important;
    font-size: clamp(24px, 4.5vw, 32px);
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: riseIn 0.7s ease forwards;
}

h1::after {
    content: "";
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    display: block;
    margin: 14px auto 0;
    border-radius: 20px;
}

/* ===== کارت اصلی ===== */
.about-card {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
    padding: 56px 32px 32px;

    background: var(--bg-panel);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid var(--panel-border);
    border-radius: 18px;

    color: var(--text-main);

    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);

    opacity: 0;
    animation: riseIn 0.85s ease 0.15s forwards;
}

/* ===== قاب هشت‌ضلعی دور عکس ===== */
.profile-img-wrapper {
    position: relative;
    width: 132px;
    height: 132px;
    margin: -88px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), #fce9b8 45%, var(--gold) 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    padding: 3px;
}

.profile-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--bg-deep);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.profile-img-wrapper img {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    object-fit: cover;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: transform 0.4s ease;
}

.profile-img-wrapper:hover img {
    transform: scale(1.06);
}

/* ===== متن ===== */
.about-text {
    text-align: justify;
}

.about-text p {
    color: var(--text-dim);
    line-height: 2;
    font-size: 15px;
    margin-bottom: 16px;
}

/* جمله یاعلی مدد - مرکز و برجسته */
.about-text p.ya-ali {
    text-align: center;
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
    margin: 24px 0;
    letter-spacing: 0.3px;
}

/* امضا - اسم طراح */
.signature {
    text-align: center;
    color: var(--text-faint);
    font-size: 13.5px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ===== جداکننده هندسی ===== */
.geo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 22px;
}

.geo-divider .bar {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--panel-border));
}

.geo-divider .bar.right {
    background: linear-gradient(90deg, var(--panel-border), transparent);
}

.geo-divider .dot {
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ===== بخش تماس ===== */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    padding: 12px 18px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--text-main);
    text-decoration: none;

    transition: all 0.25s ease;
}

.contact-item .icon {
    color: var(--gold);
    font-size: 15px;
    width: 18px;
    text-align: center;
    margin-left: 4px;
}

.contact-item .label {
    flex: 1;
    text-align: right;
    font-size: 14px;
    color: var(--text-dim);
}

.contact-item .value {
    direction: ltr;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.contact-item:hover {
    border-color: var(--gold-soft);
    transform: translateX(-3px);
    background: rgba(232, 184, 75, 0.06);
}

/* ===== انیمیشن ===== */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    text-decoration: none;
}

@media (max-width: 480px) {
    .about-card {
        padding: 50px 20px 26px;
    }
    .profile-img-wrapper {
        width: 110px;
        height: 110px;
        margin-top: -78px;
    }
    .profile-img-wrapper img {
        width: 96px;
        height: 96px;
    }
}
