/* ═══════════════════════════════════════════════════════════
   LAYOUT.CSS — چیدمان بخش‌ها
   LAYOUT.CSS — Section layout
   
   فهرست / Table of Contents:
   01. Navigation      — هدر
   02. Section Head    — سر بخش‌ها
   03. Statement       — جمله بزرگ
   04. Work            — پروژه‌های اصلی
   05. More Work       — پروژه‌های بیشتر
   06. Filter          — فیلتر
   07. Marquee         — نوار متحرک
   08. Services        — خدمات
   09. Process         — فرایند
   10. Skills          — مهارت‌ها
   11. About           — درباره من
   12. Contact         — تماس
   13. Footer          — پایین سایت
   14. Project Page    — صفحه پروژه
   15. Cursor Fix      — فیکس کرسر
   16. Responsive      — موبایل
   17. RTL             — فارسی
   ═══════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────
   01. NAVIGATION — هدر
   ─────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 72px;
  padding: 0 var(--section-pad-x);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;

  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-med) var(--ease-out);
}

/* ═══ لوگو ═══ */
.brand-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.brand-logo img {
  height: 34px;
  width: auto;
  filter: invert(1) brightness(1.1);
  transition: filter var(--dur-med);
}

[data-theme="light"] .brand-logo img {
  filter: none;
}

/* ═══ لینک‌های منو ═══ */
.nav-links {
  justify-self: center;
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.nav-links a {
  color: var(--fg-muted);
  transition: color var(--dur-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-med) var(--ease-out);
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ═══ سمت راست ═══ */
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ───────────────────────────────────────────────────────────
   02. SECTION HEAD — سر بخش‌ها
   ─────────────────────────────────────────────────────────── */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.section-head .label {
  font-size: var(--fs-label);
}

.section-head .num {
  font-size: var(--fs-label);
}


/* ───────────────────────────────────────────────────────────
   03. STATEMENT — جمله بزرگ
   ─────────────────────────────────────────────────────────── */

.statement {
  padding: var(--section-pad-y) var(--section-pad-x);
  border-top: 1px solid var(--border);
  position: relative;
}

.statement-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.statement-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 160px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 80px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.statement-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease-expo),
    transform 1s var(--ease-expo);
}

.statement-title .line:nth-child(1) { transition-delay: 0s; }
.statement-title .line:nth-child(2) { transition-delay: 0.15s; }

.statement-title.visible .line {
  opacity: 1;
  transform: translateY(0);
}

.statement-intro {
  max-width: 620px;
  margin: 60px 0 0;
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--fg-muted);
}


/* ───────────────────────────────────────────────────────────
   04. WORK — پروژه‌های اصلی
   ─────────────────────────────────────────────────────────── */

.work {
  padding: var(--section-pad-y) var(--section-pad-x) 0;
}

/* ═══ گرید Featured (۲ ستونه + Hero تمام‌عرض) ═══ */
#featuredProjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 100px;
}

#featuredProjects .project-item--hero {
  grid-column: 1 / -1;
}

#featuredProjects .project-item {
  display: block;
}

/* ═══ کارت پروژه ═══ */
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  aspect-ratio: 4 / 3;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-soft);

  transition:
    transform 0.6s cubic-bezier(.2, .8, .2, 1),
    border-color 0.4s,
    box-shadow 0.5s;
}

/* ═══ پروژه Hero (اول) — تمام‌عرض 21:9 ═══ */
.project-item--hero .project-card {
  aspect-ratio: 21 / 9;
  border-radius: 20px;
}

/* ═══ Hover ═══ */
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(90, 143, 160, 0.15);
}

/* ═══ Overlay ═══ */
.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  transition: opacity 0.4s;
}

.project-card:hover .project-overlay {
  opacity: 0.9;
}

/* ═══ محتوای روی عکس ═══ */
.project-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(20px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* ═══ متا (شماره + فلش) ═══ */
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.project-arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition:
    color 0.35s,
    transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ═══ تیتر ═══ */
.project-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  transition: color 0.35s;
}

.project-item--hero .project-title {
  font-size: clamp(28px, 3.5vw, 56px);
}

.project-card:hover .project-title {
  color: var(--accent);
}

/* ═══ زیرعنوان ═══ */
.project-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}


/* ───────────────────────────────────────────────────────────
   05. MORE WORK — پروژه‌های بیشتر
   ─────────────────────────────────────────────────────────── */

.more-work {
  padding: 0 var(--section-pad-x) var(--section-pad-y);
}

.more-work-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

/* ═══ گرید ۳ ستونه ═══ */
.work-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ═══ کارت ═══ */
.work-list a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--fg);

  transition:
    transform 0.6s cubic-bezier(.2, .8, .2, 1),
    border-color 0.4s,
    box-shadow 0.5s;
}

.work-list a:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(90, 143, 160, 0.15);
}

/* ═══ عکس ═══ */
.work-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: transform 0.8s cubic-bezier(.2, .8, .2, 1);
}

.work-list a:hover .work-cover {
  transform: scale(1.06);
}

/* ═══ overlay ═══ */
.work-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

