* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'QNormalSans-VF', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #F0F5F9 0%, #F2F2F2 100%);
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
    color: #52616B;
    font-weight: 400;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* استایل‌های جدید برای سربرگ */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(201, 214, 223, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 214, 223, 0.5);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #C9D6DF;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details h2 {
    color: #1E2022;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.profile-details p {
    color: #52616B;
    font-size: 1rem;
    font-weight: 400;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(201, 214, 223, 0.3);
    color: #1E2022;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 400;
    border: 1px solid rgba(201, 214, 223, 0.5);
}

.github-link:hover {
    background: #C9D6DF;
    color: #1E2022;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 214, 223, 0.4);
}

header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    color: #1E2022;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0px;
}

.subtitle {
    color: #52616B;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* cards grid */
.filterable_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(82, 97, 107, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 214, 223, 0.5);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(82, 97, 107, 0.3);
}

.card_img {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 3/4;
}

.card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover .card_img img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card_img:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: white;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
}

.card_body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card_title {
    font-size: 1.4rem;
    color: #1E2022;
    font-weight: 700;
    margin-bottom: 5px;
}

.card_text {
    color: #52616B;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
    font-weight: 400;
}

.card_actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.download-btn {
    background: linear-gradient(135deg, #52616B 0%, #1E2022 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(82, 97, 107, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(82, 97, 107, 0.4);
    background: linear-gradient(135deg, #47545C 0%, #000000 100%);
    font-weight: 700;
}

.download-btn:active {
    transform: translateY(-1px);
}

.info-btn {
    background: linear-gradient(135deg, #C9D6DF 0%, #A7B5C2 100%);
    color: #1E2022;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(201, 214, 223, 0.3);
    text-decoration: none;
    text-align: center;
}

.info-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 214, 223, 0.4);
    background: linear-gradient(135deg, #B8C8D4 0%, #95A6B5 100%);
    font-weight: 700;
    color: #1E2022;
}

.hide {
    display: none;
}

/* استایل‌های مودال نمایش تصویر */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* responsiveness tweaks */
@media (max-width: 1200px) {
    .filterable_cards { grid-template-columns: repeat(2, 1fr); gap: 35px; }
}

@media (max-width: 768px) {
    .filterable_cards { grid-template-columns: 1fr; gap: 30px; }
    .profile-header { flex-direction: column; gap: 20px; text-align: center; }
}