/* 🟩 بدنه سایت */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "IRAN SORS", sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
  line-height: 1.6;
  background-image: url('BK.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #176B87;
}
@media (max-width: 768px) {
  body {
    background-image: url('xx/BK-mobile.png');
  }
}

/*HEDER*/
/* هدر اصلی */
header {
  position: sticky;
  top: 0;
  z-index: 2000;

  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;

  padding: 0.5rem 1rem;
  background: rgba(196, 223, 223, 0.9);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);

  gap: 0.5rem;
}

/* لوگو */
.logo img {
  height: clamp(50px, 9vw, 80px);
  cursor: pointer;
  margin-right: 10px;
}

/* عنوان‌ها */
.header-text {
  margin: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

body.lang-fa .header-text-fa { font-family: 'Vazirmatn'; font-size: clamp(20px, 5vw, 40px); }
body.lang-en .header-text-en { font-family: 'Roboto Condensed'; font-size: clamp(20px, 5vw, 40px); }

/* دکمه های زبان */
.lang-switch { display: flex; gap: .4rem; }
.lang-switch button {
  font-size: 14px;
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
}

/* دکمه منوی موبایل */
.menu-btn {
  font-size: 1.2rem;
  cursor: pointer;
  border: 1px solid #ddd;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 0.4rem .7rem;
  backdrop-filter: blur(4px);
}

/* Drawer */
:root {
  --drawer-w: 280px;
  --overlay-bg: rgba(0,0,0,.45);
  --blur-amount: 4px;
}

/* اوورلی */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(var(--blur-amount));
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer زیر هدر تنظیم می‌شود */
.drawer {
  position: fixed;
  top: 70px; /* مقدار ثابت و ایمن */
  bottom: 0;
  right: 0;

  width: var(--drawer-w);
  background: rgba(196,223,223,0.85);
  backdrop-filter: blur(var(--blur-amount));

  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1600;
  padding: 1rem;
}

.drawer.open { transform: translateX(0); }

html[dir="ltr"] .drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

html[dir="ltr"] .drawer.open { transform: translateX(0); }

/* بستن */
.close-btn {
  display: block;
  margin-left: auto;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* لینک‌های منو */
.menu-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.menu-list a {
  display: block;
  padding: .6rem;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
}
.menu-list a:hover { background: #f5f5f5; }

@media (max-width: 768px) {

  header {
    display: flex !important;
    flex-direction: column; /* برای موبایل عمودی */
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 0.3rem;
  }

  /* ردیف بالا: لوگو و دکمه منو */
  .header-top {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .logo img {
    height: 48px !important;
  }

  .menu-btn {
    flex-shrink: 0;
    padding: 0.3rem 0.5rem;
  }

  /* متن هدر وسط */
  .header-text-fa, .header-text-en {
    font-size: 20px !important;
    white-space: normal;
    text-align: center;
    margin: 0;
  }

  /* ردیف دکمه‌های زبان زیر متن هدر */
  .lang-switch {
    display: flex !important;
    gap: 0.3rem;
    justify-content: center;
  }

  .lang-switch button {
    font-size: 14px;
    padding: 0.3rem 0.5rem;
  }

  /* Drawer زیر هدر */
  .drawer {
    top: auto;
    bottom: 0;
    height: calc(100% - 120px); /* جای هدر و دکمه‌ها */
  }
}


/* 🟩 استایل عمومی سکشن‌ها */
.section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.6px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 0.8rem;
}

/* 🟩 کارت‌ها */
.card,
.service-card,
.product-card,
.faq-item {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.6px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 0.8rem;
}

/* سایز کارت‌ها */
.service-card,
.product-card {
  width: 250px;
  padding: 1rem;
}
.card,
.faq-item {
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
}

/* هاور کارت‌ها */
.card:hover,
.service-card:hover,
.product-card:hover,
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* 🟩 سرویس‌ها */
.advanced-services {
  font-family: "IRAN SORS", sans-serif;
  direction: rtl;
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
  color: #e9f4fd;
  user-select: none;
}

#hero .read-more-btn {
  background: none;
  border: none; /* اگر نمی‌خوای کادر داشته باشه */
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 0;
}

#hero .read-more-btn .caret {
  display: inline-block;
  transition: transform 0.3s ease;
}
#hero .read-more-btn .caret.rotate {
  transform: rotate(180deg);
}
#hero .read-more-btn {
  margin-bottom: 15px; /* فاصله از دکمه تلگرام */
}

    .read-more-btn {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s;
    color: #000000; /* رنگ متن */
    backdrop-filter: blur(8px); /* بلور برای حالت شیشه‌ای */
  }

  /* حالت شیشه‌ای */
  .read-more-btn.glass {
    background: rgba(255, 255, 255, 0.1); /* رنگ خیلی شفاف */
  }

  /* حالت بدون پس‌زمینه */
  .read-more-btn.transparent {
    background: transparent;
    border-color: transparent;
  }

  .read-more-btn:hover {
    background: rgba(255,255,255,0.2);
  }

  .caret {
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    font-weight: bold;
  }

  .caret.rotate {
    transform: rotate(180deg);
  }

  /* متن ادامه */
  .collapsed-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .collapsed-text.open {
    max-height: 2000px;
  }
