/* --- استایل سکشن مشخصات فنی --- */

.tech-specs-section {
  padding: 5rem 3rem;
  background-color: #121212;
  position: relative;
  overflow: hidden;
}

/* تیتر */
.specs-header {
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.section-title {
  color: #fff;
  font-size: 2rem;
  line-height: 1.3;
  text-align: center;
  font-weight: 900;
  margin-bottom: 2rem;
}

.section-subtitle {
  color: #b0b0b0;
  font-size: 1.3rem;
}

.text-red {
  color: #c1121f;
}

/* چیدمان اصلی */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* دو ستون برابر */
  gap: 4rem;
  align-items: center;
}

/* --- ستون تصویر (Blueprint) --- */
.visual-col {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #1a1a1a 0%, #121212 70%);
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
}

/* شبکه شطرنجی پس‌زمینه */
.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(#222 1px, transparent 1px),
    linear-gradient(90deg, #222 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: 0;
}

.machine-img {
  position: relative;
  z-index: 2;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
  display: block;
  margin: 40px auto;
}

/* خطوط اندازه‌گذاری (دکوراتیو) */
.measurement-line {
  position: absolute;
  background-color: #e13742d6;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.measurement-line span {
  background-color: #121212;
  color: #c1121f;
  padding: 2px 8px;
  font-size: 1.1rem;

  font-weight: bold;
  border: 1px solid #c1121f;
  border-radius: 4px;
}

/* خط عرضی */
.width-line {
  bottom: 30px;
  left: 20%;
  width: 60%;
  height: 1px;
}
.width-line::before,
.width-line::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 10px;
  background: #c1121f;
}
.width-line::before {
  left: 0;
}
.width-line::after {
  right: 0;
}

/* خط ارتفاعی */
.height-line {
  top: 10%;
  right: 30px;
  height: 80%;
  width: 1px;
  flex-direction: column;
}
.height-line::before,
.height-line::after {
  content: "";
  position: absolute;
  left: -5px;
  width: 10px;
  height: 1px;
  background: #c1121f;
}
.height-line::before {
  top: 0;
}
.height-line::after {
  bottom: 0;
}

/* --- ستون داده‌ها --- */
.specs-cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* دو ستون کارت */
  gap: 20px;
}

.spec-card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: 0.3s;
}

.spec-card:hover {
  border-color: #555;
  background-color: #252525;
  transform: translateY(-5px);
}

.highlight-card {
  background: linear-gradient(145deg, #1e1e1e, #2a0505);
  border-color: #c1121f; /* کارت ویژه با دور قرمز */
}

.s-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.s-info h4 {
  color: #888;
  font-size: 1.1rem;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s-info span {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  display: block;
  line-height: 1.4;
}

/* باکس دانلود */
.download-box {
  margin-top: 30px;
  background-color: #1a1a1a;
  border: 2px dashed #444;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s;
}

.download-box:hover {
  border-color: #c1121f;
  background-color: #1e1e1e;
}

.pdf-icon {
  width: 50px;
  height: 50px;
  color: #c1121f;
}

.dl-text h5 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 1.3rem;
}

.dl-text p {
  color: #666;
  margin: 0;
  font-size: 0.89rem;
}

.dl-btn {
  background-color: #c1121f;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1rem;

  font-weight: bold;
  transition: 0.3s;
  white-space: nowrap;
}

.dl-btn:hover {
  background-color: #fff;
  color: #c1121f;
}

/* --- ریسپانسیو --- */
@media (max-width: 992px) {
  .specs-grid {
    grid-template-columns: 1fr; /* تک ستون */
    gap: 40px;
  }

  .visual-col {
    min-height: 400px; /* کاهش ارتفاع عکس */
  }
}

@media (max-width: 576px) {
  .specs-cards-wrapper {
    grid-template-columns: 1fr; /* کارت‌ها زیر هم در موبایل */
  }

  .download-box {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .dl-btn {
    width: 100%;
    text-align: center;
  }
}
