/* ==============================================
   استایل اصلی سایت - رزومه شخصی
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Yekan', 'Shabnam', 'Taha', Tahoma, sans-serif;
    padding-top: 80px;
    transition: all 0.3s ease;
}


/* ===== تم لایت ===== */
body.light {
    background-color: #f5f7fa;
    color: #1a1a2e;
}

body.light .header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

body.light .nav-list li a {
    color: #333;
}

body.light .nav-list li a i {
    color: #667eea;
}

body.light .nav-list li a:hover {
    color: #667eea !important;
}

body.light .nav-list li a:hover i {
    color: #667eea;
}

body.light .icon-btn {
    background: #e8eef5;
    color: #667eea;
}

body.light .icon-btn:hover {
    background: #667eea;
    color: white;
}

body.light .icon-btn:hover i {
    color: white;
}

body.light .menu-toggle {
    color: #333;
}

body.light .mobile-icons {
    border-top-color: #e0e0e0;
}

body.light section:nth-child(even) {
    background-color: #ffffff;
}

body.light .progress {
    background-color: #e0e0e0;
}

body.light .timeline-content {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.light .certificate-card {
    background: white;
}

body.light .contact-card {
    background: white;
}

/* ==============================================
                    تم دارک 
============================================== */

body.dark {
    background-color: #0f0f1a;
    color: #ffffff;
}

body.dark .header {
    background-color: #1a1a2e;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

body.dark .nav-list li a {
    color: #e0e0e0;
}

body.dark .nav-list li a i {
    color: #ff8c42;
}

body.dark .nav-list li a:hover {
    color: #ff8c42 !important;
}

body.dark .nav-list li a:hover i {
    color: #ff8c42;
}

body.dark .icon-btn {
    background: #2a2a4a;
    color: #ff8c42;
}

body.dark .icon-btn:hover {
    background: #ff8c42;
    color: #1a1a2e;
}

body.dark .icon-btn:hover i {
    color: #1a1a2e;
}

body.dark .menu-toggle {
    color: #e0e0e0;
}

body.dark .mobile-icons {
    border-top-color: #2a2a4a;
}

body.dark section:nth-child(even) {
    background-color: #0a0a15;
}

body.dark .progress {
    background-color: #2a2a4a;
}

body.dark .timeline-content {
    background: #1a1a2e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark .certificate-card {
    background: #1a1a2e;
}

body.dark .contact-card {
    background: #1a1a2e;
}

/* h1, h2, h3, h4, h5, h6 {
    font-family: 'Shabnam', 'Vazir', 'Taha', 'Yekan', sans-serif;
    font-weight: bold;
} */

/* فونت طاها برای متن‌های خاص */
/* .persian-text {
    font-family: 'Taha', 'Vazir', sans-serif;
} */

/* فونت یکان برای عناوین */
/* .yekan-text {
    font-family: 'Yekan', 'Vazir', sans-serif;
} */
/* ==============================================
                 هدر با عرض 100%    
   ============================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    padding: 15px 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* بخش اول: اسم سایت */
.logo {
    flex: 0 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    white-space: nowrap;
}

/* دکمه همبرگر - مخفی در دسکتاپ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        /* نمایش در موبایل */
    }

    /* منو در موبایل - کشویی */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: inherit;
        flex-direction: column;
        justify-content: flex-start;
        transition: left 0.3s ease;
        z-index: 999;
    }

    body.light .nav-menu {
        background-color: #ffffff;
    }

    body.dark .nav-menu {
        background-color: #1a1a2e;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* بخش دوم: منو - وسط */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-list li a {
    padding: 8px 18px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s;
    display: inline-block;
}