/* دکمه تلگرام */
.btn-telegram {
  display: inline-block;
  background-color: #0088cc; /* رنگ تلگرام */
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 10px; /* اگر می‌خوای فاصله از بالا داشته باشه */
}

.btn-telegram:hover {
  background-color: #006699;
  transform: translateY(-2px);
}

/* پنهان‌سازی نسخه‌ها براساس زبان (تو سایتت هست ولی برای یادآوری) */
body.lang-fa .fa { display: inline-block !important; }
body.lang-fa .en { display: none !important; }

body.lang-en .en { display: inline-block !important; }
body.lang-en .fa { display: none !important; }

/* دکمه های کنترل */
.carousel-btn {
  background: transparent;
  color: #18212b;
  border: 2px solid #18212b;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== کاروسل ===== */
/* services-section.css */

/* ====== فونت ======
   اگر IranSans را محلی دارید، از @font-face استفاده کنید یا آن را در <head> لود کنید.
   مثال (در صورت داشتن فایل فونت):
   @font-face {
     font-family: 'IranSans';
     src: url('/fonts/IranSans.woff2') format('woff2');
     font-weight: 300 800;
     font-style: normal;
     font-display: swap;
   }
*/
:root {
  --card-w: 200px;          /* بزرگ‌تر از قبل */
  --card-h: 260px;
  --carousel-size: 420px;
  --translate-z: 220px;     /* فاصله بیشتر از مرکز مدار */
  --card-radius: 12px;
  --bg-glass: rgba(0, 0, 0, 0.55);
  --text-color: #fff;
  --gap-mobile: 12px;
  --transition: 0.6s;
  --break-mobile: 768px;
}

* { box-sizing: border-box; }

.services-section {
  font-family: "IranSans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding: 40px 16px;
  color: #111;
  background: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}

/* ظرف دایره‌ای */
.circle-carousel {
  perspective: 1200px;
  width: var(--carousel-size);
  height: var(--carousel-size);
  margin: 0 auto;
  position: relative;
}

/* هسته چرخشی */
.carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  animation: spin 28s linear infinite;
}

/* توقف انیمیشن با hover روی ظرف (دسکتاپ) */
.circle-carousel:hover .carousel {
  animation-play-state: paused;
}

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* کارت‌ها (دسکتاپ) */
.service-card {
  width: var(--card-w);
  height: var(--card-h);
  perspective: 1000px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  transition: transform var(--transition);
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
}

/* درون کارت */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--transition) cubic-bezier(.3, .7, .4, 1);
  cursor: pointer;
}

/* جلو و پشت کارت */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
   backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  /*display: flex;
  flex-direction: column;
  align-items: center;*/
  /*justify-content: center;*/
  overflow: hidden;
  padding: 12px;
  color: var(--text-color);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.25));
}

