$neon-pink: #ff2a6d;
$neon-blue: #05d9e8;
$neon-purple: #d300c5;
$neon-yellow: #f7f500;
$dark-bg: #0d0221;
$cyber-black: #1a1a1a;

@keyframes gridMovement {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 25px;
  }
}

.services {
  padding: 5rem 3rem;
  background-color: $dark-bg;
  position: relative;
  overflow: hidden;

  // Grid background effect
  .grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        rgba($neon-blue, 0.1) 1px,
        transparent 1px
      ),
      linear-gradient(90deg, rgba($neon-blue, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
    animation: gridMovement 15s linear infinite;
  }

  .services-heading {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: white;
    text-shadow: 0 0 10px rgba($neon-pink, 0.5);
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    // Responsive font size
    @media (max-width: 768px) {
      font-size: 1.5rem;
      margin-bottom: 2.5rem;
    }
  }

  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;

    // Stack cards on small screens
    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }
}
