/* ============================================
   salah-style.css - استایل‌های اختصاصی سایت صلاح شمس
   Version: 1.0.0
   ============================================ */

/* فونت و تنظیمات پایه */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir.ttf') format('truetype');
    font-display: swap;
}

* {
    font-family: 'Vazir', sans-serif;
}

body {
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* پرچم‌ها - با SVG داخلی */
.flag-icon {
    display: inline-block;
    width: 22px;
    height: 16px;
    vertical-align: middle;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.flag-icon-ir { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23fff' d='M0 0h640v480H0z'/%3E%3Cpath fill='%23239140' d='M0 0h640v160H0z'/%3E%3Cpath fill='%23da0000' d='M0 320h640v160H0z'/%3E%3C/svg%3E"); }
.flag-icon-gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23012069' d='M0 0h640v480H0z'/%3E%3Cpath fill='%23FFF' d='M75 0l244 181L562 0h78v62L400 241l240 178v61h-80L320 301 80 480H0v-60l239-178L0 64V0h75z'/%3E%3Cpath fill='%23C8102E' d='M424 281l216 159v40L369 281h55zM640 0v3L391 191l-2-44L590 0h50zM0 0l239 176h-60L0 42V0z'/%3E%3Cpath fill='%23FFF' d='M241 0v480h160V0H241zM0 160v160h640V160H0z'/%3E%3Cpath fill='%23C8102E' d='M0 193v96h640v-96H0zM273 0v480h96V0h-96z'/%3E%3C/svg%3E"); }
.flag-icon-sa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23007043' d='M0 0h640v480H0z'/%3E%3Cpath fill='%23FFF' d='M240 0h160v480H240z'/%3E%3C/svg%3E"); }
.flag-icon-krd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Crect width='640' height='160' fill='%23ED2024'/%3E%3Crect y='160' width='640' height='160' fill='%23FFF'/%3E%3Crect y='320' width='640' height='160' fill='%23278E3B'/%3E%3Ccircle cx='320' cy='240' r='60' fill='%23FFCC00'/%3E%3C/svg%3E"); }

[data-bs-theme="dark"] .flag-icon { box-shadow: 0 1px 3px rgba(255,255,255,0.2); }

/* سوئیچر زبان */
.language-switcher {
    position: relative;
}

.language-switcher .dropdown-toggle {
    border-radius: 30px;
    padding: 6px 12px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.language-switcher .dropdown-toggle:hover {
    background: var(--bs-tertiary-bg);
    border-color: #667eea;
}

.language-switcher .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--bs-border-color);
    padding: 8px 0;
    min-width: 180px;
    max-width: 90vw;
}

.language-switcher .dropdown-item {
    padding: 10px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bs-body-color);
}

.language-switcher .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
}

/* دکمه‌های موبایل */
.mobile-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: 0 0 auto;
}

.phone-btn-mobile {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
}

.phone-btn-mobile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.theme-toggle-btn-mobile {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--bs-body-color);
}

.theme-toggle-btn-mobile:hover {
    background: var(--bs-secondary-bg);
    transform: scale(1.05);
}

.mobile-buttons .language-switcher .dropdown-toggle {
    padding: 6px 14px;
    border-radius: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    font-weight: 500;
}

.mobile-buttons .language-switcher .dropdown-toggle .lang-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.mobile-buttons .language-switcher .dropdown-toggle .flag-icon {
    margin: 0;
}

