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

/* ========================= عمومی ========================= */
body.no_scroll {
  overflow: hidden;
}

header.header-visible {
  display: block;
}

footer {
  display: none;
}

.steps {
  height: 100vh;
  /* display: none; */ /* ❌ حذف شده — چون باعث می‌شد scrollWidth = 0 بشه */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ========================= preload video ========================= */
#preload {
  position: fixed;
  top: 0;
  left: 0;
  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-left: 100px;
}

.step2 .green_bg {
  position: absolute;
  top: 15%;
  right: 0;
  transform: translateX(150%);
  opacity: 0;
  width: 100%;
}

.step2 .product_img {
  width: 570px;
  position: absolute;
  top: 9%;
  right: 5%;
  opacity: 0;
  text-align: center;
}

.step2 .product_img .side_img {
  position: absolute;
}

.step2 .product_img .side_img1 {
  left: 20px;
  top: 60px;
}

.step2 .product_img .side_img2 {
  right: 0;
  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;
}

/* =========================================================
   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 {
    /* position: absolute; */
    /* left: 0%; */
    /* bottom: 0; */
    display: flex;
    align-items: center;
}
.step3 .show_products_btn span {
    margin-right: 6px;
    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: 20;
}
  .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%;
  right: 0;
}

.step4 .text_box {
  position: relative;
  z-index: 10;
}

.step4 .section_title,
.step5 .section_title {
  text-align: left;
  text-align-last: left;
  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;
}

/* .step5 .last_img { transform: rotate(20deg); } */

/* ========================= 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-right: -1px;
  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 screen and (max-width: 1024px) {
  .step2 .product_img {
    width: 500px;
    top: 14%;
  }
  .step2 .content {
    padding-left: 40px;
  }
}

@media screen and (max-width: 992px) {
  .step2 .data_img {
    margin-bottom: 0;
  }
  .step2 .product_img {
    width: 400px;
    right: 0;
  }
  .step2 .content {
    padding-left: 0px;
  }
}

@media screen and (max-width: 800px) {
  .step2 .product_img {
    width: 400px;
    right: 0;
  }
  .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-right: 16px;
  }
}

.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 {
    left: -40px;
    top: -40px;
}
.step2 .product_img .side_img2 {
    right: -40px;
    bottom: -40px;
}
.step2 .product_img_main {
    max-width: 100% !important;
}
.step5, .step6, footer {
    display: flex !important;
    height: auto !important;
}
}