/* ============================================
   ENHANCED CYBERPUNK HERO WITH LIVE OPERATIONS
   Real-time Hacker Interface with System Monitoring
   ============================================ */

/* Cyberpunk Hero Section */
.hero-section {
  position: relative;
  background: 
    radial-gradient(ellipse at center, rgba(0, 255, 65, 0.08) 0%, transparent 70%),
    linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #001a00 50%, #0a0a0a 75%, #000000 100%);
  padding: 1rem 2rem;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  margin-top: -10px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "terminal content alerts"
    "terminal content scan"
    "hud hud hud";
  gap: 2rem;
  align-items: center;
}

/* Live Operations Terminal */
.live-terminal {
  grid-area: terminal;
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #00ff41;
  border-radius: 8px;
  box-shadow: 
    0 0 30px rgba(0, 255, 65, 0.3),
    inset 0 0 50px rgba(0, 255, 65, 0.05);
  backdrop-filter: blur(15px);
  animation: terminalBoot 2s ease-out;
  font-family: 'Source Code Pro', monospace;
  max-height: 400px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 65, 0.05));
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.terminal-controls {
  display: flex;
  gap: 0.5rem;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-dot.close {
  background: #ff3030;
  box-shadow: 0 0 10px #ff3030;
}

.control-dot.minimize {
  background: #ffff00;
  box-shadow: 0 0 10px #ffff00;
}

.control-dot.maximize {
  background: #00ff41;
  box-shadow: 0 0 10px #00ff41;
}

.control-dot:hover {
  transform: scale(1.2);
}

.terminal-title {
  color: #00ff41;
  font-size: 0.9rem;
  font-weight: 600;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00ff41;
  font-size: 0.8rem;
}

.status-indicator {
  animation: statusBlink 2s ease-in-out infinite;
}

.status-indicator.online {
  color: #00ff41;
}

.terminal-body {
  padding: 1rem;
  height: 300px;
  overflow-y: auto;
}

.terminal-output {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #00ff41;
  margin-bottom: 1rem;
}

.terminal-line {
  margin-bottom: 0.2rem;
  animation: typewriterLine 2s steps(50) forwards;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}

.terminal-line.success {
  color: #00ff41;
}

.terminal-line.warning {
  color: #ffff00;
}

.terminal-line.error {
  color: #ff3030;
}

.terminal-line.info {
  color: #00ffff;
}

.terminal-input {
  display: flex;
  align-items: center;
  color: #00ff41;
  font-size: 0.9rem;
}

.prompt {
  color: #00ffff;
  margin-right: 0.5rem;
}

.cursor {
  animation: cursorBlink 1s infinite;
  color: #00ff41;
}

/* System Alerts Panel */
.alerts-panel {
  grid-area: alerts;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ff6600;
  border-radius: 8px;
  box-shadow: 
    0 0 20px rgba(255, 102, 0, 0.3),
    inset 0 0 30px rgba(255, 102, 0, 0.05);
  backdrop-filter: blur(10px);
  padding: 1rem;
  max-height: 300px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 102, 0, 0.3);
}

.alert-icon {
  font-size: 1.2rem;
  animation: alertPulse 2s ease-in-out infinite;
}

.panel-title {
  color: #ff6600;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Source Code Pro', monospace;
}

.alerts-container {
  max-height: 200px;
  overflow-y: auto;
}

.alert-item {
  background: rgba(255, 102, 0, 0.1);
  border-left: 3px solid #ff6600;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  animation: alertSlideIn 0.5s ease-out;
  font-size: 0.8rem;
  color: #ffcc99;
}

.alert-time {
  color: #ff6600;
  font-size: 0.7rem;
  font-weight: 600;
}

