/* اطمینان از راست‌چین بودن متون در کلاس‌های بوت استرپ */
[dir="rtl"] .text-end {
  text-align: right !important;
}

[dir="rtl"] .ms-2 {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}
/* ==========================================================================
   1. HERO SECTION - BASE
   ========================================================================== */
.hero-section {
  padding: 60px 0;
  background: radial-gradient(ellipse at 50% 103%, #fcfcfc 70%, #0d5028 137%);
  overflow: hidden;
  position: relative;

  /* سایه در پایین */
}

/* ==========================================================================
       2. ABSTRACT CUBE (Optimized Animation)
       ========================================================================== */
.abstract-industrial-cube {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  background: var(--industrial-gradient);
  border-radius: 60px; /* شکل نرم و مدرن */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 30px 60px rgba(26, 77, 46, 0.2);
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

.icon-floating {
  animation: rotate-icon 10s linear infinite;
  will-change: transform;
}

/* انیمیشن بهینه شده: بدون تغییرات سنگین (مثل Border-radius) */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(-10deg);
  }
  50% {
    transform: translateY(-20px) rotate(-5deg);
    border-radius: 999px; /* شکل نرم و مدرن */
  }
}

/* ==========================================================================
       3. COMPONENTS & TYPOGRAPHY
       ========================================================================== */
.display-3 {
  line-height: 1.2;
  letter-spacing: -1px;
}

.badge {
  background: rgba(26, 77, 46, 0.1);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-outline-dark {
  border: 2px solid var(--dark-grey);
  color: var(--dark-grey);
  transition: var(--transition);
}

.btn-outline-dark:hover {
  background: var(--dark-grey);
  color: var(--white);
}

.border-top {
  border-color: rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
       4. RESPONSIVE DESIGN
       ========================================================================== */
@media (max-width: 991px) {
  .hero-section {
    text-align: center;
    padding: 40px 0;
  }
  .hero-content {
    margin-bottom: 50px;
  }
  .d-flex.gap-3 {
    justify-content: center;
  }

  .abstract-industrial-cube {
    width: 220px;
    height: 220px;
    border-radius: 40px;
  }

  .bi-gear-wide-connected {
    font-size: 3rem !important;
  }
}

/* استایل دکمه CTA (اگر قبلاً تعریف نشده بود) */
.btn-cta {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius-btn);
  transition: var(--transition);
  border: none;
}

.btn-cta:hover {
  background-color: var(--dark-grey);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* انیمیشن و استایل مکعب (همان کدی که فرستادید) */
.abstract-industrial-cube {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  background: var(--industrial-gradient);
  border-radius: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 30px 60px rgba(26, 77, 46, 0.2);
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

/* واکنش‌گرایی موبایل */
@media (max-width: 991px) {
  [dir="rtl"] .text-end {
    text-align: center !important;
  }
  .d-flex.gap-3 {
    justify-content: center !important;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(-10deg);
  }
  50% {
    transform: translateY(-20px) rotate(-5deg);
    border-radius: 999px; /* شکل نرم و مدرن */
  }
}