/* ═══ اطلاعات پایین ═══ */
.work-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
  transition: color 0.35s;
}

.work-list a:hover .work-title {
  color: var(--accent);
}

.work-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}


/* ───────────────────────────────────────────────────────────
   06. FILTER — دکمه‌های فیلتر شیشه‌ای
   ─────────────────────────────────────────────────────────── */

.filter-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);

  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    color 0.4s cubic-bezier(.2, .8, .2, 1),
    border-color 0.4s ease,
    transform 0.4s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.4s ease;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-soft));
  z-index: -1;
  transition: width 0.5s cubic-bezier(.2, .8, .2, 1);
}

.filter-btn::after {
  content: '●';
  font-size: 10px;
  color: var(--fg-dim);
  flex-shrink: 0;
  transition:
    color 0.4s ease,
    transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.filter-btn:hover {
  color: var(--fg);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 20px var(--accent-dim);
}

.filter-btn:hover::before {
  width: 100%;
  opacity: 0.15;
}

.filter-btn:hover::after {
  color: var(--accent);
  transform: rotate(180deg) scale(1.2);
}

.filter-btn.active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 30px var(--accent-glow);
}

.filter-btn.active::before {
  width: 100%;
  opacity: 1;
  background: var(--accent);
}

.filter-btn.active::after {
  color: #ffffff;
  transform: rotate(0deg) scale(1.1);
}

.filter-btn.active:hover {
  transform: translateY(-2px);
}

/* ═══ انیمیشن فیلتر ═══ */
.work-list a.filter-hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.work-list a.filter-show {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.5s cubic-bezier(.2, .8, .2, 1),
    transform 0.55s cubic-bezier(.2, .8, .2, 1);
}

.work-list a.filter-none {
  display: none;
}


/* ───────────────────────────────────────────────────────────
   07. MARQUEE — نوار متحرک
   ─────────────────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  white-space: nowrap;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  animation: marqueeMove 40s linear infinite;
  will-change: transform;
}

.marquee-track > span {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}

.marquee-track > span.dot {
  color: var(--accent);
  font-size: clamp(24px, 4vw, 60px);
}

@keyframes marqueeMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ───────────────────────────────────────────────────────────
   08. SERVICES — خدمات (کارت‌های ۲ ستونه)
   ─────────────────────────────────────────────────────────── */

.services {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.service-card {
  position: relative;
  padding: 36px 32px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;

  transition:
    transform 0.5s cubic-bezier(.2, .8, .2, 1),
    border-color 0.4s ease,
    background-color 0.4s ease;
}

.service-card--full {
  grid-column: 1 / -1;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ═══ SERVICE HEAD ═══ */
.service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  transition: color 0.35s ease;
}

.service-card:hover .service-num {
  color: var(--accent);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  flex-shrink: 0;

  transition:
    color 0.4s ease,
    transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-card:hover .service-icon {
  color: var(--accent);
  transform: rotate(-12deg) scale(1.1);
}

/* ═══ SERVICE TITLE ═══ */
.service-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin: 0;
  transition: color 0.35s ease;
}

.service-card:hover .service-title {
  color: var(--accent);
}

/* ═══ SERVICE DESC ═══ */
.service-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0;
  max-width: 520px;
  transition: color 0.35s ease;
}

.service-card:hover .service-desc {
  color: var(--fg);
}

/* ═══ SERVICE LINE ═══ */
.service-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.7s cubic-bezier(.2, .8, .2, 1);
}

.service-card:hover .service-line {
  width: 100%;
}


/* ───────────────────────────────────────────────────────────
   09. PROCESS — فرایند (مسیر افقی)
   ─────────────────────────────────────────────────────────── */

.process {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.process-intro {
  max-width: 700px;
  margin: 60px 0 100px;
}

.process-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 90px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 20px;
  color: var(--fg);
}

.process-intro p {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

/* ═══ TRACK ═══ */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 80px 0 60px;
}

/* ═══ BAR — نوار پیشرفت ═══ */
.process-bar {
  position: absolute;
  top: 80px;
  left: 8.33%;
  right: 8.33%;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  z-index: 0;
}

.process-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent), var(--accent-soft));
  box-shadow:
    0 0 12px var(--accent),
    0 0 24px var(--accent-glow);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(.2, .8, .2, 1);
}

/* ═══ STEP ═══ */
.process-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  cursor: pointer;
}

.process-dot {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;

  transition:
    border-color 0.4s ease,
    background-color 0.4s ease,
    transform 0.4s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.4s ease;
}

.process-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
  transition:
    background-color 0.4s ease,
    transform 0.4s ease;
}

.process-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.process-step:hover .process-dot,
.process-step.active .process-dot {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.15);
  box-shadow:
    0 0 0 8px rgba(90, 143, 160, 0.12),
    0 0 30px var(--accent-glow);
}

.process-step:hover .process-dot::before,
.process-step.active .process-dot::before {
  background: #ffffff;
  transform: scale(1.3);
}

.process-step:hover .process-dot::after,
.process-step.active .process-dot::after {
  border-color: var(--accent);
  transform: scale(1.2);
}

