/* ========================================
   Hero Section Styles
   ======================================== */

.container-hero {
  background: linear-gradient(180deg, #111722 0%, #0d121b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Glass Badge */
.glass-badge {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(19, 200, 164, 0.28);
  font-size: 0.75rem;
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #13c8a4;
}

.badge-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Headline */
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  transition: opacity 0.3s ease;
}

/* Hero Description */
.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(148, 163, 184, 0.9);
  max-width: 600px;
}

.btn-primary-purple {
  background: #2457ff !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 10px 24px rgba(36, 87, 255, 0.28);
  transition: all 0.3s ease;
}

.btn-primary-purple:hover {
  background: #1642d8 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(36, 87, 255, 0.34);
}

.btn-primary-purple:active {
  background: #0f329f !important;
  color: #fff !important;
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(36, 87, 255, 0.3);
}

.btn-primary-purple:focus,
.btn-primary-purple:focus-visible {
  background: #2457ff !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.2rem rgba(36, 87, 255, 0.24);
}

.btn-primary-purple:visited {
  color: #fff !important;
}

/* Outline Light Button */
.btn.btn-outline-light-custom,
a.btn-outline-light-custom {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0) !important;
  background-color: transparent !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn.btn-outline-light-custom:hover,
a.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.btn.btn-outline-light-custom:active,
a.btn-outline-light-custom:active {
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  transform: translateY(0);
}

.btn.btn-outline-light-custom:focus,
.btn.btn-outline-light-custom:focus-visible,
a.btn-outline-light-custom:focus,
a.btn-outline-light-custom:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
}

.btn.btn-outline-light-custom:visited,
a.btn-outline-light-custom:visited {
  color: #fff !important;
}

/* Stats Grid */
.stats-grid {
  max-width: 450px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* Hero Image Card */
.hero-image-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(215, 225, 234, 0.16) !important;
  backdrop-filter: blur(10px);
}

.hero-image-wrapper {
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, 0.2);
}

.hero-image-wrapper img {
  object-fit: cover;
}

/* Feature Mini Cards */
.feature-mini-card {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-mini-card:hover {
  background: rgba(19, 200, 164, 0.12);
  transform: translateY(-2px);
}

.mini-card-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* RTL Support for CTA Section */
[dir="rtl"] .text-md-start {
  text-align: right !important;
}

[dir="rtl"] .mx-md-0 {
  margin-right: 0 !important;
  margin-left: auto !important;
}

[dir="rtl"] .justify-content-md-start {
  justify-content: flex-end !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .container-hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .stats-grid {
    max-width: 100%;
  }
}

/* ========================================
   Who We Are Section Styles
   ======================================== */

.who-we-are-section {
  position: relative;
  /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
}

/* Section Label Badge */
.section-label {
  background: rgba(36, 87, 255, 0.08);
  color: #2457ff;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(36, 87, 255, 0.18);
  transition: all 0.3s ease;
}

.section-label:hover {
  background: rgba(36, 87, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 87, 255, 0.14);
}

.section-label .icon-small {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 0.25rem;
  line-height: 1.3;
}

/* Content Wrapper Animation */
/* Value Cards */
.value-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.05),
    rgba(124, 58, 237, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}

.value-card:hover::before {
  opacity: 1;
}