.nav-list li a i {
    margin-right: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

/* بخش سوم: آیکون‌ها */
.header-icons {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1.1rem;
}

.icon-btn:hover {
    transform: translateY(-2px);
}

/* دکمه همبرگر */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* آیکون‌های موبایل داخل منو */
.mobile-icons {
    display: none;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    body {
        padding-top: 65px;
    }

    .header-container {
        padding: 12px 4%;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: inherit;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    body.light .nav-menu {
        background-color: #ffffff;
    }

    body.dark .nav-menu {
        background-color: #1a1a2e;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 30px 20px;
    }

    .nav-list li a {
        display: block;
        padding: 12px 25px;
        font-size: 1rem;
    }

    .header-icons {
        display: none;
    }

    .mobile-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
        padding-top: 20px;
    }

    .mobile-icons .icon-btn {
        width: auto;
        padding: 8px 20px;
        gap: 8px;
    }

    .logo {
        order: 1;
    }
}

@media (min-width: 1600px) {
    .header-container {
        padding: 15px 5%;
    }
}

@media (min-width: 2000px) {
    .header-container {
        padding: 15px 8%;
    }
}

/* ==============================================
                    هیرو سکشن
   ============================================== */

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

body.dark .hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}


.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

/* بخش چپ - متن */
.hero-content {
    flex: 1;
    text-align: center;
    /* وسط چین */
}

