/* ==========================================
   متغیرهای رنگی - هماهنگ با تم سایت
========================================== */
:root {
    --primary-red: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #FCA5A5;
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --dark-card-hover: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --border-color: rgba(248, 250, 252, 0.1);
    --border-accent: rgba(220, 38, 38, 0.3);
    --gold-accent: #D4AF37;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================
   ریست و تنظیمات پایه
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   پس‌زمینه هندسی ثابت و شیک
========================================== */
.geometric-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
}

.geo-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(30deg, var(--primary-red) 12%, transparent 12.5%, transparent 87%, var(--primary-red) 87.5%, var(--primary-red)),
        linear-gradient(150deg, var(--primary-red) 12%, transparent 12.5%, transparent 87%, var(--primary-red) 87.5%, var(--primary-red)),
        linear-gradient(30deg, var(--primary-red) 12%, transparent 12.5%, transparent 87%, var(--primary-red) 87.5%, var(--primary-red)),
        linear-gradient(150deg, var(--primary-red) 12%, transparent 12.5%, transparent 87%, var(--primary-red) 87.5%, var(--primary-red));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* ==========================================
   دکمه بازگشت
========================================== */
.back-button {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.back-button:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.back-button i {
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.back-button:hover i {
    transform: translateX(3px);
}

/* ==========================================
   هدر صفحه
========================================== */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.2));
    border: 1px solid var(--border-accent);
    padding: 12px 30px;
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.header-badge i {
    color: var(--gold-accent);
    font-size: 1.2rem;
}

.header-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: -1px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.header-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.7s both;
}

.header-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.9s both;
}

/* ==========================================
   محتوای اصلی
========================================== */
.main-content {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

/* ==========================================
   بخش پروفایل اصلی
========================================== */
.profile-section {
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out;
}

.profile-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 60px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-red), transparent, var(--gold-accent));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.profile-card:hover::before {
    opacity: 0.3;
}

/* عکس پروفایل */
.profile-image-wrapper {
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.frame-border-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--gold-accent));
    z-index: 2;
}

.frame-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-accent), var(--primary-red));
    z-index: 2;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: grayscale(20%);
}

.image-frame:hover .profile-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    pointer-events: none;
}

.profile-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-red), var(--gold-accent));
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
}

/* اطلاعات پروفایل */
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
}

.info-section {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.profile-role {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.role-icon {
    color: var(--gold-accent);
    font-size: 1.4rem;
}

/* جزئیات */
.info-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.detail-item:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--border-accent);
    transform: translateX(-5px);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* روش‌های تماس */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-red);
    color: var(--text-primary);
    transform: translateX(-5px);
}

.contact-link i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

/* شبکه‌های اجتماعی */
.social-media {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

/* ==========================================
   عنوان بخش‌ها
========================================== */
.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
}

.section-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(220, 38, 38, 0.1);
    line-height: 1;
    font-family: 'Arial', sans-serif;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
}

/* ==========================================
   بخش درباره
========================================== */
.about-section {
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.about-text {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.text-paragraph {
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: justify;
    text-justify: inter-word;
}

.text-paragraph:last-child {
    margin-bottom: 0;
}

/* آمار */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.stat-card:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   بخش پیام دبیر
========================================== */
.message-section {
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.message-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 70px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-red), var(--gold-accent));
}

.message-quote-top {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 6rem;
    color: rgba(220, 38, 38, 0.08);
    line-height: 1;
}

.message-quote-bottom {
    position: absolute;
    bottom: 30px;
    left: 40px;
    font-size: 6rem;
    color: rgba(220, 38, 38, 0.08);
    line-height: 1;
}

.message-content {
    position: relative;
    z-index: 1;
}

.message-text {
    font-size: 1.15rem;
    line-height: 2.4;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: justify;
    text-justify: inter-word;
}

.message-text:first-child {
    font-size: 1.3rem;
    color: var(--gold-accent);
    font-weight: 600;
    text-align: center;
    font-style: italic;
}

.highlight-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    padding: 25px;
    background: rgba(220, 38, 38, 0.1);
    border-right: 4px solid var(--primary-red);
    border-radius: 8px;
}

.message-signature {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: left;
}

.signature-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    margin-bottom: 20px;
}

