:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --text: #172033;
  --muted: #6b778c;
  --border: #e6ebf2;

  --primary: #f28c28;   /* نارنجی ملایم و حرفه‌ای */
  --primary-dark: #d97706;
  --accent: #20b26b;    /* سبز کنترل‌شده */
  --accent-soft: #eaf8f1;

  --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 14px 34px rgba(17, 24, 39, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(242, 140, 40, 0.05), transparent 30%),
    radial-gradient(circle at bottom left, rgba(32, 178, 107, 0.05), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 15.5px;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* Navbar */
.navbar {
  background: rgba(246, 248, 251, 0.88) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 235, 242, 0.9);
  box-shadow: 0 2px 14px rgba(17, 24, 39, 0.03);
}

.navbar .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  padding: 0.75rem 1rem !important;
}

.navbar .nav-link:hover {
  color: var(--primary) !important;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Cards */
.card,
.card-glass,
.product-card,
.service-card,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.28s ease;
  overflow: hidden;
}

.card:hover,
.card-glass:hover,
.product-card:hover,
.service-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 140, 40, 0.14);
}

/* Hero */
.hero-section {
  padding: 5rem 0 4rem;
}

.hero-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.06);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.hero-description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 2;
}

/* Buttons */
.btn {
  border-radius: 14px;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  transition: all 0.25s ease;
}

.btn-primary,
.btn-gradient {
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  border: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(242, 140, 40, 0.18);
}

.btn-primary:hover,
.btn-gradient:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline-light {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.btn-outline-light:hover {
  border-color: rgba(242, 140, 40, 0.3);
  color: var(--primary);
  background: #fff;
}

/* Badges */
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(242, 140, 40, 0.1);
  color: #b45309;
  font-weight: 700;
  font-size: 0.9rem;
}

.skill-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f8f9fa; /* رنگ روشن */
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--primary); /* رنگ اصلی سایت شما */
    color: #fff;
    border-color: var(--primary);
    cursor: default;
}
/* استایل برای badge رنگی کوچک */
.bg-primary-soft {
    background-color: rgba(249, 115, 22, 0.1); /* رنگ نارنجی ملایم */
    color: #f97316 !important;
    font-size: 0.9rem;
}

/* استایل عکس برای حالت مدرن */
.hero-image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.hero-image-wrapper img {
    border: 5px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: rotate(2deg);
    transition: 0.3s;
}

.hero-image-wrapper img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* افکت پس‌زمینه (Optional) */
.hero-section {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.05), transparent);
}


/* Icons */
.icon-box {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(242, 140, 40, 0.1);
  color: var(--primary);
}

/* Price / Sales */
.price-old {
  color: #94a3b8;
  text-decoration: line-through;
  margin-inline-end: 0.5rem;
}

.price-new {
  color: var(--primary-dark);
  font-weight: 800;
}

.discount-badge {
  background: rgba(242, 140, 40, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

/* Product cards */
.product-card .card-body {
  padding: 1.1rem;
}

.product-card img {
  border-bottom: 1px solid var(--border);
}

/* Category blocks */
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 140, 40, 0.16);
  box-shadow: var(--shadow-md);
}

/* About / service blocks */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

/* Timeline */
.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
  position: relative;
  padding-inline-start: 52px;
  margin-bottom: 1.8rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px rgba(242, 140, 40, 0.15);
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Utilities */
.text-muted {
  color: var(--muted) !important;
}

.glow {
  display: none !important;
}

hr {
  border-color: var(--border);
  opacity: 1;
}

::selection {
  background: rgba(242, 140, 40, 0.18);
  color: var(--text);
}
/* About text: Persian justify with low spacing */
.about-text{
  text-align: justify;
  text-justify: inter-word;   /* در بعضی مرورگرها موثر */
  line-height: 2;
  font-size: 1rem;
  color: var(--text, #1e293b);

  /* کاهش “کشیدگی/فاصله‌ی زیاد” در justify */
  word-spacing: -0.6px;
  letter-spacing: 0;         /* برای فارسی معمولاً بهتره صفر باشه */
  hyphens: none;             /* فارسی: شکست با خط تیره نکن */
  overflow-wrap: break-word;
}

/* اگر متن خیلی کش میاد، این حالت معمولاً بهتر جواب می‌دهد */
@supports (text-align: justify) {
  .about-text{
    text-align-last: start;   /* خط آخر مثل متن عادی */
  }
}
/* کاهش فاصله یکنواخت برای تمام بخش‌ها */
.section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* فاصله بین کارت‌های مادر */
.container {
    margin-bottom: 0.5rem !important;
}