/* ═══ BODY ═══ */
.process-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.process-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg-dim);
  transition:
    color 0.4s ease,
    transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.process-step:hover .process-num,
.process-step.active .process-num {
  color: var(--accent);
  transform: translateY(-4px);
}

.process-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.3;
  color: var(--fg);
  margin: 0;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.process-step:hover .process-title,
.process-step.active .process-title {
  color: var(--accent);
}

/* ═══ CARD — کارت توضیحات ═══ */
.process-card {
  position: absolute;
  top: calc(100% + 30px);
  left: 50%;
  transform: translate(-50%, 20px);

  width: clamp(260px, 22vw, 340px);
  padding: 22px 24px;

  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 16px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.5s cubic-bezier(.2, .8, .2, 1);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px var(--accent-dim);

  z-index: 10;
}

.process-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.process-card p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg);
  margin: 0;
  text-align: center;
}

.process-step:hover .process-card,
.process-step.active .process-card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ═══ تنظیم کارت برای مراحل کنار لبه ═══ */
.process-step:nth-child(2) .process-card,
.process-step:nth-child(3) .process-card {
  left: 0;
  transform: translate(0, 20px);
}

.process-step:nth-child(2):hover .process-card,
.process-step:nth-child(3):hover .process-card,
.process-step:nth-child(2).active .process-card,
.process-step:nth-child(3).active .process-card {
  transform: translate(0, 0);
}

.process-step:nth-child(2) .process-card::before,
.process-step:nth-child(3) .process-card::before {
  left: 24px;
  transform: rotate(45deg);
}

.process-step:nth-child(6) .process-card,
.process-step:nth-child(7) .process-card {
  left: auto;
  right: 0;
  transform: translate(0, 20px);
}

.process-step:nth-child(6):hover .process-card,
.process-step:nth-child(7):hover .process-card,
.process-step:nth-child(6).active .process-card,
.process-step:nth-child(7).active .process-card {
  transform: translate(0, 0);
}

.process-step:nth-child(6) .process-card::before,
.process-step:nth-child(7) .process-card::before {
  left: auto;
  right: 24px;
  transform: rotate(45deg);
}


/* ───────────────────────────────────────────────────────────
   10. SKILLS — مهارت‌ها (بدون باکس)
   ─────────────────────────────────────────────────────────── */

.skills {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
  margin-top: 60px;
}

.skills-card {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skills-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin: 0;
}

.skills-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.skills-title::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.skills-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(.2, .8, .2, 1);
}

.skills-card:hover .skills-title::after {
  width: 100%;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills-list li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
  cursor: default;

  transition: color 0.3s ease, padding 0.3s ease;
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 1px;
  background: var(--fg-dim);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.skills-list li:hover {
  color: var(--accent);
  padding-left: 24px;
}

.skills-list li:hover::before {
  width: 16px;
  background: var(--accent);
}

/* ═══ TOOLS — تمام‌عرض ═══ */
.skills-card--tools {
  grid-column: 1 / -1;
  margin-top: 20px;
}

.skills-list--tools {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px 40px;
}

.skills-list--tools li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-left: 0;
}

.skills-list--tools li::before {
  display: none;
}

.skills-list--tools li:hover {
  color: var(--accent);
  padding-left: 0;
}


/* ───────────────────────────────────────────────────────────
   11. ABOUT — درباره من (عکس کنار متن)
   ─────────────────────────────────────────────────────────── */

.about {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  padding-top: 60px;
}

/* ═══ عکس ═══ */
.about-image-col {
  position: relative;
}

.about-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition:
    filter 1.2s cubic-bezier(.2, .8, .2, 1),
    transform 1.4s cubic-bezier(.2, .8, .2, 1);
}

.about-image:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.about-image-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  pointer-events: none;
}

.about-image-label span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ═══ متن ═══ */
.about-content-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--fg);
  margin: 0;
}

.about-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-copy p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin: 0;
}

.about-copy p:first-of-type {
  color: var(--fg);
  font-size: 16px;
}

/* ═══ META ═══ */
.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.about-meta-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}


/* ───────────────────────────────────────────────────────────
   12. CONTACT — تماس (فرم تک‌ستونه)
   ─────────────────────────────────────────────────────────── */

.contact {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 60px 0 100px;
  color: var(--fg);
}

.contact-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* ═══ FORM ═══ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.form-row::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(.2, .8, .2, 1);
}

.form-row:hover::after,
.form-row:focus-within::after {
  width: 100%;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.35s ease;
}

.form-row:hover label,
.form-row:focus-within label {
  color: var(--accent);
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  padding: 4px 0;
  resize: vertical;
  transition: color 0.3s ease;
}

.form-row textarea {
  min-height: 80px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--fg-dim);
  font-weight: 400;
}

.form-row input:focus,
.form-row textarea:focus {
  color: var(--fg);
}

/* ═══ FORM ACTIONS ═══ */
.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  flex-wrap: wrap;
}

/* ═══ DIVIDER — OR ═══ */
.contact-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 50px;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact-divider span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ═══ EMAIL BLOCK ═══ */
.contact-email-block {
  margin-bottom: 60px;
}

