@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ... rest of your Premium UI Framework CSS ... */
/* =========================================
   KIAN COMPUTER - PREMIUM UI FRAMEWORK
   Advanced Typography, Layouts & Interactions
   ========================================= */

/* --- 1. CSS VARIABLES & THEMING --- */
:root {
    /* Brand Colors */
    --primary: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #e3f2fd;
    --secondary: #00a8cc;
    --accent: #ff9800;
    --accent-hover: #f57c00;
    
    /* Neutrals */
    --bg: #f4f7f6;
    --surface: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    
    /* Layout & Typography */
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

/* --- 2. GLOBAL RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.8;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

address {
    font-style: normal;
}

/* --- 3. ACCESSIBILITY --- */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--accent);
}

:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- 4. TOPBAR & HEADER (NAVIGATION) --- */
.topbar {
    background: linear-gradient(90deg, #1a1a1a, #2d2d2d);
    color: #f8f9fa;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar a {
    color: #ffd54f;
    font-weight: 600;
}

.topbar a:hover {
    color: #fff;
}

header[role="banner"] {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    display: block;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
}

nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

nav a[aria-current="page"] {
    background: var(--primary);
    color: white;
}

/* --- 5. HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.hero .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* --- 6. STATS & PROCESS SECTIONS --- */
.stats {
    padding: 80px 0;
    background: var(--surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
}

.process {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.process-step {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 auto 20px;
    border: 3px solid var(--surface);
    box-shadow: 0 4px 10px rgba(0,86,179,0.2);
}

.process-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* --- 7. CARDS & GRIDS (SERVICES & BLOG PREVIEW) --- */
.services, .blog-preview, .testimonials, .faq, .certifications {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 20px;
}

.meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    transition: var(--transition);
    width: fit-content;
}

.btn:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- 8. TESTIMONIALS --- */
.testimonials {
    background: var(--surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.testimonial-card:hover {
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: "\201C";
    font-family: serif;
    font-size: 6rem;
    color: var(--primary-light);
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
    z-index: 0;
}

.rating {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.star {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- 9. FAQ ACCORDION --- */
.faq {
    background: var(--bg);
}

.faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    transition: var(--transition);
}

.faq-item summary:hover {
    background: var(--primary-light);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 16px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 24px;
    line-height: 1.9;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

/* --- 10. CERTIFICATIONS --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cert-badge {
    background: var(--surface);
    color: var(--primary-dark);
    padding: 24px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    border: 2px dashed var(--border);
    transition: var(--transition);
}

.cert-badge:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    transform: translateY(-4px);
}

/* --- 11. BLOG & MARKDOWN CONTENT (CRITICAL) --- */
.featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: var(--shadow-lg);
}

.content-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-main);
}

.content-body h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-right: 16px;
    border-right: 5px solid var(--accent);
    padding-bottom: 0;
}

.content-body h2::after {
    display: none; /* Remove global h2 underline inside blog */
}

.content-body h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
    font-weight: 600;
}

.content-body a:hover {
    color: var(--accent-hover);
}

.content-body ul, .content-body ol {
    padding-right: 24px;
    margin-bottom: 1.5rem;
}

.content-body li {
    margin-bottom: 0.8rem;
}

.content-body blockquote {
    border-right: 4px solid var(--secondary);
    background: var(--primary-light);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--primary-dark);
}

.content-body code {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.content-body pre {
    background: #212529;
    color: #f8f9fa;
    padding: 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 2rem 0;
    direction: ltr;
    text-align: left;
}

.content-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.content-body img {
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.content-body th, .content-body td {
    padding: 16px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.content-body thead {
    background: var(--primary);
    color: white;
}

.content-body tbody tr:hover {
    background: var(--bg);
}

/* --- 12. AUTHOR BOX --- */
.author-box {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-top: 60px;
    border: 1px solid var(--border);
}

.author-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.author-info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
    background: var(--primary-light);
    padding: 16px;
    border-radius: 50%;
}

.author-details strong {
    display: block;
    font-size: 1.3rem;
    color: var(--text-main);
}

.author-title {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.author-details p {
    line-height: 1.8;
    margin: 16px 0;
    color: var(--text-main);
}

.author-credentials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.credential-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* --- 13. BREADCRUMBS & META --- */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
    display: flex;
    gap: 12px;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '‹';
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 12px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs li[aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 16px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

/* --- 14. CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-card h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.contact-card h2::after {
    display: none;
}

/* --- 15. FLOATING ACTION BUTTON (FAB) --- */
.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 168, 204, 0.4);
    z-index: 1000;
    animation: pulse-ring 2.5s infinite;
    transition: var(--transition);
}

.fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 28px rgba(0, 168, 204, 0.6);
}

.fab svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 204, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 168, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 168, 204, 0); }
}

/* --- 16. FOOTER --- */
footer[role="contentinfo"] {
    background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
    color: #adb5bd;
    text-align: center;
    padding: 50px 0 30px;
    margin-top: 80px;
    border-top: 4px solid var(--primary);
}

footer p {
    margin-bottom: 10px;
}

footer strong {
    color: white;
    font-size: 1.2rem;
}

.footer-link {
    color: #ffd54f;
    font-weight: 600;
}

/* --- 17. RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero .lead { font-size: 1.05rem; }
    
    header .container { flex-direction: column; gap: 16px; }
    nav ul { justify-content: center; gap: 4px; }
    nav a { padding: 8px 12px; font-size: 0.85rem; }
    
    .author-info { flex-direction: column; text-align: center; }
    .author-avatar { margin: 0 auto; }
    .author-credentials { justify-content: center; }
    
    .fab { width: 56px; height: 56px; bottom: 20px; left: 20px; }
    .fab svg { width: 24px; height: 24px; }
}