/* تنظیمات عمومی */


body {
    margin: 0;
    padding: 0;
    font-family: 'Vazir', sans-serif;
   
    background: linear-gradient(90deg, #293b67, #00081c);
    color: #f3e3be;
    direction: rtl;
    overflow-x: hidden;
    /* جلوگیری از اسکرول افقی */
}

/* لینک‌ها */
a {
    text-decoration: none;
    color: #e0c68b;
}

a:hover {
    color: #fff;
}

/* هدر */


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(30, 30, 47, 0.7);
    /* شیشه‌ای */
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo img {
    height: 50px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu ul li a {
    font-family: 'Vazir', sans-serif;
    text-decoration: none;
    color: #f5f5f5;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu ul li a:hover {
    color: #007BFF;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #f5f5f5;
    border-radius: 2px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .nav-menu ul {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(30, 30, 47, 0.9);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        padding: 5px 0;
        border-radius: 0 0 15px 15px;
    }

    .nav-menu ul.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* بخش معرفی */
.intro {
    display: flex;
    flex-wrap: wrap;
    /* ریسپانسیو */
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 130px 20px ;
    text-align: center;
}

.profile-pic img {
    width: 200px;
    border-radius: 10px;
    max-width: 100%;
}
.profile-pic img:hover{box-shadow:2px 2px 4px #bbdfff;}
.intro-text {
    max-width: 500px;
}

.intro-text h1 {
    font-family: 'Lalezar', 'cursive';
    font-size: 36px;
    margin: 0 0 20px 0;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.6;
}

.download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #e0c68b;
    color: #0e1525;
    border-radius: 5px;
    font-weight: bold;
}

.download-btn:hover {
    background-color: #d1b269;
}

/* بخش مهارت‌ها */
.skills {
    padding: 50px 20px;
}

.skills h2 {
    font-family: 'Lalezar', cursive;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.skills h3 {
    font-family: 'Lalezar', cursive;
    font-size: 23px;
    margin-bottom: 30px;
    text-align: center;
    display: block;
    width: 100%;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    margin-bottom: 5px;
}

.skill-bar {
    background-color: #2d4671;
    border-radius: 5px;
    height: 15px;
    width: 100%;
    text-align: center;
}

.skill-level {
    height: 100%;
    background-color: #e0c68b;
    border-radius: 5px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    text-align: center;
    margin: 0 20px;
}

.card {
    background: #233e66ac;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s;
    width: 300px;
    max-width: 100%;
    text-align: center;
    padding-top: 10px;
    font-family: 'vazir';
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 2px 2px 5px #2d4671;
}

.card img {
    max-width: 90%;
    display: block;
    margin: 0 auto;
    height: auto;
    border-radius: 10px;

}

.card-text {
    font-size: 1rem;
    color: #e0c68b;
}

/* 📱 ریسپانسیو */
@media (max-width: 992px) {
    header {
        padding: 15px 20px;
    }

    .intro-text h1 {
        font-size: 28px;
    }

    .intro-text p {
        font-size: 16px;
    }

    .card {
        width: 30%;
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .intro {
        padding: 90px 10px 40px 10px;
    }

    .intro-text h1 {
        font-size: 24px;
    }


    .card {
        width:45%;

    }
    .card1 {
      
        width: 1000px;
        max-width: 550px;
        text-align: center;
        padding-top: 10px;
        font-family: 'vazir';
    
    }
    .profile-pic img {
        width:110px;
        border-radius: 10px;
        max-width: 100%;
        margin-top: 10%;
    }

}

.achievements {
    text-align: center;
    margin: 50px 0;
    font-family: 'Lalezar';
}



.card:hover {
    transform: translateY(-5px);
}

.card-img1 {
    width: 300px;
    height: 150px;
    margin: 15px auto 0 auto;
    display: block;
    border-radius: 100%;
    object-fit: cover;
}

.card-body {
    padding: 10px;
}

.card-body h3 {
    font-size: 18px;
    line-height: 1.4;
}

.about h2 {
    font-family: 'Lalezar';
    text-align: center;
}

.about p {
    font-family: 'vazir';
    font-size: 17px;
    font-weight: 200;
    text-align: center;
}

.about {
    padding: 20px 10px;
    justify-content: center;
    margin: auto;
    width: 50%;
    align-items: center;
}

.card1 {
    background: #bbdfff;
color: #00081c;
font-weight: bolder;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s;
    width: 900px;
    max-width: 100%;
    text-align: center;
    padding-top: 10px;
    font-family: 'vazir';

}
.card1:hover {
    transform: translateY(-5px);
    box-shadow: 2px 2px 5px #2d4671;
}

@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Vazir&display=swap');

.footer {
    background-color: #233e66ac;
    color: #f5f5f5;
    padding: 40px 20px;
    text-align: center;
}

.footer h2 {
    font-family: 'Lalezar', sans-serif;
    font-size: 32px;
    margin-bottom: 15px;
}

.footer p {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-links a {
    font-family: 'Vazir', sans-serif;
    text-decoration: none;
    color: #f5f5f5;
    background-color: #28283d;
    padding: 10px 20px;
    border-radius: 12px;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-links a:hover {
    background-color: #007BFF;
    transform: translateY(-3px);
}

.contact-links i {
    font-size: 18px;
}
.footer2{ 
    color: #f5f5f5;
    padding: 120px 20px;
    text-align: center;}
    .footer2 h2 {
        font-family: 'Lalezar', sans-serif;
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .footer2 p {
        font-family: 'Vazir', sans-serif;
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    .h1n{font-family: 'Lalezar', sans-serif; text-align: center; margin-bottom: 3%; padding-top: 12%;}
    @media (max-width: 600px) {


        .h1n{padding-top: 22%;}
    }
    .cards-container1 {
        display:block;
        flex-wrap: wrap;

        gap: 20px;
        justify-content: center;
        text-align: center;
        margin:0 auto;
     max-width: 100%;
    }
    