/* تنظیمات عمومی */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body, html {
  background-color: #333;
  color: #333;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* استایل هدر */
header {
  background-color: #181818;
  padding: 15px 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid gold;
}

.header-contact {
  padding: 5px;
  background-color: red; /* رنگ تیره برای هماهنگی */
  width: 100%;
  height: 30px;
  text-align: center;
}

.header-contact a {
  text-decoration: none;
  color: #222;
  font-size: 1em;
  font-weight: bold;
}

.header-contact b {
  color: gold;
  text-decoration: underline;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  width: 85%;
  order: 1;
  text-align: right;
  gap: 5px;
  font-size: auto;
}

.logo h1 {
  color: goldenrod;
  text-align: right;
}

/* آیکون شبکه‌های اجتماعی */
.social-icons {
  position: absolute;
  left: 10px;
  bottom: 2px;
  display: flex;
  gap: 8px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.2);
}
* {
  box-sizing: border-box;
}


/* استایل هیرو هدر */
.hero {
  position: relative;
  margin-bottom: 10px;
  width: 100%;
  height: 90vh;
  background-image: url('hero-image.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  opacity: 0; /* شروع با شفافیت صفر */
  animation: fadeInHero 1.5s ease-out forwards;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero img {
  width: 200px;
  height: 200px;
  opacity: 0;
  transform: translateY(30px); /* متن از پایین به بالا بیاد */
  animation: fadeInText 1.5s ease-out 0.5s forwards;
}

/* انیمیشن فید-این برای کل سکشن */
@keyframes fadeInHero {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* انیمیشن فید-این برای متن */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*استایل باکس توضیحات شرکت*/
.company-description {
  background-color: goldenrod;
  width: 70%;
  margin: 40px 15% 0 15%;
  padding: 30px;
  border-radius: 50px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.company-description h2 {
  font-size: 24px;
  color: #111;
  margin-bottom: 20px;
}

.company-description p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

/* استایل محصولات */
/* افکت خروج به چپ */
.slider-container {
  width: 100%; /* چون 4 تا محصول داریم، 4 × 210 */
  overflow: hidden; /* این خیلی مهمه! باعث می‌شه محصولاتی که خارج از قاب هستن دیده نشن */
  position: relative;
  direction: ltr; /* برای اینکه اسلایدر درست کار کنه حتی در زبان فارسی */
}

.slider-track {
  width: 100%;
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  direction: ltr; /* اجبار جهت چپ به راست برای اسلایدر */
}

.slider-wrapper {
  overflow: hidden;
  width: 100%; /* برای ۴ محصول */
}

.product {
  flex-shrink: 0;  
  flex: 0 0 calc((100% - 30px) / 4);  /* عرض هر محصول */
  margin: 0;
  background: #f0f0f0;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  box-sizing: border-box; /* برای جلوگیری از مشکلات در اندازه */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* مهم */
  position: relative;
}


.product a {
  text-decoration: none;
  color: gold;
  display: inline-block;
  padding: 8px 12px;
  background-color: gold;
  color: #222;
  border-radius: 5px;
  font-size: 18px;
  transition: background-color 0.3s;
}

.product a:hover {
  background-color: #555;
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


#prevBtn, #nextBtn {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #ddd;
  margin-top: 10px;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background-color: #007bff;
  transition: width 0.3s;
}

.product-page {
 margin: 20px;
 text-align: center;
}
.product-page a {
  text-decoration: none;
  background-color: #444;
  color: #ddd;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid gold;
}

.product-page a:hover {
  background-color: gold;
}

/* استایل خدمات */
.services {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content:center;
  align-items: stretch;
  margin-bottom: 10px;
}

.services h2 {
  font-size: 2em;
  font-weight: bold;
  color: gold;
  margin: 15px;
  text-align: center;
}

.service {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid #333;
  border-radius: 10px;
}
.service h3{
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  border-bottom: 2px solid #333;
  margin: 10px;
  padding: 10px;
  width: 100%;
}

.service p {
  flex-grow: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 1.2em;
}

.service:hover {
  background-color: #f1d04b;
  transform: translateY(-10px);
}

/* استایل فوتر */
footer {
  background-color: #181818;
  color: white;
  padding: 40px 20px;
  margin-top: 10px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  width: 30%;
  padding: 10px;
  text-align: right;
}

.footer-column h3 {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
}

.footer-column ul li a {
  opacity: 50%;
  margin-right: 10px;
  color: white;
  text-decoration: none;
}

.footer-column ul li a:hover {
  color: #FFD700;
}
.footer-column p {
  opacity: 50%;
}

a.phone {
  text-decoration: none;
  color: white;
}

a.phone:hover {
  color: #f1d04b;
}
.footer-container {
  display: flex;
  justify-content: space-between; /* فاصله‌ی مساوی بین بخش‌ها */
  align-items: flex-start; /* تراز عمودی */
  flex-wrap: wrap; /* اگر صفحه کوچک شد، اجزا بشکنند */
}

.footer-container form {
  width: 300px;
  text-align: right;
  direction: rtl ;
  margin-left: auto;
  margin-right: 0;
  display: block;
}

.footer-container form input,
.footer-container form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
}

.footer-container form button {
  width: 100%;
  background-color: red;
  border-radius: 30px;
  color: black;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.footer-container form button:hover {
  background-color: #FFD700; /* تغییر رنگ هنگام هاور */
  transition: 0.3s;
}



/* مدیا کوئری برای موبایل */
@media screen and (max-width: 768px) {
  header {
    width: 100%;
    height: 83px;
  }
  .product {
    flex: 0 0 calc((100% - 10px) / 2);  /* عرض هر محصول */
  }
  .social-icons {
    left: 10px;
  }
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  .logo h1 {
    max-height: 75px;
    width: 75%;
    font-size: 1em;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-column h3 {
    opacity: 100%;
    border: 0;
    margin-bottom: 5px;
  }
  .footer-column {
    width: 100%;
    margin-bottom: 20px;
    text-align: right;
  }
  .hero {
    height: 80vh;
    background-attachment: scroll; /* غیرفعال کردن پارالاکس در موبایل */
  }
}