@font-face {
  font-family: iranyekan;
  font-style: normal;
  font-weight: bold;
  src: url("../../fonts/iranyekan2/eot/iranyekanwebboldfanum.eot");
  src:
    url("../../fonts/iranyekan2/eot/iranyekanwebboldfanum.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-8 */ url("../../fonts/iranyekan2/woff/iranyekanwebboldfanum.woff")
      format("woff"),
    /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
      url("../../fonts/iranyekan2/ttf/iranyekanwebboldfanum.ttf")
      format("truetype");
}
* {
  font-family: iranyekan !important;
}
body {
  font-family: "Vazir", Tahoma, sans-serif;
  direction: rtl;
  margin: 0;
}
/* تنظیمات پایه و رنگ‌بندی */
:root {
  --bg-dark: #fff; /* رنگ تیره سرمه‌ای حرفه‌ای */
  --card-bg: #1e293b; /* رنگ کارت */
  --accent: #0ea5e9; /* آبی نئونی لوگو آونا */
  --text-main: #f1f5f9;
}
.intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%; /* کمی پدینگ بیشتر برای دلباز شدن */
  gap: 60px; /* فاصله بیشتر بین متن و عکس */
  background-color: #ffffff; /* پس‌زمینه سفید طبق دستور شما */
}

.intro-text {
  flex: 1;
  direction: rtl;
}

.intro-text h1 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #1e293b; /* همان سرمه‌ای تیره کارت‌های پایین */
  font-weight: 800;
}

.blue-text {
  color: #38bdf8; /* همان آبی روشن نئونی */
}

.intro-text p {
  line-height: 1.9;
  color: #475569; /* خاکستری گرم‌تر برای خوانایی بالاتر */
  margin-bottom: 35px;
  text-align: justify;
}

/* دکمه ست شده با استایل جدید آونا */
.btn-primary {
  background-color: #1e293b; /* پس‌زمینه سرمه‌ای */
  color: #38bdf8; /* متن آبی */
  border: 1px solid #38bdf8; /* لبه آبی */
  padding: 14px 35px;
  border-radius: 12px; /* لبه‌های نرم‌تر مشابه کارت‌ها */
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #38bdf8;
  color: #1e293b;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

/* اصلاح تراز مثبت در دکمه بالا */
.btn-primary span {
  font-size: 22px;
  line-height: 0;
  display: inline-block;
  transform: translateY(2px); /* حل مشکل بالا بودن مثبت */
}

.intro-image {
  flex: 1;
}

.intro-image img {
  width: 100%;
  border-radius: 30px; /* لبه‌های گردتر برای مدرن شدن */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* سایه حرفه‌ای‌تر */
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
  .intro-section {
    flex-direction: column-reverse;
    text-align: justify;
    padding: 40px 5%;
  }
  .intro-text p {
    text-align: justify;
  }
}
.avena-services-section {
  background-color: var(--bg-dark);
  padding: 80px 8%; /* مارجین از طرفین برای زیبایی */
  direction: rtl;
}

.section-title {
  text-align: center;
  color: var(#1e293b);
  margin-bottom: 50px;
  font-size: 2rem;
}

/* گرید منظم */
.services-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* کارت‌ها */
.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.service-card h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.service-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.card-btn {
  color: var(--accent);
  font-weight: bold;
  font-size: 0.8rem;
}

/* مودال (پاپ‌آپ) */
.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.modal-box {
  background: #0f172a;
  width: 90%;
  max-width: 750px;
  max-height: 85vh; /* امکان اسکرول محتوا */
  padding: 45px;
  border-radius: 25px;
  border: 1px solid var(--accent);
  position: relative;
  overflow-y: auto;
  /* انیمیشن فقط برای ورود */
  animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* حذف انیمیشن خروج برای سرعت آنی */
.modal-closing {
  display: none !important;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
}

.modal-content-area {
  color: #cbd5e1;
  text-align: right;
}
.modal-content-area h2 {
  color: var(--accent);
  margin-bottom: 25px;
}
.modal-content-area h4 {
  color: #fff;
  margin: 20px 0 10px;
  border-right: 3px solid var(--accent);
  padding-right: 10px;
}
.modal-content-area ul {
  list-style: none;
  padding: 0;
}
.modal-content-area li {
  margin-bottom: 10px;
  position: relative;
  padding-right: 20px;
}
.modal-content-area li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--accent);
}
.avena-contact-section {
  background-color: #ffffff;
  padding: 60px 10%;
  direction: rtl;
}

/* شبکه بندی برای هم‌سایز شدن خودکار */
/* اصلاح نهایی برای کاهش ارتفاع و جلوگیری از هم‌پوشانی */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  align-items: stretch; /* همه را هم‌قد نگه می‌دارد */
}

.contact-card {
  background: #1e293b;
  border-radius: 20px;
  padding: 20px 15px; /* کاهش پدینگ برای کم شدن ارتفاع */
  text-align: center;
  border-bottom: 4px solid #38bdf8;
  transition: 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: center; /* محتوا را در مرکز عمودی قرار می‌دهد */
  min-height: 220px; /* یک ارتفاع ثابت و منطقی */
}

.contact-icon {
  font-size: 35px; /* کمی کوچک‌تر */
  margin-bottom: 10px;
}

.contact-card h3 {
  color: #38bdf8;
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-card p {
  color: #cbd5e1;
  line-height: 1.5;
  font-size: 13px; /* سایز متن آدرس کمی کوچک‌تر برای جا شدن در فضای کمتر */
  margin: 0;
}

/* استایل متن نهایی همراه با خط زیرین */
.contact-footer-text {
  text-align: center;
  margin: 50px auto 30px; /* فاصله از بالا و پایین */
  font-size: 22px;
  font-weight: bold;
  color: #1e293b;
  display: flex; /* استفاده از فلکس برای تراز کردن خط */
  flex-direction: column;
  align-items: center;
  gap: 10px; /* فاصله متن تا خط */
}

.contact-footer-text::after {
  content: "";
  width: 80px; /* طول خط */
  height: 3px; /* ضخامت خط */
  background-color: #38bdf8; /* رنگ آبی نئونی */
  border-radius: 2px;
  display: block;
}
