/* Local font loading for better performance */
@font-face {
  font-family: "Inconsolata";
  src: url("../assets/fonts/Inconsolata.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block; /* Prevents font swap flash */
}

@font-face {
  font-family: "Inconsolata";
  src: url("../assets/fonts/Inconsolata.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  font-family: "Inconsolata", monospace !important;
}

/* .fade-in-down {
  animation: fadeInDown 1s;
} */

@keyframes fadeInDown {
  0% {
    opacity: 0;
    /* transform: translateY(-20px); */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-zoom-in {
  animation: fadeZoomIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-zoom-out {
  animation: fadeZoomOut 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeZoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Racing outline animation for toggle */
@keyframes dash {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -120;
  }
}

.animate-dash {
  animation: dash 2s linear infinite;
}

/* Hide animation when toggle is checked */
.peer:checked ~ * .animate-dash {
  opacity: 0;
}

/* Toast Notification Styles - ShadowPulse Theme */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  max-width: 420px;
}

.toast {
  background: linear-gradient(135deg, #181818 0%, #171717 100%);
  border: 1px solid #2F2F2F;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #E3E3E3;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

/* Toast countdown timer bar */
.toast-countdown {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff 0%, #0098ff 100%);
  border-radius: 12px 12px 0 0;
  transition: width linear;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.toast.show {
  transform: translateX(0);
}

.toast-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.toast-title::before {
  content: '🌐';
  font-size: 16px;
}

.toast-description {
  font-size: 13px;
  color: #ABABAB;
  margin-bottom: 16px;
  line-height: 1.4;
  font-weight: 400;
}

.toast-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.toast-button {
  background: linear-gradient(135deg, #0098ff 0%, #00d4ff 100%);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

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

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

.toast-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.toast-close {
  background: transparent;
  color: #ABABAB;
  border: 1px solid #2F2F2F;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-close:hover {
  background: #2F2F2F;
  color: #E3E3E3;
  border-color: #4F4F4F;
  transform: translateY(-1px);
}

.fade-overlay-out {
  animation: fadeOverlayOut 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeOverlayOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.front-card {
  background: rgba(24, 24, 24, 0.7); /* 70% opaque */
  /* Remove transform and transition if not needed */
  /* Remove box-shadow if you want less separation */
}


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

.hero-noise-bg {
  background-color: #121212;
  background-image: url("https://www.transparenttextures.com/patterns/otis-redding.png");
  background-repeat: repeat;
  background-size: auto;
}

.greynoise-logo-img{
  width: 20px;         /* or whatever size you want */
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Leaflet Map Styles */
.leaflet-container {
  background: #121212 !important;
}

.leaflet-popup-content-wrapper {
  background: #2F2F2F !important;
  color: white !important;
  border: 1px solid #404040 !important;
}

.leaflet-popup-tip {
  background: #2F2F2F !important;
  border: 1px solid #404040 !important;
}

.leaflet-control-container {
  z-index: 1000 !important;
}

.leaflet-pane {
  z-index: 400 !important;
}

.leaflet-overlay-pane {
  z-index: 400 !important;
}

.leaflet-marker-pane {
  z-index: 600 !important;
}

.leaflet-popup-pane {
  z-index: 650 !important;
}

.leaflet-tooltip-pane {
  z-index: 650 !important;
}

.leaflet-shadow-pane {
  z-index: 500 !important;
}

.leaflet-tile-pane {
  z-index: 200 !important;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Enhanced background patterns */
/* body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 25% 25%,
      #1a1a1a 0%,
      transparent 50%
    ),
    radial-gradient(circle at 75% 75%, #1a1a1a 0%, transparent 50%);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
} */

/* Subtle grid pattern */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Search page specific animations */
@keyframes pulse-heartbeat {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fade-in-up {
  animation: fade-in-up 0.5s ease-out 0.1s both;
}

/* Scroll animations for index.html */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation classes for scroll triggers */
.scroll-animate {
  opacity: 0;
  transition: all 0.6s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
}

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

.slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.count-up {
  animation: countUp 0.8s ease-out forwards;
}

/* Enhanced card hover effects */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.tech-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.tech-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Subtle grid pattern background */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Cipher Effect CSS */
.cipher-text,
.cipher-text-collection,
.cipher-text-enrichment,
.cipher-text-attack,
.cipher-text-inoneplace {
  position: relative;
  display: inline-block;
}

.cipher-letter,
.cipher-letter-collection,
.cipher-letter-enrichment,
.cipher-letter-attack,
.cipher-letter-inoneplace {
  display: inline-block;
  transition: all 0.1s ease;
  position: relative;
}

.cipher-letter.glitching,
.cipher-letter-collection.glitching,
.cipher-letter-enrichment.glitching,
.cipher-letter-attack.glitching,
.cipher-letter-inoneplace.glitching {
  animation: letterGlitch 0.1s ease-in-out;
  color: #dc2626;
  opacity: 0.9;
}

.cipher-letter.flickering,
.cipher-letter-collection.flickering,
.cipher-letter-enrichment.flickering,
.cipher-letter-attack.flickering,
.cipher-letter-inoneplace.flickering {
  animation: flicker 0.05s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes letterGlitch {
  0%,
  100% {
    transform: translate(0);
  }
  25% {
    transform: translate(-1px, 1px);
  }
  50% {
    transform: translate(1px, -1px);
  }
  75% {
    transform: translate(-1px, -1px);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Random glitch intervals */
.glitch-text:nth-child(1) {
  animation-delay: 0s;
}

.glitch-text:nth-child(2) {
  animation-delay: 0.1s;
}

.glitch-text:nth-child(3) {
  animation-delay: 0.2s;
}

/* WebHound Research Styles */
.webhound-item {
  transition: all 0.3s ease;
}

.webhound-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.severity-critical {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  border-color: rgba(239, 68, 68, 0.3);
}

.severity-high {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(234, 88, 12, 0.1));
  border-color: rgba(251, 146, 60, 0.3);
}

.severity-medium {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
  border-color: rgba(251, 191, 36, 0.3);
}

.severity-low {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
  border-color: rgba(34, 197, 94, 0.3);
}

/* Progress bar animation */
.progress-bar {
  transition: width 0.5s ease-in-out;
}

/* WebHound loading animations */
@keyframes webhound-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Source URL hover effects */
.source-url {
  transition: all 0.2s ease;
}

.source-url:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* AI Analysis Summary Enhanced Styles */
.ai-summary-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ai-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(147, 51, 234, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
}

.ai-summary-card:hover::before {
  opacity: 1;
}

.ai-summary-card:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

/* Indicator cards hover effects */
.indicator-card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.indicator-card:hover {
  transform: translateX(4px) translateZ(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

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

/* Enhanced loading animations */
.ai-loading-pulse {
  animation: aiPulse 2s ease-in-out infinite;
}

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

/* Enhanced Micro-interactions */
.micro-interaction {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.micro-interaction:hover {
  transform: scale(1.02) translateZ(0);
}

.micro-interaction:active {
  transform: scale(1.02) translateZ(0);
}

/* Network entry specific styling */
.network-entry {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.network-entry:hover {
  transform: scale(1.02) translateZ(0);
}

.network-entry:active {
  transform: scale(1.02) translateZ(0);
}

/* Enhanced Loading States */
.loading-pulse {
  animation: loadingPulse 2s ease-in-out infinite;
}

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

/* Enhanced Fade Animations */
.fade-in-enhanced {
  animation: fadeInEnhanced 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInEnhanced {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Enhanced Hover Effects for Interactive Elements */
.interactive-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.interactive-hover:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Status Indicators */
.status-indicator {
  position: relative;
  overflow: hidden;
}

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

.status-indicator:hover::before {
  left: 100%;
}

/* Enhanced Prose Styling */
.prose {
  color: #d1d5db;
  max-width: none;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose strong {
  color: #ffffff;
  font-weight: 700;
}

.prose code {
  background-color: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(47, 47, 47, 0.8);
  border-radius: 0.375rem;
  color: #06b6d4;
  font-family: 'Inconsolata', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.prose a {
  color: #06b6d4;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #0891b2;
}

/* Risk Level Styling */
.risk-critical {
  color: #ef4444;
  font-weight: 700;
}

.risk-high {
  color: #f97316;
  font-weight: 700;
}

.risk-medium {
  color: #eab308;
  font-weight: 700;
}

.risk-low {
  color: #22c55e;
  font-weight: 700;
}

.risk-informational {
  color: #6b7280;
  font-weight: 700;
}

/* Staggered fade-in animation for cards */
.stagger-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerFadeIn 0.6s ease-out forwards;
}

.stagger-fade-in:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade-in:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade-in:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glowing border effect for important elements */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-border:hover::before {
  opacity: 1;
}

/* Typewriter effect for text */
.typewriter {
  overflow: hidden;
  border-right: 2px solid rgba(6, 182, 212, 0.7);
  white-space: nowrap;
  animation: typewriter 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: rgba(6, 182, 212, 0.7); }
}

/* Enhanced AI Analysis Styling */
.ai-analysis-card {
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(15, 15, 15, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ai-analysis-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(147, 51, 234, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
}

.ai-analysis-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(6, 182, 212, 0.2);
  z-index: 2;
  transform: translateY(-2px) translateZ(0);
}

.ai-analysis-card:hover::before {
  opacity: 1;
}

/* Enhanced Card Styles */
.enhanced-card {
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.9) 0%, rgba(24, 24, 24, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

.enhanced-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  transform: translateZ(0);
}

.enhanced-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(6, 182, 212, 0.2);
}

.enhanced-card:hover::before {
  opacity: 1;
}

/* Code block enhancements */
.code-block {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 1px solid rgba(45, 45, 45, 0.8);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
  opacity: 0.6;
}

.code-block pre {
  font-family: 'Inconsolata', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e5e7eb;
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  background: transparent;
}

/* IOC highlighting */
.ioc-highlight {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Inconsolata', monospace;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.ioc-highlight:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* MITRE technique badges */
.mitre-technique {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inconsolata', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Risk level indicators */
.risk-critical { color: #ef4444; }
.risk-high { color: #f97316; }
.risk-medium { color: #eab308; }
.risk-low { color: #22c55e; }
.risk-informational { color: #6b7280; }

/* Enhanced section headers */
.ai-section-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ai-section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 3s infinite;
}

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

/* Minimalistic Button Styles */
.minimal-button {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.minimal-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.minimal-button:active {
  transform: translateY(0);
}

.minimal-button-primary {
  border-color: rgba(6, 182, 212, 0.4);
  color: #06b6d4;
}

.minimal-button-primary:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.6);
}

/* Copy button for code blocks */
.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  color: #9ca3af;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.code-block:hover .copy-button {
  opacity: 1;
}

.copy-button:hover {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.3);
  transform: scale(1.05);
}

/* Network Activity Styling */
.network-entry {
  transition: border-color 0.2s ease, transform 0.2s ease;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.network-entry:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.network-details {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.network-chevron {
  transition: transform 0.2s ease;
}

.network-tab {
  position: relative;
  transition: all 0.2s ease;
}

.network-tab:hover {
  background-color: rgba(47, 47, 47, 0.5);
}

.network-tab.active {
  background-color: #2F2F2F;
  border-bottom: 2px solid #3B82F6;
}

/* Flag emoji styling */
.network-entry .text-xs {
  font-size: 12px;
  line-height: 1;
}

/* Enhanced network protocol badges */
.network-entry .bg-gray-700 {
  background-color: rgba(55, 65, 81, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.5);
}

/* Network flow arrows */
.network-entry svg {
  transition: all 0.2s ease;
}

.network-entry:hover svg {
  color: #3B82F6;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .enhanced-card {
    margin: 0.5rem;
    border-radius: 12px;
  }
  
  .ai-analysis-card {
    padding: 1rem;
  }
  
  .code-block pre {
    padding: 1rem;
    font-size: 0.8125rem;
  }
  
  .ai-section-header {
    padding: 1rem;
  }
  
  .network-entry .grid {
    grid-template-columns: 1fr;
  }
  
  .network-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .minimal-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  /* Mobile-specific enhancements */
  .mobile-optimized {
    padding: 0.75rem;
  }
  
  .mobile-text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .enhanced-card {
    margin: 0.25rem;
    padding: 1rem;
  }
  
  .minimal-button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .mobile-stack {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Enhanced Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
  .enhanced-card {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .enhanced-button {
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .enhanced-card {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .minimal-button {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .enhanced-card,
  .minimal-button,
  .micro-interaction,
  .interactive-hover {
    transition: none;
  }
  
  .enhanced-card:hover,
  .minimal-button:hover {
    transform: none;
  }
  
  .fade-in-enhanced,
  .stagger-fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}