/* === AI-Driven Cybersecurity Ecosystem 2026 === */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0d1226;
  --bg-card: rgba(13, 18, 38, 0.85);
  --neon-blue: #00d4ff;
  --neon-green: #00ff88;
  --neon-purple: #a855f7;
  --neon-red: #ff3366;
  --neon-orange: #ff8c00;
  --neon-cyan: #22d3ee;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-glow: rgba(0, 212, 255, 0.2);
  --glass-bg: rgba(15, 23, 42, 0.7);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 212, 255, 0.015) 2px, rgba(0, 212, 255, 0.015) 4px);
  z-index: 1;
  pointer-events: none;
}

.ecosystem-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  overflow: hidden;
}

/* === HEADER === */
.main-header {
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
  margin-bottom: 40px;
}

.header-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.title-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--neon-green);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.header-logo {
  margin-bottom: 24px;
}

.header-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.15);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.25);
  }
}

.main-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.title-ai {
  display: block;
  color: var(--neon-blue);
  font-weight: 700;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.2);
}

.title-cyber {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
}

.title-year {
  display: block;
  font-size: 0.5em;
  color: var(--neon-purple);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  letter-spacing: 12px;
}

.subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 16px 28px;
  backdrop-filter: blur(10px);
}

.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--neon-blue);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* === LAYERS === */
.layer {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.layer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  opacity: 0.5;
}

.layer:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1), inset 0 0 30px rgba(0, 212, 255, 0.02);
}

.layer-highlight {
  border-color: rgba(0, 255, 136, 0.3);
}

.layer-highlight::before {
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
}

.layer-highlight:hover {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.layer-threat {
  border-color: rgba(255, 51, 102, 0.3);
}

.layer-threat::before {
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
}

.layer-threat:hover {
  border-color: rgba(255, 51, 102, 0.5);
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.1);
}

.layer-future {
  border-color: rgba(168, 85, 247, 0.3);
}

.layer-future::before {
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.layer-future:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
}

.layer-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.layer-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.15);
  line-height: 1;
  min-width: 70px;
}

.layer-title-block h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  letter-spacing: 0.5px;
}

.layer-highlight .layer-title-block h2 {
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.layer-threat .layer-title-block h2 {
  color: var(--neon-red);
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.layer-threat .layer-number {
  color: rgba(255, 51, 102, 0.15);
}

.layer-future .layer-title-block h2 {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.layer-future .layer-number {
  color: rgba(168, 85, 247, 0.15);
}

.layer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.layer-icon {
  width: 52px;
  height: 52px;
  color: var(--neon-blue);
  margin-left: auto;
  flex-shrink: 0;
  animation: iconFloat 3s ease-in-out infinite;
}

.ai-brain {
  color: var(--neon-green);
}

.threat-icon {
  color: var(--neon-red);
}

.future-icon {
  color: var(--neon-purple);
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* === COMPONENTS GRID === */
.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.component {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.component::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.component:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.1);
}

.component:hover::after {
  opacity: 1;
}

.comp-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--neon-blue);
}

.comp-icon svg {
  width: 100%;
  height: 100%;
}

.comp-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.comp-detail {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.ai-comp {
  background: rgba(0, 255, 136, 0.04);
  border-color: rgba(0, 255, 136, 0.12);
}

.ai-comp:hover {
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.1);
}

.ai-comp .comp-icon {
  color: var(--neon-green);
}

.threat-comp {
  background: rgba(255, 51, 102, 0.04);
  border-color: rgba(255, 51, 102, 0.12);
}

.threat-comp:hover {
  border-color: rgba(255, 51, 102, 0.35);
  box-shadow: 0 8px 25px rgba(255, 51, 102, 0.1);
}

.threat-comp .comp-icon {
  color: var(--neon-red);
}

.future-comp {
  background: rgba(168, 85, 247, 0.04);
  border-color: rgba(168, 85, 247, 0.12);
}

.future-comp:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.1);
}

.future-comp .comp-icon {
  color: var(--neon-purple);
}

/* === DATA FLOW BARS === */
.data-flow-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 8px;
  padding: 12px 20px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  position: relative;
}

