/* ==========================================================================
   Hero Profile Photo & Interactive Layout
   ========================================================================== */
.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-photo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.3), rgba(99, 102, 241, 0.1), rgba(255, 51, 102, 0.25));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.2);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-photo-wrap:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 240, 255, 0.35);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
}

/* Floating interactive badges on photo */
.photo-floating-badge {
  position: absolute;
  padding: 8px 14px;
  background: rgba(13, 17, 28, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: float-slow 4s ease-in-out infinite alternate;
}

.photo-badge-top {
  top: 14px;
  right: -16px;
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
}

.photo-badge-bottom {
  bottom: 20px;
  left: -18px;
  border-color: rgba(99, 102, 241, 0.4);
  animation-delay: -2s;
}

@keyframes float-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   AI CLONE "HEAR ABOUT ME" CINEMATIC EXPERIENCE
   ========================================================================== */

/* Floating Trigger Button in Bottom Right */
.clone-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(13, 17, 28, 0.94), rgba(7, 9, 14, 0.98));
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 240, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.clone-trigger-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(99, 102, 241, 0.3));
  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(0, 240, 255, 0.6);
  border-color: #fff;
}

/* Animated Equalizer Waves */
.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.sound-bar {
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: eq-pulse 1.2s ease-in-out infinite alternate;
}
.sound-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.sound-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 16px; animation-delay: 0.4s; }

@keyframes eq-pulse {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* Pitch Black Fullscreen Cinema Overlay */
.clone-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.clone-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Giant Kinetic Backdrop Word (Appears BEHIND clone) */
.clone-backdrop-word {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  font-family: var(--font-display);
  font-size: clamp(65px, 14vw, 210px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 240, 255, 0.18);
  text-shadow: 0 0 60px rgba(0, 240, 255, 0.18);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  opacity: 0;
  filter: blur(12px);
  user-select: none;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.clone-backdrop-word.is-visible {
  opacity: 0.85;
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1.04);
  animation: backdrop-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes backdrop-pulse {
  0% {
    -webkit-text-stroke-color: rgba(0, 240, 255, 0.22);
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
  }
  100% {
    -webkit-text-stroke-color: rgba(99, 102, 241, 0.35);
    text-shadow: 0 0 70px rgba(99, 102, 241, 0.28);
  }
}

/* Center Clone Container */
.clone-center-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  width: 100%;
  height: 100%;
  max-height: 94vh;
}

/* Clone Full-Body Hologram Container — Seamless Head-to-Toe Projection */
.clone-avatar-wrap {
  position: relative;
  width: clamp(260px, 32vw, 420px);
  height: clamp(380px, 58vh, 580px);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /* Seamless blend into pitch-black background with NO box outline */
  background: transparent;
}

/* Hologram Body Image & Video — Natural Screen Blend, No Borders */
.clone-avatar-img,
.clone-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  position: relative;
  z-index: 2;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.75)) drop-shadow(0 0 60px rgba(0, 240, 255, 0.45));
  transform-origin: center bottom;
  will-change: transform, filter;
}

.clone-video-element {
  display: none;
  background: transparent;
}

.clone-avatar-wrap.has-video .clone-video-element {
  display: block;
}

.clone-avatar-wrap.has-video .clone-avatar-img,
.clone-avatar-wrap.has-video .clone-lipsync-overlay {
  display: none;
}

.clone-avatar-img {
  animation: hologram-idle-sway 4.5s ease-in-out infinite alternate;
}

/* Realistic Lifelike Motion: subtle natural breathing, weight shifting on pedestal */
@keyframes hologram-idle-sway {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.7)) brightness(1);
  }
  30% {
    transform: translateY(-3px) rotate(0.4deg) scale(1.008);
  }
  65% {
    transform: translateY(-1px) rotate(-0.3deg) scale(0.996);
  }
  100% {
    transform: translateY(-4px) rotate(0.5deg) scale(1.012);
    filter: drop-shadow(0 0 35px rgba(0, 240, 255, 0.9)) drop-shadow(0 0 70px rgba(99, 102, 241, 0.5)) brightness(1.08);
  }
}

/* Active Speaking State: Energetic lifelike speech motion, gesturing cadence */
.clone-avatar-wrap.is-speaking .clone-avatar-img {
  animation: hologram-speaking-motion 1.8s ease-in-out infinite alternate;
}

