/* ============================================================
   RESET & ROOT
   ============================================================ */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;

    --bg: #f9fafb;
    --card: #ffffff;
    --border: #e5e7eb;

    --text: #111827;
    --text-muted: #6b7280;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);

    --navbar-height: 130px;
    --navbar-height-mobile: 66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body:not(.has-slider) { padding-top: var(--navbar-height); }

@media (max-width: 900px) {
    body:not(.has-slider) { padding-top: var(--navbar-height-mobile); }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Top Bar --- */
.site-topbar {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: rgba(255,255,255,0.92);
    font-size: 0.8rem;
    padding: 8px 0;
    max-height: 44px;
    overflow: hidden;
    transition: all 0.35s ease;
}
.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.topbar-contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.topbar-item:hover { color: #fbbf24; }
.topbar-item svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
.topbar-social { display: flex; align-items: center; gap: 8px; }
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    transition: all 0.25s;
}
.social-icon:hover {
    background: rgba(99,102,241,0.7);
    color: #fff;
    transform: translateY(-2px);
}
.social-icon svg { width: 14px; height: 14px; fill: currentColor; }

/* --- Navbar --- */
.site-navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: padding 0.35s ease;
}

/* --- Logo --- */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    flex-shrink: 0;
}
.brand-icon {
    width: 44px; height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
    transition: all 0.35s;
    flex-shrink: 0;
}
.brand:hover .brand-icon {
    transform: rotate(-8deg) scale(1.06);
    box-shadow: 0 12px 28px rgba(99,102,241,0.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.brand-sub { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* --- Menu --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s;
    white-space: nowrap;
}
.nav-menu > li > a:hover { background: var(--primary-light); color: var(--primary); }
.nav-menu > li > a.active { color: var(--primary); background: var(--primary-light); }

/* --- Actions --- */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    line-height: 1;
}
.btn svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none;
    stroke-width: 2.2;
    stroke-linecap: round; stroke-linejoin: round;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99,102,241,0.5);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.user-area { display: flex; align-items: center; gap: 10px; }
