html {
  scroll-behavior: smooth;
}

/*------------------------------------------------------------------ head -------------------------------------------------------------*/


/*------------------------------------------------------------------ home -------------------------------------------------------------*/

.home {
  box-sizing: border-box;
  padding-top: 182px;


}

.Home-content {
  max-width: 800px;
  text-align: center;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;

}

.Home-title {
  font-size: 60px;
  color: var(--text-color-7);
  font-family: 'Black';

}

.Home-cption {
  font-size: 20px;
  margin-top: 1rem;
  font-family: 'Medium';
  color: var(--text-color-7);

}

.Home-btn {
  max-width: 500px;
  /* height: 53px; */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(250px);
  padding: 7px 7px;
  display: inline-block;
  border: 1.5px solid #d4d4d4;
  border-radius: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;

}

.Home-btn__left {
  background-color: var(--bg-color-3);
  color: var(--text-color-4);
  padding: 8px 50px;
  border-radius: 10px;
  margin-right: 15px;
  text-decoration: none;
  font-family: 'Bold';

}

.Home-btn__left:hover {
  background-color: var(--hover-color-2);
  color: var(--text-color-4);
  box-shadow: 0 4px 15px rgba(88, 191, 255, 0.4);
  /* transform: translateY(-3px);  */
  transition: all 0.2s ease-in-out;
}

.Home-btn__rigth {

  background-color: var(--bg-color-5);
  color: var(--text-color-4-1);
  padding: 8px 65px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Bold';
}

.Home-btn__rigth:hover {
  background-color: var(--hover-color-3);
  color: var(--text-color-4-right);
  transition: all 0.2s ease-in-out;
}

.poster {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 125px;


}

.poster-cards {
  width: 255px;
  height: 330px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-image: url(/image/poster2.webp);
  background-repeat: no-repeat;
  background-size: cover;

}

.poster-wrapper {
  display: flex;
  /* یا grid یا هرچی استفاده می‌کنی */
  flex-wrap: wrap;
}

.poster-cards {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .poster-cards::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
} */




.poster-cards:nth-child(2) {
  background-image: url(/image/poster2.webp);
}

.poster-cards:nth-child(3) {
  background-image: url(/image/file_00000000790861f79e41f5b26e44dd77.webp);
}

.poster-cards:nth-child(4) {
  background-image: url(/image/claymation.webp);
}

.poster-cards:nth-child(5) {
  /* background-image: url(/image/5.jpg); */
  background-image: url(/image/pixar3d.webp);
}

.poster-card__content {
  /* background-color: rgba(102, 102, 102, 0.08); */
  backdrop-filter: blur(7.5px);
  border-top: 2px solid rgba(102, 102, 102, 0.09);
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  justify-content: space-between;
  padding: 0px 17px;
  height: 80px;
  align-items: center;
}

.poster-text {}

.poster-text h4 {
  font-family: 'Reagular';
  font-size: 16px;
  color: var(--text-color-cart);
}

.poster-text p {
  margin-top: 5px;
}

.poster-text {
  font-family: 'ExtraLight';
  font-size: 14px;
  color: var(--text-color-cart);
}

.poster-card__btn {
  background-color: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(75px);
  text-decoration: none;
  padding: 18px 25px;
  border-radius: 12px;
  font-family: 'Reagular';
  color: var(--text-color-cart);
  font-size: 12px;
  transition: all 0.3s ease;

}

.poster-card__btn:hover {
  /* color: var(--text-color-1); */
  transform: translateY(-3px);
  padding: 18.5px 25.5px;
  background-color: rgba(0, 0, 0, 0.4);
}

.poster-btn {
  display: flex;
  justify-content: center;
  margin-top: 70px;
  width: 220px;
  align-items: center;
  margin: 70px auto;
  padding: 8px 50px;
  border-radius: 10px;
  font-family: 'Bold';
}

.poster-btn__btn {
  text-decoration: none;
  font-family: 'Bold';
  text-align: center;
  color: var(--text-color-4);
  background-color: var(--bg-color-3);
}

/*------------------------------------------------------------- Gallary -------------------------------------------------------------*/

.gallary {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
  margin-top: 100px;
}

.gallary-item {
  width: 1056px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.gallary-item:nth-child(1) {
  margin-bottom: 35px;
}

.gallary-item:nth-child(2) {
  flex-direction: row-reverse;
}

.gallary-img {
  overflow: hidden;
  width: 450px;
  background-size: cover;
  background-repeat: no-repeat;
  height: 245px;
  border-radius: 20px;
  position: relative;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}


.before-image img,
.after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
}

.slider {
  display: none;
}

.gallary-text {
  width: 533px;
  padding: 0 40px;
}

.gallary-item:nth-child(2) .gallary-text {
  padding: 0;
  max-width: 450px;
}

.gallary-text h4 {
  font-family: 'Black';
  font-size: 25px;
  margin-bottom: 20px;
  color: var(--text-color-7);
}

.gallary-text p {
  font-family: 'ExtraLight';
  font-size: 18px;
  color: var(--text-color-1);
  margin-bottom: 30px;

}

.gallery-btn {
  background-color: var(--bg-color-3);
  padding: 8px 36px;
  color: var(--text-color-4);
  text-decoration: none;
  font-family: 'Bold';
  font-size: 18px;
  border-radius: 10px;
  display: inline-block;
  /* Error */
}

.gallary-btn-butten {
  display: flex;
  gap: 10px;
}

