/* ════════════════════════════════════════════════════════════════
   WORLD-DOMINATION UPGRADE EXTRA CSS
   Hero Aurora Enhancements + Skills + AI Widget +
   Hero Availability Badge + General Elite Polishes
════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   HERO: Availability Badge
───────────────────────────────────────────── */
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 30px;
  padding: 6px 14px 6px 8px;
  font-size: 12px;
  color: #4ade80;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  animation: slideInFromTop 0.6s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}

@keyframes slideInFromTop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.avail-pulse {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.avail-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34,197,94,0.35);
  animation: heroPing 1.8s ease infinite;
}
@keyframes heroPing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hero enhanced stats */
.hero-stats-enhanced {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-item-v2 {
  text-align: center;
}

.stat-num-v2 {
  font-size: 32px;
  font-weight: 900;
  color: #f0f0f0;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  background: linear-gradient(135deg, #fff 40%, rgba(163,207,43,0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label-v2 {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  font-family: 'Outfit', monospace;
  letter-spacing: 0.5px;
}

.stat-divider-v2 {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ────────────────────────────────────────────
   SKILLS CONSTELLATION
───────────────────────────────────────────── */
.skills-section {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

.skills-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(163,207,43,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.skills-constellation-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 60px auto 0;
}

.skills-svg {
  width: 100%;
  height: 500px;
  overflow: visible;
}

/* ── Domain Groups ── */
.skill-node {
  cursor: pointer;
  transition: all 0.3s;
}

.skill-node circle {
  transition: r 0.3s cubic-bezier(0.16,1,0.3,1), filter 0.3s;
}

.skill-node:hover circle {
  filter: brightness(1.4) drop-shadow(0 0 12px rgba(163,207,43,0.7));
}

.skill-node text {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  fill: rgba(255,255,255,0.7);
  pointer-events: none;
  transition: fill 0.3s;
}

.skill-node:hover text {
  fill: #fff;
}

/* ── Skill Tooltip ── */
.skill-tooltip {
  position: absolute;
  background: rgba(12,12,12,0.95);
  border: 1px solid rgba(163,207,43,0.3);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Cairo', sans-serif;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  min-width: 160px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.skill-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-tooltip h4 {
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 6px;
}

.skill-tooltip .skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.skill-tooltip .skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #a3cf2b, #00897b);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}

.skill-tooltip .skill-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* Skills grid fallback (mobile) */
.skills-grid-fallback {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.skill-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.skill-chip:hover {
  background: rgba(163,207,43,0.08);
  border-color: rgba(163,207,43,0.25);
  transform: translateY(-3px);
}

.skill-chip i {
  font-size: 20px;
  color: #a3cf2b;
  margin-bottom: 8px;
  display: block;
}

.skill-chip span {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-family: 'Outfit', sans-serif;
}

.skill-level-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.skill-level-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #a3cf2b, #00897b);
  border-radius: 3px;
}

@media (max-width: 600px) {
  .skills-svg { display: none; }
  .skills-grid-fallback { display: grid; }
}

/* ────────────────────────────────────────────
   AI ASSISTANT UPGRADE — Floating Panel
───────────────────────────────────────────── */
.cyberguard-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  left: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ai-trigger-orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(163,207,43,0.9), rgba(0,137,123,0.9));
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #0a0a0a;
  box-shadow:
    0 8px 32px rgba(163,207,43,0.35),
    0 0 0 0 rgba(163,207,43,0.4);
  animation: orbBreathing 3s ease infinite;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes orbBreathing {
  0%, 100% { box-shadow: 0 8px 32px rgba(163,207,43,0.35), 0 0 0 0 rgba(163,207,43,0.3); }
  50% { box-shadow: 0 8px 40px rgba(163,207,43,0.5), 0 0 0 12px rgba(163,207,43,0); }
}

.ai-trigger-orb:hover {
  transform: scale(1.1);
}

.ai-trigger-orb .orb-label {
  position: absolute;
  right: -6px;
  top: -6px;
  background: #a3cf2b;
  color: #0a0a0a;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 6px;
  font-family: 'Outfit', monospace;
  letter-spacing: 0.5px;
}

/* Chat Window */
.cyberguard-window {
  width: 340px;
  max-height: 450px;
  background: rgba(10,10,10,0.97);
  border: 1px solid rgba(163,207,43,0.25);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(163,207,43,0.1);
  animation: chatSlideIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(163,207,43,0.1), rgba(0,137,123,0.08));
  border-bottom: 1px solid rgba(163,207,43,0.12);
  flex-shrink: 0;
}

.cg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a3cf2b, #00897b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #0a0a0a;
  flex-shrink: 0;
}

.cg-meta { flex: 1; }

.cg-name {
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f0;
  display: block;
  font-family: 'Outfit', sans-serif;
}

.cg-status {
  font-size: 10.5px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.cg-status::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.cg-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s;
}
.cg-close:hover { color: #fff; }

/* Messages */
.cg-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(163,207,43,0.2) transparent;
  /* WebKit fallback */
}

.cg-messages::-webkit-scrollbar { width: 3px; }
.cg-messages::-webkit-scrollbar-track { background: transparent; }
.cg-messages::-webkit-scrollbar-thumb { background: rgba(163,207,43,0.2); border-radius: 3px; }

.cg-msg {
  max-width: 85%;
  font-size: 13px;
  line-height: 1.6;
  font-family: 'Cairo', sans-serif;
  animation: msgIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cg-msg.bot {
  background: rgba(163,207,43,0.08);
  border: 1px solid rgba(163,207,43,0.12);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.85);
  align-self: flex-start;
}

.cg-msg.user {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.75);
  align-self: flex-end;
}

/* Typing cursor in AI response */
.cg-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: #a3cf2b;
  margin-left: 2px;
  animation: blinkCursor 0.6s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blinkCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Quick Prompts */
.cg-quick-prompts {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}

.cg-quick-btn {
  background: rgba(163,207,43,0.08);
  border: 1px solid rgba(163,207,43,0.18);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  color: rgba(163,207,43,0.85);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}

.cg-quick-btn:hover {
  background: rgba(163,207,43,0.15);
  color: #a3cf2b;
}

/* Input */
.cg-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.cg-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 14px;
  color: #f0f0f0;
  font-size: 12.5px;
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.cg-input:focus { border-color: rgba(163,207,43,0.4); }
.cg-input::placeholder { color: rgba(255,255,255,0.25); }

.cg-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a3cf2b, #00897b);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.cg-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(163,207,43,0.35);
}

/* ── HIDDEN ── */
.cyberguard-window.hidden { display: none; }

/* Mobile adjustments */
@media (max-width: 500px) {
  .cyberguard-panel {
    right: 12px;
    left: auto;
    bottom: 80px; /* above mobile nav */
  }
  .cyberguard-window {
    width: calc(100vw - 24px);
  }
}
