/* Enhanced Features Section Styles */
.features {
  padding: 6rem 0;
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

/* Enhanced background elements */
.features::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.1) 0%, rgba(66, 133, 244, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.features::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 168, 83, 0.1) 0%, rgba(52, 168, 83, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--dark) 0%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradientText 5s ease infinite;
}

.section-header p {
  color: var(--gray);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  transition: all 0.5s ease;
  opacity: 0;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(66, 133, 244, 0.1);
}

.feature-card:hover::after {
  animation: shine 1.5s forwards;
  opacity: 1;
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(66, 133, 244, 0.05) 100%);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  font-size: 2rem;
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(66, 133, 244, 0.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--dark);
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.feature-card:hover h3 {
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2.25rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
}