.alert-message {
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* Real-time Scan Monitor */
.scan-monitor {
  grid-area: scan;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #00ffff;
  border-radius: 8px;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 30px rgba(0, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 1rem;
}

.monitor-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.scan-icon {
  font-size: 1.2rem;
  animation: scanRotate 2s linear infinite;
}

.monitor-title {
  color: #00ffff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Source Code Pro', monospace;
}

.scan-progress-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scan-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scan-label {
  color: #00ffff;
  font-size: 0.8rem;
  min-width: 120px;
  text-align: left;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #00ff41);
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

.scan-percentage {
  color: #00ffff;
  font-size: 0.8rem;
  min-width: 40px;
  text-align: right;
  font-family: 'Source Code Pro', monospace;
}

/* Main Hero Content */
.hero-content {
  grid-area: content;
  z-index: 10;
}

/* System Stats HUD */
.system-hud {
  grid-area: hud;
  display: flex;
  justify-content: center;
  gap: 3rem;
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 2rem;
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transform: translateY(-50px);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hud-label {
  color: #00ff41;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Source Code Pro', monospace;
  min-width: 40px;
}

.hud-bar {
  width: 100px;
  height: 6px;
  background: rgba(0, 255, 65, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.hud-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff41, #ffff00, #ff6600);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
  animation: hudPulse 3s ease-in-out infinite;
}

.hud-value {
  color: #00ff41;
  font-size: 0.8rem;
  font-family: 'Source Code Pro', monospace;
  min-width: 40px;
  text-align: right;
}

/* Animated Background Grid */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 120px 120px, 120px 120px;
  animation: gridFloat 20s ease-in-out infinite alternate;
  z-index: 1;
  opacity: 0.7;
}

/* Subtle Scan Lines */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 255, 65, 0.01) 3px,
    rgba(0, 255, 65, 0.01) 6px
  );
  animation: scanSweep 0.15s linear infinite;
  z-index: 2;
  pointer-events: none;
}

/* Hero Title Styling */
.animated-text {
  position: relative;
  z-index: 10;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  margin-bottom: 2.5rem;
  font-family: 'Orbitron', 'Arial', sans-serif;
  letter-spacing: 0.02em;
  animation: fadeInScale 2s ease-out both;
}

#headingsfirst {
  display: inline-block;
  color: #00ff41;
  text-shadow: 
    0 0 20px rgba(0, 255, 65, 0.8),
    0 0 40px rgba(0, 255, 65, 0.4),
    0 0 60px rgba(0, 255, 65, 0.2);
  animation: 
    titleGlow 4s ease-in-out infinite alternate,
    subtleGlitch 3s infinite;
  position: relative;
}

#headingsfirst::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #00ffff;
  opacity: 0;
  animation: glitchLayer1 4s infinite;
  z-index: -1;
}

#headingsfirst::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #ff0080;
  opacity: 0;
  animation: glitchLayer2 4s infinite;
  z-index: -2;
}

#headingssecond {
  display: inline-block;
  color: #00ffff;
  text-shadow: 
    0 0 15px rgba(0, 255, 255, 0.8),
    0 0 30px rgba(0, 255, 255, 0.4);
  animation: 
    subtitleGlow 4s ease-in-out infinite alternate 1s,
    fadeInUp 2s ease-out 0.5s both;
  font-weight: 700;
}

/* Hero Description Styling */
.sub-header {
  position: relative;
  z-index: 10;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  color: #e0ffe0;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2.5rem 3rem;
  background: 
    linear-gradient(135deg, 
      rgba(0, 0, 0, 0.85) 0%, 
      rgba(0, 20, 0, 0.9) 50%, 
      rgba(0, 0, 0, 0.85) 100%);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-left: 4px solid #00ff41;
  border-radius: 8px;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 40px rgba(0, 255, 65, 0.1);
  animation: slideInUp 2s ease-out 1s both;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

#subheadfirst {
  color: #00ff41;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

#subheadsecond {
  color: #00ffff;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* CTA Text */
.cta-text {
  position: relative;
  z-index: 10;
  font-size: 1.2rem;
  color: #ffff00;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(255, 255, 0, 0.6);
  animation: 
    statusPulse 3s ease-in-out infinite,
    fadeInUp 2s ease-out 2s both;
  font-family: 'Source Code Pro', monospace;
}

/* Floating Particles Effect */
.cyber-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00ff41;
  border-radius: 50%;
  animation: particleFloat 8s linear infinite;
  opacity: 0;
}

.particle:nth-child(odd) {
  background: #00ffff;
  animation-duration: 12s;
}

.particle:nth-child(3n) {
  background: #ff0080;
  animation-duration: 10s;
}

/* Data Stream Lines */
.data-streams {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.4;
}

.stream-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #00ff41 20%,
    #00ff41 80%,
    transparent 100%
  );
  animation: streamFlow 3s linear infinite;
}

