/* The "Breathe" Animation for Status Nodes */
@keyframes neon-pulse {
  0% {
    filter: drop-shadow(0 0 2px var(--primary-glow));
  }

  50% {
    filter: drop-shadow(0 0 10px var(--primary));
  }

  100% {
    filter: drop-shadow(0 0 2px var(--primary-glow));
  }
}

@keyframes circuit-glow {

  0%,
  100% {
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }

  50% {
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  }
}

@keyframes e-glow {

  0%,
  100% {
    text-shadow: 0 0 5px var(--primary-glow);
    opacity: 0.8;
  }

  50% {
    text-shadow: 0 0 15px var(--primary);
    opacity: 1;
  }
}

@keyframes trace-h {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

@keyframes trace-v {
  0% {
    top: -100%;
  }

  50%,
  100% {
    top: 100%;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -50;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse-green {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}


:root {
  --primary: #00f2fe;
  --secondary: #4facfe; /* Electric Blue */
  --bg: #0b0e14; /* Deep Sky */
  --card-bg: rgba(255, 255, 255, 0.05);
  --text: #e0e0e0;
  --primary-glow: rgba(0, 242, 254, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

h1,
h2,
.nav-logo {
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
  text-align: center;
}

h2 span #about {
  display: block;
  font-size: 3.5rem;
  line-height: 1.2;
}

strong {
  color: var(--primary);
}

/* Interactive Canvas Background */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.35;
}

/* --- eaimx main container --- */
.eaimx-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 30px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
.hud-navbar {
  display: flex;
  position: fixed;
  top: 20px;
  left: 50%;
  height: 70px;
  width: 90%;
  max-width: 1200px;
  z-index: 2000;
  padding: 0 30px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 100px;
  transform: translateX(-50%);
  background: rgba(15, 18, 24, 0.7);
  backdrop-filter: blur(15px);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Shrink navbar on scroll */
.hud-navbar.scrolled {
  top: 10px;
  height: 60px;
  width: 80%;
  background: rgba(15, 18, 24, 0.9);
}

.logo-container {
  display: block;
  justify-content: center;
  align-items: center;
  /* margin-bottom: 20px; */
}

.logo-text {
  display: flex;
  align-items: baseline;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 3px;
  font-size: 1.8rem;
  font-weight: 900;
  padding: 0 10px;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
  z-index: 10;
}

.e-brand {
  font-weight: 300;
  /* Light and fluid */
  color: var(--primary);
  /* Your signature Cyan */
  font-size: 1.2em;
  margin-right: 1px;
  /* Tighter integration with the AI */
  text-transform: lowercase;
  display: inline-block;
  animation: e-glow 5s infinite ease-in-out;
}

.ai-brand {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 3px;
  /* Spanned Roboto style */
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dot-com {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
  margin-left: 1px;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: 0.3s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.nav-logo {
  text-decoration: none;
}

.nav-cta {
  background: var(--primary);
  color: #000 !important;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: bold;
  opacity: 1 !important;
  box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary-glow);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-toggle:active {
  transform: scale(0.9) rotate(90deg);
  /* Visual feedback when tapped */
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  /* Hidden */
  width: 100%;
  height: 100vh;
  background: rgba(5, 7, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 3000;
  /* Must be higher than hud-navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active {
  right: 0;
  /* Slides in */
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: var(--primary);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.mobile-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
}


.circuit-box {
  position: relative;
  padding: 12px 25px;
  /* Increased horizontal padding to "span" the logo */
  border: 1px solid rgba(0, 242, 254, 0.05);
  background: rgba(0, 0, 0, 0.4);
  display: inline-flex;
  /* Subtle logo breathing effect */
  animation: circuit-glow 4s ease-in-out infinite;
  align-items: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.circuit-box:hover {
  border-color: var(--primary);
  box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.1);
}

/* --- The Animated Traces (Sequential Initialization) --- */
.trace {
  position: absolute;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: all 0.6s ease;
}

.t-top {
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  animation: trace-h 2s infinite 0.1s;
}

.t-right {
  right: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  animation: trace-v 2s infinite 0.6s;
}

.t-bottom {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 1px;
  animation: trace-h 2s infinite 1.1s;
}

.t-left {
  left: 0;
  bottom: -100%;
  width: 1px;
  height: 100%;
  animation: trace-v 2s infinite 1.6s;
}

.hero-subtitle {
  font-size: 1.6rem;
  color: var(--secondary);
  /* text-transform: uppercase; */
  letter-spacing: 4px;
  margin: 30px 0 20px 0px;
}

.hero-description {
  font-size: 1.1rem; max-width: 610px; margin-bottom: 40px;
}

.cta-button {
  padding: 15px 40px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 10px 20px rgba(0, 242, 254, 0.4);
}


.footer {
  text-align: center;
  padding: 50px;
  opacity: 0.6;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text); text-decoration: none; margin: 0 10px;
}

.lang-toggle-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 50px;
  display: flex;
  padding: 5px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 15px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  border-radius: 50px;
  transition: 0.3s;
  opacity: 0.5;
  letter-spacing: 1px;
}

.lang-btn.active {
  background: var(--primary);
  color: #000;
  opacity: 1;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.lang-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 5px 2px;
}



/* --- RESPONSIVE LOGIC: MOBILE (< 1024px) --- */
@media (max-width: 1023px) {

  .hud-navbar {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    
    /* Positioning to the Right for thumb-access */
    left: auto !important;
    right: 20px !important;
    top: 20px !important;
    transform: none !important;
    
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    background: rgba(15, 18, 24, 0.95);
    border: 0px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  }

  .hud-navbar .logo-container {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-toggle {
    /* Show hamburger icon */
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .mobile-menu-overlay {
    right: -100%;
    /* Starts off-screen to the right */
    left: auto;
  }

  .mobile-menu-overlay.active {
    right: 0;
    /* Slides in from the right */
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .lang-toggle-wrapper {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 599px) {
  h2 {
    font-size: 2rem;
    margin-bottom: 5px;
  }

  .lang-toggle-wrapper {
    bottom: 10px;
  }
}