.signature-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.signature-title {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   بخش افتخارات
========================================== */
.achievements-section {
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.achievement-item {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--gold-accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition-smooth);
}

.achievement-item:hover::before {
    transform: scaleX(1);
}

.achievement-item:hover {
    background: rgba(220, 38, 38, 0.05);
    border-color: var(--primary-red);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    transition: var(--transition-smooth);
}

.achievement-item:hover .achievement-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.achievement-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.achievement-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.achievement-year {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================
   بخش گالری
========================================== */
.gallery-section {
    margin-bottom: 100px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.overlay-content p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==========================================
   فوتر
========================================== */
.elegant-footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    margin-top: 100px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 0 auto 25px;
}

.footer-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================
   مودال تصویر
========================================== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.image-modal:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-wrapper {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.4s ease-out;
}

.modal-close-btn {
    position: absolute;
    top: -60px;
    left: 0;
    background: var(--primary-red);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.modal-close-btn:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.hidden {
    display: none;
}

/* ==========================================
   انیمیشن‌ها
========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   ریسپانسیو
========================================== */

/* تبلت بزرگ */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .profile-card {
        grid-template-columns: 400px 1fr;
        gap: 50px;
        padding: 50px;
    }

    .header-title {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* تبلت */
@media (max-width: 992px) {
    .profile-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .profile-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .header-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .back-button {
        top: 20px;
        right: 20px;
        padding: 12px 20px;
    }

    .back-button span {
        display: none;
    }

    .page-header {
        padding: 100px 0 60px;
    }

    .header-title {
        font-size: 2.5rem;
    }

    .header-subtitle {
        font-size: 1.2rem;
    }

    .profile-card {
        padding: 30px;
    }

    .profile-name {
        font-size: 2.2rem;
    }

    .profile-role {
        font-size: 1.1rem;
    }

    .section-number {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-text {
        padding: 35px;
    }

    .message-card {
        padding: 40px 30px;
    }

    .message-quote-top,
    .message-quote-bottom {
        font-size: 4rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        padding: 0 20px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .section-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-text {
        padding: 25px;
    }

    .text-paragraph {
        font-size: 1rem;
    }

    .message-card {
        padding: 30px 20px;
    }

    .message-text {
        font-size: 1rem;
    }

    .achievement-item {
        padding: 30px;
    }
}
/* ==========================================
   تایم‌لاین سوابق اجرایی
========================================== */
.experience-section {
    margin-bottom: 100px;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-red), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: calc(50% + 40px);
    text-align: left;
}

.timeline-dot {
    position: absolute;
    right: 50%;
    top: 0;
    transform: translateX(50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-red);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--primary-red);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.2);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(50%) scale(1.2);
}

.timeline-content {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E293B; /* رنگ تیره‌تر برای عنوان */
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #334155; /* رنگ واضح‌تر برای توضیحات */
    line-height: 1.8;
}

.timeline-icon {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.timeline-item:nth-child(odd) .timeline-icon {
    left: -60px;
}

.timeline-item:nth-child(even) .timeline-icon {
    right: -60px;
}

/* ==========================================
   تب‌های دسته‌بندی افتخارات
========================================== */
.achievement-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #475569; /* رنگ واضح‌تر برای دکمه‌ها */
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: var(--primary-light);
    color: var(--primary-red);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-color: var(--primary-red);
    color: white;
}

.tab-button i {
    font-size: 1.1rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   کارت‌های افتخارات جدید
========================================== */
.achievement-card {
    position: relative;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-red));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.achievement-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.achievement-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.achievement-icon-box i {
    font-size: 2rem;
    color: var(--primary-red);
}

.achievement-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E293B; /* رنگ تیره‌تر برای عنوان */
    margin-bottom: 12px;
}

.achievement-card-desc {
    font-size: 0.95rem;
    color: #334155; /* رنگ واضح‌تر برای توضیحات */
    line-height: 1.8;
}

/* کارت‌های افتخارات با رنگ‌بندی */
.honor-card .achievement-icon-box.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
}

.honor-card .achievement-icon-box.gold i {
    color: #FFD700;
}

.honor-card .achievement-icon-box.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(169, 169, 169, 0.1));
}

.honor-card .achievement-icon-box.silver i {
    color: #C0C0C0;
}

.honor-card .achievement-icon-box.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(184, 115, 51, 0.1));
}

.honor-card .achievement-icon-box.bronze i {
    color: #CD7F32;
}

.achievement-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ==========================================
   کارت‌های مجوزها
========================================== */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.license-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.license-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.license-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-icon i {
    font-size: 1.8rem;
    color: var(--primary-red);
}

.license-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B; /* رنگ تیره‌تر برای عنوان */
    margin-bottom: 10px;
    line-height: 1.6;
}

.license-issuer {
    font-size: 0.9rem;
    color: #475569; /* رنگ واضح‌تر برای نام صادرکننده */
    margin-bottom: 15px;
}

.license-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50px;
    color: #16A34A; /* رنگ سبز واضح‌تر */
    font-size: 0.85rem;
    font-weight: 600;
}

.license-status i {
    font-size: 1rem;
}

/* ==========================================
   ریسپانسیو تایم‌لاین
========================================== */
@media (max-width: 768px) {
    .timeline-line {
        right: 20px;
        transform: none;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: right;
    }

    .timeline-dot {
        right: 10px;
        transform: none;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        right: auto;
        left: -50px;
    }

    .achievement-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
    }
}