.card-front {
  z-index: 2;
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* محتوا بیاد بالا */
  padding-top: 20px; /* فاصله از بالا */
  position: relative;
}



.card-front img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card-front .fa {
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
  color: #fff;
  width: 100%;
  white-space: normal; /* اجازه بده چند خطی بشه */
  overflow: visible;
  text-overflow: unset;
}


.card-front .en {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}


/* پشت کارت */
.card-back {
  transform: rotateY(180deg);
  background: rgba(0, 0, 0, 0.7);
  padding: 14px;
  font-size: 0.5rem;
  line-height: 1.4;
  z-index: 1;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center ;
  overflow-wrap: break-word;
  word-break: break-word;
   transition: all 0.45s cubic-bezier(.3, .7, .4, 1);
}
/*.service-card.flipped .card-back,
.service-card.expanded .card-back {
  width: 150%;
  height: 120%;
  padding: 32px 20px;
  font-size: 0.9rem;
  line-height: 2.1;
  border-radius: 18px;
}*/
.card-back-inner {
  width: 150%;
  height: 120%;
  padding: 32px 20px;
  font-size: 0.9rem;
  line-height: 2.1;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1); /* محتوای بزرگ‌شده بدون تغییر ابعاد بیرونی */
}

.card-back p {
  margin: 0;
  overflow: visible; /* بدون اسکرول */
   margin: 0;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* زاویه قرارگیری کارت‌ها در مدار */
.carousel .service-card:nth-child(1) { transform: rotateY(0deg) translateZ(var(--translate-z)); }
.carousel .service-card:nth-child(2) { transform: rotateY(60deg) translateZ(var(--translate-z)); }
.carousel .service-card:nth-child(3) { transform: rotateY(120deg) translateZ(var(--translate-z)); }
.carousel .service-card:nth-child(4) { transform: rotateY(180deg) translateZ(var(--translate-z)); }
.carousel .service-card:nth-child(5) { transform: rotateY(240deg) translateZ(var(--translate-z)); }
.carousel .service-card:nth-child(6) { transform: rotateY(300deg) translateZ(var(--translate-z)); }

/* کارت چرخیده */
.service-card.flipped .card-inner {

  transform: rotateY(180deg);
}

/* رسپانسیو موبایل */
@media (max-width: 768px) {
  :root {
    --carousel-size: 100%;
    --translate-z: 0px;
    --card-w: calc((100% - var(--gap-mobile) * 3) / 2);
    --card-h: 240px;
  }

  .circle-carousel {
    width: 100%;
    height: auto;
    perspective: none;
    padding: 0 8px;
  }

  .carousel {
    animation: none !important;
    position: static;
    transform: none !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-mobile);
    align-items: start;
    justify-items: center;
    padding-bottom: 8px;
  }

  .service-card {
    position: relative;
    left: auto;
    top: auto;
    margin: 0;
    width: 100%;
    height: var(--card-h);
    transform: none !important;
  }

  .card-front img { width: 58px; height: 58px; margin-bottom: 6px; }
  .card-front .fa { font-size: 0.95rem; }
  .card-front .en { font-size: 0.7rem; }

  .card-inner { cursor: pointer; }
}
.service-card {
  perspective: 1200px;
}

/* سه‌بعدی کردن کادر و چرخش پشت کارت */
.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.3, .7, .4, 1);
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  backface-visibility: hidden;
  border-radius: var(--card-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  font-size: 1rem;
}

.card-back {
  transform: rotateY(180deg);
  background: rgba(137, 187, 176, 0.85);
  color: #fff;
}

/* حالت بزرگ شده و چرخش سه‌بعدی */
.service-card.expanded .card-inner,
.service-card.flipped .card-inner {
  transform: scale(1.25) translateY(-40px) rotateY(180deg);
  z-index: 10000;
}

