/* ========== متغیرها و تنظیمات پایه ========== */
:root {
    --bg-body: #f0f2f5;
    --card-bg: #ffffff;
    --text-color: #1e2a3a;
    --sidebar-bg: linear-gradient(135deg, #1e3c72, #2a5298);
    --border-color: #e0e0e0;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --primary: #0d6efd;
}
@font-face {
  font-family: "vazir";
  src: url("../fonts/vazir.eot") format("eot"),
    url("../fonts/vazir.ttf") format("truetype"),
    url("../fonts/vazir.woff") format("woff2"),
    url("../fonts/vazir.woff2") format("woff");
}

body.dark {
    --bg-body: #121212;
    --card-bg: #1e1e2f;
    --text-color: #e0e0e0;
    --border-color: #2d2d44;
    --shadow: 0 10px 25px rgba(0,0,0,0.3);
}

body {
    font-family: "vazir";
    background: var(--bg-body);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background 0.3s, color 0.3s;
}



/* ========== سایدبار ثابت سمت راست ========== */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    padding: 30px 20px;
    box-shadow: -2px 0 15px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s;
}

.content-area {
    margin-right: 280px;
    padding: 30px;
    min-height: 100vh;
}
.social a{
    color: #fff;
    padding: 5px;

}
.social a:hover{
    color: #0b5ed7;
    background-color: #fff;
    border-radius: 50%;
}

/* ========== کارت‌ها ========== */
.resume-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}


.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.12);
    
}

/* ========== لینک‌های سایدبار ========== */
.nav-link-custom {
    display: block;
    padding: 12px 18px;
    margin: 8px 0;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.nav-link-custom i {
    margin-left: 12px;
    width: 28px;
}

.nav-link-custom:hover {
    background: rgba(0,180,216,0.3);
    color: white;
    transform: translateX(-5px);
}

.nav-link-custom.active {
    background: #00b4d8;
    color: white;
}

/* ========== دکمه تم داخل سایدبار ========== */
.theme-toggle-sidebar {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 30px;
    padding: 10px 16px;
    color: white;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
    margin-top: 20px;
}

.theme-toggle-sidebar:hover {
    background: rgba(255,255,255,0.4);
}

/* ========== آواتار ========== */
.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00b4d8;
    margin-bottom: 15px;
}

/* ========== تایم‌لاین ========== */
.timeline-item {
    border-right: 3px solid #00b4d8;
    padding-right: 20px;
    margin-bottom: 25px;
    position: relative;
}

.timeline-item::before {
    content: "●";
    position: absolute;
    right: -10px;
    top: 0;
    color: #00b4d8;
}
/* ========== صفحه خانه (Home) ========== */
.home-container {
    max-width: 900px;
    margin: 0 auto;
}

.home-card {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-body));
    border-radius: 40px;
    padding: 50px 30px;
    box-shadow: var(--shadow);
}

.home-avatar-wrapper {
    margin-bottom: 25px;
}

.home-avatar {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #0d6efd;
    box-shadow: 0 10px 30px rgba(13,110,253,0.3);
    transition: transform 0.3s;
}

.home-avatar:hover {
    transform: scale(1.05);
}

.home-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.home-title {
    font-size: 1.1rem;
    color: #0d6efd;
    font-weight: 500;
}

.home-bio {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
    line-height: 1.8;
}

/* آیکون‌های شبکه‌های اجتماعی */
.home-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-body);
    border-radius: 50%;
    color: #0d6efd;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.social-icon-circle:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-5px);
    border-color: #0d6efd;
}

/* دکمه‌های دعوت به اقدام */
.btn-home-primary,
.btn-home-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0 8px;
}

.btn-home-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    border: none;
}

.btn-home-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13,110,253,0.4);
    color: white;
}

.btn-home-secondary {
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.btn-home-secondary:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-3px);
}

/* باکس‌های آمار */
.home-stat-box {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.home-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.home-stat-box h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 5px;
}

.home-stat-box p {
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .home-name {
        font-size: 1.6rem;
    }
    
    .btn-home-primary,
    .btn-home-secondary {
        padding: 8px 20px;
        font-size: 14px;
        margin: 5px;
    }
    
    .social-icon-circle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .home-avatar {
        width: 120px;
        height: 120px;
    }
}

/* ========== پروژه‌ها ========== */
.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.project-img:hover {
    transform: scale(1.03);
}

/* ========== تگ‌های مهارت ========== */
.skill-badge {
    display: inline-block;
    padding: 8px 18px;
    margin: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}

.skill-badge:hover {
    transform: translateY(-3px);
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .content-area {
        margin-right: 0;
    }
}

/* ========== افکت محو شدن صفحات ========== */
.page-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== دکمه ارسال فرم ========== */
.btn-send {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,110,253,0.3);
}

/* ========== اینپوت‌ها ========== */
.form-control-custom {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-body);
    color: var(--text-color);
    transition: all 0.3s;
}

.form-control-custom:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

/* ========== باکس‌های خدمات ========== */
.service-box {
    background: var(--card-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

.service-link:hover {
    color: #0b5ed7;
    transform: translateX(-5px);
}


/* ========== باکس‌های آمار ========== */
.stat-box {
    background: var(--card-bg);
    border-radius: 20px;
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.stat-box:hover {
    transform: translateY(-5px);
}

/* ========== جدول قیمتی ========== */
.pricing-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border: 2px solid #0d6efd;
    transform: scale(1.02);
}


.popular-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #0d6efd;
    color: white;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
}

.btn-pricing {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    margin-top: 15px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}

/* ========== مودال پاپ‌آپ ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    margin: 15% auto;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
    transition: 0.2s;
}

.close-modal:hover {
    color: #dc3545;
}

/* حالت تاریک مودال */
body.dark .modal-content {
    background: #1e1e2f;
    color: #e0e0e0;
}

