/* ============================================
   EFFECTS.CSS - Enhanced Cyberpunk Effects
   ============================================ */

/* === HOLOGRAPHIC BORDER ON SERVICE CARDS === */
.service-card {
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: conic-gradient(
    from var(--holo-angle, 0deg),
    transparent 0%,
    var(--neon-purple) 10%,
    var(--neon-cyan) 20%,
    var(--neon-magenta) 30%,
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover::after {
  opacity: 1;
  animation: holoRotate 3s linear infinite;
}

@keyframes holoRotate {
  to { --holo-angle: 360deg; }
}

@property --holo-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* === ENHANCED GLITCH WITH COLOR CHANNEL SPLIT === */
.glitch-enhanced {
  position: relative;
}

.glitch-enhanced::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(6, 182, 212, 0.8);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitchChannel1 4s infinite linear alternate-reverse;
  pointer-events: none;
}

.glitch-enhanced::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(236, 72, 153, 0.8);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitchChannel2 3.5s infinite linear alternate-reverse;
  pointer-events: none;
}

@keyframes glitchChannel1 {
  0%, 88%  { transform: translate(0); }
  89%      { transform: translate(-4px, 1px); }
  90%      { transform: translate(4px, -1px); }
  91%      { transform: translate(-2px, 2px); }
  92%, 100% { transform: translate(0); }
}

@keyframes glitchChannel2 {
  0%, 90%  { transform: translate(0); }
  91%      { transform: translate(3px, -1px); }
  92%      { transform: translate(-3px, 2px); }
  93%      { transform: translate(2px, -2px); }
  94%, 100% { transform: translate(0); }
}

/* === CRT CURVATURE ON CARD HOVER === */
.service-card:hover {
  border-radius: 12px;
}

.service-card:hover .card-glow {
  opacity: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(139, 92, 246, 0.03) 40%,
    transparent 70%
  );
}

/* === NEON LINE SCAN EFFECT === */
.service-card .card-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
}

.service-card:hover .card-scan {
  opacity: 0.6;
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(300px); opacity: 0; }
}

/* === GLOW TEXT SHIMMER === */
.neon-text-shimmer {
  background: linear-gradient(
    90deg,
    var(--neon-cyan),
    var(--neon-purple),
    var(--neon-magenta),
    var(--neon-cyan)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* === DISABLE EFFECTS FOR REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .service-card::after,
  .service-card:hover::after {
    animation: none;
    opacity: 0;
  }

  .glitch-enhanced::before,
  .glitch-enhanced::after {
    animation: none;
  }

  .service-card:hover .card-scan {
    animation: none;
    opacity: 0;
  }

  .neon-text-shimmer {
    animation: none;
    -webkit-text-fill-color: var(--neon-cyan);
  }
}