.contact-email-link {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  text-decoration: none;
  color: var(--fg);
  transition: color 0.4s ease;
}

.contact-email-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.7s cubic-bezier(.2, .8, .2, 1);
}

.contact-email-link:hover::after {
  width: 100%;
}

.contact-email-link:hover {
  color: var(--accent);
}

.contact-email-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.35s ease;
}

.contact-email-link:hover .contact-email-label {
  color: var(--accent);
}

.contact-email-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: inherit;
  word-break: break-all;
}

.contact-email-arrow {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}

.contact-email-link:hover .contact-email-arrow {
  transform: translate(4px, -4px);
}

/* ═══ SOCIAL BLOCK ═══ */
.contact-social-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-social-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 8px;
}

.contact-social-links {
  display: flex;
  flex-direction: column;
}

.contact-social-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.35s ease, padding 0.5s cubic-bezier(.2, .8, .2, 1);
  position: relative;
}

.contact-social-links a:last-child {
  border-bottom: none;
}

.contact-social-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(.2, .8, .2, 1);
}

.contact-social-links a:hover::after {
  width: 100%;
}

.contact-social-links a:hover {
  color: var(--accent);
  padding-left: 12px;
}

.contact-social-links .social-arrow {
  font-size: 18px;
  color: var(--fg-muted);
  transition: color 0.35s ease, transform 0.4s cubic-bezier(.2, .8, .2, 1);
}

.contact-social-links a:hover .social-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ═══ FORM STATUS ═══ */
.form-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  min-height: 18px;
}

.form-status.success { color: var(--accent); }
.form-status.error   { color: #FF4D4D; }


/* ───────────────────────────────────────────────────────────
   13. FOOTER — پایین سایت (ساعت زنده + مارکی)
   ─────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* ═══ TOP BAR — وضعیت + ساعت ═══ */
.footer-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 24px var(--section-pad-x);
  border-bottom: 1px solid var(--border);

  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00FF88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.8); opacity: 0.6; }
}

.footer-clock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg);
}

#liveClock {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* ═══ CTA غول ═══ */
.footer-cta {
  display: block;
  padding: 100px var(--section-pad-x) 80px;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  border-bottom: 1px solid var(--border);
  transition: color 0.4s ease;
}

.footer-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-cta-line {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 200px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
  color: inherit;
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.footer-cta-arrow {
  color: var(--accent);
  font-size: 0.6em;
  display: inline-block;
  transition:
    color 0.4s ease,
    transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.footer-cta:hover {
  color: var(--accent);
}

.footer-cta:hover .footer-cta-line {
  transform: translateX(20px);
}

.footer-cta:hover .footer-cta-arrow {
  transform: translateX(30px);
}

/* ═══ MARQUEE ═══ */
.footer-marquee {
  overflow: hidden;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  white-space: nowrap;
}

.footer-marquee::before,
.footer-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.footer-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.footer-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.footer-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: footerMarquee 40s linear infinite;
  will-change: transform;
}

.footer-marquee:hover .footer-marquee-track {
  animation-duration: 80s;
}

@keyframes footerMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-marquee-track > span {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-dim);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.footer-marquee:hover .footer-marquee-track > span {
  color: var(--accent);
}

.footer-marquee-track > span.dot {
  color: var(--accent);
  font-size: clamp(12px, 1.5vw, 20px);
  opacity: 0.5;
}

.footer-marquee:hover .footer-marquee-track > span.dot {
  color: var(--fg);
}

/* ═══ GRID — اطلاعات ═══ */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding: 80px var(--section-pad-x);
  border-bottom: 1px solid var(--border);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col-title::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  padding: 14px 0;

  transition:
    color 0.35s ease,
    padding 0.4s cubic-bezier(.2, .8, .2, 1);
}

.footer-col-list a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.footer-arrow {
  font-size: 12px;
  color: var(--fg-dim);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    color 0.35s ease,
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(.2, .8, .2, 1);
}

.footer-col-list a:hover .footer-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translateX(0);
}

/* ═══ BOTTOM ═══ */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 28px var(--section-pad-x);

  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  color: var(--fg);
  font-weight: 600;
}

.footer-top {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.35s ease;
}

.footer-top:hover {
  color: var(--accent);
}


/* ───────────────────────────────────────────────────────────
   14. PROJECT PAGE — صفحه پروژه
   ─────────────────────────────────────────────────────────── */

.project-page {
  padding: 130px var(--section-pad-x) 100px;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ═══ PROJECT HERO ═══ */
.project-hero {
  position: relative;
  padding: 40px 0 80px;
  margin: 0 0 80px;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 60px;
  padding: 8px 0;
  position: relative;
  transition: color 0.35s, gap 0.35s cubic-bezier(.2, .8, .2, 1);
}

.back-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(.2, .8, .2, 1);
}

.back-link:hover {
  color: var(--accent);
  gap: 16px;
}

.back-link:hover::after {
  width: 100%;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 220px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.88;
  margin: 0 0 30px;
  color: var(--fg);
}

