/*
Theme Name: Pouria Theme
Theme URI: https://mysite.mql-net.ir
Author: Pouria Nazirian
Author URI: https://github.com/PouriCodes
Description: تم اختصاصی شخصی پوریا نظیریان - طراحی روشن، RTL فارسی
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pouria-theme
*/

/* ===== Reset و متغیرها ===== */
:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --text: #1a2332;
    --muted: #5b6b7f;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0ea5e9;
    --border: #e5e9f0;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== هدر ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-list a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* ===== Hero ===== */
.hero {
    padding: 90px 0 70px;
    background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%);
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    background: #e0edff;
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* ===== بخش‌ها ===== */
.section {
    padding: 70px 0;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    margin: 12px auto 0;
}

/* ===== کارت‌های مهارت ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.skill-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
}

.skill-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== کارت‌های پروژه ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.project-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== تماس ===== */
.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 22px;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== محتوای صفحه ===== */
.page-content {
    padding: 60px 24px;
    max-width: 800px;
}

.page-content p,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content ul,
.page-content ol {
    margin-bottom: 16px;
}

/* ===== فوتر ===== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 14px 0;
        gap: 10px;
    }

    .nav-list {
        gap: 16px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 60px 0 50px;
    }
}
