@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');
/* .................... */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}
/* .................... */
body {
  font-size: 16px;
  background-color: rgb(26, 35, 126);
  color: #000;
  line-height: 1.6;
  text-align: right;
  padding: 0 20px;
}
/* ....................... */
header {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  height: 100px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: rgba(0, 87, 128, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

}
.logo {
    width: 100%;
    max-width: 300px;
    height: 0px;
    padding-bottom: 15.10%;
    background-image: url(images/dawsdigita_.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 40px;
}
.Contact_number a{
    font-family: "Vazirmatn", sans-serif;
    text-decoration: none;
    font-size: 16px;
    color: #fff;

}
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
}
/* همبرگر منو - پیش‌فرض مخفی */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* انیمیشن همبرگر به X */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* منوی موبایل */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgb(26, 35, 126);
    border: 1px solid #ddd;
    z-index: 1000;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
}

.mobile-menu li {
    border-bottom: 1px solid #444;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #fff;
    font-family: "Vazirmatn", sans-serif;
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* نمایش منوی موبایل */
.mobile-menu.active {
    display: block;
}

/* ............................. */
.hero {
  text-align: center;
  padding: 80px 20px;
  background-image: url(images/box0.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  height: 500px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  border-radius: 25px;
  text-align: center;

}
.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.hero p{
  text-align: center;
}
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
/* .............................. */
.services {
  padding: 60px 20px;
  background: #fff;
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  
  padding: 40px;
  margin: 0 auto;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  border-radius: 25px;
}
.services h2{
    text-align: right;
}
.service-box{
    flex: 1;
    min-width: 0;

}
.image-box{
    margin-right: 40px;
}
.image-box img{
    width: 100%;
    height: auto;
    width: 550px;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
    border-radius: 25px;
}
.text-box{
    text-align: right;
    padding-left: 10px;
    color: #000;
    text-align: justify;
    margin-right: 40px;
}
/* ........................... */
.faq-container {
    width: 100%;
    margin: auto;
    background-color: white;
    padding: 30px;
   border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  border-radius: 25px;
}
.faq-container a {
  text-decoration: none;
  color: #ff0000;
  font-weight: bolder;
}

.faq-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.faq-box {
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

.faq-box:hover {
    background-color: #f9f9f9;
}

.question {
    font-weight: bold;
    color: #222;
    font-size: 16px;
}

.answer {
    display: none;
    margin-top: 10px;
    color: #555;
    line-height: 1.6;
}
/* --- price tariff --- */
.container_price {
  padding: 60px 20px;
  background: #fff;  
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: 20px;
  padding: 40px;
  margin: 0 auto;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  border-radius: 25px;
}

.pricing-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.pricing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    width: 280px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.card-header .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.pricing-card.popular .card-header .card-icon {
    color: var(--primary-color);
}
.card-header h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}
.card-header p {
    font-size: 0.9rem;
    color: #7f8c8d;
    min-height: 40px;
}

.card-price {
    margin: 20px 0;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
}
.card-price .price-currency {
    font-size: 1rem;
    font-weight: normal;
    margin-right: 5px;
}
.card-price .price-amount-text {
    font-size: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: right;
    flex-grow: 1; /* Pushes footer to the bottom */
}
.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.features-list li i {
    color: #28a745; /* Green checkmark */
    margin-left: 10px;
    font-size: 1.2rem;
}

.card-footer {
    margin-top: auto; /* Pushes footer to the bottom */
}

.cta-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.cta-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}
.cta-btn.primary {
    background-color: var(--primary-color);
    color: var(--primary-color);
}
.cta-btn.primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}

/* ............................ */
.portfolio, .contact{
  padding: 60px 20px;
  background: #fff;
  margin-top: 20px;   
    border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  border-radius: 25px; 
}
.project-contaner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3%;
    justify-content: center;
  align-items: center;
}
h2 {
  text-align: center;
  margin-bottom: 30px;
}
.project {
  margin-bottom: 30px;
}
.project img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}
/* ......................... */
.reasonns {
  padding: 60px 20px;
  background-image: url(images/reasons.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  margin: 0 auto;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  border-radius: 25px;

}

.box-reasonns {
  background-color: rgba(255, 255, 255, 0.3); /* سفید شفاف */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px); /* برای Safari */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.333% - 20px); /* 3 تا در ردیف */
  border: 1px solid #ccc;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  font-family: Tahoma, sans-serif;
  transition: background-color 0.3s ease;
  border-radius: 25px;
}
.box-reasonns h3, .box-reasonns p {
  text-align: justify;
  hyphens: auto;
  line-height: 1.8;
  direction: rtl;
}

.box-reasonns:hover {
  background-color: #e0e0e0;
}

/* .............................. */
/* مقالات */
.container_articles {
  padding: 60px 20px;
  background-image: url(images/kadr.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: 20px;
  padding: 40px;
  margin: 0 auto;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  border-radius: 25px;
}
.article-slider {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* این خط مهم‌ترین بخش برای مخفی کردن اسلایدهای دیگر است */
}

.slider-container {
    width: 100%;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out; /* انیمیشن نرم برای جابجایی */
}

/* استایل هر اسلاید */
.slide {
    min-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 450px;
    object-fit: cover; /* تصویر کل فضا را پر می‌کند بدون تغییر نسبت */
    display: block;
    filter: brightness(0.8); /* کمی تاریک کردن تصویر برای خوانایی بهتر متن */
}

/* محتوای متنی روی اسلاید */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); /* گرادیان تیره برای خوانایی متن */
}

