/* Advanced Features Section Styles */

/* Enhanced Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  background: none;
  margin: 20px 5% 5rem;
  position: relative;
  z-index: 2;
  box-shadow: none;
  padding: 2rem 0;
}

.feature-card {
  background: none;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card:nth-child(1) {
  animation: fadeUpIn 0.6s ease forwards 0.3s;
}

.feature-card:nth-child(2) {
  animation: fadeUpIn 0.6s ease forwards 0.5s;
}

.feature-card:nth-child(3) {
  animation: fadeUpIn 0.6s ease forwards 0.7s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  z-index: -1;
  transition: all 0.5s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: conic-gradient(transparent, rgba(140, 26, 255, 0.1), transparent 30%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  background: var(--medium-dark-color);
  box-shadow: inset 0 0 0 1px rgba(140, 26, 255, 0.3);
}

.feature-card:hover::after {
  opacity: 1;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--light-color);
  background: var(--primary-gradient);
  box-shadow: 0 10px 25px rgba(140, 26, 255, 0.3);
  transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--secondary-gradient);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

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

.feature-card p {
  color: var(--light-color);
  line-height: 1.7;
  transition: all 0.3s ease;
}

@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