.navbar-toggler {
    border: 1px solid var(--bs-border-color);
    padding: 8px 12px;
    background: var(--bs-tertiary-bg);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* نوار ناوبری ریسپانسیو */
@media (max-width: 991px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
    }
    
    .navbar-brand {
        flex-shrink: 0;
        margin-left: auto;
        margin-right: 0;
        text-align: right;
    }
    
    .mobile-buttons {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        flex: 0 0 auto;
        margin-right: 0;
        margin-left: auto;
        order: -1;
    }
    
    .navbar-toggler {
        margin-left: 0;
        margin-right: 8px;
        order: -2;
    }
    
    [dir="rtl"] .navbar .container {
        flex-direction: row;
    }
    
    [dir="rtl"] .navbar-brand {
        margin-right: auto;
        margin-left: 0;
        text-align: left;
    }
    
    [dir="rtl"] .mobile-buttons {
        margin-left: 0;
        margin-right: auto;
    }
    
    [dir="ltr"] .navbar .container {
        flex-direction: row;
    }
    
    [dir="ltr"] .navbar-brand {
        margin-right: auto;
        margin-left: 0;
    }
    
    [dir="ltr"] .mobile-buttons {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .mobile-buttons {
        gap: 6px;
    }
    
    .phone-btn-mobile,
    .theme-toggle-btn-mobile {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .mobile-buttons .language-switcher .dropdown-toggle {
        padding: 5px 10px;
    }
    
    .mobile-buttons .language-switcher .dropdown-toggle .lang-text {
        font-size: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 0.95rem;
        max-width: 35vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-toggler {
        padding: 6px 10px;
    }
}

/* دکمه پرش به محتوا */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

.skip-to-content:focus {
    top: 0;
}

/* نوار ناوبری مدرن */
.navbar-modern {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.6rem;
        max-width: none;
    }
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 8px 12px !important;
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .nav-link {
        padding: 8px 16px !important;
        font-size: 1rem;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* بخش قهرمان */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
}

.hero-bg-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
    background: radial-gradient(circle, rgba(102,126,234,0.08) 0%, transparent 70%);
}

@media (min-width: 768px) {
    .hero-bg-shape {
        width: 800px;
        height: 800px;
        top: -200px;
        right: -200px;
    }
}

[dir="ltr"] .hero-bg-shape {
    right: auto;
    left: -100px;
}

@media (min-width: 768px) {
    [dir="ltr"] .hero-bg-shape {
        left: -200px;
    }
}

.hero-profile-img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: morphing 8s ease-in-out infinite;
    border: 4px solid var(--bs-body-bg);
}

@media (min-width: 576px) {
    .hero-profile-img {
        width: 280px;
        height: 280px;
    }
}

@media (min-width: 992px) {
    .hero-profile-img {
        width: 320px;
        height: 320px;
    }
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.text-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* دکمه‌ها */
.btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--bs-body-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .theme-toggle-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
}

.theme-toggle-btn:hover {
    background: var(--bs-tertiary-bg);
}

.phone-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    border-radius: 30px;
    padding: 6px 12px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

@media (min-width: 576px) {
    .phone-btn {
        padding: 8px 16px !important;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .phone-btn {
        padding: 8px 20px !important;
        gap: 8px;
    }
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16,185,129,0.3);
}

/* بخش‌ها */
.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

@media (min-width: 992px) {
    .section {
        padding: 100px 0;
    }
}

/* بخش درباره من */
.about-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.info-card {
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
}

@media (min-width: 768px) {
    .info-card {
        padding: 20px;
        margin-bottom: 20px;
    }
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    color: #667eea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .info-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
}

/* تحصیلات */
.education-card {
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.education-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    color: #667eea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* زبان‌ها */
.language-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-radius: 40px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.language-badge:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
}

.language-name {
    font-weight: 600;
}

.language-level {
    font-size: 0.85rem;
    color: #667eea;
}

/* جوایز */
.award-card {
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    height: 100%;
    text-align: center;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.award-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f59e0b20, #f9731620);
    color: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

.award-year {
    font-size: 0.85rem;
    color: #f59e0b;
    font-weight: 600;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 20px;
}

/* مهارت‌ها */
.skill-item {
    margin-bottom: 25px;
}

.skill-title {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 5px;
}

@media (min-width: 768px) {
    .skill-title {
        font-size: 1rem;
    }
}

.progress-custom {
    height: 8px;
    border-radius: 10px;
    background-color: var(--bs-tertiary-bg);
}

.progress-bar-custom {
    border-radius: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: relative;
    transition: width 1.5s ease-in-out;
}

.progress-bar-custom::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 14px;
    height: 14px;
    background-color: white;
    border: 3px solid #667eea;
    border-radius: 50%;
}

[dir="ltr"] .progress-bar-custom::after {
    right: auto;
    left: 0;
}

/* تایم‌لاین */
.timeline-modern {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .timeline-modern {
        max-width: 1000px;
    }
}

.timeline-modern::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    top: 0;
    bottom: 0;
    right: 16px;
    border-radius: 2px;
}

