/*
  استایل‌های کلی برای سایت آسترولوژی. 
  از متغیرها برای رنگ‌ها استفاده شده تا در صورت نیاز به تغییر، ساده باشد. 
*/
:root {
  /* رنگ‌های اصلی و ثانویه مطابق تم کیهانی و مدرن */
  --primary-color: #5d2c9c; /* بنفش تیره با حس کیهانی */
  --secondary-color: #8b5cf6; /* بنفش روشن‌تر برای تاکید */
  --dark-bg: #0f172a; /* پس‌زمینه تیره برای کل سایت */
  --light-bg: #1e293b; /* پس‌زمینه ملایم برای کارت‌ها */
  --text-color: #f3f4f6; /* متن روشن برای خوانایی روی پس‌زمینه تیره */
  --accent-color: #facc15; /* طلایی متمایل به زرد برای دعوت به اقدام */
  --card-bg: rgba(31, 41, 55, 0.8); /* پس‌زمینه نیمه‌شفاف کارت‌ها */
  --card-shadow: rgba(0, 0, 0, 0.25);
  --icon-bg1: #a78bfa;
  --icon-bg2: #6d28d9;
}

/* افزودن فونت BYekan از CDN در صورت دسترسی */
@font-face {
  font-family: 'BYekan';
  src: url('fonts/BYekan.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  /* استفاده از فونت BYekan در صورت دسترس، و فونت‌های جایگزین */
  font-family: 'BYekan', 'Tahoma', 'Arial', sans-serif;
  background: linear-gradient(180deg, var(--dark-bg), var(--light-bg));
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4 {
  color: var(--secondary-color);
  font-weight: bold;
  line-height: 1.3;
}

/* بخش هدر (قهرمان) */
/* بخش قهرمان با تصویر پس‌زمینه و محتوای مرکزی */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('cosmic.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #fdf4ff;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #e5e7eb;
  line-height: 1.8;
}

.hero-button {
  background: var(--accent-color);
  color: var(--dark-bg);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
  display: inline-block;
}

.hero-button:hover {
  transform: translateY(-4px);
  background: #ffe867;
}

/* کلاس container برای محدود کردن عرض و ایجاد فاصله از حاشیه‌ها */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* کلاس‌های کمکی برای حاشیه‌ها */
.my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-3 {
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

/* ساختار شبکه (grid) بدون استفاده از Bootstrap */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.col {
  flex: 1 1 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .col {
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .col {
    flex: 0 0 33.3333%;
  }
}

/* کارت‌های معرفی چارت‌ها */
.chart-card {
  border: 1px solid #eceaf4;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--card-bg);
  box-shadow: 0 4px 12px var(--card-shadow);
}

.chart-card i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-left: 0.5rem;
}

.chart-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

/* بخش دعوت به اقدام */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--card-shadow);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section .price {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.cta-button {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  border: none;
  padding: 0.75rem 1.8rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.cta-button:hover {
  background-color: #ffe867;
  transform: translateY(-3px);
}

.cta-button i {
  margin-left: 0.5rem;
}

/* فوتر */
footer {
  background-color: #1e293b;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 3rem;
}

/* بخش درباره ما با چیدمان دو ستونه */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.about-section .text {
  flex: 1 1 350px;
  color: var(--text-color);
  line-height: 1.8;
}

.about-section .image {
  flex: 1 1 300px;
  text-align: center;
}

.about-section .image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* شبکه ویژگی‌ها (feature grid) برای طراحی مدرن‌تر */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px var(--card-shadow);
  text-align: center;
  color: var(--text-color);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, var(--icon-bg1), var(--icon-bg2));
}