.flow-particle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
  animation: flowPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.flow-green {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.flow-purple {
  background: var(--neon-purple);
  box-shadow: 0 0 10px var(--neon-purple);
}

@keyframes flowPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

/* === IDENTITY CONCEPTS & INFRA TAGS === */
.identity-concepts,
.infra-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.concept-tag,
.infra-tag {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--neon-cyan);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.concept-tag:hover,
.infra-tag:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.inline-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* === TELEMETRY FLOW === */
.telemetry-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.tel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.tel-dot.log {
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
}

.tel-dot.telemetry {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation-delay: 0.3s;
}

.tel-dot.alert {
  background: var(--neon-orange);
  box-shadow: 0 0 8px var(--neon-orange);
  animation-delay: 0.6s;
}

.tel-dot.response {
  background: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple);
  animation-delay: 0.9s;
}

.tel-arrow {
  color: var(--neon-blue);
  font-size: 18px;
  animation: arrowPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes arrowPulse {

  0%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }

  50% {
    opacity: 0.5;
    transform: translateX(4px);
  }
}

/* === NEURAL NET VISUAL === */
.neural-net-visual {
  margin-top: 20px;
  text-align: center;
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
}

.nn-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--neon-green);
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

#neuralCanvas {
  width: 100%;
  max-width: 800px;
  height: 120px;
}

/* === ATTACK VECTORS === */
.attack-vectors {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.attack-arrow {
  background: linear-gradient(90deg, var(--neon-red), transparent);
  padding: 8px 20px;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--neon-red);
  letter-spacing: 3px;
  animation: attackPulse 2s ease-in-out infinite;
}

@keyframes attackPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.attack-target {
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.2);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--neon-red);
}

/* === FUTURE SYMBOLS === */
.future-symbols {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.future-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--neon-purple);
}

.quantum-node {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--neon-purple);
  position: relative;
  animation: quantumSpin 4s linear infinite;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.quantum-node::before,
.quantum-node::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.quantum-node::before {
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  animation: quantumSpin 3s linear reverse infinite;
}

.quantum-node::after {
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  animation: quantumSpin 5s linear infinite;
}

@keyframes quantumSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.governance-shield {
  width: 44px;
  height: 52px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(0, 212, 255, 0.2));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  animation: shieldPulse 2s ease-in-out infinite;
}

@keyframes shieldPulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  }

  50% {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  }
}

/* === FOOTER === */
.ecosystem-footer {
  text-align: center;
  padding: 40px 20px 20px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.footer-line {
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.footer-org {
  margin-bottom: 20px;
}

.org-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--neon-blue);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  display: block;
  margin-bottom: 4px;
}

.org-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  text-decoration: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  transform: translateY(-3px);
}

/* Instagram */
.social-instagram {
  color: #e1306c;
}

.social-instagram:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.15);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.25);
}

/* LinkedIn */
.social-linkedin {
  color: #0a66c2;
}

.social-linkedin:hover {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.15);
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.25);
}

/* GitHub */
.social-github {
  color: #e6edf3;
}

.social-github:hover {
  border-color: #e6edf3;
  background: rgba(230, 237, 243, 0.1);
  box-shadow: 0 6px 20px rgba(230, 237, 243, 0.15);
}

/* Topmate */
.social-topmate {
  color: #6c5ce7;
}

.social-topmate:hover {
  border-color: #6c5ce7;
  background: rgba(108, 92, 231, 0.15);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
}

/* YouTube */
.social-youtube {
  color: #ff0000;
}

.social-youtube:hover {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.15);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.25);
}

.footer-sub {
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.6;
}

/* === SCROLL ANIMATION === */
.layer {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.layer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .components-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .layer-header {
    flex-wrap: wrap;
  }

  .layer-number {
    font-size: 36px;
    min-width: 50px;
  }

  .header-stats {
    gap: 16px;
  }

  .stat {
    padding: 12px 18px;
  }

  .stat-num {
    font-size: 24px;
  }

  .telemetry-flow {
    gap: 8px;
  }

  .social-links {
    gap: 12px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }
}