* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'AQNormalSans-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;
}

/* filter buttons */
.filter_buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px; /* افزایش فاصله پایین */
}

.filter_buttons button {
    padding: 12px 24px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #C9D6DF;
    color: #52616B;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    backdrop-filter: blur(5px);
}

.filter_buttons button:hover {
    background: #C9D6DF;
    color: #1E2022;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 214, 223, 0.4);
}

.filter_buttons button.active {
    background: #52616B;
    color: white;
    border-color: #52616B;
    font-weight: 600;
}

/* 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(201, 214, 223, 0.2);
    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;
}

.card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.tag {
    background: rgba(201, 214, 223, 0.3);
    color: #1E2022;
    padding: 8px 16px; /* افزایش اندازه تگ‌ها */
    border-radius: 20px;
    font-size: 0.95rem; /* افزایش اندازه فونت تگ‌ها */
    border: 1px solid rgba(201, 214, 223, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.tag:hover {
    background: #C9D6DF;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(201, 214, 223, 0.4);
    font-weight: 600;
}

.tag.active {
    background: #52616B;
    color: white;
    border-color: #52616B;
    font-weight: 600;
}

.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;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* === Variable font tester styles appended to ver1 CSS === */

/* Toggle button */
.test-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.vf-toggle-btn {
    background: linear-gradient(135deg,#52616B,#1E2022);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 26px;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(82,97,107,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vf-toggle-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(82,97,107,0.16); }

/* Collapsible wrapper */
.vf-wrapper {
    overflow: hidden;
    transition: max-height 420ms cubic-bezier(.2,.9,.2,1), opacity 240ms ease;
    max-height: 2000px; /* expanded maximum */
    opacity: 1;
}
.vf-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.vf-tester {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 30px 0 50px 0;
    padding: 18px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    border: 1px solid rgba(201,214,223,0.5);
}

.vf-controls {
    width: 420px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vf-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    color: #425056;
}

.vf-label {
    font-weight: 700; /* make feature titles bolder (per request) */
}

.features-row .feature-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-right: 8px;
}

.vf-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg,#C9D6DF,#95A6B5);
    border-radius: 6px;
    outline: none;
}
.vf-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1E2022;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.vf-row select, .vf-row input[type="checkbox"], .vf-row textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(201,214,223,0.6);
    background: #fff;
}

/* preview: make box match available height and top-align text */
.vf-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vf-preview-box {
    flex: 1;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 10px;
    border: 1px solid rgba(201,214,223,0.6);
    padding: 18px;
    display: flex;
    align-items: flex-start; /* top aligned content */
    justify-content: center;
    min-height: 260px; /* constant height similar to preview area */
}

.vf-sample {
    width: 100%;
    height: 100%;
    text-align: right; /* force right alignment as requested */
    outline: none;
    font-family: 'AQNormalSans-VF', sans-serif;
    color: #1E2022;
    line-height: 1.15;
    padding-top: 12px; /* margin from top */
}

/* helpers */
.vf-helpers {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* responsiveness tweaks for tester area */
@media (max-width: 1200px) {
    .vf-tester { flex-direction: column; }
    .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; }
    .vf-controls { width: 100%; }
    .vf-preview-box { min-height: 220px; padding: 14px; }
}