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

/* ==================== Variables - Pastel Minimalist Theme ==================== */
:root {
  --color-accent: #a0d2eb; /* آبی آسمانی ملایم */
  --color-accent-dark: #457b9d; /* آبی تیره‌تر برای متن روی دکمه */
  --color-background: #edf0f3; /* 🌤️ بکگراند لایت مود نرم‌تر */
  --color-card-bg: #ffffff; /* سفید خالص (برای کارت‌ها) */
  --color-white: #ffffff;
  --color-green: #2a9d8f; /* سبز پاستلی‌تر برای تیک‌ها */
  --color-text-dark: #212529; /* متن اصلی (نزدیک به مشکی) */
  --color-text-light: #6c757d; /* متن ثانویه (خاکستری) */
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 10px 24px rgba(0, 0, 0, 0.1);
  --color-border: rgba(0, 0, 0, 0.05);
}

/* ==================== Reset & Base ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

/* تغییرات اصلی برای پارالاکس */
body {
  font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-background);
  color: var(--color-text-dark);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  /* پارالاکس CSS حذف شد و با JS جایگزین شد */
  overflow-x: hidden;
}

/* ==================== Typography ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-dark);
}
p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}
a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-accent);
}
ul {
  list-style-position: inside;
  margin-bottom: 1rem;
}

/* ==================== Parallax Background (جدید) ==================== */
.bg-animation {
  position: fixed; /* تغییر به fixed */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden; /* اضافه شد */
}

.shape {
  position: absolute;
  opacity: 0.15;
  filter: blur(20px);
  border-radius: 50%;
  background: var(--color-accent);

  /* برای بهینه‌سازی انیمیشن JS اضافه شد */
  will-change: transform, opacity;
  transition: transform 0.3s ease-out, opacity 0.5s ease, width 0.3s ease-out,
    height 0.3s ease-out, border-radius 0.5s ease;
}

/* استایل‌های :nth-child(x) حذف شدند چون JS آن‌ها را می‌سازد */

/* ==================== Section Containers (White Cards) ==================== */
.services-intro,
.pricing-container,
.portfolio,
.blog-intro,
.testimonials, /* اضافه شده */
.about /* اضافه شده */ {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 60px 40px;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 2; /* اضافه شد تا روی پس‌زمینه fixed باشد */
}

.services-intro::before,
.pricing-container::before,
.portfolio::before,
.blog-intro::before,
.testimonials::before, /* اضافه شده */
.about::before /* اضافه شده */ {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--color-accent);
  border-radius: 20px 20px 0 0;
}

/* ==================== Section Headers ==================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}
.intro-text {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== Buttons (Micro-animation Update) ==================== */
.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease-out; /* 🌈 جلوه کوچک‌تر */
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
}
.cta-button:hover {
  transform: translateY(-3px); /* 🌈 جلوه کوچک‌تر */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1); /* 🌈 جلوه کوچک‌تر */
  background: #90c6e0;
  color: var(--color-text-dark);
}
/* افکت فشرده شدن هنگام کلیک */
.cta-button:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: var(--shadow-soft);
}

/* ==================== Portfolio Grid (Flexbox) ==================== */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}

.portfolio-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  flex: 0 1 320px;
}

.portfolio-item {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease; /* 🎯 افکت Hover */
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.portfolio-item::after {
  display: none;
}
.portfolio-item:hover {
  transform: translateY(-8px); /* 🎯 افکت Hover */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); /* 🎯 افکت Hover */
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  flex-shrink: 0;
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out; /* افکت تصویر نرم‌تر */
}
.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05); /* افکت تصویر نرم‌تر */
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(160, 210, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.view-project {
  padding: 12px 30px;
  background: var(--color-white);
  color: var(--color-accent-dark);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  transform: translateY(20px);
  /* Easing فنری‌تر با کمی تاخیر */
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
  box-shadow: var(--shadow-soft);
}
.portfolio-item:hover .view-project {
  transform: translateY(0);
}

.portfolio-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.portfolio-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}
.portfolio-info p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.portfolio-tags span {
  padding: 6px 16px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

/* ==================== Footer ==================== */
.main-footer {
  background: #0d0d0d !important; /* 🖤 فوتر همیشه تیره */
  color: #f2f2f2 !important; /* 🖤 فوتر همیشه تیره */
  padding: 50px 20px;
  text-align: center;
  margin-top: 80px;
  position: relative;
  z-index: 2; /* اضافه شد */
}

.main-footer::before {
  display: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-content p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #bfbfbf; /* 🖤 فوتر همیشه تیره */
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--color-accent); /* 🖤 فوتر همیشه تیره */
}

