/* ========================================
   HERO SECTION
======================================== */

.hero-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}

/* نورهای پس‌زمینه */

.hero-section::before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  top: 0;
  right: -180px;
  background: rgba(37, 99, 235, 0.13);
  filter: blur(100px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  bottom: -100px;
  left: -100px;
  background: rgba(6, 182, 212, 0.1);
  filter: blur(100px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* محتوای اصلی */

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  margin-bottom: 24px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.07);
  color: #67e8f9;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}

.hero-title {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.8;
  letter-spacing: -1px;
}

.hero-description {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 2.2;
  color: var(--color-text-muted);
}

.hero-description strong {
  color: #e2e8f0;
  font-weight: 700;
}

/* دکمه‌ها */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* مزیت‌های کوتاه */

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.hero-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 0.8rem;
}

/* کارت تصویری سمت مقابل */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(30, 58, 100, 0.55),
      rgba(12, 19, 36, 0.9)
    );
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.25),
    0 0 50px rgba(59, 130, 246, 0.08);
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  filter: blur(55px);
  pointer-events: none;
}

.hero-code-window {
  position: relative;
  direction: ltr;
  padding: 17px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.68);
}

.hero-window-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
}

.hero-window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}

.hero-window-dot:nth-child(1) {
  background: #fb7185;
}

.hero-window-dot:nth-child(2) {
  background: #fbbf24;
}

.hero-window-dot:nth-child(3) {
  background: #4ade80;
}

.hero-code-line {
  height: 8px;
  margin-bottom: 13px;
  border-radius: 20px;
  background: rgba(96, 165, 250, 0.24);
}

.hero-code-line:nth-child(2) {
  width: 75%;
  background: rgba(34, 211, 238, 0.55);
}

.hero-code-line:nth-child(3) {
  width: 90%;
}

.hero-code-line:nth-child(4) {
  width: 55%;
  background: rgba(167, 139, 250, 0.45);
}

.hero-code-line:nth-child(5) {
  width: 68%;
}

.hero-code-line:nth-child(6) {
  width: 42%;
  background: rgba(34, 197, 94, 0.4);
}

.hero-code-line:last-child {
  margin-bottom: 0;
}

.hero-visual-caption {
  position: relative;
  margin-top: 24px;
  text-align: center;
}

.hero-visual-caption h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-visual-caption p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.9;
}

/* آمار کوتاه */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}

.hero-stat {
  padding: 14px 8px;
  text-align: center;
  border: 1px solid rgba(96, 165, 250, 0.13);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
}

.hero-stat strong {
  display: block;
  margin-bottom: 5px;
  color: #67e8f9;
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-stat span {
  display: block;
  color: #a8b4c7;
  font-size: 0.78rem;
  line-height: 1.8;
}

/* موبایل */

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 75px 0 60px;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-visual {
    min-height: auto;
    margin-top: 45px;
  }

  .hero-visual-card {
    max-width: 500px;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 55px 0 45px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.85;
    letter-spacing: 0;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 2.1;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-tech,
  .hero-actions .btn-tech-outline {
    width: 100%;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 13px;
  }

  .hero-visual-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stat {
    padding: 12px 5px;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .hero-stat span {
    font-size: 0.72rem;
  }
}


/* ==============================
   Hero Improvements
================================= */

/* کاهش فاصله بالای هرو از هدر */
.hero-section {
  padding-top: 28px;
}

/* جمله اختصاصی برنامه‌نویسی */
.hero-quote {
  margin: 22px 0;
  padding-right: 16px;
  border-right: 3px solid #67e8f9;
  text-align: right;
}

.hero-quote-fa {
  margin: 0 0 10px;
  color: #e2e8f0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 2;
}

.hero-quote-en {
  margin: 0;
  color: #94a3b8;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.9;
}

/* موبایل و تبلت */
@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 12px;
  }

.hero-section .row {
  row-gap: 24px !important;
  margin-right: 0;
  margin-left: 0;
  max-width: 100%;
}
  .hero-content {
    width: 100%;
    text-align: center;
  }

  .hero-badge {
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-quote {
    margin: 20px auto;
    padding: 0 10px;
    border-right: 0;
    border-bottom: 2px solid rgba(103, 232, 249, 0.65);
    padding-bottom: 14px;
    text-align: center;
  }

  .hero-quote-fa {
    font-size: 1.02rem;
    line-height: 2;
  }

  .hero-quote-en {
    font-size: 0.78rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .hero-description {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    align-items: center;
  }

  .hero-highlights {
    padding-right: 0;
    padding-left: 0;
    align-items: center;
  }

  .hero-highlights li {
    justify-content: center;
    text-align: center;
  }

  .hero-visual {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }
}
