/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 60%, #0f172a 100%);
    color: #0f172a;
    line-height: 1.6;
}

/* ===== HERO ===== */

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn.primary {
    background: #2563eb;
    color: white;
}

.btn.primary:hover {
    background: #1e40af;
}

.btn.secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn.secondary:hover {
    background: #2563eb;
    color: white;
}

.btn.dark {
    background: #0f172a;
    color: white;
}

.btn.dark:hover {
    background: #1e293b;
}

/* ===== FEATURES ===== */
.features {
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.feature-card {
    padding: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-card p {
    color: #475569;
}

/* ===== TECH PREVIEW ===== */
.technical-preview {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

.technical-preview h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.technical-preview p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #1e293b;
}

/* ===== DARK TRANSITION FOOTER ===== */
.cta-footer {
    padding: 120px 20px;
    text-align: center;
    background: #0f172a;
    color: white;
}

.cta-footer h2 {
    margin-bottom: 30px;
    font-size: 30px;
}

/*////////////////*/
/* ===== ENGINEERING VIDEO SECTION ===== */

.engineering-video {
  padding: 120px 20px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 40%, #1e293b 100%);
  color: #0f172a;
}

.video-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.video-text h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

.video-text p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #334155;
}

.video-points {
  list-style: none;
  margin-bottom: 30px;
}

.video-points li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  color: #1e293b;
}

.video-points li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #2563eb;
}

/* ===== VIDEO FRAME ===== */

.video-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.video-frame iframe {
  width: 100%;
  height: 340px;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.play-button {
  font-size: 50px;
  color: white;
  opacity: 0.9;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .video-container {
    grid-template-columns: 1fr;
  }

  .video-frame iframe {
    height: 260px;
  }
}

.img-box {
  width: 120px;      /* اندازه هر باکس */
  height: 120px;
  overflow: hidden;
  position: relative;
  margin:auto;
}

.img-box img {
  width: 100%;       /* چون تصویر 2 ستون دارد */
  height: 100%;      /* چون 2 ردیف دارد */
  object-fit: cover;
}

/* بالا چپ */
.part1 img {
  object-position: 2px;
}

/* بالا راست */
.part2 img {
  object-position: -110px;
}

/* پایین چپ */
.part3 img {
  object-position: -221px;
}

/* پایین راست */
.part4 img {
  object-position: -335px;
}