.stream-line:nth-child(even) {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #00ffff 20%,
    #00ffff 80%,
    transparent 100%
  );
  animation-duration: 4s;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes gridFloat {
  0% { 
    transform: translateX(0) translateY(0);
    opacity: 0.7; 
  }
  100% { 
    transform: translateX(-10px) translateY(-10px);
    opacity: 1; 
  }
}

@keyframes scanSweep {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

@keyframes fadeInScale {
  0% { 
    opacity: 0; 
    transform: scale(0.9) translateY(30px);
    filter: blur(10px);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

@keyframes titleGlow {
  0% { 
    text-shadow: 
      0 0 20px rgba(0, 255, 65, 0.8),
      0 0 40px rgba(0, 255, 65, 0.4);
  }
  100% { 
    text-shadow: 
      0 0 30px rgba(0, 255, 65, 1),
      0 0 60px rgba(0, 255, 65, 0.6),
      0 0 90px rgba(0, 255, 65, 0.3);
  }
}

@keyframes subtleGlitch {
  0%, 90%, 100% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
}

@keyframes glitchLayer1 {
  0%, 96%, 100% { opacity: 0; }
  97%, 98% { 
    opacity: 0.8; 
    transform: translate(2px, 0);
  }
  99% { 
    opacity: 0.6; 
    transform: translate(-2px, 0);
  }
}

@keyframes glitchLayer2 {
  0%, 94%, 100% { opacity: 0; }
  95%, 96% { 
    opacity: 0.6; 
    transform: translate(-1px, 1px);
  }
  97%, 98% { 
    opacity: 0.4; 
    transform: translate(1px, -1px);
  }
}

@keyframes subtitleGlow {
  0% { 
    text-shadow: 
      0 0 15px rgba(0, 255, 255, 0.8);
  }
  100% { 
    text-shadow: 
      0 0 25px rgba(0, 255, 255, 1),
      0 0 45px rgba(0, 255, 255, 0.6);
  }
}

@keyframes fadeInUp {
  0% { 
    opacity: 0; 
    transform: translateY(40px);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  0% { 
    opacity: 0; 
    transform: translateY(60px) scale(0.95);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

@keyframes statusPulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.05);
  }
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(50px);
  }
}

@keyframes streamFlow {
  0% {
    height: 0;
    top: 0;
    opacity: 1;
  }
  50% {
    height: 100px;
    top: 50%;
    opacity: 1;
  }
  100% {
    height: 0;
    top: 100%;
    opacity: 0;
  }
}

/* ============================================
   ENHANCED ANIMATION KEYFRAMES
   ============================================ */

@keyframes terminalBoot {
  0% { 
    opacity: 0; 
    transform: scale(0.9) translateY(20px);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0);
  }
}

@keyframes typewriterLine {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes alertPulse {
  0%, 100% { 
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% { 
    transform: scale(1.1);
    filter: hue-rotate(30deg);
  }
}

@keyframes alertSlideIn {
  0% { 
    opacity: 0; 
    transform: translateX(50px);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0);
  }
}

@keyframes scanRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes hudPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "content"
      "terminal"
      "alerts"
      "scan"
      "hud";
    gap: 1.5rem;
    padding: 3rem 1.5rem;
  }
  
  .live-terminal,
  .alerts-panel,
  .scan-monitor {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
    min-height: auto;
  }
  
  .live-terminal {
    max-height: 250px;
  }
  
  .terminal-body {
    height: 180px;
    padding: 0.8rem;
  }
  
  .terminal-header {
    padding: 0.6rem 0.8rem;
  }
  
  .terminal-title {
    font-size: 0.8rem;
  }
  
  .alerts-panel,
  .scan-monitor {
    max-height: 200px;
  }
  
  .system-hud {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hud-item {
    justify-content: space-between;
  }
  
  .sub-header {
    padding: 1.5rem;
    font-size: 1rem;
    max-width: 95%;
  }
  
  .animated-text {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 0.8rem;
  }
  
  .live-terminal {
    max-height: 200px;
  }
  
  .terminal-body {
    height: 130px;
    padding: 0.6rem;
  }
  
  .terminal-output {
    font-size: 0.7rem;
  }
  
  .scan-item {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .scan-label {
    min-width: auto;
  }
  
  .progress-bar {
    width: 100%;
  }
  
  .control-dot {
    width: 10px;
    height: 10px;
  }
  
  .hero-section::before {
    background-size: 40px 40px, 40px 40px, 80px 80px, 80px 80px;
  }
}