[dir="ltr"] .timeline-modern::after {
    right: auto;
    left: 16px;
}

@media (min-width: 768px) {
    .timeline-modern::after {
        right: 50%;
        margin-right: -2px;
    }
    [dir="ltr"] .timeline-modern::after {
        left: 50%;
        margin-left: -2px;
    }
}

.timeline-item-mod {
    padding: 10px 20px 10px 40px;
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

[dir="ltr"] .timeline-item-mod {
    padding: 10px 40px 10px 20px;
}

@media (min-width: 768px) {
    .timeline-item-mod {
        width: 50%;
        padding: 10px 40px;
    }
    .timeline-item-mod.left-mod {
        right: 0;
    }
    .timeline-item-mod.right-mod {
        right: 50%;
    }
    [dir="ltr"] .timeline-item-mod.left-mod {
        left: 0;
        right: auto;
    }
    [dir="ltr"] .timeline-item-mod.right-mod {
        left: 50%;
        right: auto;
    }
}

.timeline-item-mod::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: 8px;
    top: 32px;
    background-color: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    z-index: 1;
}

[dir="ltr"] .timeline-item-mod::after {
    right: auto;
    left: 8px;
}

@media (min-width: 768px) {
    .timeline-item-mod::after {
        width: 20px;
        height: 20px;
        right: -10px;
    }
    [dir="ltr"] .timeline-item-mod::after {
        left: -10px;
        right: auto;
    }
    .timeline-item-mod.right-mod::after {
        left: auto;
        right: -10px;
    }
    [dir="ltr"] .timeline-item-mod.right-mod::after {
        left: -10px;
        right: auto;
    }
}

.timeline-item-mod:hover::after {
    background-color: #667eea;
    box-shadow: 0 0 15px rgba(102,126,234,0.5);
}

.timeline-card {
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--bs-border-color);
}

@media (min-width: 768px) {
    .timeline-card {
        padding: 30px;
    }
}

.timeline-card:hover {
    transform: translateY(-5px);
}

.timeline-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(102,126,234,0.1);
    color: #667eea;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .timeline-date-badge {
        padding: 6px 16px;
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

.date-gregorian {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* پروژه‌ها */
.project-card-mod {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s;
    height: 100%;
    border: 1px solid var(--bs-border-color);
}

.project-card-mod:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102,126,234,0.15);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-card-mod:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card-mod:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .project-info {
        padding: 20px 24px;
    }
}

/* فوتر */
.footer-phone-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    border-radius: 30px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer-phone-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

.footer-phone-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16,185,129,0.4);
}

/* عناوین بخش‌ها */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 32px;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}

@media (min-width: 992px) {
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 48px;
    }
}

.title-underline {
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
    margin: 0 auto 20px;
}

@media (min-width: 768px) {
    .title-underline {
        width: 60px;
        height: 4px;
        margin-bottom: 24px;
    }
}

/* ستاره‌های امتیاز */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rating-stars i {
    font-size: 24px;
    cursor: pointer;
    color: #fbbf24;
}

@media (min-width: 768px) {
    .rating-stars i {
        font-size: 28px;
    }
}

.rating-stars i:hover {
    transform: scale(1.15);
}

/* مودال پروژه */
.project-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.project-modal-content {
    margin: 10% auto;
    padding: 0;
    width: 95%;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bs-body-bg);
}

@media (min-width: 576px) {
    .project-modal-content {
        width: 90%;
        margin: 5% auto;
        border-radius: 24px;
    }
}

