/* Retro 80s Cyber Theme for Lackadaisical Security */

/* Base styling and variables */
:root {
  --bg-dark: #0b0614;
  --bg-panel: #12051a;
  --text-primary: #f2f2ff;
  --text-secondary: #b4a0ff;
  --neon-magenta: #ff0099;
  --neon-blue: #00c3ff;
  --neon-purple: #d417ff;
  --neon-cyan: #00ffdb;
  --neon-yellow: #ffdf22;
  --accent: #ff2975;
  --border: #2d4263;
  --shadow: rgba(255, 0, 153, 0.4);
  --grid-color: rgba(255, 0, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Lazer84';
  src: url('../fonts/Lazer84.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'VCR OSD Mono';
  src: url('../fonts/VCROSDMono.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'VCR OSD Mono', 'Rajdhani', monospace;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  letter-spacing: 1px;
}

/* CRT and Scanline effects */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 3px;
  opacity: 0.7;
  animation: scanlines 8s linear infinite;
}

.crt-flicker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.05;
  animation: flicker 8s infinite ease-in-out;
}

/* Enhanced Animated background elements */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at bottom, #1b0a2a 0%, #090613 100%);
}

.grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
  animation: gridMove 30s infinite linear;
  transform-origin: center;
  transform: perspective(1000px) rotateX(60deg) scale(2, 1.5) translateY(10%);
  transform-style: preserve-3d;
}

.circuit-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(255, 0, 195, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(0, 255, 255, 0.2) 0%, transparent 50%);
  animation: colorPulse 8s infinite alternate;
}

.glow-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glow-orbs::before, .glow-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 20s infinite alternate ease-in-out, colorChange 15s infinite ease-in-out;
}

.glow-orbs::before {
  width: 300px;
  height: 300px;
  background-color: var(--neon-magenta);
  top: 10%;
  left: 15%;
}

.glow-orbs::after {
  width: 250px;
  height: 250px;
  background-color: var(--neon-cyan);
  bottom: 15%;
  right: 10%;
  animation: float 25s infinite alternate ease-in-out, colorChange 18s infinite ease-in-out reverse;
}

.sunset-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(0deg, #ff2285 0%, transparent 100%);
  opacity: 0.3;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Main container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.cyber-container {
  background: rgba(11, 6, 20, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 0, 153, 0.3);
  border: 1px solid rgba(255, 0, 153, 0.2);
}

/* Header section */
.cyber-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--neon-magenta);
  position: relative;
  text-transform: uppercase;
}

.cyber-header::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-magenta), var(--neon-cyan), transparent);
  animation: neonPulse 3s infinite;
}

.cyber-header h1 {
  font-family: 'Lazer84', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 4px;
  text-shadow: 
    0 0 5px var(--neon-magenta),
    0 0 10px var(--neon-magenta),
    0 0 20px var(--neon-blue),
    0 0 40px var(--neon-blue);
  color: #fff;
  transform: skew(-5deg);
  animation: bigGlow 3s ease-in-out infinite alternate;
}

.cyber-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Text effects */
.glitch-text {
  position: relative;
  animation: textGlitch 3s infinite;
}

.neon-text {
  color: var(--neon-cyan);
  text-shadow: 
    0 0 5px var(--neon-cyan), 
    0 0 10px var(--neon-cyan), 
    0 0 20px var(--neon-cyan);
  animation: neonFlicker 3s infinite alternate;
}

.pulse-text {
  animation: pulse 1.5s infinite;
}

/* Panel styling */
.cyber-panel {
  background-color: var(--bg-panel);
  border: 2px solid var(--neon-magenta);
  border-radius: 0px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 
    0 0 15px var(--neon-magenta), 
    inset 0 0 15px rgba(255, 0, 153, 0.1);
  position: relative;
  overflow: hidden;
}

.cyber-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
  animation: gradientShift 3s infinite linear;
}

.cyber-panel::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 15px;
  width: 10px;
  height: 10px;
  background: var(--neon-magenta);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px var(--neon-magenta);
  animation: blink 2s infinite;
}

