/* Features Section */
.features {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fefdf9 0%, #fdf6e3 100%);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 15% 25%,
      rgba(249, 115, 22, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 65%,
      rgba(3, 105, 161, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 85%,
      rgba(185, 28, 28, 0.05) 0%,
      transparent 40%
    );
  z-index: 0;
}

.features .container {
  position: relative;
  z-index: 1;
}

.features-categories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features-category {
  margin-bottom: 1rem;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
}

/* Category specific styling */
.features-category:nth-child(1) .category-title {
  color: #c2410c; /* Dark Orange */
}

.features-category:nth-child(1) .category-title::after {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.features-category:nth-child(2) .category-title {
  color: #0369a1; /* Dark Teal */
}

.features-category:nth-child(2) .category-title::after {
  background: linear-gradient(90deg, #0369a1, #38bdf8);
}

.features-category:nth-child(3) .category-title {
  color: #b91c1c; /* Dark Red */
}

.features-category:nth-child(3) .category-title::after {
  background: linear-gradient(90deg, #b91c1c, #f87171);
}

.category-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  transition: height 0.3s ease;
  border-radius: 2px 0 0 2px;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  height: 100%;
}

/* Category specific card styling */
.features-category:nth-child(1) .feature-card::before {
  background: linear-gradient(180deg, #f97316, #fb923c);
}

.features-category:nth-child(1) .feature-card:hover {
  border-color: #fdba74;
}

.features-category:nth-child(2) .feature-card::before {
  background: linear-gradient(180deg, #0369a1, #38bdf8);
}

.features-category:nth-child(2) .feature-card:hover {
  border-color: #7dd3fc;
}

.features-category:nth-child(3) .feature-card::before {
  background: linear-gradient(180deg, #b91c1c, #f87171);
}

.features-category:nth-child(3) .feature-card:hover {
  border-color: #fca5a5;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background: linear-gradient(
    135deg,
    #2563eb,
    #3b82f6
  ); /* Default blue as fallback */
}

/* Category specific icon styling - with increased specificity */
.features-categories
  .features-category:nth-child(1)
  .feature-card
  .feature-icon {
  background: linear-gradient(135deg, #f97316, #fb923c) !important;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.features-categories
  .features-category:nth-child(2)
  .feature-card
  .feature-icon {
  background: linear-gradient(135deg, #0369a1, #38bdf8) !important;
  box-shadow: 0 4px 10px rgba(3, 105, 161, 0.3);
}

.features-categories
  .features-category:nth-child(3)
  .feature-card
  .feature-icon {
  background: linear-gradient(135deg, #b91c1c, #f87171) !important;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.3);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.feature-card h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  transition: width 0.3s ease;
  opacity: 0;
}

.feature-card:hover h4::after {
  width: 100%;
  opacity: 1;
}

/* Category specific heading styling */
.features-category:nth-child(1) .feature-card:hover h4 {
  color: #c2410c;
}

.features-category:nth-child(1) .feature-card h4::after {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.features-category:nth-child(2) .feature-card:hover h4 {
  color: #0369a1;
}

.features-category:nth-child(2) .feature-card h4::after {
  background: linear-gradient(90deg, #0369a1, #38bdf8);
}

.features-category:nth-child(3) .feature-card:hover h4 {
  color: #b91c1c;
}

.features-category:nth-child(3) .feature-card h4::after {
  background: linear-gradient(90deg, #b91c1c, #f87171);
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Pricing Section */
.pricing-section {
  margin-top: 5rem;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.pricing-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    #f97316,
    #fb923c,
    #0369a1,
    #38bdf8,
    #b91c1c,
    #f87171
  );
  opacity: 0.8;
}

.pricing-section .section-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: #fefdf9;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #f8f5e6;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, rgba(251, 146, 60, 0.1), transparent);
  transition: height 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
  border-color: #fdba74;
}

.pricing-card:hover::after {
  height: 100%;
}

.pricing-icon {
  width: 70px;
  height: 70px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #f97316;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.pricing-card:hover .pricing-icon {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}

.pricing-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.pricing-card p {
  color: #64748b;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.pricing-cta .btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #f97316, #fb923c);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.pricing-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, #ea580c, #f97316);
}

/* Add animation to feature cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animations for feature cards in each category */
.features-category:nth-child(1) .feature-card:nth-child(1) {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}
.features-category:nth-child(1) .feature-card:nth-child(2) {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}
.features-category:nth-child(1) .feature-card:nth-child(3) {
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.features-category:nth-child(2) .feature-card:nth-child(1) {
  animation: fadeInUp 0.5s ease-out 0.4s both;
}
.features-category:nth-child(2) .feature-card:nth-child(2) {
  animation: fadeInUp 0.5s ease-out 0.5s both;
}
.features-category:nth-child(2) .feature-card:nth-child(3) {
  animation: fadeInUp 0.5s ease-out 0.6s both;
}

.features-category:nth-child(3) .feature-card:nth-child(1) {
  animation: fadeInUp 0.5s ease-out 0.7s both;
}
.features-category:nth-child(3) .feature-card:nth-child(2) {
  animation: fadeInUp 0.5s ease-out 0.8s both;
}
.features-category:nth-child(3) .feature-card:nth-child(3) {
  animation: fadeInUp 0.5s ease-out 0.9s both;
}

/* Responsive styles for features */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-section {
    padding: 2rem;
  }
}
