/* 
   Single Responsibility: Styling for the Features Section.
   Design: Exact match to reference flat UI with soft purple and sharp/rounded cards.
*/

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

:root {
  --feat-bg: #dacefd; /* Solid soft purple background */
  --feat-card-bg: #e6e0f8; /* Soft pale purple for cards */
  --feat-text-primary: #120930;
  --feat-text-secondary: #2b1f5e;
  --feat-accent: #ffffff;

  /* Distinct downward drop shadow */
  --feat-shadow-strong:
    inset -2px -2px 10px rgba(255, 255, 255, 0.7),
    10px 15px 30px rgba(118, 97, 185, 0.4);
  --feat-font: "Outfit", sans-serif;
}

.features-dynamic-section {
  /* background-color: var(--feat-bg); */
  /* Added significant bottom padding as requested */
  padding: 100px 0 150px;
  position: relative;
  overflow: hidden;
  font-family: var(--feat-font);
}

.features-dynamic-section .container {
  position: relative;
  z-index: 1;
}

/* Step Indicator (e.g. "01 /") matching screenshot */
.feature-step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
}

.feature-step-badge::before,
.feature-step-badge::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 1.5px;
  background: #ffffff;
}

.feature-step-badge::before {
  left: calc(50% - 90px);
}

.feature-step-badge::after {
  right: calc(50% - 90px);
}

.feature-step-badge span {
  background: transparent;
  width: 50px;
  height: 50px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.features-dynamic-section .section-heading h2 {
  color: var(--feat-text-primary);
  font-size: 3rem;
  font-weight: 500; /* Softer weight matching screenshot */
  margin-bottom: 60px; /* More space below heading */
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.features-dynamic-section .section-heading p {
  display: none; /* The screenshot doesn't show a description here */
}

/* 6 Column Layout */
.features-nm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature-nm-card {
  background: var(--feat-card-bg);
  padding: 35px 20px 45px;
  /* Exact shape from screenshot: flat left, rounded right */
  border-radius: 4px 32px 32px 4px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--feat-shadow-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.feature-nm-card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset -2px -2px 10px rgba(255, 255, 255, 0.8),
    15px 20px 35px rgba(118, 97, 185, 0.5);
}

.feature-nm-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.feature-nm-card:hover .feature-nm-icon {
  transform: scale(1.05);
}

.nm-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensure icons look crisp and dark */
  filter: contrast(1.2) brightness(0.85);
}

.feature-nm-content {
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.nm-feature-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--feat-text-primary);
  margin: 0;
  line-height: 1.4;
}

/* Responsive Fixes */
@media (max-width: 1400px) {
  .features-nm-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .features-nm-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .features-dynamic-section .section-heading h2 {
    font-size: 2.5rem;
  }
  .features-nm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-dynamic-section {
    padding: 80px 0 120px;
  }
}

@media (max-width: 768px) {
  .features-nm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .features-dynamic-section .section-heading h2 {
    font-size: 2.2rem;
  }
  .features-dynamic-section {
    padding: 70px 0 100px;
  }
}

@media (max-width: 576px) {
  .features-nm-grid {
    grid-template-columns: 1fr;
  }
  .feature-nm-card {
    padding: 30px 20px;
  }
  .features-dynamic-section {
    padding: 60px 0 80px;
  }
}