.project-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.project-sub::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.project-lead {
  max-width: 720px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
}

/* ═══ گالری (Bento) ═══ */
.gallery-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 250px;
  gap: 15px;
  margin-bottom: 100px;
}

.gallery-bento .gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.gallery-bento .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-bento .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-bento .gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-bento .gallery-item:nth-child(5n+1) { grid-column: span 8; grid-row: span 2; }
.gallery-bento .gallery-item:nth-child(5n+2) { grid-column: span 4; grid-row: span 1; }
.gallery-bento .gallery-item:nth-child(5n+3) { grid-column: span 4; grid-row: span 1; }
.gallery-bento .gallery-item:nth-child(5n+4) { grid-column: span 8; grid-row: span 1; }
.gallery-bento .gallery-item:nth-child(5n+5) { grid-column: span 4; grid-row: span 1; }

/* ═══ گالری (Masonry) ═══ */
.gallery-masonry {
  column-count: 2;
  column-gap: 15px;
  margin-bottom: 100px;
}

.gallery-masonry .gallery-item {
  margin: 0 0 15px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  position: relative;
  break-inside: avoid;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.gallery-masonry .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-masonry .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-masonry .gallery-item:hover img {
  transform: scale(1.03);
}

/* ═══ گالری (Square) ═══ */
.gallery-square {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 100px;
}

.gallery-square .gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.gallery-square .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-square .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-square .gallery-item:hover img {
  transform: scale(1.05);
}

/* ═══ گالری (Youtube 16:9) ═══ */
.gallery-youtube {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 100px;
}

.gallery-youtube .gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.gallery-youtube .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-youtube .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-youtube .gallery-item:hover img {
  transform: scale(1.04);
}

/* ═══ گالری (Stories 9:16) ═══ */
.gallery-stories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 100px;
}

.gallery-stories .gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  aspect-ratio: 9 / 16;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.gallery-stories .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-stories .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

/* ═══ گالری (Banners 4:1) ═══ */
.gallery-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 100px;
}

.gallery-banners .gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  aspect-ratio: 4 / 1;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.gallery-banners .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-banners .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══ گالری (Carousel Badge) ═══ */
.carousel-badge {
  border-radius: 8px;
}

/* ═══ Cursor برای lightbox ═══ */
.gallery-item.has-lightbox {
  cursor: zoom-in;
}

/* ═══ زیرپروژه‌ها ═══ */
.sub-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 100px;
}

.sub-project-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  color: var(--fg);
  transition:
    transform var(--dur-med) var(--ease-out),
    border-color var(--dur-med);
}

.sub-project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.sub-project-media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-out);
}

.sub-project-card:hover .sub-project-media {
  transform: scale(1.03);
}

.sub-project-info {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.sub-project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  transition: color var(--dur-fast);
}

.sub-project-card:hover .sub-project-info h3 {
  color: var(--accent);
}

.sub-project-info span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* ═══ توضیحات پروژه ═══ */
.project-desc {
  margin: 100px 0 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.project-desc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ═══ ABOUT THIS PROJECT ═══ */
.project-desc-grid > div:first-child .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 32px;
  padding: 0;
}

.project-desc-grid > div:first-child .eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.project-desc-grid > div:first-child p:not(.eyebrow) {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
  font-weight: 400;
  max-width: 620px;
}

/* ═══ DETAILS ═══ */
.project-meta {
  position: relative;
}

.project-meta .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 32px;
  padding: 0;
}

.project-meta .eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.project-meta ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.project-meta li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding 0.4s cubic-bezier(.2, .8, .2, 1);
}

.project-meta li:last-child {
  border-bottom: none;
}

.project-meta li::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(.2, .8, .2, 1);
}

.project-meta li:hover::before {
  width: 100%;
}

.project-meta li:hover {
  padding-left: 8px;
}

.project-meta li span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.35s;
}

.project-meta li b {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--fg);
  text-align: right;
  transition: color 0.35s;
}

.project-meta li:hover span {
  color: var(--accent);
}

.project-meta li:hover b {
  color: var(--accent);
}

/* ═══ ناوبری پروژه ═══ */
.project-nav {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.project-nav a {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--fg);
  transition: color var(--dur-fast);
}

.project-nav a:hover {
  color: var(--accent);
}

.project-nav .all-link {
  color: var(--fg-muted);
}


/* ───────────────────────────────────────────────────────────
   15. CURSOR FIX — فیکس کرسر
   ─────────────────────────────────────────────────────────── */

/* ═══ کرسر دست برای لینک‌ها ═══ */
.project-media,
.project-info > a,
.work-list a,
.sub-project-card,
.gallery-item.has-lightbox,
.service-item,
.nav-links a,
.mobile-nav a,
.contact-links a,
.footer-cta a,
.back-link,
.project-nav a,
.filter-btn {
  cursor: pointer;
}

/* ═══ گالری — بزرگ‌نمایی ═══ */
.gallery-item.has-lightbox {
  cursor: zoom-in;
}