.hero-greeting {
    font-size: 1.1rem;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

body.dark .hero-greeting {
    color: #ff8c42;
}

.hero-name {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a2e;
}

body.dark .hero-name {
    color: #ffffff;
}

/* متن حرکتی */
.hero-typing {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.typing-text {
    color: #667eea;
}

body.dark .typing-text {
    color: #ff8c42;
}

.typing-cursor {
    color: #667eea;
    animation: blink 0.7s infinite;
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* نام و پسوند */
.hero-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.hero-name {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.hero-suffix {
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.7;
    color: #1a1a2e;
}

body.dark .hero-name {
    color: #ffffff;
}

body.dark .hero-suffix {
    color: #ffffff;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .hero-suffix {
        font-size: 1.5rem;
    }

}

@media (max-width: 576px) {
    .hero-name {
        font-size: 1.6rem;
    }

    .hero-suffix {
        font-size: 1.2rem;
    }

}

/* دکمه‌ها */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* بخش راست - عکس */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.profile-border {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: 1;
    animation: borderMove 4s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes borderMove {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    }
}

/* ===== ریسپانسیو هیرو ===== */
@media (max-width: 992px) {
    .hero {
        padding: 50px 0;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-typing {
        font-size: 1.2rem;
    }

    .profile-image-wrapper {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }

    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero-name {
        font-size: 1.6rem;
    }

    .hero-typing {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* ==============================================
                 درباره من
   ============================================== */

.about-section {
    padding: 80px 0;
}

.about-text {
    line-height: 1.8;
    font-size: 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

/* دو ستون با آیکون */
.about-info-row {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-info-col {
    flex: 1;
}

.info-list-icon {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list-icon li {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e0e0e0;
}

body.dark .info-list-icon li {
    border-bottom-color: #2a2a4a;
}

.info-icon-about {
    width: 32px;
    color: #667eea;
    font-size: 1rem;
    flex-shrink: 0;
}

body.dark .info-icon-about {
    color: #ff8c42;
}

.info-label-icon {
    width: 100px;
    font-weight: 500;
    color: #666;
    flex-shrink: 0;
}

body.dark .info-label-icon {
    color: #aaa;
}

.info-value-icon {
    flex: 1;
    color: #333;
    word-break: break-word;
}

body.dark .info-value-icon {
    color: #eee;
}

.contact-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

@media (max-width: 1400px) {

    .about-text,
    .about-info-row {
        margin-left: 20px;
        margin-right: 20px;
    }

    .about-text {
        line-height: 1.8;
        font-size: 1rem;
        text-align: center;
        max-width: 1200px;
        margin: 0 auto 50px auto;
    }

    /* دو ستون با آیکون */
    .about-info-row {
        display: flex;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (max-width: 1200px) {

    .about-text,
    .about-info-row {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {

    .about-text,
    .about-info-row {
        margin-left: 20px;
        margin-right: 20px;
    }

    .about-info-row {
        flex-direction: column;
        gap: 20px;

    }

    .info-list-icon li {
        flex-wrap: wrap;
    }

    .info-icon-about {
        width: 30px;
    }

    .info-label-icon {
        width: 90px;
    }
}

@media (max-width: 576px) {

    .about-text,
    .about-info-row {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* ==============================================
                    مهارت ها
   ============================================== */

.skills-section {
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

body.dark .skill-name {
    color: #eee;
}

.skill-percent {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e0e0e0;
    overflow: hidden;
}

body.dark .progress {
    background-color: #2a2a4a;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s ease;
}

@media (max-width: 992px) {

    .skills-grid {
        padding-left: 20px;
        padding-right: 20px;

    }
}


/* ریسپانسیو - فقط سایز موبایل */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        /* اضافه کردن فاصله از کناره‌ها */
    }

    .skill-item {
        width: 100%;
    }

    .skill-name {
        font-size: 0.9rem;
    }
}

/* ==============================================
                   تجربیات کاری
   ============================================== */
/* ===== تجربیات کاری ===== */
.experiences-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

/* نقطه وسط خط */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
    z-index: 2;
    top: 20px;
}

/* محتوای سمت چپ */
.timeline-content.left {
    width: 45%;
    margin-left: 0;
    margin-right: auto;
    padding-right: 40px;
}

/* محتوای سمت راست */
.timeline-content.right {
    width: 45%;
    margin-left: auto;
    margin-right: 0;
    padding-left: 40px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

body.dark .timeline-content {
    background: #1a1a2e;
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

body.dark .timeline-title {
    color: white;
}

.timeline-company {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 12px;
    font-weight: 500;
}

body.dark .timeline-company {
    color: #ff8c42;
}

.timeline-description {
    margin-top: 10px;
}

.desc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

body.dark .desc-item {
    color: #ccc;
}

.desc-item i {
    color: #667eea;
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

body.dark .desc-item i {
    color: #ff8c42;
}

/* ===== ریسپانسیو ===== */

@media (max-width: 1200px) {
    .timeline {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
        .timeline {
        padding-left: 0;
        padding-right: 20px;
    }
    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-dot {
        left: 20px;
        transform: none;
    }

    .timeline-content.left,
    .timeline-content.right {
        width: calc(100% - 50px);
        margin-left: 50px;
        padding: 15px;
    }

    .timeline-content.left {
        padding-right: 15px;
    }

    .timeline-content.right {
        padding-left: 15px;
    }
}

/* ===== RTL ===== */
body[dir="rtl"] .timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

body[dir="rtl"] .timeline-dot {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

body[dir="rtl"] .timeline-content.left {
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
    padding-left: 40px;
}

body[dir="rtl"] .timeline-content.right {
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    padding-right: 40px;
}

@media (max-width: 768px) {
    body[dir="rtl"] .timeline::before {
        left: auto;
        right: 20px;
        transform: none;
    }

    body[dir="rtl"] .timeline-dot {
        left: auto;
        right: 20px;
        transform: none;
    }

    body[dir="rtl"] .timeline-content.left,
    body[dir="rtl"] .timeline-content.right {
        margin-left: 0;
        margin-right: 50px;
    }
}

/* ==============================================
                  مدارک تحصیلی
   ============================================== */
/* ===== مدارک تحصیلی و زبان‌ها ===== */
.education-section {
    padding: 80px 0;
}

.education-wrapper {
    display: flex;
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.education-col {
    flex: 1;
    min-width: 0;
}

.education-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.education-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

body.dark .education-box {
    background: #1a1a2e;
}

.box-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

body.dark .box-header {
    border-bottom-color: #ff8c42;
}

.box-header i {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 8px;
}

body.dark .box-header i {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
}

.box-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

body.dark .box-header h3 {
    color: #fff;
}

/* ===== مدارک تحصیلی ===== */
.edu-item {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    transition: all 0.3s;
}

.edu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body.dark .edu-item {
    background: #0f0f1a;
}

.edu-year {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 4px 14px;
    border-radius: 25px;
    font-size: 0.7rem;
    margin-bottom: 12px;
}

body.dark .edu-year {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

.edu-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

body.dark .edu-title {
    color: #fff;
}

.edu-place {
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 8px;
    font-weight: 500;
}

body.dark .edu-place {
    color: #ff8c42;
}

.edu-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

body.dark .edu-desc {
    color: #ccc;
}

/* ===== زبان‌ها ===== */
.lang-item {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    transition: all 0.3s;
}

.lang-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body.dark .lang-item {
    background: #0f0f1a;
}

.lang-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    color: #667eea;
}

body.dark .lang-name {
    color: #ff8c42;
    border-bottom-color: #2a2a4a;
}

.skill-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.skill-label {
    width: 70px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
}

body.dark .skill-label {
    color: #ccc;
}

.skill-progress-line {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

body.dark .skill-progress-line {
    background: #2a2a4a;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
}

body.dark .skill-progress-fill {
    background: linear-gradient(90deg, #ff8c42, #ff6b35);
}

.skill-value {
    width: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #667eea;
}

body.dark .skill-value {
    color: #ff8c42;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .education-wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .education-col {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .education-section {
        padding: 50px 0;
    }

    .education-box {
        padding: 18px;
    }

    .edu-item,
    .lang-item {
        padding: 15px;
    }

    .skill-line {
        gap: 8px;
    }

    .skill-label {
        width: 60px;
        font-size: 0.7rem;
    }
}

/* ==============================================
                 گواهینامه ها 
   ============================================== */
/* ===== گواهینامه‌ها ===== */
.certificates-section {
    padding: 80px 0;
}

/* گرید دو ستونه برای دسکتاپ */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* کارت گواهینامه */
.certificate-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.dark .certificate-card {
    background: #1a1a2e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark .certificate-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* عکس */
.certificate-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.02);
}

/* placeholder */
.certificate-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea20, #764ba220);
}

.certificate-placeholder i {
    font-size: 4rem;
    color: #667eea;
}

body.dark .certificate-placeholder i {
    color: #ff8c42;
}

/* اطلاعات پایین کارت - همیشه نمایش داده میشود */
.certificate-info {
    padding: 20px;
    text-align: center;
    background: #fff;
    flex-shrink: 0;
}

body.dark .certificate-info {
    background: #1a1a2e;
}

.certificate-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    display: block;
}

body.dark .certificate-title {
    color: #fff;
}

.certificate-issuer {
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.dark .certificate-issuer {
    color: #ff8c42;
}

.certificate-year {
    font-size: 0.75rem;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

body.dark .certificate-year {
    color: #aaa;
}

/* اسلایدر Swiper */
.certificates-slider {
    display: none;
    max-width: 100%;
    padding: 20px 40px;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    height: auto;
}

.swiper-pagination-bullet-active {
    background: #667eea !important;
}

body.dark .swiper-pagination-bullet {
    background: #fff;
}

.swiper-button-prev,
.swiper-button-next {
    color: #667eea !important;
}

body.dark .swiper-button-prev,
body.dark .swiper-button-next {
    color: #ff8c42 !important;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .certificates-grid {
        gap: 25px;
        padding: 0 15px;
    }

    .certificate-image {
        height: 230px;
    }
}

@media (max-width: 768px) {
    .certificates-section {
        padding: 50px 0;
    }

    /* مخفی کردن گرید در موبایل */
    .certificates-grid {
        display: none;
    }

    /* نمایش اسلایدر در موبایل */
    .certificates-slider {
        display: block;
    }

    .certificate-image {
        height: 200px;
    }

    .certificate-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .certificates-slider {
        padding: 15px 30px;
    }

    .certificate-image {
        height: 180px;
    }

    .certificate-info {
        padding: 15px;
    }

    .certificate-title {
        font-size: 0.85rem;
    }

    .certificate-issuer {
        font-size: 0.75rem;
    }
}

/* ==============================================
                 نمونه کار ها 
   ============================================== */

/* ===== نمونه کارها ===== */
.portfolio-section {
    padding: 80px 0;
}

/* گرید 4 ستونه */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    transition: bottom 0.3s;
    display: flex;
    align-items: flex-end;
}

.portfolio-card:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.portfolio-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 6px 15px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.portfolio-btn:hover {
    transform: translateY(-2px);
}

/* اسلایدر موبایل */
.portfolio-slider {
    display: none;
    padding: 20px 40px;
}

/* مودال */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.portfolio-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.portfolio-modal-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.portfolio-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

.portfolio-modal-info {
    text-align: center;
    margin-top: 20px;
    color: white;
}

.portfolio-modal-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 50px 0;
    }

    .portfolio-grid {
        display: none;
    }

    .portfolio-slider {
        display: block;
    }
}

@media (max-width: 480px) {
    .portfolio-slider {
        padding: 15px 30px;
    }
}

/* ==============================================
                تماس با من
   ============================================== */

/* ===== تماس با من ===== */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

/* فرم تماس */
.contact-form-box,
.contact-info-box {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

body.dark .contact-form-box,
body.dark .contact-info-box {
    background: #1a1a2e;
}

.contact-form-box:hover,
.contact-info-box:hover {
    transform: translateY(-5px);
}

.contact-icon-title {
    text-align: center;
    margin-bottom: 25px;
}

.contact-icon-title i {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.dark .contact-icon-title i {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
}

.contact-icon-title h3 {
    font-size: 1.3rem;
    margin-top: 8px;
    color: #333;
}

body.dark .contact-icon-title h3 {
    color: #fff;
}

/* فرم */
.form-group {
    margin-bottom: 18px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #fff;
}

body.dark .form-control {
    background: #0f0f1a;
    border-color: #2a2a4a;
    color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark .form-control:focus {
    border-color: #ff8c42;
}

textarea.form-control {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

body.dark .submit-btn {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

/* اطلاعات تماس */
.info-items {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.info-item:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.dark .info-item {
    background: #0f0f1a;
}

body.dark .info-item:hover {
    background: #1a1a2e;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .info-icon {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

.info-icon i {
    font-size: 1.2rem;
    color: white;
}

.info-detail h4 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.info-detail p {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

body.dark .info-detail p {
    color: #fff;
}

/* شبکه‌های اجتماعی */
.social-links h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
    color: #555;
}

body.dark .social-links h4 {
    color: #ccc;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
    transition: all 0.3s;
}

body.dark .social-icons a {
    background: #2a2a4a;
    color: #ff8c42;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

body.dark .social-icons a:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    color: white;
}

/* نقشه */
.contact-map {
    max-width: 1200px;
    margin: 0 auto;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .contact-section {
        padding: 50px 0;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }

    .contact-form-box,
    .contact-info-box {
        padding: 20px;
    }

    .info-item {
        padding: 10px;
    }

    .info-icon {
        width: 45px;
        height: 45px;
    }
}

/* ===== پیغام سفارشی ===== */
.custom-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    animation: slideIn 0.5s ease forwards;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-30px);
        display: none;
    }
}

.success-alert {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.error-alert {
    background: linear-gradient(135deg, #eb3349, #f45c43);
    color: white;
}

.alert-icon i {
    font-size: 2rem;
}

.alert-content h4 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.alert-content p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.alert-close:hover {
    opacity: 1;
}

/* ==============================================
                  فوتر 
   ============================================== */

.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-social {
    text-align: center;
    margin-bottom: 30px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #667eea;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

/* ==============================================
                  دکمه اسکرول 
   ============================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ===== انیمیشن ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}