/* ==================== View All Container ==================== */
.view-all-container {
  text-align: center;
  margin-top: 40px;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .services-intro,
    .pricing-container,
    .portfolio,
    .blog-intro,
    .testimonials, /* اضافه شده */
    .about /* اضافه شده */ {
    padding: 40px 20px;
    margin: 40px 20px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .intro-text {
    font-size: 1rem;
  }
  .portfolio-grid {
    gap: 30px;
  }
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  /* === کدهای Responsive جدید در اینجا ادغام شدند === */

  /* از بلوک اول و دوم */
  .mobile-menu-toggle {
    display: flex;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
  .about-stats {
    justify-content: space-between;
  }
  .stat-item {
    flex: 1;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-button {
    width: 250px;
  }

  /* از بلوک دوم (منوی موبایل) */
  .nav-links {
    position: fixed;
    top: 70px; /* ارتفاع هدر */
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-card-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: right 0.3s ease;
    z-index: 999;
    /* display: flex; را از حالت دسکتاپ به ارث می‌برد */
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .nav-cta {
    margin-top: 20px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  /* === پایان بخش ادغام شده === */
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%; /* در cta-buttons موبایل */
  }

  .cta-buttons .cta-button {
    width: 250px; /* بازنویسی برای cta-section */
  }
}

.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
  z-index: 9999;
}
.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

/* ==== Price Toggle Switch ==== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* ==================== حالت تاریک ==================== */
:root {
  /* حالت روشن */
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-card-bg: #f9f9f9;
}

/* 🌙 حالت تاریک */
:root[data-theme="dark"] {
  --color-bg: #0d0d0d;
  --color-text: #eaeaea;
  --color-accent: #8b5cf6; /* این اورراید می‌شود */
  --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.6);

  /* متغیرهای اصلی تم پاستلی شما در حالت تاریک */
  --color-accent: #486581;
  --color-accent-dark: #829ab1;
  --color-background: #0f1114; /* 🌙 بکگراند دارک مود ثابت */
  --color-card-bg: #181a1d; /* 🌙 بکگراند دارک مود ثابت */
  --color-text-dark: #f0f4f8;
  --color-text-light: #9fb3c8;
  --color-border: rgba(255, 255, 255, 0.1);
}

/* استفاده از رنگ‌های متغیر در عناصر عمومی */
body {
  background-color: var(--color-background); /* استفاده از متغیر اصلی */
  color: var(--color-text-dark); /* استفاده از متغیر اصلی */
  transition: background-color 0.3s ease, color 0.3s ease;
}
.card,
.plan,
.portfolio-item,
.bento-item,
.project-main-content,
.article-content,
.sidebar-widget,
.nav-button,
.blog-list-item,
.pagination-link,
.testimonial-item /* اضافه شده */ {
  background-color: var(--color-card-bg); /* استفاده از متغیر اصلی */
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* متغیرهای پس‌زمینه هدر */
:root {
  --color-card-bg-alpha: rgba(255, 255, 255, 0.95);
}
:root[data-theme="dark"] {
  --color-card-bg-alpha: rgba(30, 30, 30, 0.9);
}

/* ======================================================== */
/* کدهای ادغام شده از HOME.CSS */
/* ======================================================== */

/* ==================== Hero Section - Pastel Minimalist ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  background: transparent;
  overflow: hidden;
  z-index: 2; /* اضافه شد */
}
.hero-section::before,
.hero-section::after {
  display: none;
}
.hero-content {
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1.2s ease-out;
  z-index: 10;
  position: relative;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Hero Title Slide-in Animation ==================== */
.hero-title .slide-item-1,
.hero-title .slide-item-2 {
  display: block; /* برای اینکه هر جمله در خط جداگانه باشد */
  opacity: 0; /* ⬅️ در ابتدا نامرئی */
  transform: translateY(20px); /* ⬅️ از پایین شروع کند */
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); /* انیمیشن نرم‌تر */
  white-space: nowrap; /* جلوگیری از شکستن جمله */
  will-change: opacity, transform; /* برای بهینه‌سازی انیمیشن */
}

/* جهت اسلایدینگ را برای دومی معکوس می‌کنیم */
.hero-title .slide-item-1 {
  transition-delay: 0.1s; /* تاخیر کوچک برای افکت آبشاری */
}
.hero-title .slide-item-2 {
  transition-delay: 0.3s; /* تاخیر کوچک برای افکت آبشاری */
}

/* حالتی که کلاس 'animated' اضافه می‌شود */
.hero-title.animated .slide-item-1,
.hero-title.animated .slide-item-2 {
  opacity: 1; /* قابل رویت */
  transform: translateY(0); /* به موقعیت اصلی برگردد */
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  text-shadow: none;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 40px;
  text-shadow: none;
  line-height: 1.8;
}
.cta-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease-out; /* 🌈 جلوه کوچک‌تر */
  position: relative;
}
.cta-hero:hover {
  transform: translateY(-3px); /* 🌈 جلوه کوچک‌تر */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1); /* 🌈 جلوه کوچک‌تر */
  background: var(--color-accent-dark);
  color: var(--color-white);
}
/* افکت فشرده شدن هنگام کلیک */
.cta-hero:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: var(--shadow-soft);
}
.arrow-icon {
  transition: transform 0.3s ease;
}
.cta-hero:hover .arrow-icon {
  transform: translateY(3px);
}
/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  z-index: 10;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}
.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-light);
  border-radius: 20px;
  position: relative;
}
.mouse::before {
  content: "";
  width: 4px;
  height: 8px;
  background: var(--color-text-light);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}
