﻿/* ================================================================
   TRANSCENDENT VENTURES — Visual Enhancements
   Human-relatable photos, 3D effects, AI-themed elements
   ================================================================ */

/* ── Floating Metric Cards (hero) ──────────────────────────────── */
.tv-metric-card {
  position: absolute;
  background: rgba(13,13,26,0.85);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(139,92,246,0.1);
  z-index: 3; pointer-events: none;
  animation: tv-float 5s ease-in-out infinite;
}
.tv-metric-card:nth-child(2) { animation-delay: -2s; animation-duration: 6.5s; }
.tv-metric-card:nth-child(3) { animation-delay: -1s; animation-duration: 5.8s; }
.tv-metric-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em;
  background: linear-gradient(135deg, #8B5CF6, #60A5FA);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1;
}
.tv-metric-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #A0A0B8; margin-top: 0.25rem;
}
.tv-metric-trend {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; color: #34D399;
  margin-top: 0.4rem;
}
.tv-metric-trend::before { content: '↑'; }

/* ── Photo Card (human context) ────────────────────────────────── */
.tv-photo-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.tv-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.4s;
}
.tv-photo-card:hover img { transform: scale(1.06); filter: brightness(0.85) saturate(1.1); }
.tv-photo-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,15,0.85) 0%, transparent 60%);
}
.tv-photo-caption {
  position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  z-index: 2; color: #fff;
}
.tv-photo-caption h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.tv-photo-caption p { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 0.2rem; }

/* ── 3D Tilt Card (CSS perspective) ───────────────────────────── */
.tv-3d-tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  transform: perspective(1000px) rotateX(0) rotateY(0);
}
.tv-3d-tilt .tv-3d-layer {
  transform: translateZ(20px);
}
.tv-3d-tilt .tv-3d-layer-deep {
  transform: translateZ(40px);
}

/* ── Isometric "Data" Illustration ────────────────────────────── */
.tv-iso-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.tv-iso-box {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(96,165,250,0.3));
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 16px;
  position: absolute;
  animation: tv-iso-spin 8s linear infinite;
  box-shadow: 0 0 30px rgba(139,92,246,0.2);
}
.tv-iso-box:nth-child(2) {
  width: 56px; height: 56px; animation-delay: -2s; animation-duration: 6s;
  background: linear-gradient(135deg, rgba(96,165,250,0.4), rgba(139,92,246,0.3));
}
.tv-iso-box:nth-child(3) {
  width: 36px; height: 36px; animation-delay: -4s; animation-duration: 4s;
  background: linear-gradient(135deg, rgba(167,139,250,0.5), rgba(96,165,250,0.4));
}
@keyframes tv-iso-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(0.85); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ── Human Feature Strip (Nairobi team context) ─────────────────── */
.tv-human-strip {
  display: flex; gap: 1.5rem; align-items: stretch;
  overflow-x: auto; padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.tv-human-strip::-webkit-scrollbar { display: none; }
.tv-human-card {
  flex: 0 0 260px; border-radius: 20px; overflow: hidden;
  position: relative; background: var(--glass); border: 1px solid var(--glass-b);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
}
.tv-human-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(139,92,246,0.15); }
.tv-human-card img {
  width: 100%; height: 200px; object-fit: cover;
  filter: grayscale(20%) brightness(0.8);
  transition: filter 0.4s;
}
.tv-human-card:hover img { filter: grayscale(0%) brightness(0.9); }
.tv-human-card-info { padding: 1.25rem; }
.tv-human-card-info h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; }
.tv-human-card-info p { font-size: 0.8rem; color: var(--grey); margin-top: 0.25rem; }

/* ── AI Brain SVG animation ─────────────────────────────────── */
.tv-ai-brain {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.tv-ai-brain svg { width: 100%; height: 100%; }
.tv-brain-node {
  fill: rgba(139,92,246,0.8);
  animation: tv-node-pulse 3s ease-in-out infinite;
}
.tv-brain-node:nth-child(2n) { animation-delay: -1s; fill: rgba(96,165,250,0.7); }
.tv-brain-node:nth-child(3n) { animation-delay: -2s; fill: rgba(167,139,250,0.6); }
@keyframes tv-node-pulse {
  0%,100% { r: 5; opacity: 0.8; }
  50%      { r: 8; opacity: 1; }
}
.tv-brain-connection { stroke: rgba(139,92,246,0.2); stroke-width: 1; animation: tv-conn-flash 4s ease-in-out infinite; }
.tv-brain-connection:nth-child(2n) { animation-delay: -1.5s; stroke: rgba(96,165,250,0.15); }
@keyframes tv-conn-flash {
  0%,100% { opacity: 0.2; }
  50%      { opacity: 0.7; }
}

/* ── Cinematic photo hero overlay ───────────────────────────── */
.tv-hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.tv-hero-photo.loaded { opacity: 0.12; }

/* ── Workflow diagram (SVG lines) ───────────────────────────── */
.tv-workflow {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  padding: 1.5rem;
  font-size: 0.82rem;
  font-family: 'Space Grotesk', sans-serif;
}
.tv-workflow-step {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--glass-b);
  color: #CBD5E1;
  position: relative;
}
.tv-workflow-step:last-child { border-bottom: none; }
.tv-workflow-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal-glow);
  animation: pulse 2s ease-in-out infinite;
}
.tv-workflow-dot.done { background: #34D399; box-shadow: 0 0 10px rgba(52,211,153,0.4); animation: none; }
.tv-workflow-dot.pending { background: var(--grey-dark); box-shadow: none; animation: none; }
.tv-workflow-status {
  margin-left: auto; font-size: 0.68rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 100px;
}
.tv-status-done { background: rgba(52,211,153,0.15); color: #34D399; }
.tv-status-live { background: rgba(139,92,246,0.15); color: #8B5CF6; }
.tv-status-next { background: rgba(160,160,184,0.1); color: #A0A0B8; }

/* ── Abstract data grid background ─────────────────────────── */
.tv-data-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(139,92,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Glowing avatar ring (team) ─────────────────────────────── */
.tv-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.3rem; color: var(--white);
  position: relative; flex-shrink: 0;
}
.tv-avatar::after {
  content: '';
  position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--teal), var(--gold)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
}
.tv-avatar-purple { background: linear-gradient(135deg, #7C3AED, #4F46E5); }
.tv-avatar-blue   { background: linear-gradient(135deg, #2563EB, #0EA5E9); }
.tv-avatar-teal   { background: linear-gradient(135deg, #0891B2, #8B5CF6); }
.tv-avatar-rose   { background: linear-gradient(135deg, #BE185D, #7C3AED); }

/* ── Responsive ─────────────────────────────────────────────── */

  .tv-human-card { flex: 0 0 220px; }
  .tv-iso-box { width: 60px; height: 60px; }
}

/* Metric cards — only show on very wide screens to prevent overlap */
.tv-metric-card { display: none; }
@media (min-width: 1200px) {
  .tv-metric-card { display: block; }
}