/* Features Section Styling */
.features {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fbfa 0%, #edf5f0 100%);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23b2d8b2" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%237ed957" opacity="0.08"/><circle cx="50" cy="10" r="0.5" fill="%23b2d8b2" opacity="0.12"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  z-index: 1;
}

.features .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #22313f;
  margin-bottom: 3rem;
  position: relative;
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature-item {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 
    0 8px 25px rgba(126, 217, 87, 0.08),
    0 4px 12px rgba(34, 49, 63, 0.04);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 217, 87, 0.1);
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(126, 217, 87, 0.15),
    0 8px 20px rgba(34, 49, 63, 0.08);
  border-color: rgba(126, 217, 87, 0.2);
}

.feature-item i {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7ed957, #b2d8b2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.feature-item:hover i {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #6bc946, #9cc99c);
}

.feature-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #22313f;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-item p {
  font-size: 1rem;
  color: #5a6c7d;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .features {
    padding: 3rem 0;
  }
  
  .features .container {
    padding: 0 1rem;
  }
  
  .features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
  }
  
  .feature-item {
    padding: 2rem 1.5rem;
  }
  
  .feature-item i {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .feature-item h3 {
    font-size: 1.2rem;
  }
  
  .feature-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .features {
    padding: 2.5rem 0;
  }
  
  .features h2 {
    font-size: 1.8rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
}