/* =====================================================
   SYVELLIX HERO NETWORK (CLEAN & OPTIMIZED)
===================================================== */

/* Base Node/Card Styles */
.hero-service-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
  cursor: pointer;
}

.dark .hero-service-card {
  background: rgba(30, 30, 30, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Іконки: Світла тема (#00a478) */
.hero-service-card > i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 164, 120, 0.12);
  color: #00a478;
  font-size: 13px;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

/* Іконки: Темна тема (#ccff00) */
.dark .hero-service-card > i {
  background: rgba(204, 255, 0, 0.12);
  color: #ccff00;
}

/* Typography */
.hero-service-card h3 {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.dark .hero-service-card h3 {
  color: white;
}

.hero-service-card p {
  margin-top: 1px;
  font-size: 8px;
  line-height: 1.1;
  color: #6b7280;
}

/* Responsive Sizing */
@media (min-width: 640px) {
  .hero-service-card {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .hero-service-card > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
  }
  .hero-service-card h3 {
    font-size: 12px;
  }
  .hero-service-card p {
    font-size: 10px;
  }
}

@media (min-width: 1024px) {
  .hero-service-card {
    padding: 16px 20px;
    border-radius: 18px;
  }
  .hero-service-card > i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }
  .hero-service-card h3 {
    font-size: 14px;
  }
  .hero-service-card p {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .hero-service-card p {
    display: none;
  }
  .hero-service-card {
    padding: 6px 8px;
  }
}

/* Hover State */
@media (hover: hover) {
  .hero-service-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #00a478;
    box-shadow: 0 12px 30px rgba(0, 164, 120, 0.18);
  }
  .dark .hero-service-card:hover {
    border-color: #ccff00;
    box-shadow: 0 12px 30px rgba(204, 255, 0, 0.18);
  }
}

.network-node.dimmed {
  opacity: 0.35;
  transform: scale(0.97);
}

/* Core Glow & Animations */
.core-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 164, 120, 0.4), transparent 70%);
  filter: blur(15px);
  animation: corePulse 4s infinite ease-in-out;
  z-index: 0;
}

.dark .core-glow {
  background: radial-gradient(circle, rgba(204, 255, 0, 0.4), transparent 70%);
}

@keyframes corePulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.05);
  }
}

.core-card {
  animation: coreBreathing 5s ease-in-out infinite;
}

@keyframes coreBreathing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Syvellix Shine Effect */
.animate-shine {
  background-image: linear-gradient(
    90deg,
    #111827 35%,
    #00a478 50%,
    #111827 65%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 3s linear infinite;
  display: inline-block;
}

.dark .animate-shine {
  background-image: linear-gradient(
    90deg,
    #ffffff 35%,
    #ccff00 50%,
    #ffffff 65%
  );
}

@keyframes shine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Flying Dots & Impulses */
.flying-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  box-shadow:
    0 0 8px currentColor,
    0 0 12px currentColor;
  will-change: transform, opacity;
}

.animated-dash {
  stroke-dashoffset: 0;
  animation: dashMove 15s linear infinite;
}

@keyframes dashMove {
  from {
    stroke-dashoffset: 20;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.p-dot {
  opacity: 0;
}
.p-dot-1 {
  animation: moveImpulse1 3s ease-in-out infinite;
}
.p-dot-2 {
  animation: moveImpulse2 3.5s ease-in-out infinite 1s;
}
.p-dot-3 {
  animation: moveImpulse3 2.8s ease-in-out infinite 0.5s;
}
.p-dot-4 {
  animation: moveImpulse4 3.2s ease-in-out infinite 1.5s;
}
.p-dot-5 {
  animation: moveImpulse5 4s ease-in-out infinite 0.2s;
}
.p-dot-6 {
  animation: moveImpulse6 3.6s ease-in-out infinite 1.2s;
}

@keyframes moveImpulse1 {
  0% {
    cx: 30px;
    cy: 20%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    cx: 50px;
    cy: 50%;
    opacity: 0;
  }
}
@keyframes moveImpulse2 {
  0% {
    cx: 30px;
    cy: 50%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    cx: 50px;
    cy: 50%;
    opacity: 0;
  }
}
@keyframes moveImpulse3 {
  0% {
    cx: 30px;
    cy: 80%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    cx: 50px;
    cy: 50%;
    opacity: 0;
  }
}
@keyframes moveImpulse4 {
  0% {
    cx: 70px;
    cy: 20%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    cx: 50px;
    cy: 50%;
    opacity: 0;
  }
}
@keyframes moveImpulse5 {
  0% {
    cx: 70px;
    cy: 50%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    cx: 50px;
    cy: 50%;
    opacity: 0;
  }
}
@keyframes moveImpulse6 {
  0% {
    cx: 70px;
    cy: 80%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    cx: 50px;
    cy: 50%;
    opacity: 0;
  }
}