/* حالت فعال همیشه بالا باشد، اما تغییر مکان ندهد */
.service-card.active {
  z-index: 9999 !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.33);
  border-radius: var(--card-radius) !important;
}

/* رفع مشکلات جهت نوشته پشت کارت، مخصوص فارسی */
.card-back p {
  direction: rtl;
  font-size: 0.75rem; 
  line-height: 1.3;
  unicode-bidi: isolate;
}

/* اطمینان از اینکه کارت فعال حتی از ظرف چرخشی جلوتره */
.circle-carousel {
  isolation: isolate;
}

/* کارت بزرگ شده */
.service-card.expanded {
  /* فقط z-index بالا، موقعیت کارت تغییر نکند */
  z-index: 10000 !important;
}

/* ریسپانسیو یا عبارات دیگر به دلخواه همان قبلی */
.service-card.expanded .card-caption {
  transform: scale(1.25) translateY(-40px);
  transition: transform 0.45s cubic-bezier(.3, .7, .4, 1);
}



/* ===== دو زبانه ===== */
body.lang-fa .fa { display: initial !important; }
body.lang-fa .en { display: none !important; }
body.lang-en .en { display: initial !important; }
body.lang-en .fa { display: none !important; }


/* 🟩 FAQ */
.section {
  position: relative; /* یا هر جای دیگری که parent کلی است و overflow ندارد */
  
}
#faq {
  position: relative;
  overflow: visible !important;
  z-index: 1;
  
}


.faq-item {
  position: relative;
  margin-bottom: 8px; /* فاصله بین کادرها کم شود */
  border: 1px solid transparent;
  padding: 6px 10px; /* padding کمتر برای کادر کوچک‌تر */
  background: inherit;
  color: inherit;
  z-index: 1;
  font-size: 14px; /* متن سوالات ریزتر شود */
  width: 80%; /* اختیاری: کادرها باریک‌تر شوند */
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px; /* اگر لبه خمیده دوست دارید */
  min-height: 40px;
}

 

.faq-item p.faq-a {
  max-height: 0; /* ابتدا صفر */
  overflow: hidden;
  padding: 0 12px; /* padding افقی */
  background: #222;
  color: #fff;
  border: 1px solid #ccc;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item:hover p.faq-a {

  display: block;
  margin-top: 4px; /* فاصله با سوال */
  max-height: 200px; /* تنظیم ارتفاع */
  overflow: auto;    /* اگر متن طولانی شد، scroll */
}





/* متن ادامه پیش‌فرض مخفی */
#about .collapsed-text {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
#faq h2 {
  display: flex;
  justify-content: center; /* وسط‌چین افقی */
  align-items: center; /* وسط‌چین عمودی در صورت نیاز */
  text-align: center; /* وسط‌چین متن */
  margin: 0 auto;
  width: 100%;
}

#about .collapsed-text.open {
  display: block;
  max-height: 5000px;
  opacity: 1;
}

/* دکمه مثل هیرو */
#about .read-more-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 0;
}

#about .read-more-btn .caret {
  display: inline-block;
  transition: transform 0.3s ease;
}
#about .read-more-btn .caret.rotate {
  transform: rotate(180deg);
}

/* BTN*/
.btn {
  background: #6f96ff;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background: #176B87;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(236, 2, 2, 0.1);
}

/* FERM COLL*/
/*form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  margin: auto;
  text-align:center;
}
input[type="text"], input[type="email"], textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: Vazirmatn, sans-serif;
  text-align:center;
}
textarea {
  resize: vertical;
  min-height: 100px;
  text-align:center;
}

/* FOTER*/
footer {
  text-align: center;
  padding: 1rem;
  background: #F2EFE7;
  margin-top: 2rem;
  color: #176B87;
}

/*RESPANSIUN */
@media (max-width: 768px) {
  .menu-btn {
    position: fixed;
    top: 15px;
    right: 15px;
  }
  .nav-menu {
    top: 50px;
    right: 10px;
  }
  .service-card {
    flex: 0 0 140px;
    height: 260px;
  }
  .card-front img {
    width: 120px;
    height: 120px;
    margin-bottom: 0.6rem;
  }
  .card-front h3,
  .back-content h3 {
    font-size: 1rem;
  }
  .back-content p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
}