.user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--primary-light);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}
.user-greeting .avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800;
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: all 0.25s;
    flex-shrink: 0;
}
.hamburger:hover { background: #e0e7ff; }
.hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Scrolled --- */
.site-header.scrolled .site-topbar {
    max-height: 0;
    padding-top: 0; padding-bottom: 0;
    opacity: 0;
}
.site-header.scrolled .navbar-inner { padding-top: 10px; padding-bottom: 10px; }
.site-header.scrolled .site-navbar { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

/* --- Transparent --- */
.site-header.transparent:not(.scrolled) .site-navbar {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: none;
}
.site-header.transparent:not(.scrolled) .brand-title { color: #fff; }
.site-header.transparent:not(.scrolled) .brand-sub { color: rgba(255,255,255,0.7); }
.site-header.transparent:not(.scrolled) .brand-icon {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
}
.site-header.transparent:not(.scrolled) .nav-menu > li > a { color: rgba(255,255,255,0.92); }
.site-header.transparent:not(.scrolled) .nav-menu > li > a:hover,
.site-header.transparent:not(.scrolled) .nav-menu > li > a.active {
    background: rgba(255,255,255,0.14);
    color: #fff;
}
.site-header.transparent:not(.scrolled) .hamburger { background: rgba(255,255,255,0.12); }
.site-header.transparent:not(.scrolled) .hamburger span { background: #fff; }

/* --- Mobile Drawer --- */
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,21,0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed;
    top: 0; right: -340px;
    width: 320px; max-width: 88vw;
    height: 100vh; height: 100svh;
    background: #fff;
    z-index: 9999;
    box-shadow: -10px 0 40px rgba(0,0,0,0.18);
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.mobile-drawer.active { right: 0; }

.drawer-header {
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
    padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    color: #fff;
}
.drawer-header .brand-title { color: #fff; }
.drawer-header .brand-sub { color: rgba(255,255,255,0.75); }
.drawer-close {
    background: rgba(255,255,255,0.15);
    border: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.3); }

.drawer-contact {
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.drawer-contact-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--text);
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--border);
    transition: all 0.2s;
    font-weight: 500;
}
.drawer-contact-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-3px);
}
.drawer-contact-item svg {
    width: 16px; height: 16px;
    stroke: var(--primary); fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.drawer-menu { list-style: none; padding: 12px; margin: 0; flex: 1; }
.drawer-menu li a {
    display: flex; align-items: center;
    padding: 14px 16px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.2s;
}
.drawer-menu li a:hover,
.drawer-menu li a.active { background: var(--primary-light); color: var(--primary); }

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.drawer-footer .btn { width: 100%; }

/* ============================================================
   HERO SLIDER (FULLSCREEN)
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: calc(-1 * var(--navbar-height));
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    max-height: 950px;
    overflow: hidden;
    background: #0a0a15;
    direction: rtl;
    z-index: 1;
}
.slides-track {
    display: flex;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.77,0,0.175,1);
    will-change: transform;
}
.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.hero-slide .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 7s ease-out;
}
.hero-slide.active .slide-bg { transform: scale(1); }

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            linear-gradient(135deg, rgba(10,10,21,0.92) 0%, rgba(10,10,21,0.55) 45%, rgba(10,10,21,0.25) 100%),
            radial-gradient(circle at 80% 20%, rgba(99,102,241,0.25) 0%, transparent 50%);
    z-index: 1;
}

.hero-slide .slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(var(--navbar-height) + 40px) 6vw 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: right;
}
.hero-slide .slide-content > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.hero-slide.active .slide-content > * { opacity: 1; transform: translateY(0); }
.hero-slide.active .slide-content > *:nth-child(1) { transition-delay: 0.2s; }
.hero-slide.active .slide-content > *:nth-child(2) { transition-delay: 0.35s; }
.hero-slide.active .slide-content > *:nth-child(3) { transition-delay: 0.5s; }
.hero-slide.active .slide-content > *:nth-child(4) { transition-delay: 0.65s; }
.hero-slide.active .slide-content > *:nth-child(5) { transition-delay: 0.8s; }

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99,102,241,0.18);
    border: 1px solid rgba(99,102,241,0.4);
    backdrop-filter: blur(10px);
    color: #c7d2fe;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    width: fit-content;
}
.slide-badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 12px #818cf8;
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.slide-title {
   

    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
    max-width: 900px;
    color: #fff;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.slide-desc {

    line-height: 1.8;
    color: rgba(255,255,255,0.82);
    max-width: 620px;
    margin: 0 0 36px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}
.slide-btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 12px 32px rgba(99,102,241,0.45);
}
.slide-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(99,102,241,0.6);
}
.slide-btn.primary svg { transition: transform 0.3s; }
.slide-btn.primary:hover svg { transform: translateX(-4px); }
.slide-btn.ghost {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
.slide-btn.ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
}

.slide-features {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
    max-width: 720px;
}
.slide-feature {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
}
.slide-feature .feature-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.slide-number {
    position: absolute;
    bottom: 40px; left: 6vw;
    z-index: 3;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    direction: ltr;
}
.slide-number .current { color: #fff; font-size: 1.3rem; font-weight: 800; }
.slide-number .sep { margin: 0 6px; opacity: 0.5; }

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.hero-nav:hover {
    background: rgba(99,102,241,0.4);
    border-color: rgba(99,102,241,0.6);
    transform: translateY(-50%) scale(1.1);
}
.hero-nav.prev { right: 24px; }
.hero-nav.next { left: 24px; }

.hero-progress {
    position: absolute;
    bottom: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #fbbf24);
    z-index: 10;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(99,102,241,0.6);
    width: 0;
}

.hero-indicators {
    position: absolute;
    bottom: 40px; right: 6vw;
    z-index: 10;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 60%;
}
.hero-indicators .indicator {
    width: 42px; height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.4s;
    border: none; padding: 0;
    position: relative;
    overflow: hidden;
}
.hero-indicators .indicator:hover { background: rgba(255,255,255,0.5); }
.hero-indicators .indicator.active { background: rgba(255,255,255,0.2); width: 80px; }
.hero-indicators .indicator.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: inherit;
    animation: indicatorFill var(--duration, 6s) linear forwards;
}
@keyframes indicatorFill {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
.hero-indicators .indicator.active.paused::after { animation-play-state: paused; }

.scroll-hint {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}
.scroll-hint .mouse {
    width: 22px; height: 36px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}
.scroll-hint .mouse::after {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 6px;
    background: #fff;
    border-radius: 2px;
    animation: scrollWheel 1.6s infinite;
}
@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    text-align: center;
    padding: 56px 24px 40px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.hero h1 .grad {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 32px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-size: 1.6rem; color: var(--primary); font-weight: 800; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   CATEGORY FILTERS
   ============================================================ */
.category-filters {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 10px;
    padding: 24px;
    max-width: 1280px; margin: 0 auto;
}
.filter-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(99,102,241,0.25);
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 8px 24px 64px;
    max-width: 1280px; margin: 0 auto;
}
.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    animation: fadeUp 0.5s ease backwards;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.project-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f3f4f6;
}
.project-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
}
.project-category {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    color: var(--primary);
    font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    z-index: 1;
}
.project-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.project-info h3 { font-size: 1.1rem; margin: 0 0 10px; line-height: 1.4; min-height: 2.8em; }
.project-info .img-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--primary-light);
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
}
.project-info > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
    flex: 1;
}
.project-price {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}
.project-price .current { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.project-price .current.discount { color: #ef4444; }
.project-price .old {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.project-price .empty { font-size: 0.9rem; color: var(--text-muted); }

.project-actions { display: flex; gap: 8px; margin-top: auto; }
.btn-details {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    transition: all 0.2s;
}
.btn-details:hover { border-color: var(--primary); color: var(--primary); }
.btn-order {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.8rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-order:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
    max-width: 740px;
    margin: 40px auto 64px;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.contact-section h2 { text-align: center; margin: 0 0 28px; font-size: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
    transition: all 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form button[type="submit"] {
    background: var(--primary);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.contact-form button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99,102,241,0.3);
}
#formFeedback { text-align: center; font-size: 0.9rem; margin-top: 8px; }

/* ============================================================
   NO PROJECTS
   ============================================================ */
.no-projects {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed var(--border);
}
.no-projects span { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.wc-chat-button {
    position: fixed; bottom: 20px; right: 20px;
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(99,102,241,0.4);
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 1000;
    transition: transform 0.3s ease;
    border: none;
}
.wc-chat-button:hover { transform: scale(1.1); }
.wc-chat-button svg { width: 32px; height: 32px; fill: white; }

.wc-chat-window {
    position: fixed; bottom: 90px; right: 20px;
    width: 350px; height: 480px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: none; flex-direction: column; overflow: hidden; z-index: 999;
}
.wc-chat-window.active { display: flex; }
.wc-chat-header {
    background: var(--primary); color: #fff; padding: 15px 20px;
    font-size: 15px; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center;
}
.wc-chat-header .wc-close-btn {
    cursor: pointer; font-size: 20px;
    background: none; border: none; color: #fff;
}
.wc-chat-body {
    flex: 1; padding: 15px; overflow-y: auto;
    background: #f4f6f8;
    display: flex; flex-direction: column; gap: 10px;
}
.wc-message {
    max-width: 80%; padding: 10px 14px;
    border-radius: 15px;
    font-size: 14px; line-height: 1.5;
}
.wc-message.user {
    background: var(--primary); color: #fff;
    align-self: flex-end; border-bottom-left-radius: 0;
}
.wc-message.support {
    background: #e5e7eb; color: #333;
    align-self: flex-start; border-bottom-right-radius: 0;
}
.wc-chat-footer {
    padding: 10px; border-top: 1px solid #ddd;
    display: flex; gap: 10px; background: #fff; flex-direction: column;
}
.wc-input-row { display: flex; gap: 10px; width: 100%; }
.wc-chat-footer input {
    flex: 1; padding: 10px;
    border: 1px solid #ddd; border-radius: 20px;
    outline: none; font-family: inherit; font-size: 14px;
}
.wc-chat-footer input:focus { border-color: var(--primary); }
.wc-chat-footer button.btn-send {
    background: var(--primary); color: #fff;
    border: none; padding: 0 20px;
    border-radius: 20px; cursor: pointer;
    font-family: inherit; font-weight: 600;
}
.wc-chat-footer button.btn-send:hover { background: var(--primary-dark); }
.wc-chat-footer input:disabled,
.wc-chat-footer button.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

.wc-program-options {
    display: none; flex-wrap: wrap; gap: 8px;
    margin-bottom: 5px; max-height: 150px; overflow-y: auto;
}
.wc-program-options.active { display: flex; }
.wc-program-btn {
    background: #f3f4f6; border: 1px solid #ddd;
    border-radius: 20px; padding: 6px 15px;
    cursor: pointer; font-family: inherit;
    font-size: 13px; transition: all 0.2s;
}
.wc-program-btn:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================================================
   ORDER MODAL
   ============================================================ */
.order-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.order-modal.active { display: flex; }
.order-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(10,10,21,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.order-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%; max-width: 520px; max-height: 92vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.order-modal-close {
    position: absolute; top: 14px; left: 14px;
    width: 36px; height: 36px;
    border-radius: 10px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.order-modal-close:hover { background: #fee2e2; color: #dc2626; }

.order-modal-header { text-align: center; margin-bottom: 24px; }
.order-modal-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 14px;
    box-shadow: 0 12px 28px rgba(99,102,241,0.4);
}
.order-modal-header h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: #111827;
    font-weight: 800;
}
.order-modal-header p {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
    background: #eef2ff;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-block;
    font-weight: 600;
}

.order-modal-form { display: flex; flex-direction: column; gap: 16px; }
.order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-field { display: flex; flex-direction: column; gap: 6px; }
.order-field label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.order-field label span { color: #ef4444; }
.order-field input,
.order-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    color: #111827;
    background: #fafafa;
    transition: all 0.2s;
    resize: vertical;
}
.order-field input:focus,
.order-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px #eef2ff;
}
.order-field input.error,
.order-field textarea.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.order-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 10px;
    margin-top: 8px;
}
.order-btn-cancel {
    padding: 13px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.order-btn-cancel:hover { border-color: #9ca3af; color: #374151; }

.order-btn-submit {
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
}
.order-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99,102,241,0.5);
}
.order-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.order-btn-submit .btn-loader { display: inline-flex; }
.order-btn-submit .btn-loader[hidden] { display: none; }

/* ============================================================
   DEMO MODAL
   ============================================================ */
.modal {
    position: fixed; inset: 0;
    background: rgba(10,10,21,0.6);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal.active, .modal[style*="block"] { display: flex !important; }
.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 420px; width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    position: relative;
    animation: modalIn 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-content h3 { font-size: 1.2rem; margin: 0 0 10px; }
.modal-content p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 22px; }
.close-modal {
    position: absolute;
    top: 14px; left: 14px;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.close-modal:hover { background: #fee2e2; color: #dc2626; }
.modal-content .btn-primary { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #0f0d24 0%, #1a1740 100%);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
    margin-top: 60px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-weight: 900; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand-title { color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer-brand-sub { color: rgba(255,255,255,0.6); font-size: 0.7rem; margin-top: 2px; }

.footer-desc { font-size: 0.88rem; line-height: 1.9; color: rgba(255,255,255,0.65); margin: 0 0 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    transition: all 0.25s;
}
.footer-social a:hover { background: #6366f1; color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 32px; height: 3px;
    background: linear-gradient(90deg, #6366f1, #fbbf24);
    border-radius: 2px;
}
.footer-links, .footer-contact {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.68);
    font-size: 0.88rem;
    transition: all 0.2s;
    display: inline-block;
}
.footer-links a:hover { color: #fff; transform: translateX(-4px); }
.footer-contact li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.68);
}
.footer-contact svg {
    width: 16px; height: 16px;
    stroke: #818cf8; fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom p { margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .nav-menu > li > a { padding: 10px 12px; font-size: 0.86rem; }
}

@media (max-width: 900px) {
    .site-topbar { display: none; }
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .navbar-inner { padding: 10px 16px; }
    .brand-icon { width: 38px; height: 38px; font-size: 1.15rem; border-radius: 11px; }
    .brand-title { font-size: 1.05rem; }
    .brand-sub { font-size: 0.62rem; }
    .user-area { display: none; }

    .hero-slider {
        margin-top: calc(-1 * var(--navbar-height-mobile));
        height: 90vh; height: 90svh;
        min-height: 560px;
    }
    .hero-slide .slide-content {
        padding: calc(var(--navbar-height-mobile) + 30px) 24px 90px;
        justify-content: flex-end;
    }
    .slide-title { max-width: 100%; }
    .slide-desc { font-size: 0.65rem; margin-bottom: 24px; }
    .slide-actions { flex-direction: column; gap: 10px; width: 100%; }
    .slide-btn { justify-content: center; padding: 14px 24px; width: 100%; }
    .slide-features { gap: 16px; padding-top: 20px; margin-top: 4px; }
    .slide-feature { font-size: 0.8rem; }
    .hero-nav { width: 44px; height: 44px; }
    .hero-nav.prev { right: 12px; }
    .hero-nav.next { left: 12px; }
    .hero-indicators {
        bottom: 24px; right: 24px; left: 24px;
        max-width: none;
        justify-content: center;
    }
    .slide-number { display: none; }
    .scroll-hint { display: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .hero-stats { gap: 24px; }
    .hero-stats strong { font-size: 1.3rem; }
    .projects-grid { padding: 8px 16px 48px; gap: 16px; }
    .contact-section { margin: 24px 16px 48px; padding: 24px; }
    .hero { padding: 40px 16px 32px; }
    .order-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .brand-sub { display: none; }
    .hero-slider { height: 88vh; height: 88svh; min-height: 520px; }
    .slide-badge { font-size: 0.75rem; padding: 6px 14px; margin-bottom: 16px; }
    .hero-slide .slide-desc { font-size: 0.88rem; line-height: 1.7; }
    .slide-feature { font-size: 0.75rem; gap: 8px; }
    .slide-feature .feature-icon { width: 28px; height: 28px; font-size: 0.8rem; }
    .wc-chat-window { width: calc(100% - 24px); right: 12px; bottom: 84px; height: 70vh; }
    .footer-grid { grid-template-columns: 1fr; }
    .site-footer { padding-top: 40px; }
}

/* ============================================================
   PHONE INPUT VALIDATION
   ============================================================ */
.phone-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-wrap input {
    flex: 1;
    padding-left: 44px !important;
    letter-spacing: 1px;
    font-feature-settings: "tnum";
    text-align: left;
    transition: all 0.2s;
}

.phone-wrap input.valid {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12) !important;
}

.phone-wrap input.invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

.phone-status {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}
.phone-status.show {
    opacity: 1;
}
.phone-status.valid { color: #10b981; }
.phone-status.invalid { color: #ef4444; }

.phone-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #9ca3af;
    transition: color 0.2s;
}
.phone-hint.valid { color: #10b981; }
.phone-hint.invalid { color: #ef4444; font-weight: 600; }

/* ============================================================
   SWEETALERT Z-INDEX
   ============================================================ */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-popup.swal-rtl {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    direction: rtl;
}

.swal2-popup.swal-rtl .swal2-title {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.swal2-popup.swal-rtl .swal2-html-container,
.swal2-popup.swal-rtl .swal2-content {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.swal2-popup.swal-rtl .swal2-confirm {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.sweet-alert {
    z-index: 99999 !important;
}
.sweet-overlay {
    z-index: 99998 !important;
}

/* ============================================================
   CONTACT FORM VALIDATION
   ============================================================ */
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
    padding: 80px 24px 60px;
    text-align: center;
    color: #fff;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: calc(var(--navbar-height) + 60px);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.4) 0%, transparent 50%);
}
.page-hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.page-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.page-hero p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-content {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-content-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ---------- ABOUT TEXT (تنها تعریف معتبر) ---------- */
.about-text {
    direction: rtl;
    text-align: right;
    line-height: 2;
    font-size: 1rem;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-text p { margin: 0 0 16px; }
.about-text strong { color: var(--primary); }

/* ---------- RESUME (تبدیل متن tab-delimited به جدول) ---------- */
.resume-section-title {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
    margin: 28px 0 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-right: 4px solid var(--primary);
    border-radius: 10px;
    line-height: 1.5;
}

.resume-section-title:first-child { margin-top: 0; }

.resume-paragraph {
    margin: 0 0 12px;
    line-height: 2;
    color: var(--text);
}

.resume-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0 0 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.resume-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    text-align: right;
    font-size: 0.92rem;
    min-width: 480px;
}

.resume-table th,
.resume-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    vertical-align: top;
    line-height: 1.85;
    word-wrap: break-word;
}

.resume-table th {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
    white-space: nowrap;
}

.resume-table tbody tr:nth-child(even) {
    background: #fafbff;
}

.resume-table tbody tr:hover {
    background: #f0f4ff;
}

.resume-table tbody tr:last-child td {
    border-bottom: none;
}

/* ستون اول (ردیف) کمی باریک‌تر */
.resume-table th:first-child,
.resume-table td:first-child {
    width: 60px;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
}

/* ---------- ABOUT STATS ---------- */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.about-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s;
}
.about-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--primary-light);
}
.about-stat-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.about-stat-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}
.about-stat-card span:last-child {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- SECTION HEADER ---------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 10px;
}
.section-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* ---------- FEATURES ---------- */
.about-features {
    padding: 60px 24px;
    background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
}
.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeUp 0.5s ease backwards;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-light);
}
.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-light), #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    font-weight: 800;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* ---------- TEAM ---------- */
.about-team {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeUp 0.5s ease backwards;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}
.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card h3 {
    font-size: 1.05rem;
    margin: 0 0 4px;
    font-weight: 800;
}
.team-position {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 12px;
}
.team-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
    min-height: 2.8em;
}
.team-social {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.team-social a {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
}
.team-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- CTA ---------- */
.about-cta {
    padding: 60px 24px;
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.35) 0%, transparent 50%);
}
.about-cta-inner { position: relative; max-width: 700px; margin: 0 auto; }
.about-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin: 0 0 10px;
    font-weight: 800;
}
.about-cta p {
    color: rgba(255,255,255,0.8);
    margin: 0 0 28px;
}
.about-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-cta {
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-cta.primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.btn-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.3);
}
.btn-cta.ghost {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.btn-cta.ghost:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-section {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.contact-info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 22px;
    transition: all 0.3s;
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-light);
}
.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.contact-info-card h3 {
    font-size: 1.05rem;
    margin: 0 0 14px;
    font-weight: 800;
}
.contact-info-item {
    display: block;
    padding: 8px 0;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px dashed var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item:hover { color: var(--primary); }
.contact-info-item small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}
.contact-info-item span {
    font-size: 0.92rem;
    font-weight: 700;
}

.contact-social-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}
.contact-social-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-3px);
}
.contact-social-icon { font-size: 1.1rem; }

