/* ============================================
   Cyberpunk Theme Effects
   ============================================ */

/* Digital Connectivity Grid */
.und-cyber-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(168, 85, 247, 0.08) 0px,
      rgba(168, 85, 247, 0.08) 1px,
      transparent 1px,
      transparent 49px
    ),
    repeating-linear-gradient(
      to right,
      rgba(168, 85, 247, 0.08) 0px,
      rgba(168, 85, 247, 0.08) 1px,
      transparent 1px,
      transparent 49px
    ),
    radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
  background-size:
    50px 50px,
    50px 50px,
    100% 100%;
}

/* Floating Orbs */
.und-orb {
  position: fixed;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: und-float 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes und-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

/* Hologram / Glassmorphism */
.und-hologram {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

/* Neon Text */
.und-neon {
  color: #a855f7;
  text-shadow: 0 0 5px rgba(168, 85, 247, 0.5), 0 0 12px rgba(168, 85, 247, 0.25);
}

/* Glow Border */
.und-glow-border {
  position: relative;
  border: 1px solid rgba(168, 85, 247, 0.3);
  transition: all 0.3s ease;
}

.und-glow-border:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
}

/* Pulse Ring */
.und-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  animation: und-pulse 3s ease-out infinite;
}

@keyframes und-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Glitch Effect */
.und-glitch {
  animation: und-glitch 3s linear infinite;
}

@keyframes und-glitch {
  2%, 64% { transform: translate(2px, 0) skew(0deg); }
  4%, 60% { transform: translate(-2px, 0) skew(0deg); }
  62% { transform: translate(0, 0) skew(5deg); }
}

/* Skill Bar */
.und-skill-bar {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.und-skill-progress {
  background: linear-gradient(90deg, #a855f7, #7e22ce);
  height: 100%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.und-skill-progress::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: und-shimmer 2s infinite;
}

@keyframes und-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Cyber Card */
.und-cyber-card {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.und-cyber-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
  transform: translateY(-5px);
}

/* Cyber Input */
.und-cyber-input {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.und-cyber-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.und-cyber-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Fade-in Scroll */
.und-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.und-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glow Button */
.und-glow-btn {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  backdrop-filter: blur(10px);
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  transition: all 0.3s ease;
}

.und-glow-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
  transform: scale(1.05);
}

/* Nav link underline */
.und-nav-link {
  position: relative;
}

.und-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #a855f7;
  transition: width 0.3s ease;
}

.und-nav-link:hover::after {
  width: 100%;
}

/* Tag pill */
.und-tag {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Section title underline */
.und-section-line {
  width: 6rem;
  height: 1px;
  background: linear-gradient(90deg, #a855f7, transparent);
  margin: 1rem auto 0;
}

/* Cyber Button */
.und-cyber-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: all 0.3s ease;
}

.und-cyber-btn:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
