/* =========================================
   1. متغیرها و ریست
   ========================================= */
:root {
    --imdb-yellow: #f5c518;
    --sidebar-bg: #121212;
    --sidebar-border: rgba(255, 255, 255, 0.08); /* حاشیه شیشه‌ای روشن‌تر برای القای لبه برش‌خورده شیشه */
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --glass-bg: rgba(15, 15, 15, 0.65); /* شفافیت بیشتر برای عبور بهتر نور و نمایش افکت بلور */
    --overlay-color: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000;
    color: var(--text-primary);
    overflow: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--imdb-yellow); }

/* =========================================
   2. سایدبار (دسکتاپ) - افکت شیشه‌ای کامل
   ========================================= */
.sidebar {
    position: fixed;
    top: 0; 
    left: 0;
    width: 260px;
    height: 100vh;
    
    /* افکت لوکس Glassmorphism */
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 5px 0 40px rgba(0, 0, 0, 0.6);
    
    /* تنظیمات Flexbox */
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

/* پروفایل */
.sidebar-profile {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(180deg, rgba(245,197,24,0.05) 0%, transparent 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.profile-img-wrapper {
    width: 120px; height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid var(--imdb-yellow);
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), border-color 0.3s;
}

.profile-img-wrapper:hover {
    transform: scale(1.05);
    border-color: #e5b800;
}

.profile-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-name {
    font-size: 1.3rem; font-weight: 700;
    color: #fff; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.profile-name:hover { color: #f5c518; }

.profile-role {
    color: #aaa; font-size: 0.75rem;
    font-weight: 400; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 15px;
    opacity: 0.8;
}
.profile-role:hover { opacity: 1; color: #f5c518; }

.profile-gold-sep {
    width: 40px; height: 2px;
    background: linear-gradient(90deg, transparent, #f5c518, transparent);
    margin: 0 auto;
}

/* منو - حل مشکل اسکرول و فوتر */
.sidebar-nav {
    flex: 1;
    min-height: 0; /* ضروری برای اسکرول فلکس‌باکس */
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav ul li a {
    display: flex; align-items: center;
    padding: 15px 25px;
    color: var(--text-secondary);
    text-decoration: none; font-size: 0.95rem;
    font-weight: 500; transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: var(--text-primary);
    background-color: rgba(245,197,24,0.08);
    border-left-color: var(--imdb-yellow);
}

/* فوتر دسکتاپ - فیکس شدن در پایین */
.sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 15px 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.imdb-logo {
    width: 70px; height: auto;
    opacity: 0.8; transition: 0.3s;
    filter: grayscale(30%);
}
.imdb-logo:hover { opacity: 1; transform: scale(1.1); filter: grayscale(0%); }

.developer-credit {
    margin-top: 5px;
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
}

.dev-label {
    font-size: 0.65rem; color: #666;
    text-transform: uppercase; letter-spacing: 1px;
}

.dev-name {
    font-size: 0.75rem; color: #aaa;
    text-decoration: none; display: flex;
    align-items: center; gap: 5px;
    transition: color 0.3s;
}
.dev-name:hover { color: #f5c518; }
.gold-heart { flex-shrink: 0; }

/* =========================================
   3. محتوای اصلی و SPA
   ========================================= */
.main-content {
    position: relative;
    margin-left: 260px;
    width: calc(100% - 260px);
    height: 100vh;
    overflow: hidden;
}

.page-section {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    z-index: 10;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0; visibility: hidden;
    transition: all 0.6s cubic-bezier(0.77,0,0.175,1);
}

.page-section.active {
    transform: translateX(0);
    opacity: 1; visibility: visible;
    z-index: 20;
}

#home.page-section {
    transform: translateX(0);
    opacity: 1; visibility: visible; z-index: 1;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.section-content {
    padding: 60px 80px;
    max-width: 1200px; margin: 0 auto;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.5rem; color: var(--imdb-yellow);
    margin-bottom: 30px; text-transform: uppercase;
    font-weight: 800; letter-spacing: 2px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px; display: inline-block;
}

/* =========================================
   4. اسلایدر
   ========================================= */
.slider-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.slider-container img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0;
    transition: opacity 1.5s;
}
.slider-container img.active { opacity: 1; }

.slider-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--overlay-color);
    z-index: -1;
}

/* =========================================
   5. صفحه اصلی
   ========================================= */
.home-text {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    height: 100%; text-align: center;
}

.home-text h1 {
    color: var(--text-primary);
    font-size: 4rem; letter-spacing: 3px;
    margin-bottom: 10px; font-weight: 800;
    text-transform: uppercase;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
}

.home-text h2 {
    color: var(--imdb-yellow);
    font-size: 1.5rem; font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* =========================================
   6. موبایل (واکنش‌گرا) - تنظیمات نهایی لایه‌بندی
   ========================================= */
.mobile-header,
.close-btn { display: none; }

@media (max-width: 768px) {
    body { overflow-x: hidden; }

    /* هدر موبایل شیشه‌ای */
    .mobile-header {
        display: flex; align-items: center;
        justify-content: space-between;
        position: fixed; top: 0; left: 0;
        width: 100%; height: 60px;
        padding: 0 16px;
        background: var(--glass-bg);
        backdrop-filter: blur(25px) saturate(150%);
        -webkit-backdrop-filter: blur(25px) saturate(150%);
        border-bottom: 1px solid var(--sidebar-border);
        box-shadow: 0 4px 30px rgba(0,0,0,0.6);
        z-index: 5000;
    }

    .mobile-left-group {
        display: flex; align-items: center;
        gap: 10px; flex-shrink: 1; min-width: 0;
    }

    .mobile-avatar {
        width: 34px; height: 34px;
        border-radius: 50%; object-fit: cover;
        border: 2px solid var(--imdb-yellow);
        flex-shrink: 0;
    }

    .mobile-username {
        font-size: 0.85rem; font-weight: 600;
        color: #fff; letter-spacing: 0.5px;
        white-space: nowrap; overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-imdb-logo {
        display: flex; align-items: center;
        flex-shrink: 0;
    }
    .mobile-imdb-logo img { width: 40px; height: auto; opacity: 0.9; }

    .hamburger-btn {
        background: none; border: none;
        cursor: pointer; display: flex;
        align-items: center; flex-shrink: 0;
    }
    .hamburger-btn svg { fill: var(--imdb-yellow); }

    /* سایدبار موبایل: پوشش کامل و قرارگیری روی هدر */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100dvh; /* حل قطعی مشکل نوار آدرس موبایل */
        z-index: 99999 !important; /* بالاتر از همه چیز */
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--glass-bg);
        backdrop-filter: blur(25px) saturate(150%);
        -webkit-backdrop-filter: blur(25px) saturate(150%);
        border-right: 1px solid var(--sidebar-border);
        box-shadow: 10px 0 40px rgba(0,0,0,0.8);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* کلاس جاوااسکریپت برای باز کردن سایدبار */
    .sidebar.open, .sidebar.active { left: 0; }

    .sidebar-profile {
        padding: 40px 20px 5px; /* پدینگ بالا بیشتر شد برای جبران top: 0 */
        text-align: center;
        flex-shrink: 0;
    }

    .profile-img-wrapper {
        width: 70px; height: 70px;
        margin: 0 auto 10px;
    }

    .profile-name {
        font-size: 1rem; margin-bottom: 2px;
        letter-spacing: 1px;
    }

    .profile-role {
        font-size: 0.65rem; margin-bottom: 6px;
        letter-spacing: 1px;
    }

    .profile-gold-sep { width: 30px; height: 1px; }

    /* منو موبایل: حل مشکل جمع شدن */
    .sidebar-nav {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 0;
    }

    .sidebar-nav ul { padding: 5px 0; }

    .sidebar-nav ul li a {
        padding: 10px 25px;
        font-size: 0.85rem; line-height: 1.4;
    }

    /* فوتر موبایل: همیشه در پایین با پدینگ مناسب مرورگرهای موبایل */
    .sidebar-footer {
        flex-shrink: 0;
        margin-top: auto;
        padding: 10px 25px 40px; /* فضای پایین افزایش یافت تا زیر نوار موبایل نرود */
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: transparent;
    }

    .imdb-logo { width: 50px; }
    .developer-credit { margin-top: 5px; }
    .dev-label { font-size: 0.6rem; }
    .dev-name { font-size: 0.7rem; }

    .close-btn {
        display: block;
        position: absolute; top: 15px; right: 15px;
        background: none; border: none;
        cursor: pointer; z-index: 99999;
    }
    .close-btn svg { fill: #aaa; }
    .close-btn:hover svg { fill: var(--imdb-yellow); }

    /* محتوای اصلی */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }

    .page-section { padding-top: 60px; }
    .section-content { padding: 30px 20px; }
    .section-title { font-size: 1.8rem; }

    .home-text {
        padding-top: 60px;
        padding-left: 20px; padding-right: 20px;
    }
    .home-text h1 { font-size: 2.2rem; }
    .home-text h2 { font-size: 1rem; }
}


/* =========================================
   مدیریت نمایش زبان‌ها
   ========================================= */
.about-content {
    display: none; /* در حالت پیش‌فرض همه را مخفی می‌کند */
    animation: fadeIn 0.5s ease; /* یک انیمیشن نرم برای ظاهر شدن */
}

.about-content.active,
.resume-content.active {
    display: block;
}

.resume-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-main-title {
    font-size: 2.2rem;
    color: var(--imdb-yellow);
    margin-bottom: 30px;
    font-weight: 800;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.lang-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    transition: 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    border-color: var(--imdb-yellow);
    color: var(--imdb-yellow);
    background: rgba(245, 197, 24, 0.1);
}

.bio-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.bio-text p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #ddd;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 12px;
    color: #ccc;
    line-height: 1.6;
}

.info-label {
    color: var(--imdb-yellow);
    font-weight: 600;
}

.section-divider-title {
    text-align: center;
    margin: 40px 0 24px;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.section-divider-title span {
    padding: 0 16px;
    border-bottom: 1px solid rgba(245, 197, 24, 0.3);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.expertise-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.expertise-item h3 {
    margin: 12px 0 8px;
    font-size: 1rem;
    color: #fff;
}

.expertise-item p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.exp-icon {
    font-size: 2rem;
}

.section-intro {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 24px;
}

.section-empty {
    color: #888;
    font-style: italic;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.media-card {
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.media-card img,
.media-card video {
    width: 100%;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #000;
}

.media-card figcaption {
    padding: 12px;
    font-size: 0.85rem;
    color: #ccc;
    text-align: center;
}

.contact-details a {
    color: var(--imdb-yellow);
}

/* گالری */
.gallery-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.gallery-tabs-wrap .gallery-tabs {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
}

.gallery-tile {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    break-inside: avoid;
    position: relative;
    font: inherit;
    color: inherit;
    text-align: right;
}

.gallery-tile--hidden {
    display: none !important;
}

.gallery-tile img,
.gallery-tile-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-tile:hover img,
.gallery-tile:hover .gallery-tile-video {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.gallery-tile-video {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.gallery-video-badge {
    color: var(--imdb-yellow);
    font-size: 2rem;
}

.gallery-tile-caption {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

body.gallery-modal-open {
    overflow: hidden;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay-color);
}

.gallery-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 30px 30px;
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
}

.gallery-modal-close {
    display: block !important;
}

.gallery-modal-media img,
.gallery-modal-media video {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
    background: #000;
}

.gallery-modal-info {
    margin-top: 20px;
}

.gallery-modal-meta {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

@media (max-width: 992px) {
    .gallery-masonry { column-count: 2; }
}

@media (max-width: 600px) {
    .gallery-masonry { column-count: 1; }
}

@media (max-width: 992px) {
    .bio-grid { grid-template-columns: 1fr; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .expertise-grid { grid-template-columns: 1fr; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================
   بخش آثار شاخص (Known For - سبک IMDb)
   ========================================= */
.known-for-section {
    margin-top: 20px;
    margin-bottom: 60px;
}

.known-for-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ترکیب استایل‌های کارت پایه و چیدمان عکس/متن */
.known-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    text-align: right;
}

.lang-en .known-card { 
    text-align: left; 
}

/* افکت هاور: اضافه شدن هاله و حاشیه بسیار ظریف طلایی */
.known-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(191, 149, 63, 0.4); /* حاشیه طلایی ملایم */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(191, 149, 63, 0.1); /* ترکیب سایه مشکی با درخشش محو طلایی */
}

/* تنظیمات عکس پوستر */
.known-poster img {
    width: 65px;
    height: 95px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* سایه طلایی نامحسوس دور عکس هنگام هاور شدن کارت */
.known-card:hover .known-poster img {
    box-shadow: 0 4px 10px rgba(191, 149, 63, 0.2);
}

.known-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; /* پر کردن فضای باقیمانده */
}

/* لیبل سال تولید: ورق طلای مات و بسیار ظریف */
.known-year {
    display: inline-block;
    /* گرادیان طلایی ملایم (کنتراست پایین‌تر نسبت به بخش رزومه) */
    background: linear-gradient(135deg, #c5a059, #e6d3a8, #b08d46, #e6d3a8, #9c7835);
    color: #111;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.known-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* تغییر رنگ عنوان به طلایی روشن هنگام هاور */
.known-card:hover .known-details h3 {
    color: #e6d3a8;
}

.known-details p {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #ccc;
}

.known-role {
    font-size: 0.85rem;
    color: #cccccc;
    /* خط چین با ته‌رنگ طلایی بسیار شفاف (۲۰٪) */
    border-top: 1px dashed rgba(191, 149, 63, 0.2); 
    padding-top: 8px;
    display: block;
}

/* ریسپانسیو آثار شاخص */
@media (max-width: 992px) {
    .known-for-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .known-for-grid { grid-template-columns: 1fr; }
}



/* ================= Resume Timeline Styles ================= */
.resume-section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    /* افکت متن طلایی (Gold Gradient Text) */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ثابت نگه داشتن رنگ آیکون‌ها (چون گردینت روی آیکون ایموجی ممکن است تداخل کند) */
.resume-section-title i {
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); /* هاله طلایی ملایم دور آیکون */
}

.resume-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .resume-container {
        grid-template-columns: 1fr;
    }
}

.timeline {
    border-right: 2px solid #333; /* خط عمودی برای راست‌چین (فارسی) */
    padding-right: 20px;
    margin-bottom: 40px;
}

/* تنظیم خط عمودی برای چپ‌چین (انگلیسی) */
.lang-en .timeline {
    border-right: none;
    border-left: 2px solid #333;
    padding-right: 0;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

/* دایره روی خط زمانی - فارسی */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    right: -28px;
    width: 14px; /* کمی بزرگتر برای نمایش بهتر ورق طلا */
    height: 14px;
    border-radius: 50%;
    /* گرادیان ورق طلا برای نقطه‌ها */
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5); /* درخشش طلایی دور نقطه */
}

/* دایره روی خط زمانی - انگلیسی */
.lang-en .timeline-item::before {
    right: auto;
    left: -28px;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #1a1a1a; /* رنگ متن تیره برای خوانایی روی طلا */
    /* گرادیان ورق طلا برای پس‌زمینه تاریخ */
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* سایه برای عمق دادن و برجسته شدن */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4); /* افکت حکاکی ملایم متن */
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.6;
}
