/* ============================================
   Workspace Effects — Cyber Theme CSS
   Extracted from workspace globals.css
   ============================================ */

/* ---------- Cyber grid background ---------- */
.cyber-grid {
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- Glow effects ---------- */
.glow-green {
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.15), 0 0 60px rgba(0, 212, 170, 0.05);
}

.glow-green-strong {
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.3), 0 0 60px rgba(0, 212, 170, 0.1);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15), 0 0 60px rgba(14, 165, 233, 0.05);
}

/* ---------- Text glow ---------- */
.text-glow-green {
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

/* ---------- Gradient text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #00d4aa, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 6s ease infinite;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 170, 0.1);
}

/* ---------- Animated gradient border ---------- */
.gradient-border {
  position: relative;
  background: #0f172a;
  border-radius: 0.75rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.4), transparent 40%, transparent 60%, rgba(14, 165, 233, 0.4));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* ---------- Noise texture overlay ---------- */
.noise-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---------- Hex pattern ---------- */
.hex-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
}

/* ---------- Scanline overlay ---------- */
.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.4), transparent);
  animation: scanline 8s linear infinite;
  pointer-events: none;
}

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

/* ---------- Pulse ring ---------- */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.pulse-ring {
  animation: pulse-ring 3s ease-in-out infinite;
}

/* ---------- Float animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ---------- Glitch text effect ---------- */
@keyframes glitch-1 {
  0%, 100% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
  20% { clip-path: inset(92% 0 1% 0); transform: translate(1px, -1px); }
  40% { clip-path: inset(43% 0 1% 0); transform: translate(-1px, 3px); }
  60% { clip-path: inset(25% 0 58% 0); transform: translate(3px, 1px); }
  80% { clip-path: inset(54% 0 7% 0); transform: translate(-3px, -2px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(65% 0 13% 0); transform: translate(2px, -1px); }
  20% { clip-path: inset(15% 0 65% 0); transform: translate(-1px, 2px); }
  40% { clip-path: inset(80% 0 2% 0); transform: translate(2px, -3px); }
  60% { clip-path: inset(10% 0 72% 0); transform: translate(-2px, 1px); }
  80% { clip-path: inset(35% 0 45% 0); transform: translate(1px, 3px); }
}

.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text:hover::before {
  color: #00d4aa;
  opacity: 0.8;
  animation: glitch-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.glitch-text:hover::after {
  color: #0ea5e9;
  opacity: 0.8;
  animation: glitch-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ---------- Card shine sweep on hover ---------- */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(0, 212, 170, 0.03) 45%,
    rgba(0, 212, 170, 0.06) 50%,
    rgba(0, 212, 170, 0.03) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}

.card-shine:hover::after {
  transform: translateX(100%);
  transition: transform 0.7s ease-in-out;
}

/* ---------- Cyber divider ---------- */
.cyber-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 170, 0.2) 20%,
    rgba(0, 212, 170, 0.4) 50%,
    rgba(14, 165, 233, 0.2) 80%,
    transparent
  );
  position: relative;
  overflow: visible;
}

.cyber-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #00d4aa, #0ea5e9);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.5);
  animation: divider-slide 6s linear infinite;
}

@keyframes divider-slide {
  0% { left: -80px; }
  100% { left: 100%; }
}

/* ---------- Network animation ---------- */
@keyframes network-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; }
}

@keyframes network-line {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.15; }
}

/* ---------- Cyber card ---------- */
.cyber-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 170, 0),
    rgba(0, 212, 170, 0),
    rgba(14, 165, 233, 0)
  );
  -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;
  transition: background 0.5s ease;
  pointer-events: none;
}

.cyber-card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 170, 0.4),
    transparent 40%,
    transparent 60%,
    rgba(14, 165, 233, 0.4)
  );
}

/* ---------- Gradient orb floating ---------- */
@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(0.95); }
  75% { transform: translate(15px, 25px) scale(1.02); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(1.08); }
  66% { transform: translate(20px, -15px) scale(0.97); }
}

.gradient-orb-1 {
  animation: orb-float-1 20s ease-in-out infinite;
}

.gradient-orb-2 {
  animation: orb-float-2 25s ease-in-out infinite;
}