.slide-content h3 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
}

.slide-content p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* دکمه‌های قبلی و بعدی */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.slider-btn:hover {
    background-color: #fff;
    color: #000;
}

.prev-btn {
    right: 15px; /* در حالت راست‌چین، دکمه قبلی سمت راست است */
}

.next-btn {
    left: 15px; /* در حالت راست‌چین، دکمه بعدی سمت چپ است */
}

/* نقاط ناوبری */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* استایل برای صفحه‌های کوچک (موبایل) */
@media (max-width: 600px) {
    .slide img {
        height: 350px;
    }
    .slide-content h3 {
        font-size: 1.5rem;
    }
    .slide-content p {
        font-size: 0.9rem;
    }
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* ..................................... */
form input, form textarea {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form button {
  padding: 10px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
/* ....................... */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 0;
  background-image: url(images/parde\ ee.webp);
  color: #ddd;
}
.logo-footer {
    width: 100%;
    max-width: 300px;
    height: 0px;
    padding-bottom: 14%;
    background-image: url(images/dawsdigita_.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 5px;
}
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center; /* تراز عمودی در وسط */
  gap: 15px; /* ایجاد فاصله بین آیتم‌ها */
  padding: 20px;
  border-top: 1px solid #ddd;
  margin-top: -50px;
}

.social-links p {
  margin: 0; /* حذف فاصله پیش‌فرض پاراگراف */
  font-family: sans-serif;
  color: #ddd;
}

/* استایل خود آیکون‌ها */
.social-links a i {
  font-size: 24px; /* اندازه آیکون */
  color: #ddd;
  transition: color 0.3s ease; /* انیمیشن نرم برای تغییر رنگ */
}
.fa-brands {
  padding-left: 5px;
}

.social-links a {
text-decoration: none;
  color: #ddd;
}

/* تغییر رنگ آیکون در زمان هاور (وقتی موس روی آن می‌رود) */
.social-links a:hover .fa-instagram {
  color: #e4405f; /* رنگ اینستاگرام */
}

.social-links a:hover .fa-whatsapp {
  color: #25d366; /* رنگ واتساپ */
}
/* استایل کلی بخش راه‌های ارتباطی */
.contact-info {
  font-family: sans-serif;
  color: #ddd;
  padding: 20px;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd; /* یک خط جداکننده زیر عنوان */
  padding-bottom: 10px;
}

/* حذف استایل پیش‌فرض لیست */
.contact-info ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* استایل هر آیتم لیست (مهم‌ترین بخش) */
.contact-info li {
  display: flex;         /* این باعث میشه آیکون و متن در یک ردیف قرار بگیرند */
  align-items: center;   /* تراز عمودی آیکون و متن در وسط */
  margin-bottom: 12px;   /* فاصله بین هر آیتم */
}

/* استایل آیکون‌ها */
.contact-info li i {
  font-size: 18px;
  color: #007bff; /* یک رنگ آبی برای جلب توجه */
  width: 30px; /* یک عرض ثابت برای آیکون‌ها تا متن‌ها همه در یک راستا باشند */
  text-align: center;
  margin-left: 10px; /* فاصله بین آیکون و متن (در فارسی از margin-left استفاده می‌کنیم) */
}

/* استایل متن (برای اعداد و ایمیل) */
.contact-info li span {
  font-size: 16px;
  /* برای نمایش صحیح شماره تماس و ایمیل در سایت‌های فارسی */
  direction: ltr;
  text-align: left;
}
.contact-info a {
  text-decoration: none; /* حذف زیرخط لینک */
  color: inherit; /* ارث‌بری رنگ از عنصر والد (li) */
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #0056b3; /* تغییر رنگ در زمان هاور */
}
/* ..................... */
@media (max-width: 1250px) {

  .services {
    flex-direction: column;
    gap: 10px;
    background-color: #28a745;
  }
  .services h2{
    text-align: center;
}
  .image-box img {
    width: 100%;
    max-width: 100%;
  }
  .text-box {
    padding-left: 0;
    text-align: center;
  }
      .pricing-card.popular {
        transform: scale(1); /* Reset scale on smaller screens to avoid overflow */
    }

}

@media (max-width: 992px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card {
        width: 80%;
        max-width: 400px;
    }
    .pricing-card.popular {
        transform: scale(1.05); /* Re-apply scale for tablet view */
    }
}


/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        display: none;
    }

    /* .Contact_number {
        display: none;
    } */

    .logo {
        max-width: 200px;
        margin-top: 20px;
    }

    header {
        height: 80px;
    }
        .logo-footer {
    width: 100%;
    max-width: 300px;
    height: 0px;
    padding-bottom: 50%;
}
  /* ................................... */
  .box-reasonns {
    flex: 1 1 100%; /* روی موبایل یکی یکی نمایش داده شود */
  }
  /* ..........مقالات......... */

}
/* برای صفحات خیلی کوچک */
@media (max-width: 480px) {
    .logo {
        max-width: 150px;
        padding-bottom: 33.10%;

    }

    body {
        padding: 0 -10px;
    }
    .logo-footer {
    width: 100%;
    max-width: 300px;
    height: 0px;
    padding-bottom: 50%;
}
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    .pricing-card {
        width: 100%;
        padding: 20px;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
}
