/* استایل‌های عمومی و ریست */
@font-face {
    font-family: 'Vazir';
    src: url('font/Vazir.woff2') format('woff2'),
         url('font/Vazir.woff') format('woff'),
         url('font/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }
  
body {
    margin: 0;
    font-family: 'Vazir', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}


.hero-section {
    position: relative;
    height: 50vh;
    width: 100%;
    min-height: 95vh;
    background-image: url('img/set4.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* لایه سیاه با شفافیت ۵۰٪ */
    z-index: 1; /* زیر محتوای اصلی */
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    margin-top: -120px;    
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.header-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.header-content_btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.header-content_btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}


main {
    padding-top: 0;
}

section {
    padding: 150px 100px;
    min-height: 40vh;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.slideshow-container {
    max-width: 600px;
    position: relative;
    margin: 16px  auto;
  }
  
  .mySlides {
    display: none;
    animation: fade 1s ease-in-out;
  }

  .mySlides img{
    object-fit:cover;
    border-radius:20px;
}
  
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    user-select: none;
    border: none;
  }
  
  .prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

  .next {
    right: 10px;
    /*border-radius: 3px 0 0 3px;*/
  }

  .prev {
    left: 10px;
  }
  
  .slide-number {
    cursor: pointer;
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    margin: 0 3px;
    font-size: 12px;
    text-align: center;
    color: #bbb;
    border-radius: 999px;
    transition: all 0.3s ease;
    user-select: none;
  }
  
  .slide-number:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.35);
  }
  
  .slide-number.active {
    color: #fff;
    background-color: #717171;
  }

  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }

/* -- بخش کلی نظرات -- */
*{
  box-sizing: border-box;
}



.comments-section{
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

.comments-section h2,
.comments-section h3{
  margin-bottom: 20px;
  color: #222;
}

/* کادر فرم */

.comment-box{
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

/* ردیف نام و ایمیل */

.row{
  display: flex;
  gap: 20px;
}

.form-group{
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 18px;
}

.form-group label{
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea{
  width: 100%;
  padding: 14px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  font-size: 15px;
  transition: 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus{
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}

.form-group textarea{
  resize: vertical;
  min-height: 120px;
}

/* ارورها */

.error{
  color: #e53935;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

/* دکمه */

.submit-btn{
  font-family: 'Vazir';
  background: #2196f3;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

.submit-btn:hover{
  background: #1976d2;
}

/* کادر نظرات */

.comments-list-box{
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* آیتم هر نظر */

.comment-item{
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.comment-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.comment-name{
  color: #111;
  font-size: 16px;
  font-weight: bold;
}

.comment-date{
  color: #666;
  font-size: 13px;
  margin-top: 4px;
}

.comment-text{
  color: #222;
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}


/* ریسپانسیو */

@media(max-width:700px){

  .row{
    flex-direction: column;
    gap: 0;
  }

}

  
/* responsive design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    .header-content p {
        font-size: 1.2rem;
    }
    .header-content_btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    .header-content p {
        font-size: 1rem;
    }
}

.site-footer {
    background-color: #1a1a1a;
    color: #ddd;
    padding: 50px 20px 30px;
    font-family: 'Vazir', sans-serif;
    direction: rtl;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
  }
  
  .footer-section, .footer-contact-social {
    flex: 1 1 280px;
  }
  
  .footer-section h3, .footer-contact-social h3 {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-section a:hover {
    color: #fff;
  }
  
  .footer-social {
    text-align: left;
    margin-top: 90px;
    border-top: 1px solid #333;
  }
  
  .social-icons {
    text-align: center;
  }
  
  .social-icons h3 {
    text-align: center;
  }
  
  .social-icons a {
    margin: 0 5px;
    display: inline-block;
  }
  .social-icons a img {
    display: block;
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
  }
  
  .social-icons a img:hover {
    transform: scale(1.2)
  }
  
  .footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    color: #888;
  }
  /* ناوبار */

.navbar{
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  padding: 18px 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 999;

  background: rgba(255,255,255,0.05);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);
}


/* لینک ها */

.nav-links{
  display: flex;
  gap: 30px;

  list-style: none;
}

.nav-links a{
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}


.nav-links a:hover{
  color: #d6d6d6;
}


.hero-section{
  position: relative;
  min-height: 100vh;
}

/* ریسپانسیو */

@media(max-width:768px){

  .navbar{
      padding: 16px 20px;
  }

  .nav-links{
      gap: 15px;
  }

  .nav-links a{
      font-size: 13px;
  }

}
html{
  scroll-behavior: smooth;
}

.nav-links a.active {
  color: rgb(146, 179, 240);
  font-weight: bold;
}

.products-container {
max-width: 1200px;
margin: auto;
padding: 100px 20px;
}

.product-item{

  display:flex;
  gap:40px;
  align-items:center;
  background:white;
  padding:30px;
  border-radius:20px;
  margin-bottom:50px;
  box-shadow:0 4px 15px rgba(0,0,0,0.08);

}

.product-image img{

  width:300px;
  border-radius:15px;

}

.product-info{

  flex:1;
  color: #111;

}

.home-buttons{

  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:40px;
  flex-wrap:wrap;

}

.home-btn{

  background:#2196f3;
  color:white;
  padding:14px 28px;
  border-radius:12px;
  text-decoration:none;
  transition:0.3s;
  font-size:15px;
  width: 220px;
  text-align: center;

}

.home-btn:hover{

  background:#1976d2;
  transform:translateY(-3px);

}