@keyframes scroll {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 24px;
    opacity: 0;
  }
}

/* ==================== Feature Tabs (جدید) ==================== */
.feature-tabs-container {
  display: grid;
  grid-template-columns: 1fr 2fr; /* ستون ناوبری ۳۳٪، محتوا ۶۶٪ */
  gap: 40px;
  margin-top: 40px;
}

.feature-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid var(--color-border, #e9ecef);
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-align: right;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit; /* برای ارث‌بری فونت وزیر */
}

.tab-link svg {
  flex-shrink: 0; /* جلوگیری از کوچک شدن آیکون */
  stroke: var(--color-text-light);
  transition: stroke 0.3s ease;
}

.tab-link:hover {
  background: var(--color-background);
  color: var(--color-text-dark);
}
.tab-link:hover svg {
  stroke: var(--color-text-dark);
}

.tab-link.active {
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-soft);
}
.tab-link.active svg {
  stroke: var(--color-text-dark);
}

.feature-tabs-content {
  position: relative;
  min-height: 250px; /* ارتفاع حداقلی برای جلوگیری از پرش */
  padding: 10px;
}

.tab-pane {
  /* برای انیمیشن fade، همه را روی هم قرار می‌دهیم */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  /* در ابتدا مخفی و کمی پایین‌تر */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s;
}

.tab-pane.active {
  /* فعال کردن تب مورد نظر */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tab-pane h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.tab-pane p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.9;
  max-width: 90%; /* برای خوانایی بهتر */
}

/* رسپانسیو برای تب‌ها */
/* ==================== Mobile Layout Fix ==================== */
@media (max-width: 768px) {
  .services-intro,
  .pricing-container,
  .portfolio,
  .blog-intro,
  .testimonials,
  .about {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 30px 15px;
    box-sizing: border-box;
  }

  section {
    overflow-x: hidden;
  }

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
}