.contact-main-section {
    padding: 60px 24px;
    background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
}
.contact-main-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-main-info h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    margin: 0 0 14px;
}
.contact-main-info > p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0 0 28px;
}
.contact-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-features-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-features-list strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text);
}
.contact-features-list p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.contact-main-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.05);
}
.contact-main-form-wrap h2 {
    font-size: 1.3rem;
    margin: 0 0 22px;
    font-weight: 800;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: #fafafa;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
    margin-top: 8px;
}
.contact-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.5);
}
.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-map-section {
    padding: 0 24px 60px;
}
.contact-map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}
.contact-map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ============================================================
   RESPONSIVE - PAGES
   ============================================================ */
@media (max-width: 900px) {
    .about-content-inner { grid-template-columns: 1fr; }
    .contact-main-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-main-form-wrap { padding: 26px 22px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-map-wrapper iframe { height: 300px; }
}

@media (max-width: 640px) {
    .page-hero { padding: calc(var(--navbar-height-mobile) + 40px) 20px 40px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .about-stat-card strong { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-main-form-wrap { padding: 22px 18px; }

    /* resume responsive */
    .resume-table {
        font-size: 0.85rem;
        min-width: 420px;
    }
    .resume-table th,
    .resume-table td {
        padding: 10px 10px;
    }
    .resume-section-title {
        font-size: 1rem;
        padding: 8px 12px;
    }
    .resume-table th:first-child,
    .resume-table td:first-child {
        width: 44px;
    }
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.breadcrumb-wrap {
    padding: 16px 24px;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: calc(var(--navbar-height) + 24px);
    background: linear-gradient(180deg, #f9fafb, #ffffff);
}
.breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.breadcrumb-inner a {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-sep { color: #d1d5db; font-size: 0.9rem; }
.breadcrumb-current {
    color: var(--text);
    font-weight: 700;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-hero {
    padding: 24px 24px 60px;
}
.project-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.project-hero-media { position: relative; }

.project-main-image {
    position: relative;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.project-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-main-image:hover img { transform: scale(1.03); }

.project-main-image.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 10px;
}
.project-main-image.no-image span { font-size: 4rem; }
.project-main-image.no-image p { margin: 0; font-size: 1rem; }

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    z-index: 2;
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.project-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.project-thumbs::-webkit-scrollbar { height: 6px; }
.project-thumbs::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 3px; }
.project-thumbs::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s;
    background: #f3f4f6;
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumb:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.project-hero-info {
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

.project-cat-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.project-hero-info h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.project-short-desc {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.project-price-box {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 22px;
}
.price-old {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.price-new {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-new span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }

.price-save {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}
.price-contact {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 0;
}

.project-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.btn-primary-large,
.btn-outline-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    flex: 1;
    min-width: 180px;
    white-space: nowrap;
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}
.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-outline-large {
    background: #fff;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline-large:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.project-quick-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}
.quick-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    background: #f9fafb;
    padding: 6px 12px;
    border-radius: 999px;
}
.qf-icon { font-size: 0.9rem; }

.project-details-section {
    padding: 60px 24px;
    background: linear-gradient(180deg, #f9fafb, #ffffff);
}
.project-details-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 32px;
}

.details-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.detail-tab {
    padding: 10px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
}
.detail-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.detail-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.details-content {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    line-height: 2;
    color: var(--text);
    font-size: 0.95rem;
}

.detail-panel { display: none; }
.detail-panel.active {
    display: block;
    animation: fadeInPanel 0.4s ease;
}
@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.detail-panel h1, .detail-panel h2, .detail-panel h3, .detail-panel h4 {
    color: var(--primary);
    margin: 18px 0 10px;
    font-weight: 800;
}
.detail-panel p { margin: 0 0 14px; }
.detail-panel ul, .detail-panel ol { padding-right: 24px; margin: 10px 0; }
.detail-panel li { margin-bottom: 6px; }
.detail-panel strong { color: var(--text); font-weight: 800; }
.detail-panel img {
    max-width: 100%;
    border-radius: 12px;
    margin: 12px 0;
}
.detail-panel blockquote {
    border-right: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 12px 18px;
    border-radius: 8px;
    margin: 14px 0;
    color: var(--text);
}

.project-gallery-section {
    padding: 60px 24px;
}
.project-gallery-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.gallery-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
}
.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.gallery-card:hover .gallery-image img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 21, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-zoom {
    color: #fff;
    font-size: 2rem;
    transform: scale(0.7);
    transition: transform 0.3s;
}
.gallery-card:hover .gallery-zoom { transform: scale(1); }

.gallery-caption {
    padding: 14px 16px;
    border-top: 1px solid #f3f4f6;
}
.gallery-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
    font-size: 0.85rem;
    color: var(--text-muted);
    word-wrap: break-word;
    margin-bottom: 4px;
}
.gallery-summary.muted { color: #d1d5db; font-style: italic; }
.gallery-more {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 21, 0.92);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gallery-modal.active { display: flex; }

.gallery-modal-content {
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gallery-modal-content img {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 12px;
    background: #f3f4f6;
    display: block;
    margin-bottom: 16px;
}
.gallery-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(0,0,0,0.08);
    color: #374151;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    z-index: 2;
}
.gallery-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}
.gallery-modal-desc {
    color: var(--text);
    line-height: 2;
    font-size: 0.95rem;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.gallery-modal-desc h1,
.gallery-modal-desc h2,
.gallery-modal-desc h3,
.gallery-modal-desc h4 {
    color: var(--primary);
    margin: 16px 0 8px;
}
.gallery-modal-desc ul,
.gallery-modal-desc ol {
    padding-right: 24px;
    margin: 8px 0;
}
.gallery-modal-desc p { margin: 0 0 12px; }
.gallery-modal-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.related-projects-section {
    padding: 60px 24px;
    background: linear-gradient(180deg, #f9fafb, #ffffff);
}
.related-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.related-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
}
.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.related-card:hover .related-image img { transform: scale(1.05); }
.related-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: #d1d5db;
}
.related-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.related-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.related-info h3 {
    font-size: 1rem;
    margin: 0 0 6px;
    font-weight: 800;
    line-height: 1.4;
}
.related-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 10px;
    flex: 1;
}

.related-price { display: flex; align-items: baseline; gap: 8px; }
.related-price .r-new {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}
.related-price .r-old {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.related-price .r-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.back-to-projects {
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 24px;
    text-align: center;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s;
}
.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .project-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .project-hero-info { position: static; }
    .project-thumbs { justify-content: flex-start; }
    .btn-primary-large, .btn-outline-large { width: 100%; flex: 1 1 100%; }
    .details-content { padding: 22px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .breadcrumb-wrap { padding-top: calc(var(--navbar-height-mobile) + 16px); }
    .breadcrumb-current { max-width: 150px; }
    .project-hero { padding: 16px 16px 40px; }
    .project-details-section,
    .project-gallery-section,
    .related-projects-section { padding: 40px 16px; }
    .details-content { padding: 18px 16px; font-size: 0.9rem; }
    .price-new { font-size: 1.6rem; }
    .project-quick-features { justify-content: center; }
}
.about-text {
    direction: rtl;
    text-align: right;
    line-height: 2;
    font-size: 1rem;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ---------- تیتر بخش‌ها ---------- */
.resume-section-title {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
    margin: 28px 0 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-right: 4px solid var(--primary);
    border-radius: 10px;
    line-height: 1.5;
}
.resume-section-title:first-child { margin-top: 0; }

.resume-paragraph {
    margin: 0 0 12px;
    line-height: 2;
    color: var(--text);
}

/* ---------- جدول رزومه ---------- */
.resume-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0 0 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.resume-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    text-align: right;
    font-size: 0.92rem;
    min-width: 480px;
}

.resume-table th,
.resume-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    vertical-align: top;
    line-height: 1.85;
    word-wrap: break-word;
}

.resume-table th {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
    white-space: nowrap;
}

.resume-table tbody tr:nth-child(even) { background: #fafbff; }
.resume-table tbody tr:hover { background: #f0f4ff; }
.resume-table tbody tr:last-child td { border-bottom: none; }

/* ستون شماره ردیف */
.resume-table td.row-num {
    width: 60px;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 640px) {
    .resume-table { font-size: 0.85rem; min-width: 420px; }
    .resume-table th,
    .resume-table td { padding: 10px 10px; }
    .resume-section-title { font-size: 1rem; padding: 8px 12px; }
    .resume-table td.row-num { width: 44px; }
}