/*FONT*/
@font-face {
  font-family: "IRAN SORS";
  src: url("fonts/IRAN_SORS.woff2") format("woff2"),
       url("fonts/IRAN_SORS.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
/* دکمه‌های تغییر زبان */
.lang-switch {
  display: flex;
  gap: 6px; /* کمی فاصله کمتر */
  margin-right: auto; /* یا left بسته به طراحی */
  padding: 3px;
}

.lang-switch button {
  padding: 3px 8px; /* کوچیک‌تر شدن دکمه */
  border: 1px solid rgba(255, 255, 255, 0.4); /* کادر نیمه شفاف */
  background: rgba(255, 255, 255, 0.1); /* پس‌زمینه شیشه‌ای */
  backdrop-filter: blur(6px); /* حالت شیشه‌ای */
  cursor: pointer;
  font-size: 12px; /* فونت کوچیک‌تر */
  border-radius: 4px;
  color: #fff; /* رنگ متن */
  transition: all 0.3s ease;
}

.lang-switch button:hover {
  background: rgba(255, 255, 255, 0.2); /* روی هاور کمی روشن‌تر */
  border-color: rgba(255, 255, 255, 0.6);
}
/* ==== زبان و نمایش متن (قرار بدین انتهای styles.css) ==== */

/* پیش‌فرض: اگر هیچ کلاسی نباشه، فارسی نمایش داده میشه */
body.lang-fa {
  direction: rtl !important;
  text-align: right !important;
}
body.lang-en {
  direction: ltr !important;
  text-align: left !important;
}

/* نشان دادن/پنهان کردن نسخه‌های fa/en
   از initial استفاده می‌کنیم تا بلاک/اینلاین به صورت طبیعی اعمال بشه */
body.lang-fa .fa { display: initial !important; }
body.lang-fa .en { display: none !important; }

body.lang-en .en { display: initial !important; }
body.lang-en .fa { display: none !important; }

/* اگر خواستی فقط متن‌ها (h, p, li, a, button, input placeholder, label) جابه‌جا بشن،
   این دو قاعده جایگزین بالا کن (اینو فقط اگر بخوای متن‌ها محدودتر تغییر کنن) */

/*
body.lang-fa h1, body.lang-fa h2, body.lang-fa h3, body.lang-fa p,
body.lang-fa li, body.lang-fa a, body.lang-fa button, body.lang-fa label,
body.lang-fa input, body.lang-fa textarea { text-align: right !important; }

body.lang-en h1, body.lang-en h2, body.lang-en h3, body.lang-en p,
body.lang-en li, body.lang-en a, body.lang-en button, body.lang-en label,
body.lang-en input, body.lang-en textarea { text-align: left !important; }
*/

/* اطمینان از این‌که header text وسط بمونه (اگر لازم بود) */
.header-text { margin: 0 auto; text-align: center; }

html, body {
  overflow-x: hidden;
}

@media (max-width: 600px) {
  .header-text-fa,
  .header-text-en {
    font-size: 24px;
    transform: none;
  }

  .logo img {
    height: 50px;
    margin-right: 10px;
  }

  .section {
    width: 95%;
    margin: 1rem auto;
    padding: 0.8rem;
  }

  .circle-carousel {
    width: 100%;
    height: auto;
    perspective: 600px;
  }

  .carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    animation: none;
    transform: none;
    position: static;
  }

  .service-card {
    position: static;
    transform: none !important;
    width: 45%;
    max-width: 150px;
    margin: 10px 0;
  }

  .card-front img {
    width: 80px;
    height: 80px;
  }
}

/* ===== پس‌زمینه صفحه درباره ما ===== */
/*.about-page {
  min-height: 100vh;
  font-family: "Vazirmatn", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.5s ease, color 0.3s ease;
  color: #0a0a0a;
  position: relative;
  overflow: hidden;

  /* گرادیانت و دایره‌های لایت مود */
  /*background:
    radial-gradient(ellipse 800px 400px at 20% 30%, rgba(160, 190, 255, 0.32) 0%, transparent 67%),
    radial-gradient(ellipse 600px 280px at 80% 72%, rgba(210, 220, 255, 0.28) 0%, transparent 72%),
    linear-gradient(133deg, #eaf0ff 0%, #f6f9ff 40%, #ffffff 100%);
}

/* دایره‌های خطوط و افکت‌ها در لایت مود */
/*.about-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 240px at 19% 31%, rgba(130, 170, 255, 0.1) 0%, transparent 84%),
    radial-gradient(circle 150px at 76% 65%, rgba(180, 210, 255, 0.08) 0%, transparent 90%);
  pointer-events: none;
  opacity: 1;
}

/* چینش دوتا کادر */
/*.about-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin: 80px auto;
  max-width: 1100px;
  padding: 0 20px;
}

/* ===== کادرها (درباره ما / تماس با ما) ===== */
/*.about-box {
  flex: 1;
  min-width: 340px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(0, 60, 150, 0.25);
  background: rgba(230, 240, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 60, 150, 0.1);
  transition: all 0.35s ease;
  box-sizing: border-box;
  color: #0a0a0a;
}

/* هاور در لایت مود */
/*.about-box:hover {
  box-shadow: 0 10px 25px rgba(0, 100, 255, 0.25);
  transform: translateY(-5px);
}

/* عنوان داخل کادر */
/*.about-box h2 {
  margin-bottom: 18px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #002b6b;
  text-shadow: 0 0 6px rgba(0, 100, 255, 0.15);
}

/* پاراگراف‌ها */
/*.about-box p {
  line-height: 1.9;
  font-size: 1rem;
  color: inherit;
}

/* دکمه بیشتر/کمتر */
/*.read-more-btn {
  margin-top: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #0047b3;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: #0077ff;
}

.read-more-btn .caret {
  transition: transform 0.3s;
}
.read-more-btn .caret.rotate {
  transform: rotate(180deg);
}

/* لیست آیکون‌دار برای تماس با ما */
/*.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.contact-list .icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* متن مخفی */
/*.collapsed-text {
  display: none;
  margin-top: 10px;
}
.collapsed-text.open {
  display: block;
}


/* ===== حالت دارک مود ===== */
/*@media (prefers-color-scheme: dark) {
  .about-page {
    color: #fff;
    background:
      radial-gradient(ellipse 900px 400px at 30% 22%, rgba(35, 105, 255, 0.24) 0%, transparent 68%),
      radial-gradient(ellipse 650px 300px at 70% 81%, rgba(40, 90, 180, 0.20) 0%, transparent 80%),
      linear-gradient(135deg, #06132a 0%, #0c1b36 49%, #000 100%);
  }
  .about-page::before {
    background:
      radial-gradient(circle 220px at 16% 28%, rgba(53, 113, 255, 0.12) 0%, transparent 86%),
      radial-gradient(circle 130px at 82% 76%, rgba(85, 170, 255, 0.09) 0%, transparent 91%);
    opacity: 1;
  }
}*/

/*  .about-box {
    background: rgba(5, 15, 35, 0.9);
    border: 1px solid rgba(0,150,255,0.25);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,150,255,0.1);
  }

  .about-box:hover {
    box-shadow: 0 0 25px rgba(0,150,255,0.5);
    transform: translateY(-5px);
  }

  .about-box h2 {
    color: #80cfff;
    text-shadow: 0 0 8px rgba(0,150,255,0.5);
  }

  .read-more-btn {
    color: #33aaff;
  }

  .read-more-btn:hover {
    color: #66ccff;
  }
*/

/* ===== ریسپانسیو ===== */
/*@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
  }

  .about-box {
    width: 90%;
    min-width: unset;
  }
}*/
