@font-face {
  font-family: "Vazir";
  src:
    url("../assets/Font/Vazirmatn-VariableFont_wght.ttf") format("woff2"),
    url("../assets/Font/Vazirmatn-VariableFont_wght.ttf") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "lalezar";
  src:
    url("../assets/Font/Lalezar-Regular.ttf") format("woff2"),
    url("../assets/Font/Lalezar-Regular.ttf") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
}

.include-header {
  width: 100%;
  height: 12vh;
  position: sticky;
  z-index: 100;
  top: 0;
}

.top_video_banner {
  width: 100%;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.include-footer {
  width: 100%;
  height: 23vh;
}

.background_video_top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top_video_banner {
  h1 {
    position: absolute;
    color: white;
    z-index: 1;
    left: 50%;
    top: 10%;
    transform: translate(-50%, -50%);
    font-size: clamp(0.5rem, calc(2vw + 1rem), 6rem);
    font-family: "lalezar", sans-serif;
    text-wrap: balance;
    text-align: center;
    width: 90%;
  }
  h2 {
    position: absolute;
    color: white;
    z-index: 1;
    left: 50%;
    bottom: 15%;
    transform: translate(-50%, -50%);
    font-size: clamp(0.5rem, calc(2vw + 0.5rem), 6rem);
    font-family: "lalezar", sans-serif;
    text-wrap: balance;
    text-align: center;
    width: 90%;
  }
}

.top-video-shop-button,
.customize-section-btn {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 5%;
  transform: translate(-50%, -50%);
  transition: 0.4s;
  border: 1px solid white;
  border-radius: 5px;
  width: 15%;
  height: 40px;
  text-align: center;
  min-width: 120px;

  button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: clamp(0.5rem, calc(0.6vw + 0.5rem), 6rem);
    font-family: "Vazir", sans-serif;
    cursor: pointer;
    width: 100%;
    height: 100%;
  }
}
.top-video-shop-button:hover,
.customize-section-btn :hover {
  background-color: rgb(235, 235, 12);
  button {
    color: black;
    border: none;
  }
}

/*space_border*/
.space_border {
  width: 100%;
  height: 60px;
  background: repeating-linear-gradient(
    -45deg,
    #212529,
    #000 10px,
    #fff 10px 20px
  );
}

/*marquee-picture*/