/* ═══ دکمه‌ها ═══ */
.btn-send,
.hero-scroll,
.email-copy,
.lightbox-close,
.lb-nav,
.lb-toggle,
.theme-toggle,
.lang-toggle,
.hamburger,
.menu-close {
  cursor: pointer;
}

/* ═══ فرم ═══ */
.form-field input,
.form-field textarea,
.form-row input,
.form-row textarea {
  cursor: text;
}

/* ═══ Before/After ═══ */
.ba-handle {
  cursor: ew-resize;
}


/* ───────────────────────────────────────────────────────────
   16. RESPONSIVE — موبایل
   ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {

  /* ═══ هدر ═══ */
  .nav {
    height: 62px;
    grid-template-columns: auto 1fr;
    padding: 0 5vw;
  }

  .nav-links {
    display: none;
  }

  .nav-right .theme-toggle,
  .nav-right .lang-toggle {
    display: none;
  }

  /* ═══ بخش‌ها ═══ */
  .statement,
  .work,
  .more-work,
  .services,
  .process,
  .skills,
  .about,
  .contact {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  /* ═══ Statement ═══ */
  .statement-title {
    font-size: clamp(36px, 11vw, 80px);
    margin-top: 50px;
  }

  .statement-intro {
    margin-top: 40px;
    font-size: 15px;
  }

  /* ═══ Work ═══ */
  #featuredProjects {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 60px;
  }

  .project-item--hero .project-card {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .project-card {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .project-title {
    font-size: clamp(22px, 7vw, 40px);
  }

  .project-item--hero .project-title {
    font-size: clamp(28px, 9vw, 52px);
  }

  /* ═══ More Work ═══ */
  .work-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .work-info {
    padding: 12px;
  }

  .work-title {
    font-size: 14px;
  }

  .work-sub {
    font-size: 8px;
  }

  /* ═══ Filter ═══ */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    margin: 20px 0 30px;
    padding-bottom: 20px;

    scrollbar-width: none;
    -ms-overflow-style: none;

    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 20px,
      black calc(100% - 20px),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 20px,
      black calc(100% - 20px),
      transparent 100%
    );
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    gap: 8px;
    border-radius: 8px;
  }

  .filter-btn::after {
    font-size: 9px;
  }

  .filter-btn:hover {
    transform: none;
  }

  /* ═══ Marquee ═══ */
  .marquee {
    padding: 30px 0;
  }

  /* ═══ Services ═══ */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .service-card {
    padding: 28px 24px 26px;
    gap: 16px;
  }

  .service-title {
    font-size: 22px;
  }

  .service-desc {
    font-size: 13px;
  }

  .service-icon {
    width: 32px;
    height: 32px;
  }

  /* ═══ Process ═══ */
  .process-intro {
    margin: 40px 0 50px;
  }

  .process-intro h2 {
    font-size: 12vw;
  }

  .process-intro p {
    font-size: 15px;
  }

  .process-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .process-bar {
    display: none;
  }

  .process-step {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 20px;
    align-items: start;
    text-align: left;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    cursor: default;
  }

  .process-step:last-child {
    border-bottom: none;
  }

  .process-dot {
    margin: 0;
    width: 14px;
    height: 14px;
    margin-top: 6px;
    grid-column: 1;
  }

  .process-dot::after {
    display: none;
  }

  .process-body {
    grid-column: 2;
    align-items: flex-start;
    gap: 8px;
  }

  .process-num {
    font-size: 24px;
    color: var(--accent);
  }

  .process-title {
    font-size: 13px;
    letter-spacing: 0.15em;
  }

  .process-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    padding: 12px 0 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .process-card::before {
    display: none;
  }

  .process-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--fg-muted);
    text-align: left;
  }

  .process-step:hover .process-dot {
    transform: none;
    box-shadow: none;
    background: var(--bg);
    border-color: var(--border);
  }

  .process-step:hover .process-dot::before {
    background: var(--fg-muted);
    transform: none;
  }

  .process-step:hover .process-num {
    transform: none;
  }

  .process-step:nth-child(2) .process-card,
  .process-step:nth-child(3) .process-card,
  .process-step:nth-child(6) .process-card,
  .process-step:nth-child(7) .process-card {
    left: auto;
    right: auto;
  }

  /* ═══ Skills ═══ */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 40px;
  }

  .skills-title {
    font-size: 22px;
    padding-bottom: 16px;
  }

  .skills-list li {
    font-size: 14px;
  }

  .skills-list--tools {
    gap: 20px 30px;
  }

  .skills-list--tools li {
    font-size: 11px;
  }

  /* ═══ About ═══ */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    max-width: 100% !important;
    padding-top: 40px;
  }

  .about-image {
    max-width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px;
  }

  .about-image-label {
    bottom: 16px;
    left: 18px;
    right: 18px;
  }

  .about-content-col {
    gap: 24px;
  }

  .about-title {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  .about-copy {
    gap: 16px;
  }

  .about-copy p {
    font-size: 14px !important;
  }

  .about-copy p:first-of-type {
    font-size: 15px !important;
  }

  .about-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
    padding-top: 24px;
  }

  .about-meta-item:last-child {
    grid-column: 1 / -1;
  }

  /* ═══ Contact ═══ */
  .contact-title {
    font-size: clamp(40px, 14vw, 80px);
    margin: 40px 0 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
    align-items: start;
  }

  .form-row label {
    font-size: 10px;
  }

  .form-row input,
  .form-row textarea {
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 30px;
  }

  .contact-email-link {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .contact-email-value {
    font-size: 18px;
  }

  .contact-email-arrow {
    display: none;
  }

  .contact-social-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-social-links a {
    font-size: 20px;
    padding: 18px 0;
  }

  .contact-social-links a:hover {
    padding-left: 8px;
  }

  .contact-divider {
    margin-bottom: 40px;
  }

  /* ═══ Footer ═══ */
  .footer-top-bar {
    padding: 18px 5vw;
    font-size: 10px;
    gap: 16px;
  }

  .footer-status i {
    width: 6px;
    height: 6px;
  }

  .footer-cta {
    padding: 60px 5vw 50px;
  }

  .footer-cta-line {
    font-size: clamp(40px, 14vw, 90px);
    gap: 20px;
  }

  .footer-marquee {
    padding: 20px 0;
  }

  .footer-marquee-track {
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 5vw;
  }

  .footer-col {
    gap: 18px;
  }

  .footer-col-list a {
    font-size: 14px;
    padding: 12px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 5vw;
  }

  .footer-top {
    align-self: flex-end;
  }

  /* ═══ Project Page ═══ */
  .project-page {
    padding: 100px 5vw 60px;
  }

  .project-hero {
    padding: 20px 0 50px;
    margin-bottom: 50px;
  }

  .back-link {
    margin-bottom: 40px;
    font-size: 10px;
  }

  .project-title {
    font-size: clamp(48px, 14vw, 100px);
    margin-bottom: 20px;
  }

  .project-sub {
    font-size: 10px;
    margin-bottom: 28px;
    gap: 10px;
  }

  .project-sub::before {
    width: 24px;
  }

  .project-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .gallery-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-bento .gallery-item,
  .gallery-bento .gallery-item:nth-child(5n+1),
  .gallery-bento .gallery-item:nth-child(5n+2),
  .gallery-bento .gallery-item:nth-child(5n+3),
  .gallery-bento .gallery-item:nth-child(5n+4),
  .gallery-bento .gallery-item:nth-child(5n+5) {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }

  .gallery-masonry {
    column-count: 1;
  }

  .gallery-square {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-youtube {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-stories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sub-projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-desc {
    margin: 50px 0 40px;
    padding-top: 40px;
  }

  .project-desc-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 60px !important;
  }

  .project-desc-grid > div:first-child { order: 1; }
  .project-meta                        { order: 2; }

  .project-desc-grid > div:first-child .eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
    gap: 10px;
  }

  .project-desc-grid > div:first-child .eyebrow::before {
    width: 20px;
  }

  .project-desc-grid > div:first-child p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.75;
    max-width: 100%;
  }

  .project-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .project-meta .eyebrow {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    order: 1;
  }

  .project-meta ul {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2;
    width: 100%;
  }

  .project-meta li {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 16px 0 !important;
    grid-template-columns: unset !important;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .project-meta li:last-child {
    border-bottom: none;
  }

  .project-meta li span {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--fg-muted);
    text-align: left;
    display: block;
  }

  .project-meta li b {
    font-size: 15px;
    line-height: 1.4;
    color: var(--fg);
    text-align: left;
    font-weight: 600;
    display: block;
    width: 100%;
  }

  .project-meta li::before { display: none; }
  .project-meta li:hover    { padding-left: 0; }

  .project-nav {
    flex-direction: column;
    gap: 15px;
  }

  .project-nav a {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    border: 1px solid var(--border);
  }
}