@keyframes hologram-speaking-motion {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.85)) brightness(1.05);
  }
  25% {
    transform: translateY(-4px) rotate(0.6deg) scale(1.015);
  }
  50% {
    transform: translateY(-2px) rotate(-0.4deg) scale(1.008);
    filter: drop-shadow(0 0 45px rgba(0, 240, 255, 1)) drop-shadow(0 0 85px rgba(99, 102, 241, 0.65)) brightness(1.15);
  }
  75% {
    transform: translateY(-5px) rotate(0.8deg) scale(1.02);
  }
  100% {
    transform: translateY(-1px) rotate(-0.5deg) scale(1.01);
    filter: drop-shadow(0 0 35px rgba(0, 240, 255, 0.9)) brightness(1.1);
  }
}

/* Realistic Lip-Sync Mouth Articulation Overlay */
.clone-lipsync-overlay {
  position: absolute;
  top: 19%;
  left: 49.5%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 5px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.95) 0%, rgba(0, 240, 255, 0.4) 60%, transparent 100%);
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.9));
  transition: opacity 0.2s ease, transform 0.08s ease;
}

.clone-avatar-wrap.is-speaking .clone-lipsync-overlay {
  opacity: 0.85;
  animation: lipsync-chatter 0.22s ease-in-out infinite alternate;
}

@keyframes lipsync-chatter {
  0% {
    transform: translate(-50%, -50%) scaleX(0.8) scaleY(0.4);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scaleX(1.3) scaleY(1.4);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scaleX(1) scaleY(0.7);
    opacity: 0.7;
  }
}

/* Animated Holographic Scanlines Sweep */
.clone-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 240, 255, 0.15) 0px,
    rgba(0, 240, 255, 0.15) 1.5px,
    transparent 1.5px,
    transparent 5px
  );
  pointer-events: none;
  z-index: 3;
  opacity: 0.65;
  mix-blend-mode: screen;
  animation: scanlines-drift 6s linear infinite;
}

@keyframes scanlines-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(120px); }
}

/* Floor Pedestal Laser Ring and Projector Light Cone */
.clone-pedestal-laser {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.8);
  box-shadow:
    0 0 25px rgba(0, 240, 255, 0.8),
    inset 0 0 20px rgba(0, 240, 255, 0.6);
  z-index: 1;
  pointer-events: none;
  animation: laser-pedestal-pulse 2s ease-in-out infinite alternate;
}

@keyframes laser-pedestal-pulse {
  0% {
    transform: translateX(-50%) scale(0.96);
    opacity: 0.7;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
  }
  100% {
    transform: translateX(-50%) scale(1.03);
    opacity: 1;
    box-shadow: 0 0 35px rgba(0, 240, 255, 1), 0 0 60px rgba(99, 102, 241, 0.6);
  }
}

/* Volumetric Projector Beam Cone Shining Upward from the Base */
.clone-avatar-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 92%;
  background: linear-gradient(0deg, rgba(0, 240, 255, 0.3) 0%, rgba(0, 240, 255, 0.08) 55%, transparent 100%);
  clip-path: polygon(28% 100%, 72% 100%, 100% 0%, 0% 0%);
  pointer-events: none;
  z-index: 1;
  filter: blur(10px);
  animation: beam-flicker 2.5s ease-in-out infinite alternate;
}

/* Speaking Badge */
.clone-speaking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 22px;
}

.speaking-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 1s infinite alternate;
}

/* Subtitle Box Below Clone */
.clone-captions-box {
  min-height: 80px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  text-align: center;
  max-width: 820px;
  margin-bottom: 34px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  padding: 0 16px;
}

.caption-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: word-fade-in 0.3s ease forwards;
  margin-right: 0.28em;
}

.caption-complete {
  color: var(--accent-cyan);
  font-size: 18px;
  font-family: var(--font-mono);
  animation: word-fade-in 0.5s ease forwards;
}

@keyframes word-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Navigation Bar in Clone Mode */
.clone-top-bar {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.clone-mode-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

.clone-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clone-close-btn:hover {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}

/* Bottom Controls in Clone Mode */
.clone-bottom-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 20;
}

.clone-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clone-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--accent-cyan);
}

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions,
  .hero-status {
    justify-content: center;
  }
  .hero-photo-wrap {
    margin: 0 auto;
    max-width: 280px;
  }
}
