/* Animation Utilities for Features Section */
.type-animation {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typeText 2s steps(30, end) forwards infinite;
  opacity: 0;
}

.delay-0 { animation-delay: 0s; }
.delay-1000 { animation-delay: 2s; }
.delay-2000 { animation-delay: 4s; }

@keyframes typeText {
  0% { width: 0; opacity: 1; }
  80% { width: 100%; opacity: 1; }
  90% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

.animate-ping-slow {
  animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-spin-slow {
  animation: spin 8s linear infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Feature Card 1: Provider Scanning Animation */
.provider-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  animation: popInUp 3s infinite;
}

.vt-pill { animation-delay: 0.2s; }
.shodan-pill { animation-delay: 0.5s; }
.greynoise-pill { animation-delay: 0.8s; }

@keyframes popInUp {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}

.connection-line {
  stroke-dasharray: 4;
  animation: dashMove 1s linear infinite;
  opacity: 0;
}

.line-1 { animation: dashMove 1s linear infinite, fadeInOut 3s infinite 0.2s; }
.line-2 { animation: dashMove 1s linear infinite, fadeInOut 3s infinite 0.5s; }
.line-3 { animation: dashMove 1s linear infinite, fadeInOut 3s infinite 0.8s; }

@keyframes dashMove {
  to { stroke-dashoffset: -8; }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10%, 80% { opacity: 1; }
}

.animate-scan-vertical {
  animation: scanVertical 3s linear infinite;
}

@keyframes scanVertical {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* Feature Card 2: MITRE Mapping Animation - Redesigned */
.mitre-grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.ioc-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 12px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
}

.techniques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.technique-card {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(10px);
  animation: cardPopIn 4s infinite;
}

.card-red { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }
.card-orange { border-color: rgba(249, 115, 22, 0.3); background: rgba(249, 115, 22, 0.05); }
.card-blue { border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.05); }

.tech-delay-1 { animation-delay: 0.2s; }
.tech-delay-2 { animation-delay: 0.4s; }
.tech-delay-3 { animation-delay: 0.6s; }

@keyframes cardPopIn {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}

.connector-lines-vertical {
  position: absolute;
  top: 40px; /* Adjust based on IOC badge height */
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 30px;
  z-index: 0;
}

.connector-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

/* Feature Card 3: AI Summary Animation */
.code-scroll-container {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  font-family: monospace;
  font-size: 10px;
  line-height: 1.6;
  color: #666;
  padding: 16px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.scrolling-code {
  animation: scrollUp 20s linear infinite;
}

@keyframes scrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.summary-card-visual {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 20px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

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