.gallary-btn-Rigth {
  background-color: var(--bg-color-4);
  color: var(--text-color-4-2);
  padding: 8px 15px;
  text-decoration: none;
  font-family: 'Bold';
  font-size: 18px;
  border-radius: 10px;
}

/* ------------------------------------------------------------- popup sub -------------------------------------------------------------- */

.subscribe-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #1e1e1e;
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  max-width: 340px;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  font-size: 13.5px;
  line-height: 1.6;

  font-family: 'Light';

}

.subscribe-popup p {
  margin-bottom: 12px;
}

.subscribe-popup-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.subscribe-popup a,
.subscribe-popup button {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.accept-btn {
  background-color: var(--bg-color-5);
  /* blue */
  color: white;
  font-family: 'Reagular';
}

.deny-btn {
  background-color: #d2d2d2;
  /* red */
  color: #000000;
  font-family: 'Reagular';

}

.accept-btn:hover {
  background-color: #ffffff;
  color: #000000;
  font-family: 'Reagular';

}

.deny-btn:hover {
  /* all: unset; */
  background-color: #ffffff;
  color: #000000;
  font-family: 'Reagular';

}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/*------------------------------------------------risponsive------------------------------------------------------ */


/* همبرگر آیکون پایه */
.heder__icon {
  width: 24px;
  height: 18px;

  position: relative;
  cursor: pointer;
  display: none;
  /* در مدیای کوئری فعال میشه */
  z-index: 1001;
}

/* سه خط همبرگر */
.heder__icon span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--bg-color-hamberger);
  border-radius: 3px;
  transition: all 0.4s ease;
}

.heder__icon span:nth-child(1) {
  top: 0;
}

.heder__icon span:nth-child(2) {
  top: 10px;
}

.heder__icon span:nth-child(3) {
  top: 20px;
}

/* حالت ضربدر */
.heder__icon.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.heder__icon.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.heder__icon.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* در اسکرین کوچیک نمایش بده */
@media (max-width: 768px) {
  .heder__icon {
    display: block;
  }

}


/* برای موبایل: مخفی کردن navbar و نمایش همبرگر */
@media (max-width: 768px) {

  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    /* ✅ تغییر از right به left */
    height: 100vh;
    width: 300px;
    background-color: var(--bg-color-hamberger-menu);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transition: left 0.3s ease-in-out;
    /* ✅ تغییر transition به left */
    z-index: 999;
  }

  .navbar__btn {
    display: none;
  }

  .navbar.active {
    left: 0;
    /* ✅ منو باز بشه از چپ */
  }

  .heder__icon {
    display: block;
    cursor: pointer;
    z-index: 1000;
  }

  .Home-title {
    width: 430px;
    font-size: 30px;
    margin-bottom: 8px;

  }

  .Home-cption {
    width: 400px;
    font-size: 15px;
    margin-bottom: 8px;
  }

  .Home-btn {
    width: 249px;
    height: 47.53px;
  }

  .Home-btn__left {
    width: 91px;
    height: 29.55px;
    font-size: 10px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;


  }

  .Home-btn__rigth {
    width: 129px;
    height: 29.55px;
    font-size: 10px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;

  }

  .poster {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

  }


  .poster::-webkit-scrollbar {
    display: none;
  }

  .poster-cards {
    flex: 0 0 auto;
    width: 70%;
    scroll-snap-align: center;
  }

  .poster .poster-cards:nth-child(2) {
    scroll-margin-left: 30%;
  }

  .poster-spacer {
    flex: 0 0 calc(50vw - 106px);
    pointer-events: none;
  }

  .fotter-top {
    flex-direction: column;
    width: 390px;
    gap: 18px;
  }

  .fotter-tex h4 {
    font-size: 13px;
  }

  .fotter-tex p {
    font-size: 10px;
    width: 342px;
  }

  .footer-links h4 {
    font-size: 13px;
  }

  .fotter-linl-1 {
    font-size: 10px;
  }

  .fotter-linl-2 {
    font-size: 10px;
  }

  .fotter-item {
    flex-direction: column;
  }
  
.fotter-contact h4 {
  font-size: 13px;
  margin-top: 10px;
}
.fotter-contact-1{
  font-size: 10px;
}
.fotter-copyright{
  font-size: 10px;
}

  .footer-content__continer {
    width: 342px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .fotter-contact-btn.footer-scroll-btn {
    width: 38px;
    height: 36px;
  }
    .poster-cards {
    width: 70%;
    height: 330px;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }

  .poster-card__content {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    padding: 15px 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 12px; /* فاصله بین متن و دکمه */
  }

  .poster-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    color: white;
    font-size: 14px;
  }

  .poster-text h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
  }

  .poster-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
  }

  .poster-card__btn {
    background: white;
    border-radius: 15px;
    padding: 9px 24px;
    font-size: 15px;
    font-weight: 500;
    color: black;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
    width: 100%;
  }

  .poster-card__btn:hover {
    background: #f0f0f0;
  }
  /*------------------------------------------------indicator img------------------------------------------------------ */
.poster-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 8px;
  height: 14px;
  /* ارتفاع کانتینر متناسب با اندازه دات‌ها */
}

.poster-indicators .dot {
  width: 8px;
  height: 8px;
  background-color: #bbb;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.poster-indicators .dot.active {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #3a3a3a;
  opacity: 1;
}

  
}


/* پیش‌فرض دسکتاپ: مخفی کردن آیکون منو */