@import url(../font/stylesheet.css);

/* ========================= عمومی ========================= */
body {
  direction: rtl; /* ✅ اضافه شده: راست‌چین کردن کل صفحه */
}
body.no_scroll {
  overflow: hidden;
}
header.header-visible {
  display: block;
}
footer {
  display: none;
}
.steps {
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ========================= preload video ========================= */
#preload {
  position: fixed;
  top: 0;
  right: 0; /* ✅ تغییر: left به right */
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  transition: opacity 2s ease;
  opacity: 1;
}

/* ========================= step2 ========================= */
.step2 {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.step2 .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ✅ تغییر: محتوا از سمت راست شروع شود */
  justify-content: space-between;
  padding-right: 100px; /* ✅ تغییر: padding-left به padding-right */
}
.step2 .green_bg {
  position: absolute;
  top: 15%;
  left: 0; /* ✅ تغییر: right به left */
  transform: translateX(150%);
  opacity: 0;
  width: 100%;
}
.step2 .product_img {
  width: 570px;
  position: absolute;
  top: 9%;
  left: 5%; /* ✅ تغییر: right به left */
  opacity: 0;
  text-align: center;
}
.step2 .product_img .side_img {
  position: absolute;
}
.step2 .product_img .side_img1 {
  right: 20px; /* ✅ تغییر: left به right */
  top: 60px;
}
.step2 .product_img .side_img2 {
  left: 0; /* ✅ تغییر: right به left */
  bottom: 15%;
}
.step2 .data_img {
  transform: translateY(150%);
  opacity: 0;
  margin-bottom: 100px;
}
.step2 .title_box {
  transform: translateY(150%);
  color: #006f0a;
  opacity: 0;
  width: fit-content;
}
.step2 .title_box .section_title {
  font-weight: 600;
  margin: 0 auto 4px;
  font-size: 34px;
  line-height: 1.3;
}
.step2 .title_box .section_caption {
  font-weight: 400;
  font-size: 24px;
  color: #006f0a;
  text-align: center;
  text-align-last: center;
  margin: 0 auto;
}
.step2 .detail_box img {
  position: absolute;
  left: 0;
  right: 0;
  top: 45%;
  margin: 0 auto;
  opacity: 0;
}
.detail_box {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* =========================================================
   STEP 3 – HORIZONTAL SCROLL (NO SWIPER, GSAP BASED)
   ========================================================= */
.step3 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* کانتینر اصلی */
.step3 .horizontal_scroll_container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
/* هر آیتم */
.step3 .scroll_item {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: relative;
    transform: translateX(0);
    transition: transform 0.9s ease-in-out;
    text-align: center;
}
.step3 .scroll_item a {
  max-height: 100%;
}
/* تصویر */
.step3 .scroll_item .img_box {
  margin-bottom: 30px;
  max-height: 90%;
}
.step3 .scroll_item img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}
.step3 .scroll_item img.product-image {
    height: 420px;
    object-fit: contain;
}
/* متن */
.step3 .scroll_text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  width: 100%;
  opacity: 1;
  flex-direction: column;
  row-gap: 18px;
}
.step3 .scroll_text .title {
  font-size: 26px;
  font-weight: 600;
  margin: 0 auto;
  text-align: center;
  text-align-last: center;
  color: #006f0a;
}
.step3 .scroll_text a {
  max-height: 100%;
}
/* دکمه */
.step3 .show_products_btn {
  display: flex;
  align-items: center;
}
.step3 .show_products_btn span {
  margin-left: 6px; /* ✅ تغییر: margin-right به margin-left */
  font-size: 18px;
  color: #676767;
}
.step3 .show_products_btn img {
  width: 24px;
  height: auto;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .step3 {
    height: max-content !important;
    overflow: hidden;
    padding: 20px 0;
  }
  .step3 .scroll_wrapper {
    gap: 24px;
    overflow: auto;
    padding: 20px; /* ✅ اصلاح: واحد پیکسل اضافه شد */
    /* ✅ تغییر: جهت اسکرول در موبایل برای RTL */
    flex-direction: row; 
  }
  .step3 .scroll_item {
    flex: 0 0 100vw;
  }
  .step3 .scroll_text .title {
    font-size: 18px;
  }
}

/* ========================= step4 ========================= */
.step4 {
  position: relative;
}
.step4 .description {
  position: absolute;
  bottom: 0;
  max-height: 85%;
  left: 0; /* ✅ تغییر: right به left */
}
.step4 .text_box {
  position: relative;
  z-index: 10;
}
.step4 .section_title,
.step5 .section_title {
  text-align: right; /* ✅ تغییر: left به right */
  text-align-last: right; /* ✅ تغییر: left به right */
  margin: 0 0 8px;
}
.step4 .row {
  align-items: center;
}
.step4 .section_caption,
.step5 .section_caption {
  margin: 0;
  color: rgba(0, 83, 7, 0.76);
  line-height: 1.6;
}
.step5 .row {
  align-items: center;
}
.step5 .section_caption {
  max-width: 90%;
}
.wheel_img {
  margin-bottom: 100px;
}
.img_group {
  margin: 0 auto;
}
.step5 .content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================= header ========================= */
header {
  display: none;
  height: 15vh;
  padding: 0;
  position: fixed;
  background: transparent;
  transition: background 0.5s ease-in-out;
}
header .content {
  align-items: center;
  display: flex;
  align-content: center;
  height: 100%;
}
.bottom_steps .content {
  align-items: center;
}
.step6 {
  text-align: center;
}
.video_content {
  background: #fff;
}
.video_content video {
  margin-left: -1px; /* ✅ تغییر: margin-right به margin-left */
  margin-bottom: -1px;
}
.horizontal_scroll_container {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}
.scroll_wrapper {
  display: flex;
  flex-wrap: nowrap;
}
.scroll_item {
  flex: 0 0 auto;
  width: 300px;
  text-align: center;
  opacity: 1;
}

/* ========================= Media Queries ========================= */
@media screen and (max-width: 1024px) {
  .step2 .product_img {
    width: 500px;
    top: 14%;
  }
  .step2 .content {
    padding-right: 40px; /* ✅ تغییر: padding-left به padding-right */
  }
}

@media screen and (max-width: 992px) {
  .step2 .data_img {
    margin-bottom: 0;
  }
  .step2 .product_img {
    width: 400px;
    left: 0; /* ✅ تغییر: right به left */
  }
  .step2 .content {
    padding-right: 0px; /* ✅ تغییر: padding-left به padding-right */
  }
}

@media screen and (max-width: 800px) {
  .step2 .product_img {
    width: 400px;
    left: 0; /* ✅ تغییر: right به left */
  }
  .step2 .product_img .side_img1 {
    max-width: 100px;
  }
  .step2 .product_img .side_img2 {
    max-width: 130px;
  }
  .data_img .data_img_inner {
    max-height: 140px;
    margin-left: 16px; /* ✅ تغییر: margin-right به margin-left */
  }
}

.step5, .step6, footer {
  display: flex !important;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .step2 .data_img .data_img_inner {
    max-height: 100px;
  }
  .step2 .product_img .side_img1 {
    right: -40px; /* ✅ تغییر: left به right */
    top: -40px;
  }
  .step2 .product_img .side_img2 {
    left: -40px; /* ✅ تغییر: right به left */
    bottom: -40px;
  }
  .step2 .product_img_main {
    max-width: 100% !important;
  }
  .step5, .step6, footer {
    display: flex !important;
    height: auto !important;
  }
}