@media (max-width: 500px) {
  .project-title {
    font-size: 22px;
  }

  .project-item--hero .project-title {
    font-size: 28px;
  }

  .work-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-desc-grid {
    gap: 50px !important;
  }

  .project-desc-grid > div:first-child p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.8;
  }

  .project-meta li {
    padding: 14px 0 !important;
  }

  .project-meta li span { font-size: 9px; }
  .project-meta li b    { font-size: 14px; }
}


/* ───────────────────────────────────────────────────────────
   17. RTL — فارسی
   ─────────────────────────────────────────────────────────── */

body.fa .nav {
  direction: ltr;
}

body.fa .nav-right {
  direction: ltr;
}

body.fa .statement-title {
  font-family: var(--font-fa);
  letter-spacing: 0;
  line-height: 1.2;
}

body.fa .statement-intro {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

body.fa .service-card:hover .service-icon {
  transform: rotate(12deg) scale(1.1);
}

body.fa .service-line {
  left: auto;
  right: 0;
}

body.fa .process-intro h2 {
  font-family: var(--font-fa);
  letter-spacing: 0;
}

body.fa .process-title {
  font-family: var(--font-fa);
  letter-spacing: 0;
  text-transform: none;
}

body.fa .process-card p {
  font-family: var(--font-fa);
  line-height: 1.85;
}

body.fa .skills-title {
  font-family: var(--font-fa);
  letter-spacing: 0;
}

body.fa .skills-list li {
  font-family: var(--font-fa);
  padding-left: 0;
  padding-right: 20px;
}

body.fa .skills-list li::before {
  left: auto;
  right: 0;
}

body.fa .skills-list li:hover {
  padding-left: 0;
  padding-right: 24px;
}

body.fa .skills-list--tools li {
  font-family: var(--font-mono);
  padding-right: 0;
}

body.fa .about-title {
  font-family: var(--font-fa);
  letter-spacing: 0;
  line-height: 1.35;
}

body.fa .about-title em {
  font-family: var(--font-fa);
  font-style: normal;
  font-weight: 700;
}

body.fa .about-copy p {
  font-family: var(--font-fa);
  line-height: 1.9;
}

body.fa .about-image-label {
  left: 24px;
  right: 24px;
  text-align: right;
}

body.fa .contact-title {
  font-family: var(--font-fa);
  letter-spacing: 0;
  line-height: 1.2;
}

body.fa .contact-title em {
  font-family: var(--font-fa);
  font-style: normal;
  font-weight: 700;
}

body.fa .contact-email-value {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

body.fa .contact-social-links a {
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.05em;
}

body.fa .contact-social-links a:hover {
  padding-left: 0;
  padding-right: 12px;
}

body.fa .contact-social-links a:hover .social-arrow {
  transform: translate(-4px, -4px);
}

body.fa .footer-top-bar {
  font-family: var(--font-mono);
}

body.fa .footer-cta-line {
  font-family: var(--font-fa);
  letter-spacing: 0;
  line-height: 1.15;
}

body.fa .footer-cta:hover .footer-cta-line {
  transform: translateX(-20px);
}

body.fa .footer-cta:hover .footer-cta-arrow {
  transform: translateX(-30px);
}

body.fa .footer-col-title {
  font-family: var(--font-mono);
}

body.fa .footer-col-list a {
  font-family: var(--font-fa);
}

body.fa .footer-col-list a:hover {
  padding-left: 0;
  padding-right: 8px;
}

body.fa .footer-marquee-track {
  animation-direction: reverse;
}

body.fa .project-title {
  font-family: var(--font-fa);
  letter-spacing: 0;
  line-height: 1;
}

body.fa .project-lead {
  font-family: var(--font-fa);
  line-height: 1.85;
  letter-spacing: 0;
}

body.fa .project-sub::before {
  display: none;
}

body.fa .project-sub::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

body.fa .project-desc-grid > div:first-child p:not(.eyebrow) {
  font-family: var(--font-fa);
  line-height: 1.9;
  letter-spacing: 0;
}

body.fa .project-meta li b {
  font-family: var(--font-fa);
  letter-spacing: 0;
}

body.fa .project-meta li:hover {
  padding-left: 0;
  padding-right: 8px;
}

body.fa .filter-btn {
  font-family: var(--font-fa);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 13px;
  padding: 11px 22px;
}

body.fa .filter-btn::after {
  font-size: 11px;
}

@media (max-width: 900px) {
  body.fa .service-card:hover .service-icon {
    transform: rotate(12deg) scale(1.1);
  }

  body.fa .process-step {
    text-align: right;
  }

  body.fa .process-body {
    align-items: flex-end;
  }

  body.fa .process-card p {
    text-align: right;
  }

  body.fa .contact-social-links a:hover {
    padding-right: 8px;
  }

  body.fa .project-desc-grid > div:first-child p:not(.eyebrow) {
    text-align: right;
    font-family: var(--font-fa);
    line-height: 1.9;
  }

  body.fa .project-meta li span,
  body.fa .project-meta li b {
    text-align: right;
  }

  body.fa .filter-btn {
    font-size: 12px;
    padding: 9px 18px;
  }
}

/* ═══════════════════════════════════════════════════════
   FEATURED CARDS — متن کارت‌های عادی کوچیک‌تر
   ═══════════════════════════════════════════════════════ */

/* ═══ کارت‌های ۲ و ۳ — متن کوچیک‌تر ═══ */
.project-item:not(.project-item--hero) .project-title {
  font-size: clamp(16px, 1.6vw, 24px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

.project-item:not(.project-item--hero) .project-sub {
  font-size: 9px !important;
  letter-spacing: 0.1em !important;
}

.project-item:not(.project-item--hero) .project-num,
.project-item:not(.project-item--hero) .project-arrow {
  font-size: 9px !important;
}

/* ═══ Hero (اول) — بزرگ‌تر ولی متناسب ═══ */
.project-item--hero .project-title {
  font-size: clamp(22px, 2.8vw, 44px) !important;
}

/* ═══ موبایل ═══ */
@media (max-width: 900px) {

  .project-item:not(.project-item--hero) .project-title {
    font-size: clamp(14px, 4.5vw, 18px) !important;
  }

  .project-item--hero .project-title {
    font-size: clamp(20px, 6.5vw, 32px) !important;
  }

  .project-item:not(.project-item--hero) .project-sub {
    font-size: 8px !important;
  }
}