/* Modern Features Section Styles */

.features.section {
padding: 100px 0;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.features.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, var(--accent-color) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, var(--accent-color-dark) 0%, transparent 40%);
  opacity: 0.1;
  pointer-events: none;
}

.features .section-title {
  margin-bottom: 4rem;
}

.features .section-title h2 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.features .section-subtitle {
  font-size: 1.25rem;
  color: var(--default-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--surface-color);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.1) rotate(2deg);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.feature-description {
  font-size: 1rem;
  color: var(--default-color);
  opacity: 0.8;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Features CTA Section */
.features-cta {
  margin-top: 5rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.features-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></g></svg>') repeat;
  opacity: 0.3;
}

.features-cta * {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.features-cta .btn {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  background: white;
  color: #667eea;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.features-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: #f8fafc;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .features.section {
    padding: 80px 0;
  }
  
  .features .section-title h2 {
    font-size: 2.25rem;
  }
  
  .features .section-subtitle {
    font-size: 1.125rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .features.section {
    padding: 60px 0;
  }
  
  .features .section-title {
    margin-bottom: 3rem;
  }
  
  .features .section-title h2 {
    font-size: 2rem;
  }
  
  .features .section-subtitle {
    font-size: 1rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
  }
  
  .feature-title {
    font-size: 1.375rem;
  }
  
  .feature-description {
    font-size: 0.95rem;
  }
  
  .features-cta {
    margin-top: 4rem;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
  
  .features-cta .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .features .section-title h2 {
    font-size: 1.75rem;
  }
  
  .feature-card {
    padding: 1.75rem 1.25rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-title {
    font-size: 1.25rem;
  }
  
  .features-cta {
    padding: 2rem 1.25rem;
  }
}

/* Animation Enhancements */
@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card[data-aos="fade-up"] {
  animation: floatUp 0.8s ease-out forwards;
}

/* Accessibility Improvements */
.feature-card:focus-within {
  outline: 2px solid #667eea;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .feature-icon svg,
  .features-cta .btn {
    transition: none;
  }
  
  .feature-card:hover {
    transform: none;
  }
  
  .feature-card:hover .feature-icon svg {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card {
    border: 2px solid var(--heading-color);
  }
  
  .feature-title,
  .feature-description {
    color: var(--heading-color);
  }
}