/* Icon Wrapper */
.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.value-card:hover .icon-wrapper {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.value-icon {
  width: 24px;
  height: 24px;
  color: #7c3aed;
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  color: #ffffff;
  transform: scale(1.1);
}

/* Card Title & Text */
.value-card .card-title {
  color: #1e293b;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.value-card:hover .card-title {
  color: #7c3aed;
}

.value-card .card-text {
  color: #94a3b8;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Icon Small for Button */
.icon-small {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* Responsive Adjustments for Who We Are */
@media (max-width: 991.98px) {
  .gradient-text {
    font-size: 2rem;
  }

  .value-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .who-we-are-section {
    padding: 3rem 0;
  }

  .gradient-text {
    font-size: 1.75rem;
  }

  .value-card {
    padding: 1.25rem !important;
  }

  .icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .value-icon {
    width: 20px;
    height: 20px;
  }
}

/* ========================================
   Other Styles
   ======================================== */

.btn-violet {
  background-color: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #fff !important;
}

.btn-violet:hover {
  background-color: #6d28d9 !important;
  border-color: #6d28d9 !important;
  color: #fff !important;
}

.see-more-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.see-more-link:hover {
  color: #8350ef;
  background: rgba(131, 80, 239, 0.1);
  border-color: rgba(131, 80, 239, 0.3);
  transform: translateY(-2px);
}

.see-more-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.see-more-link:hover i {
  transform: translateX(4px);
}

.custom-btn {
  background-color: #f2ebfd;
  color: #8350ef;
  border: none;
}

.custom-btn:hover {
  background-color: #8350ef;
  color: #fff;
}

/* ========================================
     Horizontal process steps (How outsourcing works)
     ======================================== */
.mx-process-grid--steps {
  padding: 2.25rem 1rem;
}
.mx-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}
.mx-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
}
.mx-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
  margin-bottom: 0.75rem;
}
.mx-step-number {
  display: inline-block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-weight: 700;
}
.mx-step h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
}
.mx-step p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}
.mx-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

@media (max-width: 991.98px) {
  .mx-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
  }
  .mx-step-arrow {
    display: none;
  }
  .mx-step {
    max-width: none;
  }
}

/* ========================================
     CTA component and color variants
     ======================================== */
.cta {
  padding: 48px 20px;
  text-align: center;
  color: white;
  border-radius: 16px;
  margin: 32px 0;
}
.cta__content {
  max-width: 700px;
  margin: 0 auto;
}
.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.cta p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}
.cta__button {
  display: inline-block;
  padding: 14px 24px;
  background: white;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: 0.18s ease;
}
.cta__button:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

/* Green variant */
.cta--green {
  background: linear-gradient(135deg, #059669, #10b981);
}
.cta--green .cta__button {
  color: #047857;
}

/* Purple variant */
.cta--purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}
.cta--purple .cta__button {
  color: #4c1d95;
}

@media (max-width: 767.98px) {
  .cta h2 {
    font-size: 1.5rem;
  }
  .cta p {
    font-size: 1rem;
  }
}

.rx-comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(16, 20, 25, 0.08);
}

.rx-comparison-table thead th {
  background: linear-gradient(135deg, #17092b 0%, #17092b 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.rx-comparison-table thead th:nth-child(4) {
  background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
}

.rx-comparison-table tbody tr:nth-child(odd) {
  background: #f8f3ff;
}

.rx-comparison-table tbody td {
  color: #4f5870;
  vertical-align: middle;
}

.rx-comparison-table tbody td:first-child {
  background: #f4edff;
  color: #22123b;
  font-weight: 800;
}

.rx-comparison-table tbody td:nth-child(4) {
  background: linear-gradient(180deg, #f6ebff 0%, #efe4ff 100%);
  color: #2c1355;
  font-weight: 800;
}

.rx-comparison-table thead th:nth-child(2),
.rx-comparison-table thead th:nth-child(3) {
  background: linear-gradient(135deg, #17092b 0%, #17092b 100%);
}

/* Parallax background for dark sections */
.rx-section--dark {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.rx-section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/static/assets/images/bg/2.5362fd2cf146.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* parallax effect on desktop */
  background-attachment: fixed;
  opacity: 0.6;
  transform: translateZ(0);
}
.rx-section--dark > .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 991.98px) {
  /* background-attachment: fixed can be problematic on mobile; fall back to scroll */
  .rx-section--dark::before {
    background-attachment: scroll;
    background-position: center top;
    opacity: 0.7;
  }
}
