footer {
    background: var(--surface);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem 2rem;
  }
  
  /* Animated background pattern */
  footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      linear-gradient(45deg, var(--surface) 25%, transparent 25%) -50px 0,
      linear-gradient(-45deg, var(--surface) 25%, transparent 25%) -50px 0,
      linear-gradient(45deg, transparent 75%, var(--surface) 75%),
      linear-gradient(-45deg, transparent 75%, var(--surface) 75%);
    background-size: 100px 100px;
    opacity: 0.03;
    animation: patternMove 20s linear infinite;
  }
  
  @keyframes patternMove {
    0% { background-position: -50px 0, -50px 0, 0 0, 0 0; }
    100% { background-position: 50px 0, 50px 0, 100px 100px, 100px 100px; }
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Changed this line */
    gap: 3rem;
    position: relative;
    z-index: 1;
}
  
  .footer-section {
    position: relative;
  }
  
  .footer-section h4 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
  }
  
  /* Animated underline effect */
  .footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
  }
  
  .footer-section:hover h4::after {
    width: 100%;
  }
  
  .footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
  }
  
  .footer-section:hover p {
    color: var(--text);
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin: 0.8rem 0;
    transition: transform 0.3s ease;
  }
  
  .footer-section ul li:hover {
    transform: translateX(10px);
  }
  
  .footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
  }
  
  /* Link hover effect */
  .footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }
  
  .footer-section a:hover {
    color: var(--primary);
  }
  
  .footer-section a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }

  .footer-section:nth-child(2) {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

  .footer-section:nth-child(2) ul {
      display: inline-block;
      vertical-align: top;
      margin: 0 0.5rem 1rem;  /* Just bottom and side margins */
      text-align: left;
  }
  
  /* Social media icons (if needed) */
  .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .social-links a:hover {
    border-color: var(--primary);
    background: rgba(187, 134, 252, 0.1);
    transform: translateY(-5px);
  }
  
  .copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
  }
  
  /* Gradient border top */
  .copyright::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
  }
  
  @media (max-width: 768px) {
    footer {
      padding: 3rem 1rem 1rem;
    }

    .footer-content {
      gap: 2rem;
      grid-template-columns: 1fr; /* Added this line */
    }

    .footer-section {
      text-align: center;
    }

    .footer-section ul li:hover {
      transform: none;
    }

    .social-links {
      justify-content: center;
    }
  }