/* --- THEME DEFINITIONS --- */
.theme-firenet {
  --fire-orange: #ff4500;
  --glass-tint: rgba(255, 69, 0, 0.02);
}

.theme-flame {
  --fire-orange: #eca739;
  --glass-tint: rgba(255, 0, 60, 0.03);
}

.theme-mediflame {
  --fire-orange: #00ffff;
  --glass-tint: rgba(255, 0, 60, 0.03);
}

/* --- CORE LAYOUT --- */
body {
  background-color: #0b0d12;
  color: #fff;
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.main-wrapper {
  position: relative;
  z-index: 10;
}

/* --- BRANDING --- */
.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.firenet-text {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(to bottom, #ffffff 30%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.agent-label {
  background: #302d40;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  text-transform: uppercase;
  border: 1px solid #4c4e63;
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 2px;
}

/* --- GRID SYSTEM --- */
.columns.is-multiline {
  display: flex;
  flex-wrap: wrap;
}

.column {
  display: flex;
}

/* --- GLASS CARD --- */
.glass-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--glass-tint);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  gap: 10px;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 25px rgba(var(--fire-orange), 0.15);
}

/* --- THE CHECKED GRID PATTERN INSIDE CARDS --- */
.card-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 120, 120, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 120, 120, 0.1) 1px, transparent 1px);
  background-size: 25px 25px;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 20%,
    transparent 85%
  );
  opacity: 0.8;
}

/* --- VISUALS & COLORED RINGS --- */
.visual-container {
  width: 100px;
  height: 100px;
  margin: auto 0;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Theme Colored Pulse Ring */
.visual-container::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid var(--fire-orange);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse-ring 4s ease-in-out infinite;
}

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

.mono-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--fire-orange);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.card-title {
  font-weight: 600 !important;
  font-size: clamp(1.1rem, 2.8vw, 1.3rem) !important;
  line-height: 1.4;
  color: #bbbcbd !important;
  margin-top: auto;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- FLAME ANIMATIONS --- */
@keyframes core-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px var(--fire-orange);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 30px var(--fire-orange);
  }
}

@keyframes helix-spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes neural-spike {
  0%,
  100% {
    height: 5px;
    opacity: 0.3;
  }
  50% {
    height: 40px;
    opacity: 1;
  }
}

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

.visual-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform-origin: center;
}

@keyframes orbit-nodes {
  from {
    transform: rotate(0deg) translateX(25px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(25px) rotate(-360deg);
  }
}

/* MediFlame Animations */
@keyframes scan-radar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse-vitals {
  0%,
  100% {
    height: 10px;
    opacity: 0.5;
  }
  50% {
    height: 40px;
    opacity: 1;
  }
}
@keyframes float-node {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(3px, -3px);
  }
}

/* --- MOBILE RESPONSIVE MODE --- */
@media (max-width: 768px) {
  body {
    padding: 0.5rem 1rem !important;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
  .visual-container {
    margin: 30px 0;
  }
  .card-title {
    min-height: auto;
  }
}