/* ---------- Neon hover title ---------- */
.neon-hover-title {
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.neon-hover-title:hover {
  text-shadow: 0 0 10px rgba(0, 212, 170, 0.4), 0 0 20px rgba(0, 212, 170, 0.2);
  color: #00d4aa;
}

/* ---------- Matrix rain canvas ---------- */
.matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* ---------- Cursor spotlight ---------- */
.cursor-spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ---------- Noise texture overlay (fixed) ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 51;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Particle canvas ---------- */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Section label dot ---------- */
.section-label-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
  animation: network-pulse 2s ease-in-out infinite;
}

/* ---------- Stat counter ---------- */
.stat-counter {
  transition: all 0.5s ease;
}

/* ---------- Card hover lift ---------- */
.card-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Hover ripple ---------- */
@keyframes hover-ripple {
  0% { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(4); opacity: 0; }
}

.hover-ripple {
  position: relative;
  overflow: hidden;
}

.hover-ripple::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.15);
  transform: scale(0);
  opacity: 0;
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.hover-ripple:active::before {
  animation: hover-ripple 0.6s ease-out;
}

/* ---------- Gradient text animation ---------- */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #030712;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ---------- Logo marquee ---------- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

@keyframes logo-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes logo-marquee-quarter {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-marquee 45s linear infinite;
}

.logo-marquee-track--4x {
  animation: logo-marquee-quarter 45s linear infinite;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.logo-marquee-group--wide {
  gap: 96px;
  padding-right: 96px;
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track,
  .logo-marquee-track--4x {
    animation: none !important;
  }
}

/* ---------- Typing cursor blink ---------- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink::after {
  content: '\2588';
  animation: blink 1s step-end infinite;
  color: #00d4aa;
  margin-left: 2px;
}

/* ---------- Terminal input ---------- */
.terminal-input {
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid rgba(0, 212, 170, 0.2);
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
}

.terminal-input:focus {
  border-color: #00d4aa;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1), 0 0 20px rgba(0, 212, 170, 0.1);
  outline: none;
}

.terminal-input::placeholder {
  color: #475569;
}

/* ---------- Threat pulse ---------- */
@keyframes threat-pulse {
  0%, 100% { box-shadow: 0 0 4px currentColor; }
  50% { box-shadow: 0 0 12px currentColor, 0 0 24px currentColor; }
}

.threat-pulse {
  animation: threat-pulse 2s ease-in-out infinite;
}

/* ---------- Section reveal ---------- */
@keyframes section-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Metric pulse ---------- */
@keyframes metric-pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 212, 170, 0.1); }
  50% { box-shadow: 0 0 25px rgba(0, 212, 170, 0.2), 0 0 50px rgba(0, 212, 170, 0.05); }
}

.metric-pulse {
  animation: metric-pulse-glow 4s ease-in-out infinite;
}

.metric-value {
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

/* ---------- Password Strength ---------- */
@keyframes strength-fill {
  0% { width: 0; }
}

.strength-bar {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

.strength-bar-animated {
  animation: strength-fill 0.6s ease-out;
}

@keyframes criteria-check {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.criteria-check-icon {
  animation: criteria-check 0.3s ease-out forwards;
}

/* Password input glow */
@keyframes password-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 170, 0.05), inset 0 0 10px rgba(0, 212, 170, 0.02); }
  50% { box-shadow: 0 0 25px rgba(0, 212, 170, 0.15), inset 0 0 15px rgba(0, 212, 170, 0.05); }
}

.password-input-glow:focus-within {
  animation: password-glow 2s ease-in-out infinite;
  border-color: rgba(0, 212, 170, 0.4) !important;
}

/* ---------- Nav CTA glow ---------- */
.nav-cta-glow {
  transition: all 0.3s ease;
}

.nav-cta-glow:hover {
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.4), 0 0 40px rgba(0, 212, 170, 0.15);
}

/* ---------- Animated border card ---------- */
@keyframes border-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-border-card {
  position: relative;
  border-radius: 16px;
  background: #0a0f1c;
}

.animated-border-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #00d4aa, #0ea5e9, #00d4aa);
  background-size: 200% 100%;
  animation: border-rotate 4s ease infinite;
  -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;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.animated-border-card:hover::before {
  opacity: 0.6;
}

/* ---------- Process section arrow connector ---------- */
.process-arrow {
  display: none;
}

@media (min-width: 1024px) {
  .process-arrow {
    display: flex;
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #334155;
  }
}