/* ==================== Pricing Toggle ==================== */
.toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}
.toggle-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}
.toggle-label.active {
  color: var(--color-text-dark);
}
.discount-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-size: 0.75rem;
  border-radius: 20px;
  margin-right: 8px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 38px;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e9ecef;
  transition: 0.4s;
  border-radius: 38px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 4px;
  bottom: 4px;
  background: var(--color-white);
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}
input:checked + .slider {
  background: var(--color-accent);
}
input:checked + .slider:before {
  transform: translateX(32px);
}
/* ==================== Pricing Plans - (Flexbox) ==================== */
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}
.plan {
  /* background: var(--color-white); */ /* (handled by .card) */
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease; /* 🎯 افکت Hover */
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 0 1 320px;
}
.plan::after {
  display: none;
}
.plan:hover {
  transform: translateY(-8px); /* 🎯 افکت Hover */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); /* 🎯 افکت Hover */
}
.plan.featured {
  background: var(--color-accent);
  color: var(--color-text-dark);
  transform: scale(1.05);
  border-color: var(--color-accent-dark);
}
.plan.featured:hover {
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); /* 🎯 افکت Hover */
}
.plan.featured h3,
.plan.featured .price,
.plan.featured ul li,
.plan.featured .price span {
  color: var(--color-text-dark);
}
.popular-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--color-accent-dark);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.plan-header {
  text-align: center;
  margin-bottom: 24px;
}
.plan-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}
.plan h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}
.price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 30px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.plan ul {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}
.plan ul li {
  padding: 12px 0;
  color: var(--color-text-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  padding-right: 30px;
  text-align: right;
}
.plan ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--color-green);
  font-weight: bold;
  font-size: 1.2rem;
}
.plan.featured ul li {
  border-bottom-color: rgba(69, 123, 157, 0.2);
}
.plan.featured ul li::before {
  color: var(--color-accent-dark);
}
.plan .cta-button {
  width: 100%;
}
.plan.featured .cta-button {
  background: var(--color-white);
  color: var(--color-accent-dark);
}
.plan.featured .cta-button:hover {
  background: #f0f0f0;
}

/* ==================== Main Header (جدید) ==================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  z-index: 1000;
  background: var(--color-card-bg-alpha, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.05));
  box-shadow: var(--shadow-soft);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--color-accent);
  color: var(--color-text-dark) !important;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-medium);
  background: var(--color-accent-dark);
  color: var(--color-white) !important;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--color-text-dark);
  transition: all 0.3s ease;
}

/* ==================== Portfolio Filter (جدید) ==================== */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-accent);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-accent);
  color: var(--color-text-dark);
}

/* ==================== Testimonials (جدید) ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-item {
  background: var(--color-background);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.testimonial-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content p {
  color: var(--color-text-dark);
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-content::before {
  content: "”"; /* اصلاح شد: ” به " تغییر کرد */
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 5px;
}

.author-info span {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ==================== About Section (جدید) ==================== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ==================== CTA Section (جدید) ==================== */
.cta-section {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 60px 40px;
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--color-accent-dark);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button.primary {
  background: var(--color-white);
  color: var(--color-accent-dark);
}

.cta-button.secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.cta-button.secondary:hover {
  background: var(--color-white);
  color: var(--color-accent-dark);
}

/* ==================== Responsive (Home) ==================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .plan.featured {
    transform: scale(1);
  }
  .toggle-container {
    flex-direction: column;
    gap: 15px;
  }

  /* رسپانسیو Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr; /* تک ستونه */
  }
  .bento-item.bento-featured {
    grid-column: span 1; /* در موبایل، همه تک ستونه هستند */
    padding: 30px; /* بازگشت به پدینگ عادی */
    text-align: right; /* بازگشت به راست‌چین */
  }
  .bento-item.bento-featured .feature-icon {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 480px) {
  .cta-hero {
    padding: 14px 28px;
    font-size: 1rem;
  }
  .plan {
    padding: 30px 20px;
  }
  .price {
    font-size: 2.2rem;
  }
}

/* ======================================================== */
/* کدهای ادغام شده از INTERNAL.CSS */
/* ======================================================== */

/* ==================== Sticky Navigation ==================== */
/* این بخش به طور کامل حذف شد
    و با .main-header جایگزین گردید
    (خطوط ۷۵۷ تا ۸۲۶ فایل اصلی)
*/

