.features {
    background: var(--background);
    position: relative;
    overflow: hidden;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  
  /* Background pattern */
  .features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      linear-gradient(45deg, transparent 48%, var(--primary) 49%, var(--primary) 51%, transparent 52%),
      linear-gradient(-45deg, transparent 48%, var(--secondary) 49%, var(--secondary) 51%, transparent 52%);
    background-size: 60px 60px;
    opacity: 0.03;
    animation: patternShift 30s linear infinite;
  }
  
  @keyframes patternShift {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
  }
  
  .feature-box {
    padding: 2rem;
    background: var(--surface);
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  /* Glow effect on hover */
  .feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: -1;
  }
  
  .feature-box:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
      0 20px 40px rgba(187, 134, 252, 0.2),
      0 0 20px rgba(187, 134, 252, 0.1);
  }
  
  .feature-box:hover::before {
    opacity: 0.1;
  }
  
  .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform var(--transition-speed) ease;
  }
  
  .feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
  }
  
  .feature-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  /* Animated underline effect */
  .feature-box h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-speed) ease;
  }
  
  .feature-box:hover h3::after {
    width: 100%;
  }
  
  .feature-box p {
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
  }
  
  .feature-box:hover p {
    color: var(--text);
  }
  
  /* Shine effect on hover */
  .feature-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
    transform: rotate(45deg);
    transition: transform 0.8s ease;
    opacity: 0;
  }
  
  .feature-box:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
  }
  
  @media (max-width: 768px) {
    .features-grid {
      grid-template-columns: 1fr;
      padding: 0 1rem;
    }
  }