/* ======================================
   FEATURES 4X SECTION - ULTRA ANIMATED
   DEEP ORANGE & WHITE THEME (NO GRADIENTS)
   WORKS WITH YOUR BLADE TEMPLATE
====================================== */

:root {
  --primary-orange: #E64A19;
  --dark-orange: #BF360C;
  --light-orange: #FF7043;
  --coral: #FF5722;
  --pure-white: #ffffff;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --text-dark: #1a1a2e;
  --text-medium: #4a4a68;
  --text-light: #6b7280;
  --shadow-soft: rgba(0, 0, 0, 0.08);
  --shadow-orange: rgba(230, 74, 25, 0.25);
  --glow-orange: rgba(255, 87, 34, 0.4);
}

/* ======================================
   SECTION WRAPPER
====================================== */
.features-4x-section {
  padding: 10px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

/* Animated Background Circle 1 */
.features-4x-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border: 3px solid var(--primary-orange);
  border-radius: 50%;
  opacity: 0.08;
  animation: rotateSlow 25s linear infinite;
  pointer-events: none;
}

/* Animated Background Circle 2 */
.features-4x-section::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  border: 2px dashed var(--primary-orange);
  border-radius: 50%;
  opacity: 0.06;
  animation: rotateSlow 35s linear infinite reverse;
  pointer-events: none;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ======================================
   ROW ALIGNMENT
====================================== */
.features-4x-section>.row {
  align-items: center;
  position: relative;
  z-index: 10;
}

/* ======================================
   LEFT CONTENT COLUMN
====================================== */
.features-4x-section>.row>.col-12.col-lg-5 {
  animation: fadeInLeft 0.8s ease-out forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ======================================
   PRE-TITLE TAG (Enhanced)
====================================== */
.features-4x-section .d-inline-flex-center.py-8.px-16.rounded-8 {
  background: var(--pure-white) !important;
  border: 2px solid var(--primary-orange) !important;
  color: var(--primary-orange) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  animation: tagPulse 3s ease-in-out infinite;
}

.features-4x-section .d-inline-flex-center.py-8.px-16.rounded-8::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(230, 74, 25, 0.1);
  animation: tagShine 4s ease-in-out infinite;
}

@keyframes tagPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(230, 74, 25, 0.15);
  }

  50% {
    box-shadow: 0 6px 25px rgba(230, 74, 25, 0.25);
  }
}

@keyframes tagShine {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

/* ======================================
   MAIN TITLE (h2)
====================================== */
.features-4x-section h2.font-32 {
  font-size: 40px !important;
  font-weight: 800 !important;
  color: var(--text-dark) !important;
  line-height: 1.2 !important;
  position: relative;
}

/* ======================================
   DESCRIPTION
====================================== */
.features-4x-section p.font-16.text-gray-500 {
  line-height: 1.8 !important;
}

/* ======================================
   CHECKED ITEMS (Enhanced)
====================================== */
.features-4x-section .d-flex.align-items-center.gap-4 {
  opacity: 0;
  animation: listSlideIn 0.6s ease-out forwards;
  padding: 8px 0;
}

.features-4x-section .d-flex.align-items-center.gap-4:nth-child(1) {
  animation-delay: 0.2s;
}

.features-4x-section .d-flex.align-items-center.gap-4:nth-child(2) {
  animation-delay: 0.4s;
}

.features-4x-section .d-flex.align-items-center.gap-4:nth-child(3) {
  animation-delay: 0.6s;
}

.features-4x-section .d-flex.align-items-center.gap-4:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes listSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Check Icon Enhancement */
.features-4x-section .d-flex.align-items-center.gap-4 .icons.text-success {
  color: var(--primary-orange) !important;
  background: rgba(230, 74, 25, 0.1);
  padding: 4px;
  border-radius: 50%;
  animation: checkPop 0.5s ease-out forwards;
}

@keyframes checkPop {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* ======================================
   BUTTON (Enhanced with animations)
====================================== */
.features-4x-section .btn-flip.btn.btn-primary {
  background: var(--primary-orange) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px var(--shadow-orange);
  animation: buttonFloat 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes buttonFloat {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 25px var(--shadow-orange);
  }

  50% {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-orange);
  }
}

/* Button Shine Effect */
.features-4x-section .btn-flip.btn.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.5s;
  z-index: -1;
}

/* Button Ripple Effect */
.features-4x-section .btn-flip.btn.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--dark-orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.features-4x-section .btn-flip.btn.btn-primary:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 45px var(--shadow-orange);
  animation-play-state: paused;
}

.features-4x-section .btn-flip.btn.btn-primary:hover::before {
  left: 100%;
}