/* ==================== Page Content ==================== */
.page-content {
  padding-top: 40px;
  min-height: 60vh;
  position: relative; /* اضافه شد */
  z-index: 2; /* اضافه شد */
}
/* ==================== Project Template Styles ==================== */
.project-hero {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.project-hero-content {
  margin-bottom: 40px;
}
.project-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.project-tags span {
  padding: 6px 16px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.project-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.project-subtitle {
  font-size: 1.3rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
}
.project-featured-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.project-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* ==================== Project Container (2 Columns) ==================== */
.project-container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}
/* Main Content */
.project-main-content {
  /* background: var(--color-white); */ /* (handled by .card) */
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.project-main-content::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--color-accent);
  border-radius: 20px 20px 0 0;
  margin: -50px -50px 40px -50px;
}
.content-section {
  margin-bottom: 40px;
}
.content-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.content-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
.content-section p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}
.content-section ul {
  margin: 20px 0;
  padding-right: 20px;
}
.content-section ul li {
  margin-bottom: 12px;
  color: var(--color-text-dark);
  line-height: 1.8;
}
/* Project Images (Flexbox) */
.project-image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}
.project-image-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  flex: 1 1 300px;
}
.project-image-full {
  margin: 40px 0;
}
.project-image-full img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
}
.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 12px;
  font-style: italic;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.tech-badge {
  padding: 8px 18px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
/* ==================== Project Sidebar ==================== */
.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-widget {
  /* background: var(--color-white); */ /* (handled by .card) */
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.sidebar-widget h3 {
  font-size: 1.3rem;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-border, #e9ecef);
}
.project-meta-list,
.services-list {
  list-style: none;
  padding: 0;
}
.project-meta-list li {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.project-meta-list li strong {
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 600;
}
.project-meta-list li span {
  color: var(--color-text-dark);
  font-weight: 500;
}
.services-list li {
  padding: 10px 0;
  color: var(--color-text-dark);
  border-bottom: 1px solid var(--color-border, #e9ecef);
}
.services-list li:last-child {
  border-bottom: none;
}
.cta-widget {
  background: var(--color-accent);
  color: var(--color-text-dark);
}
.cta-widget h3 {
  color: var(--color-text-dark);
  border-bottom-color: rgba(69, 123, 157, 0.2);
}
.cta-widget p {
  color: var(--color-accent-dark);
  margin-bottom: 20px;
}
.cta-widget .cta-button {
  background: var(--color-white);
  color: var(--color-accent-dark);
  width: 100%;
}
.cta-widget .cta-button:hover {
  background: #f0f0f0;
}
/* ==================== Project Navigation ==================== */
.project-navigation {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 20px;
}
.nav-button {
  padding: 12px 24px;
  /* background: var(--color-white); */ /* (handled by .card) */
  color: var(--color-accent-dark);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  /* Easing فنری‌تر */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}
.nav-button:active {
  transform: translateY(-1px) scale(0.98);
}
/* ==================== Blog Article Styles ==================== */
.blog-article-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}
.article-hero {
  text-align: center;
  margin-bottom: 40px;
}
.article-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-tags span {
  padding: 6px 16px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.article-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--color-text-light);
}
.article-featured-image {
  width: 100%;
  margin-bottom: 50px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-content {
  /* background: var(--color-white); */ /* (handled by .card) */
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1.15rem;
  line-height: 1.9;
}
.article-content::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--color-accent);
  border-radius: 20px 20px 0 0;
  margin: -50px -50px 40px -50px;
}
.lead-paragraph {
  font-size: 1.3rem;
  color: var(--color-text-dark);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 30px;
}
.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 50px;
  margin-bottom: 20px;
}
.article-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-top: 35px;
  margin-bottom: 15px;
}
.article-content ul {
  margin: 20px 0;
  padding-right: 30px;
}
.article-content ul li {
  margin-bottom: 12px;
  line-height: 1.8;
}
.article-content blockquote {
  border-right: 4px solid var(--color-accent);
  margin: 30px 0;
  padding: 20px 30px;
  background: var(--color-background); /* (changed) */
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-dark);
  border-radius: 8px;
}
.article-image {
  margin: 40px 0;
}
.article-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
}
.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--color-border, #e9ecef);
  text-align: center;
}
.back-to-blog {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}
.back-to-blog:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  background: var(--color-accent-dark);
  color: var(--color-white);
}
/* ==================== Blog List Page ==================== */
.blog-list-header {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}
.page-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  line-height: 1.8;
}
.blog-list-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.blog-list-item {
  /* background: var(--color-white); */ /* (handled by .card) */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 300px 1fr;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.blog-list-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.blog-item-image {
  position: relative;
  overflow: hidden;
}
.blog-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-list-item:hover .blog-item-image img {
  transform: scale(1.1);
}
.blog-item-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
}
.blog-item-tags {
  display: flex;
  gap: 8px;
}
.blog-item-tags span {
  padding: 6px 12px;
  background: var(--color-white);
  color: var(--color-accent-dark);
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.blog-item-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.blog-item-title {
  margin-bottom: 15px;
}
.blog-item-title a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}
.blog-item-title a:hover {
  color: var(--color-accent);
}
.blog-item-excerpt {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}
.blog-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--color-border, #e9ecef);
}
.blog-item-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.read-more-link {
  color: var(--color-accent-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.read-more-link:hover {
  color: var(--color-accent);
}
/* ==================== Pagination ==================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 60px 0;
}
.pagination-link {
  padding: 10px 16px;
  /* background: var(--color-white); */ /* (handled by .card) */
  color: var(--color-text-dark);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}
.pagination-link:hover,
.pagination-link.active {
  background: var(--color-accent);
  color: var(--color-text-dark);
  transform: translateY(-2px);
}
/* ==================== Newsletter Section ==================== */
.newsletter-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}
.newsletter-content {
  background: var(--color-accent);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow-medium);
}
.newsletter-content h2 {
  font-size: 2rem;
  color: var(--color-text-dark);
  margin-bottom: 15px;
}
.newsletter-content p {
  font-size: 1.1rem;
  color: var(--color-accent-dark);
  margin-bottom: 30px;
}
.newsletter-form {
  display: flex;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: var(--shadow-soft);
}
.newsletter-form .cta-button {
  background: var(--color-white);
  color: var(--color-accent-dark);
  padding: 14px 30px;
  white-space: nowrap;
}
/* ==================== Responsive Internal Pages ==================== */
@media (max-width: 1024px) {
  .project-container {
    grid-template-columns: 1fr;
  }
  .project-sidebar {
    order: -1;
  }
}
@media (max-width: 768px) {
  .services-intro,
  .pricing-container,
  .portfolio,
  .blog-intro,
  .testimonials,
  .about {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 30px 15px;
    box-sizing: border-box;
  }

  section {
    overflow-x: hidden;
  }

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .hero-title {
    font-size: 2rem;
  }

  .project-main-content,
  .article-content {
    padding: 30px 20px;
  }
  .project-main-content::before,
  .article-content::before {
    margin: -30px -20px 30px -20px;
  }

  .blog-list-item {
    grid-template-columns: 1fr;
  }
  .blog-item-image {
    height: 200px;
  }
  .newsletter-form {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .project-title,
  .article-title {
    font-size: 1.8rem;
  }
  .article-content {
    font-size: 1rem;
  }
  .lead-paragraph {
    font-size: 1.1rem;
  }
  .cta-hero {
    padding: 14px 28px;
    font-size: 1rem;
  }
  .cta-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

/* ======================================================== */
/* ترند جدید: Scrollytelling (انیمیشن ساده با اسکرول) */
/* ======================================================== */

/* ۱. تعریف انیمیشن */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(60px); /* کمی بیشتر برای افکت بهتر */
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ۲. اعمال انیمیشن به بخش‌های اصلی */
.services-intro,
.pricing-container,
.portfolio,
.blog-intro,
.plan,
.bento-item,
.portfolio-item,
.page-content,
.newsletter-section,
.testimonials, /* اضافه شده */
.about, /* اضافه شده */
.cta-section /* اضافه شده */ {
  /* ۳. اتصال انیمیشن */
  animation: fade-in-up linear;

  /* ۴. اتصال به تایم‌لاین اسکرول */
  animation-timeline: view();

  /* ۵. تعریف محدوده اجرا: */
  /* انیمیشن زمانی شروع شود که المان ۵٪ وارد صفحه می‌شود */
  /* و زمانی تمام شود که ۴0٪ از پایین صفحه بالا آمده است */
  animation-range: entry 5% entry 40%;

  /* ۶. اطمینان از ماندن در حالت پایانی */
  animation-fill-mode: both;
}

/* ۷. فال‌بک برای مرورگرهای قدیمی (مانند فایرفاکس) */
@supports (not (animation-timeline: view())) {
  .services-intro,
  .pricing-container,
  .portfolio,
  .blog-intro,
  .plan,
  .bento-item,
  .portfolio-item,
  .page-content,
  .newsletter-section,
  .testimonials,
  .about,
  .cta-section {
    animation: none;
  }
}

/* ==================== 🔧 اصلاحات نهایی طراحی ==================== */
/* این بخش حذف شد زیرا در کدهای پایه شما وجود داشت
  و ما آن‌ها را در بالای فایل حفظ کردیم
*/
