/* ==========================================================================
   Parthmax.tech — Visual Stage Component (voice-stage.css)
   Portrait card, electric blue box backdrop, handwritten notes, & badges
   ========================================================================== */

.hero-visual-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  perspective: 1000px;
}

/* Electric Blue Backdrop Card (Vibrant Angled Card) */
.blue-backdrop-card {
  position: absolute;
  width: 320px;
  height: 380px;
  background: linear-gradient(135deg, #1557ff 0%, #0047e0 100%);
  border-radius: 28px;
  transform: rotate(5.5deg) translate(10px, -6px);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(21, 87, 255, 0.26);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  transform-style: preserve-3d;
}

/* Main Portrait Card Wrapper */
.portrait-card-wrap {
  position: relative;
  z-index: 3;
  width: 300px;
  height: 360px;
  background: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.portrait-card-wrap:hover {
  transform: rotate(-1deg) scale(1.02);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.portrait-card-wrap:hover .portrait-photo {
  transform: scale(1.02);
}

/* Handwritten Note Annotations */
.handwritten-note {
  position: absolute;
  z-index: 5;
  font-family: var(--hand);
  line-height: 1.1;
  color: #52525b;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.top-note {
  top: -15px;
  right: -10px;
  font-size: 21px;
  transform: rotate(3deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hw-underline {
  width: 80px;
  margin-top: 2px;
}

.bottom-note {
  bottom: -20px;
  right: -25px;
  font-size: 19px;
  transform: rotate(-2deg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* Floating Badge: Building at Zencia AI */
.floating-badge-zencia {
  position: absolute;
  left: -20px;
  top: 47%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-badge-zencia:hover {
  transform: translateY(-52%) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12); }
}

.zencia-badge-text {
  display: flex;
  flex-direction: column;
}

.zencia-badge-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: #6b7280;
  line-height: 1.1;
}

.zencia-badge-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: #090909;
  line-height: 1.2;
}

/* Capabilities Card with Micro-Interactions */
.floating-capabilities-card {
  position: absolute;
  right: -28px;
  top: 40%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-capabilities-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.cap-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s ease, color 0.15s ease;
}

.cap-item:hover {
  background: rgba(21, 87, 255, 0.08);
  color: var(--blue);
}

.cap-icon {
  color: #374151;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.cap-item:hover .cap-icon {
  color: var(--blue);
}

.cap-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  opacity: 0;
  pointer-events: none;
  background: #090909;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.cap-item:hover .cap-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.mini-waveform {
  display: none;
  align-items: center;
  gap: 2px;
  height: 12px;
  margin-left: auto;
}

.cap-item:hover .mini-waveform {
  display: inline-flex;
}

.mini-waveform span {
  width: 2px;
  height: 100%;
  background: var(--blue);
  border-radius: 1px;
  animation: waveBar 0.6s infinite ease-in-out alternate;
}

.mini-waveform span:nth-child(2) { animation-delay: 0.15s; }
.mini-waveform span:nth-child(3) { animation-delay: 0.3s; }
.mini-waveform span:nth-child(4) { animation-delay: 0.45s; }

@keyframes waveBar {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

@media (max-width: 980px) {
  .hero-visual-stage {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .floating-capabilities-card,
  .handwritten-note {
    display: none;
  }
}