.cyber-border {
  border: 2px solid var(--neon-cyan);
  position: relative;
  transition: all 0.3s ease;
  background: 
    linear-gradient(45deg, var(--neon-cyan) 0%, transparent 2px) 0 0,
    linear-gradient(-45deg, var(--neon-cyan) 0%, transparent 2px) 100% 0,
    linear-gradient(135deg, var(--neon-cyan) 0%, transparent 2px) 0 100%,
    linear-gradient(-135deg, var(--neon-cyan) 0%, transparent 2px) 100% 100%;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

.cyber-border:hover {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 20px rgba(255, 0, 153, 0.5);
  background: 
    linear-gradient(45deg, var(--neon-magenta) 0%, transparent 2px) 0 0,
    linear-gradient(-45deg, var(--neon-magenta) 0%, transparent 2px) 100% 0,
    linear-gradient(135deg, var(--neon-magenta) 0%, transparent 2px) 0 100%,
    linear-gradient(-135deg, var(--neon-magenta) 0%, transparent 2px) 100% 100%;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

/* Form elements */
.cyber-button {
  background: linear-gradient(135deg, #2b013a, #5e0058);
  color: var(--text-primary);
  border: 2px solid var(--neon-magenta);
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  font-family: 'VCR OSD Mono', monospace;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(255, 0, 153, 0.3);
  letter-spacing: 2px;
  clip-path: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
}

.cyber-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.2), transparent);
  transition: all 0.8s ease;
}

.cyber-button:hover {
  box-shadow: 
    0 0 20px rgba(255, 0, 153, 0.5),
    inset 0 0 10px rgba(255, 0, 153, 0.2);
  transform: translateY(-2px) scale(1.02);
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-magenta);
}

.cyber-button:hover::before {
  left: 100%;
}

.cyber-button.pulse-effect {
  animation: buttonPulse 2s infinite;
}

/* Navigation */
.cyber-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 2px solid var(--neon-magenta);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.nav-logo {
  font-family: 'Lazer84', sans-serif;
  letter-spacing: 2px;
  transform: skew(-5deg);
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-magenta);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-magenta);
  text-shadow: 0 0 5px var(--neon-magenta);
}

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

.nav-link.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan);
}

.nav-link.active::after {
  width: 100%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Add retro grid elements */
.retro-sun {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: linear-gradient(0deg, var(--neon-magenta), transparent);
  border-radius: 100% 100% 0 0;
  opacity: 0.3;
  z-index: -1;
}

/* Enhanced brand styling */
.lackadaisical-text {
  font-family: 'Lazer84', sans-serif;
  font-size: 1.8rem;
  color: var(--neon-magenta);
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--neon-magenta);
  transform: skew(-5deg);
  display: inline-block;
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: textColorChange 8s infinite alternate;
  margin-right: 5px;
}

.sec-text {
  font-family: 'Lazer84', sans-serif;
  font-size: 1.8rem;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--neon-cyan);
  transform: skew(-5deg);
}

/* Enhanced animations */
@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

@keyframes flicker {
  0%, 100% { opacity: 0.05; }
  5% { opacity: 0.06; }
  10% { opacity: 0.05; }
  15% { opacity: 0.06; }
  20% { opacity: 0.05; }
  50% { opacity: 0.057; }
  60% { opacity: 0.05; }
  70% { opacity: 0.058; }
  80% { opacity: 0.05; }
}

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

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  75% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes colorChange {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes neonPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.7; }
}

@keyframes textGlitch {
  0%, 85%, 95%, 100% { 
    text-shadow: 
      0 0 5px var(--neon-magenta),
      0 0 10px var(--neon-magenta),
      0 0 20px var(--neon-blue),
      0 0 40px var(--neon-blue);
    transform: skew(0); 
  }
  90% { 
    text-shadow: none;
    transform: skew(-2deg); 
  }
}

/* Add these new animations */
@keyframes textColorChange {
  0%, 100% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  50% { 
    background-position: 100% 50%; 
    filter: hue-rotate(30deg);
  }
}

/* Retro horizontal line decoration */
.retro-line {
  height: 2px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--neon-magenta),
    var(--neon-cyan) 20px,
    var(--neon-magenta) 40px
  );
  margin: 1.5rem 0;
  opacity: 0.7;
  animation: lineShift 10s infinite linear;
}

@keyframes lineShift {
  0% { background-position: 0 0; }
  100% { background-position: 100px 0; }
}

/* Cool heading underline effect */
.cyber-heading {
  position: relative;
  margin-bottom: 1.5rem;
  display: inline-block;
  margin-right: 15px;
  padding: 0 5px;
}

.cyber-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
  opacity: 0.8;
  animation: neonPulse 3s infinite;
}