.features-4x-section .btn-flip.btn.btn-primary:hover::after {
  width: 400px;
  height: 400px;
}

.features-4x-section .btn-flip.btn.btn-primary:hover .icons {
  transform: translateX(6px);
  animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateX(6px);
  }

  50% {
    transform: translateX(12px);
  }
}

.features-4x-section .btn-flip.btn.btn-primary .icons {
  transition: transform 0.3s ease;
}

/* ======================================
   CARDS WRAPPER (Right Column)
====================================== */
.features-4x-section>.row>.col-12.col-lg-6>.row {
  position: relative;
}

/* ======================================
   CARD COLUMN POSITIONING
====================================== */
.features-4x-section__card-item-1,
.features-4x-section__card-item-2,
.features-4x-section__card-item-3,
.features-4x-section__card-item-4 {
  padding: 12px;
}

/* Staggered Layout */
.features-4x-section__card-item-2 {
  margin-top: 40px;
}

.features-4x-section__card-item-3 {
  margin-top: -20px;
}

.features-4x-section__card-item-4 {
  margin-top: 20px;
}

/* ======================================
   CARD ITEM (Main Card Styles)
====================================== */
.features-4x-section__card-item {
  position: relative;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: visible;
}

/* Card Entrance Animation */
.features-4x-section__card-item-1 .features-4x-section__card-item {
  opacity: 0;
  animation: cardSlideUp 0.7s ease-out 0.1s forwards, cardFloat 4s ease-in-out 1s infinite;
}

.features-4x-section__card-item-2 .features-4x-section__card-item {
  opacity: 0;
  animation: cardSlideUp 0.7s ease-out 0.3s forwards, cardFloat 4s ease-in-out 1.5s infinite;
}

.features-4x-section__card-item-3 .features-4x-section__card-item {
  opacity: 0;
  animation: cardSlideUp 0.7s ease-out 0.5s forwards, cardFloat 4s ease-in-out 2s infinite;
}

.features-4x-section__card-item-4 .features-4x-section__card-item {
  opacity: 0;
  animation: cardSlideUp 0.7s ease-out 0.7s forwards, cardFloat 4s ease-in-out 2.5s infinite;
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ======================================
   CARD MASK (Animated Border Glow)
====================================== */
.features-4x-section__card-item-mask {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: var(--primary-orange);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* Glow animation on mask */
.features-4x-section__card-item-mask::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--pure-white);
  border-radius: 22px;
}

.features-4x-section__card-item:hover .features-4x-section__card-item-mask {
  opacity: 1;
  animation: borderGlow 1.5s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    box-shadow: 0 0 10px var(--glow-orange);
  }

  50% {
    box-shadow: 0 0 25px var(--glow-orange), 0 0 50px rgba(255, 87, 34, 0.2);
  }
}

/* ======================================
   CARD INNER CONTENT
====================================== */
.features-4x-section__card-item .position-relative.z-index-2.bg-white.rounded-24 {
  background: var(--pure-white) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 40px var(--shadow-soft);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Corner Decoration */
.features-4x-section__card-item .position-relative.z-index-2.bg-white.rounded-24::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--primary-orange);
  opacity: 0.05;
  border-radius: 0 24px 0 100%;
  transition: all 0.4s ease;
}

/* Bottom Accent Line */
.features-4x-section__card-item .position-relative.z-index-2.bg-white.rounded-24::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--primary-orange);
  border-radius: 4px 4px 0 0;
  transition: width 0.4s ease;
}

/* Shimmer Effect */
.features-4x-section__card-item .position-relative.z-index-2.bg-white.rounded-24 .shimmer-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 74, 25, 0.05), transparent);
  animation: shimmerMove 5s infinite;
  pointer-events: none;
}

