@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

/* ===== ریست ساده ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background-color: #f9f9fb;
  color: #222;
  line-height: 1.6;
}

/* ===== ساختار کلی ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1, h2, h3 {
  color: #0d2c54; /* آبی تیره برند */
}
a {
  text-decoration: none;
}

/* ===== هدر ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: background 0.3s ease;
  background: rgba(13, 44, 84, 0.5); /* شفاف */
}
.header.scrolled {
  background: rgba(13, 44, 84, 0.95); /* پررنگ هنگام اسکرول */
}

.logo {
  height: 45px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #f4c542; /* طلایی */
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== هیرو ===== */
.hero {
  height: 100vh;
  background: url('img/hero.jpg') center center / cover fixed no-repeat;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 44, 84, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: #f4c542;
  color: #0d2c54;
  padding: 12px 25px;
  border-radius: 30px;
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #0d2c54;
  color: #f4c542;
}
.feature-split {
  display: flex;
  align-items: stretch;
  margin: 0px 0;
  overflow: hidden;
  min-height:350px;
}

.feature-half {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.text-half {
  display: flex;
  align-items: center;
  background: #fff;
}

.text-half .content {
  padding: 40px;
  max-width: 500px;
}

/* حالت پیش‌فرض برای مخفی بودن */
.feature-half {
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease;
}

/* اگر از سمت چپ می‌آید */
.text-half.from-left,
.image-half.from-left {
  transform: translateX(-50px);
}

/* اگر از سمت راست می‌آید */
.text-half.from-right,
.image-half.from-right {
  transform: translateX(50px);
}

/* وقتی وارد دید می‌شود */
.feature-half.show {
  transform: translateX(0) translateY(0);
  opacity: 1;
}




.benefits {
  background: linear-gradient(135deg, #0e0e1a 0%, #1b1b2f 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 50px;
  color: #00ffaa;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.benefit-card .icon img {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #00ffaa;
}

.benefit-card p {
  font-size: 0.9rem;
  color: #ddd;
}


/* ===== بخش نظرات ===== */
.testimonials {
  padding: 60px 0;
  background: #f1f4f8;
}
.testimonials blockquote {
  font-style: italic;
  margin: 20px auto;
  max-width: 700px;
}
.testimonials cite {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
.logos {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.logos img {
  height: 50px;
  object-fit: contain;
}

/* ===== آمار ===== */
.stats {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, #0e0e1a 0%, #1b1b2f 100%);
  color:#fff;
}
.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.stats-grid div {
  font-size: 1.2rem;
}
.stats-grid strong {
  font-size: 2rem;
  color: #f4c542;
  display: block;
}

/* ===== پلن ها ===== */
.pricing {
  padding: 60px 0;
}
.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.plan {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  background: #fff;
  border: 2px solid #0d2c54;
  border-radius: 10px;
  text-align: center;
}
.plan h3 {
  margin-bottom: 10px;
}
.plan .price {
  font-size: 1.3rem;
  color: #f4c542;
  margin: 15px 0;
}

/* ===== FAQ ===== */
.faq {
  padding: 60px 0;
}
details {
  background: #fff;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ddd;
}
summary {
  font-weight: bold;
}
.faq-form-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    direction: rtl; /* برای زبان فارسی */
}

/* ستون سوالات متداول */
.faq-column {
    flex: 1 1 50%;
    min-width: 300px;
}

/* ستون فرم */
.form-column {
    flex: 1 1 50%;
    min-width: 300px;
}

/* iframe واکنش‌گرا */
.form-column iframe {
    width: 100%;
    height: 100%;
    min-height: 850px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* فاصله بین سوالات */
.faq-column details {
	
    margin-bottom: 10px;
}
.faq-form-section {
    display: flex !important;
    flex-wrap: nowrap; /* اگر می‌خواهی حتی در عرض کم هم کنار هم باشند */
}

/* ===== CTA نهایی ===== */
.final-cta {
  background: #0d2c54;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

/* ===== فوتر ===== */
.footer {
  background: #0d2c54;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}
.footer a {
  color: #f4c542;
}

/* ===== انیمیشن اسکرول ===== */
.fade-in, .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: rgba(13, 44, 84, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 15px;
    display: none;
  }
}

.client-logos {
  padding: 20px 0;
  background: #fff;
}
.logo-container {
  width: 100%;
  overflow: hidden;
   align-items: center;
}


.logo-track {
  display: flex;
  align-items: center;
  gap: 40px; /* فاصله مساوی */
  
}

.logo-track img {
  flex: 0 0 25%; /* 4 لوگو همیشه دیده شوند */
  height: 150px;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  
  flex-shrink: 0;
}

.logo-track img:hover {
  filter: grayscale(0%);
}

/* دو لوگوی وسط بزرگ‌تر شوند */
.logo-track img.active {
  transform: scale(1.2);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.features1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  background: #0e0e1a;
  padding: 50px 10%;
  text-align: center;
  direction: rtl;
}

.feature1-box {
  background: #151528;
  padding: 30px 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature1-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

.feature1-box .icon img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  
}

.feature1-box h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.feature1-box p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
  min-height: 50px;
}

.feature1-box a {
  display: inline-block;
  margin-top: 15px;
  color: #4ade80;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.feature1-box a:hover {
  border-color: #4ade80;
}

/* برای موبایل */
@media (max-width: 768px) {
  .features1 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features1 {
    grid-template-columns: 1fr;
  }
}
#pricing-table {
    text-align: center;
    direction: rtl;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead {
    background: linear-gradient(90deg, #00ffaa, #0e0e1a);
    color: white;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
}

td {
    text-align: center;
    font-size: 14px;
}

.plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.price {
    font-size: 14px;
    color: #fffa;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.extra {
    display: none;
}

button#showMore {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    background: #00ffaa;
    color: #0e0e1a;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}
button#showMore:hover {
    background: #00dd88;
}

/* تیک و ضربدر */
td:contains("✔") {
    color: green;
    font-weight: bold;
}
td:contains("—") {
    color: red;
    font-weight: bold;
}

img { max-width: 100%; height: auto; display: block; }

@media (max-width: 992px) {
    .container { width: 95%; }
    nav ul { flex-direction: column; gap: 10px; }
}
@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    .benefit-grid { grid-template-columns: 1fr; }
    .plans { flex-direction: column; }
}


/* ===== بهبودهای ریسپانسیو موبایل ===== */
@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
  }
  .logo {
    height: 35px;
  }
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background-color: rgba(13,44,84,0.95);
    display: none;
  }
  nav ul.show {
    display: flex;
  }
  nav a {
    padding: 10px 0;
  }
  .benefit-grid,
  .features1 {
    grid-template-columns: 1fr !important;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .stats-grid {
    flex-direction: column;
    gap: 20px;
  }
  .btn-primary {
    padding: 14px 28px;
    font-size: 1.1rem;
  }
  .faq-form-section {
    flex-direction: column;
  }
  .form-column,
  .faq-column {
    min-width: 100%;
  }
  .form-column iframe {
    min-height: 600px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px;
  }
  .btn-primary {
    width: 100%;
    font-size: 1.2rem;
  }
  table {
    min-width: unset;
    font-size: 12px;
  }
  .table-wrapper:before {
    content: 'برای مشاهده کامل جدول، به چپ/راست بکشید';
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
  }
}
.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none; /* فقط در موبایل نمایش داده شود */
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(13, 44, 84, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 15px;
    width: 200px;
  }
  nav ul.show {
    display: flex;
  }
}
#backToTop {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #00ffaa;
  color: #0e0e1a;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
#backToTop:hover {
  background-color: #00dd88;
}
