/* Hi-Tech / Cyberpunk Styling */

/* Custom CSS Variables for Neon Colors */
:root {
  --neon-cyan: #00ffff;
  --neon-magenta: #ff00ff;
  --neon-blue: #0066ff;
  --dark-bg: #0a0a0f;
  --dark-card: #151520;
}

/* Animated Grid Background */
.grid-background {
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 0 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px; }
}

/* Neon Glow Text Effect */
.neon-text {
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 30px var(--neon-cyan),
    0 0 40px var(--neon-cyan);
  animation: neonPulse 2s ease-in-out infinite alternate;
}

.neon-text-magenta {
  text-shadow:
    0 0 10px var(--neon-magenta),
    0 0 20px var(--neon-magenta),
    0 0 30px var(--neon-magenta);
  animation: neonPulse 2.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.3); }
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(21, 21, 32, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

/* Neon Border Effect */
.neon-border {
  border: 2px solid var(--neon-cyan);
  box-shadow:
    0 0 5px var(--neon-cyan),
    inset 0 0 5px rgba(0, 255, 255, 0.2);
  position: relative;
}

.neon-border-magenta {
  border: 2px solid var(--neon-magenta);
  box-shadow:
    0 0 5px var(--neon-magenta),
    inset 0 0 5px rgba(255, 0, 255, 0.2);
}

/* Hexagon Shape */
.hexagon {
  width: 100px;
  height: 57.74px;
  background: var(--neon-cyan);
  position: relative;
  margin: 28.87px 0;
}

.hexagon::before,
.hexagon::after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
}

.hexagon::before {
  bottom: 100%;
  border-bottom: 28.87px solid var(--neon-cyan);
}

.hexagon::after {
  top: 100%;
  border-top: 28.87px solid var(--neon-cyan);
}

/* Scanline Effect */
.scanlines {
  position: relative;
  overflow: hidden;
}

.scanlines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 10;
}

/* Animated Gradient Border */
.animated-border {
  position: relative;
  background: var(--dark-card);
  border-radius: 1rem;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta), var(--neon-blue), var(--neon-cyan));
  background-size: 300% 300%;
  border-radius: 1rem;
  z-index: -1;
  animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glowing Button */
.glow-button {
  background: linear-gradient(135deg, #00ffff, #00ccff, #0099ff);
  border: 2px solid #00ffff;
  color: #000;
  font-weight: 900;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 15px #00ffff,
    0 0 30px #00ffff,
    0 0 45px #00ccff,
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glow-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.glow-button:hover::before {
  width: 300px;
  height: 300px;
}

.glow-button:hover {
  background: linear-gradient(135deg, #00ffff, #00ffff, #00ccff);
  box-shadow:
    0 0 25px #00ffff,
    0 0 50px #00ffff,
    0 0 75px #00ccff,
    inset 0 0 15px rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.02);
  border-color: #66ffff;
}

.glow-button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 0 15px #00ffff,
    0 0 30px #00ffff,
    inset 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Data Stream Effect */
@keyframes dataStream {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.data-stream {
  position: fixed;
  top: 0;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--neon-cyan), transparent);
  animation: dataStream 8s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

/* Holographic Effect */
.holographic {
  background: linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.1),
    rgba(255, 0, 255, 0.1),
    rgba(0, 102, 255, 0.1)
  );
  background-size: 200% 200%;
  animation: holographicShift 5s ease infinite;
}

@keyframes holographicShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Tech Corner Cuts */
.corner-cut {
  clip-path: polygon(
    20px 0, 100% 0, 100% calc(100% - 20px),
    calc(100% - 20px) 100%, 0 100%, 0 20px
  );
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Terminal Text Effect */
.terminal-text {
  font-family: 'Courier New', monospace;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
}

/* Glitch Effect */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.glitch:hover {
  animation: glitch 0.3s linear;
}

/* Fade-in on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Cyber Grid Lines */
.cyber-grid {
  position: relative;
}

.cyber-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Notification Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}

.animate-fade-out {
  animation: fadeOut 0.3s ease-in forwards;
}