@keyframes shimmerMove {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

/* ======================================
   CARD HOVER EFFECTS
====================================== */
.features-4x-section__card-item:hover {
  animation-play-state: paused !important;
}

.features-4x-section__card-item:hover .position-relative.z-index-2.bg-white.rounded-24 {
  transform: translateY(-12px);
  box-shadow:
    0 25px 60px var(--shadow-orange),
    0 15px 30px var(--shadow-soft);
}

.features-4x-section__card-item:hover .position-relative.z-index-2.bg-white.rounded-24::before {
  width: 120px;
  height: 120px;
  opacity: 0.1;
}

.features-4x-section__card-item:hover .position-relative.z-index-2.bg-white.rounded-24::after {
  width: 50%;
}

/* ======================================
   CARD ICON
====================================== */
.features-4x-section__card-item .d-flex-center.size-64.rounded-12 {
  width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: visible;
}

/* Icon Colors - Solid (matching your bg classes) */
.features-4x-section__card-item .d-flex-center.size-64.rounded-12.bg-primary-20 {
  background: rgba(230, 74, 25, 0.12) !important;
  color: var(--primary-orange) !important;
}

.features-4x-section__card-item .d-flex-center.size-64.rounded-12.bg-accent-20 {
  background: rgba(191, 54, 12, 0.12) !important;
  color: var(--dark-orange) !important;
}

.features-4x-section__card-item .d-flex-center.size-64.rounded-12.bg-warning-20 {
  background: rgba(255, 112, 67, 0.12) !important;
  color: var(--light-orange) !important;
}

.features-4x-section__card-item .d-flex-center.size-64.rounded-12.bg-success-20 {
  background: rgba(255, 87, 34, 0.12) !important;
  color: var(--coral) !important;
}

/* Rotating Dashed Ring */
.features-4x-section__card-item .d-flex-center.size-64.rounded-12::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 2px dashed var(--primary-orange);
  opacity: 0;
  animation: iconRingSpin 10s linear infinite;
  transition: opacity 0.4s ease;
}

@keyframes iconRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Pulse Ring */
.features-4x-section__card-item .d-flex-center.size-64.rounded-12::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  border: 1px solid var(--primary-orange);
  opacity: 0;
  animation: pulseRingOut 2s ease-out infinite;
  transition: opacity 0.4s ease;
}

@keyframes pulseRingOut {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Icon Animation */
.features-4x-section__card-item .d-flex-center.size-64.rounded-12 .icons {
  transition: transform 0.4s ease;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Icon Hover Effects */
.features-4x-section__card-item:hover .d-flex-center.size-64.rounded-12 {
  background: var(--primary-orange) !important;
  color: var(--pure-white) !important;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px var(--shadow-orange);
}

.features-4x-section__card-item:hover .d-flex-center.size-64.rounded-12 .icons {
  color: var(--pure-white) !important;
  animation: iconShake 0.6s ease;
}

@keyframes iconShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-12deg);
  }

  75% {
    transform: rotate(12deg);
  }
}

.features-4x-section__card-item:hover .d-flex-center.size-64.rounded-12::before {
  opacity: 0.4;
}

.features-4x-section__card-item:hover .d-flex-center.size-64.rounded-12::after {
  opacity: 1;
}

/* ======================================
   CARD TITLE
====================================== */
.features-4x-section__card-item h4.font-24 {
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  transition: all 0.3s ease;
  position: relative;
}

.features-4x-section__card-item:hover h4.font-24 {
  color: var(--primary-orange) !important;
  transform: translateX(5px);
}

/* ======================================
   CARD DESCRIPTION
====================================== */
.features-4x-section__card-item p.font-16.text-gray-500 {
  transition: color 0.3s ease;
  line-height: 1.7 !important;
}

.features-4x-section__card-item:hover p.font-16.text-gray-500 {
  color: var(--text-medium) !important;
}

/* ======================================
   LINK WRAPPER RESET
====================================== */
.features-4x-section__card-item-1 a,
.features-4x-section__card-item-2 a,
.features-4x-section__card-item-3 a,
.features-4x-section__card-item-4 a {
  text-decoration: none;
  display: block;
}

/* ======================================
   RESPONSIVE - TABLET (max-width: 1024px)
====================================== */
@media (max-width: 1024px) {
  .features-4x-section {
    padding: 80px 0;
  }

  .features-4x-section h2.font-32 {
    font-size: 34px !important;
  }

  .features-4x-section__card-item-2 {
    margin-top: 24px;
  }

  .features-4x-section__card-item-3 {
    margin-top: 0;
  }

  .features-4x-section__card-item-4 {
    margin-top: 24px;
  }
}

