/* ===== PRECIV — Ultra-Clean Light Tech Design System ===== */
:root {
  /* پالت رنگی زمینه سفید و مهندسی */
  --bg-pure: #ffffff;
  --bg-page: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  /* رنگ‌های تاکید مهندسی و تله‌متری */
  --primary: #0284c7;           /* آبی کبالت فناوری */
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;     /* فیروزه‌ای بسیار روشن */
  --accent-thermal: #ea580c;    /* نارنجی هشدار و حرارت */
  --accent-thermal-light: #ffedd5;
  --accent-teal: #0d9488;       /* سبز-آبی یکپارچه‌سازی */
  --accent-teal-light: #ccfbf1;
  --accent-purple: #6366f1;     /* بنفش ابزار دقیق */
  --accent-purple-light: #e0e7ff;
  
  /* متون و تایپوگرافی با کنتراست شفاف */
  --text-heading: #0f172a;      /* خاکستری تیره مایل به سرمه‌ای */
  --text-body: #334155;         /* رنگ متن خوانا */
  --text-muted: #64748b;        /* متن ثانویه */
  --text-faint: #94a3b8;
  
  /* بوردرها و خطوط */
  --border: #e2e8f0;
  --border-card: #e2e8f0;
  --border-focus: #38bdf8;
  
  /* سایه‌ها و عمق المان‌ها در زمینه روشن */
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.09), 0 10px 15px -4px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 24px 45px -8px rgba(2, 132, 199, 0.14);
  
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --font-fa: 'Vazirmatn', system-ui, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

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

body {
  background-color: var(--bg-pure);
  color: var(--text-body);
  font-family: var(--font-fa);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

/* انطباق زبان انگلیسی LTR */
html[dir="ltr"] body {
  font-family: var(--font-en);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* هدر و ناوبری با شیشه روشن */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-heading);
}

.logo-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.logo-accent {
  color: var(--primary);
}

.logo-domain {
  color: var(--accent-thermal);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-heading);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: inherit;
}

.lang-switch-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition);
}

/* سیستم دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
  background: var(--bg-pure);
  color: var(--text-heading);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

html[dir="ltr"] .arrow-direction {
  transform: rotate(180deg);
}

/* بخش اصلی هیرو (Hero) در تم روشن */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  background-color: var(--bg-pure);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(var(--border) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.7;
  pointer-events: none;
}

.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(2, 132, 199, 0.08);
  top: 10%;
  right: -5%;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: rgba(234, 88, 12, 0.06);
  bottom: 5%;
  left: -5%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--primary-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--primary);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.badge-radar {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6);
  animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #0369a1 60%, var(--accent-thermal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-desc {
  color: var(--text-body);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* کارت‌های آمار هیرو با هماهنگی کامل LTR/RTL */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.metric-icon {
  color: var(--primary);
  font-size: 1.15rem;
}

.metric-tag {
  font-size: 0.72rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  direction: ltr; /* تضمین چینش صحیح اعداد و کاراکترها در همه زبان‌ها */
  justify-content: flex-end;
}

html[dir="ltr"] .metric-value-wrap {
  justify-content: flex-start;
}

.metric-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1;
}

.metric-symbol {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-thermal);
}

.metric-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: right;
}

html[dir="ltr"] .metric-title {
  text-align: left;
}

/* ویجت HUD گرافیکی شناور در هیرو */
.hud-frame {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-out;
}

.hud-scanner-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scannerLine 5s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes scannerLine {
  0% { top: 0%; }
  50% { top: 98%; }
  100% { top: 0%; }
}

.hud-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.hud-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.hud-code {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 700;
  font-family: var(--font-en);
}

.hud-widget {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.hud-widget:hover {
  transform: translateX(-4px);
  border-color: var(--primary);
  background: var(--bg-pure);
  box-shadow: var(--shadow-sm);
}

html[dir="ltr"] .hud-widget:hover {
  transform: translateX(4px);
}

.widget-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.icon-tour { background: var(--primary-light); color: var(--primary); }
.icon-thermal { background: var(--accent-thermal-light); color: var(--accent-thermal); }
.icon-lidar { background: var(--accent-teal-light); color: var(--accent-teal); }

.widget-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.widget-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hud-telemetry-box {
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  margin-top: 1.2rem;
}

.telemetry-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.telemetry-val {
  color: #38bdf8;
  font-family: var(--font-en);
  font-weight: 700;
}

.telemetry-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.telemetry-bar-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #f59e0b);
  border-radius: 4px;
  animation: pulseWidth 3s ease-in-out infinite alternate;
}

@keyframes pulseWidth {
  0% { width: 55%; }
  100% { width: 82%; }
}

