/* فونت فارسی - YekanBakh از Google Fonts */
@font-face {
  font-style: normal;
  font-display: swap;
  font-family: YekanBakh;
  src: url(../fonts/YekanBakh-VF.woff2) format("woff2")
}

/* تنظیمات کلی برای راست‌چین و فونت فارسی */ 
* {
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

html {
  direction: rtl !important;
}

body {
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-rendering: optimizeLegibility !important;
}

/* راست‌چین کردن تمام متن‌ها */
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th,
div, section, article {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

/* راست‌چین کردن منو */
.mxd-menu__left,
.mxd-menu__right,
.main-menu,
.main-menu__content,
.main-menu__accordion {
  direction: rtl !important;
  text-align: right !important;
}

/* راست‌چین کردن دکمه‌ها */
.btn,
.btn-caption {
  direction: rtl !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* راست‌چین کردن فوتر */
.mxd-footer,
.footer-nav,
.footer-blocks__column {
  direction: rtl !important;
  text-align: right !important;
}

/* راست‌چین کردن فرم‌ها */
form,
input,
textarea,
select {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* راست‌چین کردن کارت‌های خدمات */
.mxd-services-cards__inner,
.mxd-services-cards__title,
.mxd-services-cards__info {
  direction: rtl !important;
  text-align: right !important;
}

/* راست‌چین کردن پروژه‌ها */
.mxd-projects-stack__inner,
.mxd-projects-stack__title,
.mxd-projects-stack__tags {
  direction: rtl !important;
  text-align: right !important;
}

/* راست‌چین کردن بخش About */
.mxd-block__content,
.mxd-block__manifest,
.mxd-links-lines {
  direction: rtl !important;
  text-align: right !important;
}

/* راست‌چین کردن Hero Section */
.mxd-hero-08,
.mxd-hero-08__headline,
.mxd-hero-08__descr {
  direction: rtl !important;
  text-align: right !important;
}



/* راست‌چین کردن Marquee */
.marquee,
.marquee__text {
  direction: rtl !important;
}

/* تنظیمات برای Grid و Container */
.mxd-container,
.grid-container,
.container-fluid {
  direction: rtl !important;
}

.row {
  direction: rtl !important;
}

/* راست‌چین کردن تگ‌ها */
.tag {
  direction: rtl !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* بهبود فاصله‌گذاری برای راست‌چین */
.mxd-block__manifest p {
  line-height: 1.8 !important;
}

/* راست‌چین کردن آیکون‌ها در دکمه‌ها */
.btn i {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

/* معکوس کردن جهت فلش‌ها در RTL */
.btn-anim i.ph-arrow-up-right,
.btn-anim i.ph-arrow-right {
  transform: scaleX(-1) !important;
}

.btn-anim i.ph-arrow-left {
  transform: scaleX(1) !important;
}

/* راست‌چین کردن لینک‌ها */
.mxd-links-lines__link {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-links-lines__icon {
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* تنظیمات برای منوی همبرگر */
.mxd-nav__hamburger {
  direction: ltr !important; /* آیکون همبرگر باید چپ باشد */
}

/* راست‌چین کردن شمارنده */
.footer-nav__counter {
  direction: rtl !important;
  text-align: right !important;
}

/* بهبود خوانایی متن فارسی - رفع مشکل فاصله بین حروف */
* {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-rendering: optimizeLegibility !important;
}

body,
html {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

p, span, div, a, li, td, th, h1, h2, h3, h4, h5, h6 {
  line-height: 1.8 !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-rendering: optimizeLegibility !important;
}

/* راست‌چین کردن لیست‌ها */
ul, ol {
  direction: rtl !important;
  text-align: right !important;
  padding-right: 0 !important;
  padding-left: 20px !important;
}

/* راست‌چین کردن آیتم‌های منو */
.main-menu__item,
.submenu__item {
  direction: rtl !important;
  text-align: right !important;
}

/* راست‌چین کردن SVG در منو */
.main-menu__toggle svg {
  transform: scaleX(-1) !important; /* معکوس کردن جهت SVG */
}

/* راست‌چین کردن Header */
.mxd-header {
  left: 14rem !important;
  flex-direction: row-reverse;
}
.mxd-hero-08__center {
  width: auto !important;
}

/* راست‌چین کردن فرم اشتراک */
.notify-form input {
  direction: rtl !important;
  text-align: right !important;
  padding-right: 15px !important;
  padding-left: 50px !important;
}

.notify-form .btn-form {
  left: 0 !important;
  right: auto !important;
}

/* تنظیمات برای نمایش بهتر اعداد فارسی */
body {
  font-variant-numeric: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* بهبود فاصله‌گذاری برای متن فارسی */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.6 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

p {
  line-height: 1.9 !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

/* رفع مشکل فاصله در تمام عناصر متنی */
.mxd-hero-08__headline h1,
.mxd-hero-08__descr p,
.mxd-block__manifest p,
.mxd-services-cards__title p,
.mxd-services-cards__info p,
.mxd-projects-stack__title h2,
.mxd-links-lines__title,
.btn-caption,
.footer-nav__link,
.main-menu__link {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-rendering: optimizeLegibility !important;
  line-height: 1.5 !important;
}

/* راست‌چین کردن ستون‌های فوتر */
.footer-blocks__column {
  direction: rtl !important;
}

/* راست‌چین کردن شبکه‌های اجتماعی */
.footer-socials {
  direction: rtl !important;
  text-align: right !important;
}

.footer-socials__item {
  direction: rtl !important;
}

/* راست‌چین کردن Grid و Columns */
.col-12,
.col-xl-6,
.col-xl-7,
.col-xl-5 {
  direction: rtl !important;
}

/* راست‌چین کردن Container */
.mxd-container {
  direction: rtl !important;
  text-align: right !important;
}

/* بهبود نمایش کارت‌ها در RTL */
.mxd-services-cards__item {
  direction: rtl !important;
}

.mxd-projects-stack__inner {
  flex-direction: row-reverse !important;
}

/* راست‌چین کردن Hero Section */
.mxd-hero-08__center {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-hero-08__bottom {
  direction: rtl !important;
}

.mxd-hero-08__data-wrap {
  direction: rtl !important;
  text-align: right !important;
}

/* راست‌چین کردن About Section */
.mxd-block__content {
  direction: rtl !important;
}

.mxd-links-lines__item {
  direction: rtl !important;
  text-align: right !important;
}

/* بهبود دکمه‌ها در RTL */
.btn-round {
  direction: ltr !important; /* آیکون‌های دایره‌ای باید LTR باشند */
}

/* راست‌چین کردن Footer */
.mxd-footer__footer-blocks {
  direction: rtl !important;
}

.footer-blocks__column {
  direction: rtl !important;
  text-align: right !important;
}

/* بهبود فاصله‌گذاری برای RTL */
.mxd-block__manifest {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* راست‌چین کردن Marquee */
.marquee__toright {
  direction: rtl !important;
}

/* بهبود نمایش تصاویر در RTL */
.mxd-block__image,
.mxd-services-cards__image,
.mxd-projects-stack__image {
  direction: ltr !important; /* تصاویر باید LTR باشند */
}

/* راست‌چین کردن Video */
.mxd-hero-08__video-wrap,
.menu-promo__video {
  direction: ltr !important; /* ویدیو باید LTR باشد */
}

.mxd-services-cards__controls {
  left: 1rem !important;
  right: auto !important;
}

/* رفع کامل مشکل فاصله بین حروف فارسی در تمام عناصر */
.mxd-logo__text,
.mxd-menu__caption,
.menu-promo__caption,
.mxd-hero-08__headline,
.mxd-hero-08__descr,
.mxd-block__manifest,
.mxd-services-cards__title,
.mxd-services-cards__info,
.mxd-projects-stack__title,
.mxd-links-lines__title,
.marquee__text,
.footer-nav__link,
.main-menu__link,
.btn-caption,
.tag,
.mxd-point-subtitle,
.footer-blocks__title,
.footer-socials__link {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-rendering: optimizeLegibility !important;
  font-kerning: normal !important;
}

.mxd-logo {
  width: 250px !important;
}

/* رفع مشکل در عناصر خاص */
.mxd-manifest,
.mxd-manifest-l,
.reveal-type {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

/* رفع مشکل در دکمه‌ها */
.btn,
.btn-anim,
.btn-default,
.btn-outline,
.btn-round {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

/* رفع مشکل در فرم‌ها */
input,
textarea,
select,
.notify-form input {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

.mxd-services-cards__image.mxd-services-cards-image-5 {
  left: -80px !important;
  right: auto !important;
}

.mxd-services-cards__image.mxd-services-cards-image-4 {
  left: -50px !important;
  right: auto !important;
}

.btn-to-top {
  left: 6rem !important;
  right: auto !important;
}

/* راست‌چین کردن Hero Section 09 */
.mxd-hero-09,
.mxd-hero-09__wrap,
.mxd-hero-09__headline {
  direction: rtl !important;
  text-align: right !important;
}

.hero-09-headline__caption,
.hero-09-headline__title,
.hero-09-headline__tags {
  direction: rtl !important;
  text-align: right !important;
}

.hero-09-headline__caption p,
.hero-09-headline__title h1 {
  direction: rtl !important;
  text-align: right !important;
}

.hero-09-headline__tags {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-hero-09__objects {
  direction: rtl !important;
}

.mxd-hero-09__more {
  direction: rtl !important;
  text-align: right !important;
  left: 0 !important;
  right: auto !important;
}

.mxd-hero-09__more .btn {
  direction: rtl !important;
}

.mxd-hero-09__more .btn-caption {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-hero-09__objects {
  left: 14% !important;
  right: auto !important;
}

/* استایل موبایل برای hero-09 */
@media (max-width: 768px) {
  .mxd-hero-09__objects {
    left: 0 !important;
    right: auto !important;
  }
  .mxd-hero-09__more {
    left: 0 !important;
    right: auto !important;
  }
}

@media only screen and (min-width: 1200px) {
  .mxd-services-cards__image.mxd-services-cards-image-3 {
    left: 0 !important;
    right: auto !important;
  }
}

/* استایل برای متن خاکستری در عنوان */
.mxd-block__name h2 .text-muted-light {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 0.8 !important;
}

/* استایل برای ویدیو parallax */
.mxd-divider__image.parallax-video {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.mxd-divider__image.parallax-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* راست‌چین کردن Statistics Cards */
.mxd-stats-cards__inner {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-stats-cards__inner .mxd-counter {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-stats-cards__inner .mxd-counter__descr {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-stats-cards__inner .btn-caption {
  direction: rtl !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* راست‌چین کردن Pinned Images */
.mxd-pinned__content {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-pinned__text-item {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-pinned__title {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-pinned__text-item p {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-pinned__tags {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-pinned__tags .tag {
  direction: rtl !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* راست‌چین کردن Testimonials */
.mxd-section-title {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-section-title__title h2 {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-section-title__descr p {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-testimonials-card {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-testimonials-card__text {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-testimonials-card__text p {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-testimonials-card__author {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-testimonials-card__name {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-testimonials-card__position {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* راست‌چین کردن Services Cards #02 */
.mxd-services-cards-s__inner {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-services-cards-s__title h3 {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-services-cards-s__info {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-services-cards-s__info p {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

.mxd-services-cards-s__tags {
  direction: rtl !important;
  text-align: right !important;
}

.mxd-services-cards-s__tags .tag {
  direction: rtl !important;
  font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* استایل برای لیست نمادها در فوتر */
.footer-namads-list {
  display: flex !important;
  flex-direction: row !important;
  gap: .5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: wrap !important;
  align-items: center;
}

.footer-namads-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.footer-namads-list li img {
  max-width: 80px !important;
  height: auto !important;
  display: block !important;
}

/* پشتیبانی فارسی برای btn-anim__block */
.btn-anim__block {
  direction: rtl !important;
  text-align: right !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

.btn-anim__block .btn-anim__letter {
  direction: rtl !important;
  display: inline-block !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
}

.footer-nav__link .btn-caption {
  font-size: 35px;
}
.main-menu__link .btn-caption {
  font-size: 42px;
}

@media (max-width: 768px) {
  .main-menu__link .btn-caption {
    font-size: 28px;
  }
  .footer-nav__link .btn-caption {
    font-size: 25px;
  }
}

@media only screen and (min-width: 768px) {
  .mxd-stats-cards__image.mxd-stats-cards-image-4 {
      right: auto !important;
      left: -6rem !important;
  }
  .footer-namads-list li img {
    max-width: 72px !important;
  }
}

@media only screen and (min-width: 768px) {
  .mxd-stats-cards__image.mxd-stats-cards-image-3 {
      left: -4rem;
      right: auto;
  }
}

@media only screen and (min-width: 768px) {
  .mxd-stats-cards__image.mxd-stats-cards-image-2 {
      right: 0;
  }
}

@media only screen and (min-width: 768px) {
  .mxd-stats-cards__image.mxd-stats-cards-image-1 {
      right: -4rem;
      left: auto;
  }
}

.mxd-point-subtitle a {
  direction: ltr !important;
  font-weight: bold;
}

.mxd-nav__contain {
  margin-top : 0;
}

.mxd-nav__contain.loading__fade {
  margin-top : 28px;
}

@media only screen and (min-width: 992px) {
  .mxd-services-cards-s__image {
      right: auto;
      left: -3rem;
  }
}

@media only screen and (min-width: 1200px) {
  .mxd-services-cards-s__image.image-top-right {
      right: auto;
      left: -30px;
  }
}

.mxd-section-title__descr {
  padding-left: 6rem;
  padding-right: 0;
}
.mxd-partners-cards__logo img {
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

.footer-blocks__block p {
  font-size: 16px;
  text-align: justify !important;
}

.mxd-pinned__img-wrap {
  background: #000000 !important;
  overflow: hidden;
}
.mxd-pinned__img-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* استایل ویدیو برای موبایل */
.mxd-pinned__img-mobile video {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .mxd-pinned__img-mobile {
    background-color: #000000;
  }

  .mxd-pinned__img-mobile video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .mxd-pinned__img-mobile {
    background-color: #000000;
  }
  .mxd-header {
    padding-top: 3.5rem !important;
  }
  .mxd-pinned__img-mobile video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media only screen and (min-width: 1200px) {
    h1 {
        font-size: 9rem;
    }
}

.contact-form .btn-anim .btn-caption {
  height: 5.3rem;
}

.divider-image-3 {
    background-image: url(../img/670f7f8bb667f.webp);
}

.mxd-promo__images {
  left: 0 !important;
  right: auto !important;
}

.mxd-promo__bg {
  left: -10rem !important;
  right: auto !important;
}

@media only screen and (min-width: 768px) {
    .mxd-promo__content {
        margin: 5rem 0 7rem 0;
    }
}

@media only screen and (min-width: 768px) {
    .mxd-approach-list__inner {
        padding: 4rem 0 !important;
    }
}
@media only screen and (min-width: 1200px) {
    .mxd-services-list__title p {
        font-size: 4rem;
    }
}
@media only screen and (min-width: 1200px) {
    .inner-headline__title.headline-img-before::before {
        margin-left: 2.6rem;
        margin-right: 0;
    }
}
/* AI Workspace Styles */
.ai-workspace-container {
  direction: rtl !important;
}

.ai-workspace-sidebar nav ul li a:hover,
.ai-workspace-sidebar nav ul li a:focus {
  background: rgba(102, 126, 234, 0.1);
  color: #fff;
  border-color: rgba(102, 126, 234, 0.2);
}

.btn-new-chat:hover,
.btn-invite:hover {
  background: rgba(102, 126, 234, 0.25) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
  transform: translateY(-2px);
}

.workspace-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.workspace-btn.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
  border-color: rgba(102, 126, 234, 0.4) !important;
}

.template-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
  transform: translateY(-4px);
}

.ai-workspace-header .btn:hover {
  background: rgba(102, 126, 234, 0.2) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .ai-workspace-container > .mxd-container > div[style*="display: flex"] {
    flex-direction: column !important;
  }
  
  .ai-workspace-sidebar {
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 768px) {
  .ai-workspace-title {
    font-size: 2.5rem !important;
  }
  
  .ai-workspace-header p {
    font-size: 1rem !important;
  }
}

.pricing-data__amount {
  font-size: 61px;
}

  @media (max-width: 768px) {
    .ai-workspace-header {
      padding-top: 14rem !important;
      margin-bottom: 2rem !important;
    }
    
    .ai-workspace-title {
      font-size: 2rem !important;
      line-height: 1.3 !important;
      margin-bottom: 0.75rem !important;
    }
    
    .ai-workspace-header p {
      font-size: 1rem !important;
      margin-bottom: 1.5rem !important;
      padding: 0 1rem !important;
    }
    
    .ai-workspace-container {
      padding: 1rem 0 !important;
    }
    
    .mxd-container {
      padding: 0 1rem !important;
    }
  }
  
  @media (max-width: 480px) {
    .ai-workspace-title {
      font-size: 4rem !important;
    }

    .ai-workspace-container {
      min-height: 78vh !important;
    }
    
    .ai-workspace-header p {
        font-size: 2rem !important;
        text-align: center !important;
    }
  }

  .animated-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
  }

  @media (max-width: 768px) {
    .animated-image-wrapper {
      padding: 3px;
      border-radius: 15px 15px 0 0;
    }
    
    .animated-image-wrapper img {
      border-radius: 12px 12px 0 0;
    }
  }

  @media (max-width: 480px) {
    .animated-image-wrapper {
      padding: 2px;
      border-radius: 12px 12px 0 0;
    }
    
    .animated-image-wrapper img {
      border-radius: 10px 10px 0 0;
    }
  }