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

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes borderGlow {
  0% {
    box-shadow: 0 0 5px $neon-pink;
  }
  50% {
    box-shadow: 0 0 15px $neon-pink, 0 0 25px $neon-pink;
  }
  100% {
    box-shadow: 0 0 5px $neon-pink;
  }
}

.service-card {
  position: relative;
  background-color: $cyber-black;
  border-radius: 4px;
  padding: 2rem;
  color: white;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba($neon-pink, 0.5);
  box-shadow: 0 0 10px rgba($neon-pink, 0.3);
  width: 100%;

  // The card border effect
  .card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  // Scanline effect
  .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, $neon-pink, transparent);
    animation: scanline 2s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  &:hover {
    animation: borderGlow 1.5s infinite;
    border-color: $neon-pink;

    .card-border {
      opacity: 1;
    }

    .card-glow {
      opacity: 0.7;
    }
  }

  .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: white;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #aaa;
  }

  .link {
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
    position: relative;

    &:hover {
      color: $neon-pink;
    }
  }
}