.marquee-moving-picture {
  width: 100%;
  height: 28vh;
  background-color: #000;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 20px;
  align-items: center;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-moving-picture img {
  height: 100%;
  width: 180px;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/*slider*/

.slider-container {
  width: 100%;
  height: 80vh;
  display: flex;
  overflow: hidden;
  position: relative;
}

.slider-wrapper {
  width: 100%;
  height: 80vh;
  display: flex;
  /* allow the wrapper to grow/shrink so items can reflow responsively */
  flex: 1 0 100%;
}

.slider-item {
  background-color: rgb(16, 16, 16);
  width: 100%;
  height: 80vh;
  display: none;
  /* center slide contents when active */
  align-items: center;
  justify-content: center;
}

.slider-active {
  display: flex;
  animation: slider-flow 0.5s;
}

.slider-image {
  /* make image column flexible and responsive */
  flex: 1 1 50%;
  min-width: 220px;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-image img {
  width: 100%;
  /* use a responsive height strategy: prefer intrinsic height (auto) but
     maintain coverage at larger viewports */
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
}

.slider-information {
  /* textual column for slide info: flexible and padded */
  flex: 1 1 50%;
  height: 80vh;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.slider-text {
  max-width: 600px;
  width: 100%;
  height: 80vh;
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-wrap: balance;
  gap: 1em;
  direction: rtl;
}

.slider-text span {
  font-size: 2.6rem;
  font-family: "Lalezar", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.slider-text p {
  font-size: 1.3rem;
  font-family: "Vazir", sans-serif;
  font-style: normal;
}

.slider-text button {
  background: none;
  border: none;
  font-size: 1.3rem;
  font-family: "Vazir", sans-serif;
}

.slider-text a {
  width: 180px;
  height: 50px;
  background-color: white;
  text-align: center;
  border-radius: 10px;
  transition: 250ms ease;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.slider-text button:hover {
  color: #ebb70c;
  cursor: pointer;
}

.slider-container .previous-button,
.slider-container .next-button {
  object-fit: cover;
  width: 100px;
  height: 100px;
  position: absolute;
  transform: translateY(-50%);
  background-color: transparent;
  padding: 0px 30px;
  border: none;
  top: 50%;

  img {
    width: 80px;
  }
}

@keyframes slider-flow {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

.previous-button {
  left: 30px;
}

.next-button {
  right: 30px;
}

.shop-collection-container {
  width: 100%;
  height: max-content;
  background: linear-gradient(#ebeb0c, #f3722c);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.collection-shop-text {
  font-size: 4rem;
  font-family: "Lalezar", sans-serif;
  padding-top: 10px;
}

.collection-shop-cards {
  width: 100%;
  height: max-content;
  padding: 20px;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
}

.collection-card {
  height: 400px;
  text-align: center;
  border-radius: 15px;
  font-size: 1.5rem;
  font-family: "Vazir", sans-serif;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.card1 {
  background-image: url(../source/image/collection-card1.webp);
}

.card2 {
  background-image: url(../source/image/collection-card1.webp);
}

.card3 {
  background-image: url(../source/image/collection-card3.webp);
}

.card4 {
  background-image: url(../source/image/collection-card4.webp);
}

.card5 {
  background-image: url(../source/image/collection-card5.webp);
}

.card6 {
  background-image: url(../source/image/collection-card6.webp);
}

.collection-card span {
  max-width: max-content;
  background-color: transparent;
  backdrop-filter: blur(20px);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
  position: absolute;
  border-bottom-left-radius: 15px;
  padding: 10px 20px;
  color: rgb(186, 162, 1);
  left: 0;
  bottom: 0px;
}
/* بخش سفارشی‌سازی تجهیزات */
.customize-section {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}

.customize-title {
  position: absolute;
  top: 10%;
  font-size: 2.6rem;
  font-family: "Lalezar", sans-serif;
  text-wrap: balance;
  text-align: center;
  z-index: 10;
  color: #f0f0f0;
}

.custmoize--join-us-title {
  position: absolute;
  bottom: 25%;
  font-size: 2rem;
  font-family: "lalezar", sans-serif;
  text-wrap: balance;
  text-align: center;
  z-index: 10;
  color: #f0f0f0;
}

.custom-equipment-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* مهم: عکس رو بطور هوشمند برش می‌ده */
  position: relative;
}

@media (max-width: 576px) {
  .top_video_banner {
    height: 50vh;
  }

  .top_video_banner h1 {
    top: 20%;
    font-size: 1.8rem;
    width: 95%;
  }

  .top_video_banner h2 {
    bottom: 25%;
    font-size: 1.5rem;
    width: 95%;
  }

  .top-video-shop-button,
  .customize-section-btn {
    width: 150px;
    height: 35px;
    bottom: 10%;
  }

  .top-video-shop-button button,
  .customize-section-btn button {
    font-size: 0.9rem;
  }

  .space_border {
    height: 5vh;
  }

  .marquee-moving-picture {
    height: 140px;
    img {
      width: 130px;
      margin-top: 5px;
    }
  }

  .slider-container {
    height: auto;
    min-height: 320px; /* safe minimum so hero area isn't too small */
  }

  .slider-wrapper {
    height: auto;
  }

  /* ensure only active slide shows and it stacks image then info */
  .slider-item {
    height: auto;
    flex-direction: column;
    display: none;
  }

  .slider-item.slider-active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .slider-image {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    min-height: 160px;
  }

  .slider-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .slider-information {
    width: 100%;
    height: auto;
    padding: 14px 16px 22px;
  }

  .slider-text {
    width: 100%;
    height: auto;
    padding: 12px 0;
    gap: 0.5em;
  }

  .slider-text span {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .slider-text p {
    font-size: 0.95rem;
  }

  .slider-text a {
    width: 100%;
    max-width: 220px;
    height: 44px;
    margin-top: 12px;
  }

  /* larger, touch-friendly nav buttons overlaid on the slide image */
  .slider-container .previous-button,
  .slider-container .next-button {
    width: 48px;
    height: 48px;
    padding: 6px;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .slider-container .previous-button img,
  .slider-container .next-button img {
    width: 22px;
    height: 22px;
  }

  .previous-button {
    left: 10px;
  }

  .next-button {
    right: 10px;
  }

  /* ensure controls are above images */
  .slider-container .previous-button,
  .slider-container .next-button {
    z-index: 30;
  }

  .shop-collection-container {
    height: auto;
    min-height: 100vh;
  }

  .collection-shop-text {
    font-size: 2.2rem;
    padding: 20px 0;
  }

  .collection-shop-cards {
    grid-template-columns: 1fr;
    height: auto;
    gap: 15px;
    padding: 15px;
  }

  .collection-card {
    height: 250px;
  }

  .collection-card span {
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .customize-banner {
    height: 40vh;
  }

  .customer-comment-section {
    padding: 40px 15px;
  }

  .comments-container h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .testimonials-main {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-card h4 {
    font-size: 1.2rem;
  }

  .view-all-comments button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 95%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/*  Mobile Large + Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .slider-wrapper,
  .slider-item {
    height: auto;
  }

  .slider-item.slider-active {
    display: flex;
    flex-direction: column; /* stack image then text */
    align-items: stretch;
  }

  .slider-image {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 200px;
  }

  .slider-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  .slider-information {
    width: 100%;
    height: auto;
    padding: 18px;
  }

  .slider-text {
    height: auto;
    gap: 0.5em;
    padding: 10px 0;
  }

  .slider-container .previous-button,
  .slider-container .next-button {
    top: auto;
    bottom: 10px;
    transform: none;
  }
}

/*  Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .top_video_banner {
    height: 70vh;
  }

  .top_video_banner h1 {
    top: 15%;
    font-size: 2.5rem;
  }

  .top_video_banner h2 {
    bottom: 20%;
    font-size: 2rem;
  }

  .top-video-shop-button,
  .customize-section-btn {
    width: 200px;
    bottom: 8%;
  }

  .slider-container {
    height: 60vh;
  }

  .slider-wrapper {
    height: 60vh;
  }

  .slider-container {
    height: auto;
    min-height: 200px;
  }

  .slider-wrapper {
    height: auto;
  }

  .slider-item {
    height: auto;
    flex-direction: column;
    display: none;
  }

  .slider-item.slider-active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .slider-image {
    width: 100%;
    /* height: auto; */
    min-height: 200px;
    flex: 0 0 auto;
  }

  .slider-image img {
    width: 100%;
    /* height: auto; */
    object-fit: cover;
    display: block;
  }

  .slider-information {
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .slider-text {
    width: 100%;
    height: auto;
    padding: 12px 0;
    gap: 0.6em;
  }

  .slider-text span {
    font-size: 1.3rem;
  }

  .slider-text p {
    font-size: 1.05rem;
  }

  /* slightly smaller, touch-friendly nav buttons placed at image edges */
  .slider-container .previous-button,
  .slider-container .next-button {
    width: 44px;
    height: 44px;
    padding: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 50%;
  }

  .slider-container .previous-button img,
  .slider-container .next-button img {
    width: 20px;
    height: 20px;
  }

  .previous-button {
    left: 8px;
  }
  .next-button {
    right: 8px;
  }

  .shop-collection-container {
    height: auto;
    min-height: 120vh;
  }

  .collection-shop-cards {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    gap: 20px;
    padding: 20px;
  }

  .collection-card {
    height: 300px;
  }

  .collection-shop-text {
    font-size: 3rem;
  }

  .customize-banner {
    height: 50vh;
  }

  .testimonials-main {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .comments-container h2 {
    font-size: 2rem;
  }
}

/*  Desktop (min-width: 1201px) */
@media (min-width: 1201px) {
  .slider-text span {
    font-size: clamp(2.6rem, 1.8vw, 3.2rem);
  }
}