.project-modal-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

@media (min-width: 576px) {
    .project-modal-header {
        padding: 20px 25px;
        border-radius: 24px 24px 0 0;
    }
}

.project-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

@media (min-width: 576px) {
    .project-modal-title {
        font-size: 1.5rem;
    }
}

.close-project-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-project-modal:hover {
    background: rgba(255,255,255,0.2);
}

.project-modal-body {
    padding: 16px;
}

@media (min-width: 576px) {
    .project-modal-body {
        padding: 25px;
    }
}

.project-modal-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 16px;
}

@media (min-width: 576px) {
    .project-modal-image {
        margin-bottom: 20px;
    }
}

.project-detail-item {
    margin-bottom: 16px;
}

@media (min-width: 576px) {
    .project-detail-item {
        margin-bottom: 20px;
    }
}

.project-detail-label {
    font-weight: 700;
    margin-bottom: 6px;
    color: #667eea;
    font-size: 0.9rem;
}

.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tech-badge {
    background: linear-gradient(135deg, #667eea20, #764ba220);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

@media (min-width: 576px) {
    .tech-badge {
        padding: 6px 16px;
        font-size: 14px;
    }
}

/* فوتر */
footer .container > .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    footer .container > .row {
        flex-direction: row;
        gap: 0;
    }
}

footer nav {
    flex-wrap: wrap;
}

footer nav a {
    font-size: 0.85rem;
    padding: 4px 8px;
}

@media (min-width: 768px) {
    footer nav a {
        font-size: 0.9rem;
        padding: 0;
    }
}

/* ============================================
   تنظیمات تم - اصلاح شده برای رفع مشکل متن خاکستری
   ============================================ */

/* اطمینان از اعمال رنگ متن در حالت دارک */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .section,
[data-bs-theme="dark"] .container,
[data-bs-theme="dark"] main,
[data-bs-theme="dark"] footer {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span:not(.badge):not(.flag-icon):not(.language-level):not(.award-year),
[data-bs-theme="dark"] div:not(.info-icon):not(.award-icon):not(.education-icon),
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .section-title,
[data-bs-theme="dark"] .section-subtitle,
[data-bs-theme="dark"] .skill-title span,
[data-bs-theme="dark"] .project-info h3,
[data-bs-theme="dark"] .timeline-card h3,
[data-bs-theme="dark"] .timeline-card h4,
[data-bs-theme="dark"] .info-card h4,
[data-bs-theme="dark"] .info-card p,
[data-bs-theme="dark"] .education-card h3,
[data-bs-theme="dark"] .education-card p,
[data-bs-theme="dark"] .award-card h3,
[data-bs-theme="dark"] .award-card p,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .content-card,
[data-bs-theme="dark"] .info-card,
[data-bs-theme="dark"] .timeline-card,
[data-bs-theme="dark"] .project-card-mod {
    color: #f1f5f9 !important;
}

/* متن‌های کم رنگ در حالت دارک */
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] small.text-muted,
[data-bs-theme="dark"] .small.text-muted,
[data-bs-theme="dark"] .date-gregorian,
[data-bs-theme="dark"] .project-date {
    color: #94a3b8 !important;
}

/* کارت‌ها در حالت دارک */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .content-card,
[data-bs-theme="dark"] .info-card,
[data-bs-theme="dark"] .timeline-card,
[data-bs-theme="dark"] .project-card-mod,
[data-bs-theme="dark"] .education-card,
[data-bs-theme="dark"] .award-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* لینک‌ها در حالت دارک */
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #90cdf4 !important;
}

[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #63b3ed !important;
}

/* تنظیمات حالت روشن */
[data-bs-theme="light"] body,
[data-bs-theme="light"] .section,
[data-bs-theme="light"] .container,
[data-bs-theme="light"] main,
[data-bs-theme="light"] footer {
    color: #1e293b !important;
}

[data-bs-theme="light"] .text-muted,
[data-bs-theme="light"] small.text-muted {
    color: #64748b !important;
}