/* ======================================
   RESPONSIVE - MOBILE LANDSCAPE (max-width: 991px)
====================================== */
@media (max-width: 991px) {
  .features-4x-section {
    padding: 70px 0;
  }

  .features-4x-section>.row>.col-12.col-lg-5 {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out forwards;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .features-4x-section .d-flex.align-items-center.gap-4 {
    justify-content: center;
  }

  .features-4x-section .btn-flip.btn.btn-primary {
    margin: 0 auto;
  }

  /* Reset staggered layout */
  .features-4x-section__card-item-1,
  .features-4x-section__card-item-2,
  .features-4x-section__card-item-3,
  .features-4x-section__card-item-4 {
    margin-top: 0;
    padding: 10px;
  }

  /* Mobile Card Animation */
  .features-4x-section__card-item-1 .features-4x-section__card-item,
  .features-4x-section__card-item-2 .features-4x-section__card-item,
  .features-4x-section__card-item-3 .features-4x-section__card-item,
  .features-4x-section__card-item-4 .features-4x-section__card-item {
    animation: cardSlideUp 0.6s ease-out forwards,
      mobileCardPulse 3.5s ease-in-out 1s infinite;
  }

  .features-4x-section__card-item-1 .features-4x-section__card-item {
    animation-delay: 0.1s, 1s;
  }

  .features-4x-section__card-item-2 .features-4x-section__card-item {
    animation-delay: 0.2s, 1.5s;
  }

  .features-4x-section__card-item-3 .features-4x-section__card-item {
    animation-delay: 0.3s, 2s;
  }

  .features-4x-section__card-item-4 .features-4x-section__card-item {
    animation-delay: 0.4s, 2.5s;
  }

  @keyframes mobileCardPulse {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-8px);
    }
  }

  .features-4x-section__card-item .position-relative.z-index-2.bg-white.rounded-24 {
    box-shadow:
      0 8px 30px var(--shadow-soft),
      0 4px 15px rgba(230, 74, 25, 0.08);
  }

  /* Hide spacer column */
  .features-4x-section>.row>.col-lg-1 {
    display: none;
  }
}

/* ======================================
   RESPONSIVE - MOBILE PORTRAIT (max-width: 575px)
====================================== */
@media (max-width: 575px) {
  .features-4x-section {
    padding: 50px 0;
  }

  .features-4x-section h2.font-32 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .features-4x-section .d-inline-flex-center.py-8.px-16.rounded-8 {
    font-size: 11px !important;
    padding: 6px 14px !important;
  }

  .features-4x-section__card-item-1,
  .features-4x-section__card-item-2,
  .features-4x-section__card-item-3,
  .features-4x-section__card-item-4 {
    padding: 8px 0;
  }

  .features-4x-section__card-item .position-relative.z-index-2.bg-white.rounded-24 {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .features-4x-section__card-item .d-flex-center.size-64.rounded-12 {
    width: 56px !important;
    height: 56px !important;
  }

  .features-4x-section__card-item h4.font-24 {
    font-size: 18px !important;
    margin-top: 16px !important;
  }

  .features-4x-section__card-item p.font-16.text-gray-500 {
    font-size: 14px !important;
  }

  .features-4x-section .btn-flip.btn.btn-primary {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px !important;
    font-size: 14px !important;
  }

  /* Simpler mobile animation */
  .features-4x-section__card-item-1 .features-4x-section__card-item,
  .features-4x-section__card-item-2 .features-4x-section__card-item,
  .features-4x-section__card-item-3 .features-4x-section__card-item,
  .features-4x-section__card-item-4 .features-4x-section__card-item {
    animation: mobileSlide 0.5s ease-out forwards,
      mobileGlow 4s ease-in-out 0.8s infinite;
  }

  @keyframes mobileSlide {
    from {
      opacity: 0;
      transform: translateY(25px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes mobileGlow {

    0%,
    100% {
      box-shadow: 0 8px 25px var(--shadow-soft);
    }

    50% {
      box-shadow: 0 12px 35px var(--shadow-orange);
    }
  }

  /* Hide background decorations */
  .features-4x-section::before,
  .features-4x-section::after {
    opacity: 0.04;
  }

  /* Disable icon ring animations for performance */
  .features-4x-section__card-item .d-flex-center.size-64.rounded-12::before,
  .features-4x-section__card-item .d-flex-center.size-64.rounded-12::after {
    display: none;
  }
}

/* ======================================
   EXTRA SMALL SCREENS (max-width: 375px)
====================================== */
@media (max-width: 375px) {
  .features-4x-section h2.font-32 {
    font-size: 22px !important;
  }

  .features-4x-section__card-item .position-relative.z-index-2.bg-white.rounded-24 {
    padding: 16px !important;
  }

  .features-4x-section__card-item .d-flex-center.size-64.rounded-12 {
    width: 48px !important;
    height: 48px !important;
  }

  .features-4x-section__card-item h4.font-24 {
    font-size: 16px !important;
  }

  .features-4x-section__card-item p.font-16.text-gray-500 {
    font-size: 13px !important;
  }
}

/* ======================================
   ACCESSIBILITY - REDUCED MOTION
====================================== */
@media (prefers-reduced-motion: reduce) {

  .features-4x-section *,
  .features-4x-section *::before,
  .features-4x-section *::after {
    animation: none !important;
    transition: none !important;
  }
}