/* AgentX Projects hub */

/* Portfolio browser windows (same as main site) */
.site-win {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid rgba(0, 200, 83, 0.28);
  border-radius: 10px; overflow: hidden;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 18px rgba(0, 200, 83, 0.08);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.site-win:hover {
  border-color: rgba(0, 200, 83, 0.75);
  box-shadow: 0 0 28px rgba(0, 200, 83, 0.22);
  transform: translateY(-3px);
}
.site-win__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(0, 59, 24, 0.55);
  border-bottom: 1px solid rgba(0, 200, 83, 0.25);
  font-family: 'Fira Code', monospace;
}
.site-win__dots { display: flex; gap: 5px; flex-shrink: 0; }
.site-win__dots i {
  display: block; width: 8px; height: 8px; border-radius: 50%;
}
.site-win__dots i:nth-child(1) { background: #FF1744; }
.site-win__dots i:nth-child(2) { background: #eab308; }
.site-win__dots i:nth-child(3) { background: #00C853; }
.site-win__url {
  flex: 1; min-width: 0;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 200, 83, 0.2);
  font-size: 10px; color: rgba(0, 200, 83, 0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-win__view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050505;
}
.site-win__view img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .45s ease;
}
.site-win:hover .site-win__view img { transform: scale(1.03); }
.site-win__label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 200, 83, 0.18);
  font-family: 'Fira Code', monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(0, 200, 83, 0.65);
}
.site-win:hover .site-win__label { color: #00C853; }

.agent-visual {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}

.agent-visual__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
}

.agent-visual__ring--1 {
  animation: agent-spin 8s linear infinite;
}

.agent-visual__ring--2 {
  inset: 10px;
  animation: agent-spin-rev 12s linear infinite;
}

.agent-visual__core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.12), transparent 55%);
  z-index: 2;
}

.agent-visual__core svg {
  width: 2.5rem;
  height: 2.5rem;
}

.agent-visual__scan {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
}

.agent-visual__scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, currentColor, transparent);
  animation: agent-scan 3s ease-in-out infinite;
}

.agent-visual__particles {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.5;
}

.agent-visual__particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  animation: agent-float 4s ease-in-out infinite;
}

.agent-visual--green .agent-visual__ring--1 {
  border-color: rgba(0, 200, 83, 0.55);
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.25);
}
.agent-visual--green .agent-visual__ring--2 {
  border-color: rgba(0, 200, 83, 0.25);
}
.agent-visual--green .agent-visual__core {
  border: 1px solid rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 30px rgba(0, 200, 83, 0.35), inset 0 0 20px rgba(0, 200, 83, 0.08);
  color: #00C853;
}
.agent-visual--green .agent-visual__scan { color: #00C853; }
.agent-visual--green .agent-visual__particles span { background: #00C853; }

.agent-visual--blue .agent-visual__ring--1 {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}
.agent-visual--blue .agent-visual__ring--2 {
  border-color: rgba(59, 130, 246, 0.25);
}
.agent-visual--blue .agent-visual__core {
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.35), inset 0 0 20px rgba(59, 130, 246, 0.08);
  color: #3B82F6;
}
.agent-visual--blue .agent-visual__scan { color: #3B82F6; }
.agent-visual--blue .agent-visual__particles span { background: #3B82F6; }

.agent-visual--red .agent-visual__ring--1 {
  border-color: rgba(255, 23, 68, 0.55);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.25);
}
.agent-visual--red .agent-visual__ring--2 {
  border-color: rgba(255, 23, 68, 0.25);
}
.agent-visual--red .agent-visual__core {
  border: 1px solid rgba(255, 23, 68, 0.5);
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.35), inset 0 0 20px rgba(255, 23, 68, 0.08);
  color: #FF1744;
}
.agent-visual--red .agent-visual__scan { color: #FF1744; }
.agent-visual--red .agent-visual__particles span { background: #FF1744; }

@keyframes agent-spin {
  to { transform: rotate(360deg); }
}
@keyframes agent-spin-rev {
  to { transform: rotate(-360deg); }
}
@keyframes agent-scan {
  0%, 100% { top: -40%; }
  50% { top: 100%; }
}
@keyframes agent-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(4px, -6px); opacity: 1; }
}

.cyber-border-blue {
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1), inset 0 0 10px rgba(59, 130, 246, 0.05);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}
.cyber-border-blue:hover {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.cyber-border-gold {
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.12), inset 0 0 10px rgba(255, 215, 0, 0.05);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}
.cyber-border-gold:hover {
  border-color: rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.2);
}

.demo-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.demo-card:hover {
  transform: translateY(-3px);
}

.zing-visual {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #000;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.25);
  animation: zing-pulse 3s ease-in-out infinite;
}

@keyframes zing-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.45); }
}


