/* Features Section */
.features-section {
  padding: 80px 0;
  background: #f8fafc;
}

.dark-theme .features-section {
  background: #0f172a;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.features-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #1e293b;
}

.dark-theme .features-title {
  color: #f8fafc;
}

@media (max-width: 640px) {
  .features-title {
    font-size: 24px;
    margin-bottom: 30px; /* Adjusted spacing */
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; /* Start invisible for animation */
}

.dark-theme .feature-card {
  background: #1e293b;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: #3b82f6;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.dark-theme .feature-title {
  color: #f8fafc;
}

.feature-desc {
  color: #64748b;
  line-height: 1.6;
}

.dark-theme .feature-desc {
  color: #94a3b8;
}

@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 5px;
    gap: 15px;
  }
  
  .feature-card {
    padding: 15px;
    margin: 0 5px;
    min-width: unset;
  }
  
  .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-feature {
  animation: fadeInUp 0.6s ease forwards;
}
