/* -----------------------------------------------------
   FEATURES.CSS
   - Features section, feature-card, icons, etc.
------------------------------------------------------ */

.features {
    padding: 8rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
  }
  .features-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
  }
  .features-circle-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.05), transparent 70%);
    top: -200px;
    right: -200px;
  }
  .features-circle-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 98, 146, 0.05), transparent 70%);
    bottom: -200px;
    left: -200px;
  }
  .features-circle-3 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.05), transparent 70%);
    top: -200px;
    left: -200px;
  }
  .features-circle-4 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 98, 146, 0.05), transparent 70%);
    bottom: -200px;
    right: -200px;
  }
  
  
  .curve-path {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.03;
    overflow: hidden;
  }
  .curve-1 {
    position: absolute;
    width: 800px;
    height: 800px;
    border: 2px solid var(--brand-color-1);
    border-radius: 50%;
    top: -400px;
    right: -200px;
    opacity: 0.1;
  }
  .curve-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 2px solid var(--brand-color-1);
    border-radius: 50%;
    bottom: -300px;
    left: -200px;
    opacity: 0.1;
  }
  
  /* 
     We already have .section-header in global.css,
     so we don’t redefine it here.
  */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
  }

  .feature-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
  }

  .feature-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--brand-color-1), var(--brand-color-3));
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.4s;
  }

  .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(50, 50, 93, 0.1);
    background-color: var(--white);
  }

  .feature-card:hover::before {
    opacity: 1;
  }

  .feature-card::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.05), transparent 70%);
    bottom: -20px;
    right: -20px;
    z-index: -1;
    transition: all 0.4s;
  }

  .feature-card:hover::after {
    transform: scale(1.5);
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(45deg, var(--brand-color-1), var(--brand-color-2));
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.8rem;
    position: relative;
    box-shadow: 0 8px 16px rgba(233, 30, 99, 0.2);
    transition: all 0.3s;
  }

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

  .feature-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0.4;
    transform: translateY(4px);
    z-index: -1;
  }

  .feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
  }

  .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-color-main);
  }

  .feature-card p {
    color: var(--text-color-secondary);
    line-height: 1.7;
  }
  /* Responsive */
  @media (max-width: 1024px) {
    .feature-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .feature-grid {
      grid-template-columns: 1fr;
    }
  }
  