/* بخش‌های عمومی */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 3.8rem;
}

.section-pill {
  display: inline-block;
  background: var(--primary-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-main-title {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.85;
}

.text-center { text-align: center; }

/* بخش درباره مرکز */
.about-section {
  background: var(--bg-page);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.card-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}

.card-icon-box.accent-thermal { background: var(--accent-thermal-light); color: var(--accent-thermal); }
.card-icon-box.accent-purple { background: var(--accent-purple-light); color: var(--accent-purple); }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.8rem;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ماتریس خدمات */
.services-section {
  background: var(--bg-pure);
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-box {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.service-box-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-pure), var(--bg-subtle));
  border-color: rgba(2, 132, 199, 0.3);
}

.service-box-num {
  position: absolute;
  top: 1.5rem;
  left: 1.8rem;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--bg-subtle);
}

html[dir="rtl"] .service-box-num {
  left: auto;
  right: 1.8rem;
}

.service-box-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.service-box-icon.accent-orange { background: var(--accent-thermal-light); color: var(--accent-thermal); }
.service-box-icon.accent-blue { background: #dbeafe; color: #1d4ed8; }
.service-box-icon.accent-teal { background: var(--accent-teal-light); color: var(--accent-teal); }

.service-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.service-box-en {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 600;
  font-family: var(--font-en);
  margin-bottom: 1.1rem;
  display: block;
}

.service-box-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.service-box-list {
  list-style: none;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.service-box-list li {
  position: relative;
  padding-inline-start: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-body);
}

.service-box-list li::before {
  content: "✔";
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary);
  font-size: 0.8rem;
}

.service-box-output {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.service-box-output strong {
  color: var(--primary);
  margin-inline-end: 0.4rem;
}

.service-box-benefit, .service-box-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.65;
}

.service-box-benefit {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.service-box-benefit i {
  color: #16a34a;
  margin-top: 0.25rem;
}

.service-box-note {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.service-box-note i {
  color: #d97706;
  margin-top: 0.25rem;
}

/* کاربردها در صنایع */
.apps-section {
  background: var(--bg-page);
}

.apps-grid-layout {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.app-item-card {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.app-item-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.app-item-card i {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.app-item-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.45rem;
}

.app-item-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: block;
}

/* فرآیند یکپارچه‌سازی ۷ مرحله‌ای */
.process-section {
  background: var(--bg-pure);
}

.timeline-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 1rem;
}

.timeline-step-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-step-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-step-card.highlight-step {
  background: var(--primary-light);
  border-color: var(--primary);
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.timeline-step-card.highlight-step .step-badge {
  background: var(--accent-thermal);
}

.timeline-step-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.timeline-step-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* گالری پروژه‌ها */
.portfolio-section {
  background: var(--bg-page);
}

.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-tab.active, .filter-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.portfolio-item-wrap {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.portfolio-item-wrap:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.portfolio-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item-wrap:hover .portfolio-img-box img {
  transform: scale(1.08);
}

.img-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

html[dir="ltr"] .img-badge {
  right: auto;
  left: 12px;
}

.portfolio-meta {
  padding: 1.4rem;
}

.portfolio-meta h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.portfolio-meta p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* فرم تماس و استعلام */
.contact-section {
  background: var(--bg-pure);
}

.contact-card-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  box-shadow: var(--shadow-md);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem 0;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.channel-item i {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.channel-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: block;
}

.channel-item strong {
  font-size: 1.05rem;
  color: var(--text-heading);
}

.slogan-badge {
  background: var(--bg-pure);
  border: 1px dashed var(--border);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-form-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.input-row input, .input-row select, .input-row textarea {
  width: 100%;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-heading);
  outline: none;
  transition: var(--transition);
}

.input-row input:focus, .input-row select:focus, .input-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* فوتر */
.footer {
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-heading);
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  gap: 1.4rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.footer-copy {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* بهینه‌سازی ریسپانسیو دسکتاپ و موبایل */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
  .apps-grid-layout { grid-template-columns: repeat(3, 1fr); }
  .contact-card-box { grid-template-columns: 1fr; padding: 2.5rem; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.08);
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
    z-index: 999;
  }

  html[dir="ltr"] .nav {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.08);
    transition: left 0.35s ease;
  }

  .nav.open { right: 0; }
  html[dir="ltr"] .nav.open { left: 0; }

  .mobile-toggle { display: flex; }
  .header-cta { display: none; }

  .about-cards-grid, .services-cards-grid, .portfolio-cards-grid {
    grid-template-columns: 1fr;
  }

  .apps-grid-layout { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics { grid-template-columns: 1fr; }
  .footer-layout { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .apps-grid-layout { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
}