/* Axencia.co — Hero: World-Class 3D + Real-time + Lightweight */

/* 3D Perspective container */
.hero.hero-page-header {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-page-header .hero-content {
  transform-style: preserve-3d;
  animation: heroContent3DFloat 12s ease-in-out infinite;
}

@keyframes heroContent3DFloat {
  0%, 100% { transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateZ(0); }
  25% { transform: perspective(1200px) rotateX(0.5deg) rotateY(-0.5deg) translateZ(8px); }
  50% { transform: perspective(1200px) rotateX(-0.3deg) rotateY(0.5deg) translateZ(4px); }
  75% { transform: perspective(1200px) rotateX(0.5deg) rotateY(0.3deg) translateZ(6px); }
}

/* Live badge — real-time indicator */
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  animation: heroLiveBadgePulse 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.hero-live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: heroLiveDotPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

@keyframes heroLiveBadgePulse {
  0%, 100% { border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 0 20px rgba(34, 197, 94, 0.12); }
  50% { border-color: rgba(34, 197, 94, 0.55); box-shadow: 0 0 24px rgba(34, 197, 94, 0.18); }
}

@keyframes heroLiveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* 3D floating orbs — lightweight */
.hero-3d-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.hero-3d-orb-1 {
  width: 80px;
  height: 80px;
  top: 15%;
  left: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  animation: hero3DOrb1 14s ease-in-out infinite;
}

.hero-3d-orb-2 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  right: 12%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation: hero3DOrb2 16s ease-in-out infinite 2s;
}

.hero-3d-orb-3 {
  width: 40px;
  height: 40px;
  top: 40%;
  right: 25%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  animation: hero3DOrb3 18s ease-in-out infinite 4s;
}

@keyframes hero3DOrb1 {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0deg); opacity: 0.5; }
  50% { transform: translate3d(15px, -20px, 15px) rotateY(90deg); opacity: 0.8; }
}

@keyframes hero3DOrb2 {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg); opacity: 0.4; }
  50% { transform: translate3d(-18px, -15px, 12px) rotateX(90deg); opacity: 0.7; }
}

@keyframes hero3DOrb3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate3d(10px, 15px, -10px) scale(1.1); opacity: 0.6; }
}

/* Title gradient flow */
.hero-page-header .hero-title-unified {
  background-size: 200% auto;
  animation: heroTitleGradientFlow 6s ease-in-out infinite;
}

@keyframes heroTitleGradientFlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Stats — real-time pulse */
.hero-stats-compact .stat {
  position: relative;
  animation: heroStatPulse 4s ease-in-out infinite;
}

.hero-stats-compact .stat:nth-child(1) { animation-delay: 0s; }
.hero-stats-compact .stat:nth-child(2) { animation-delay: 0.5s; }
.hero-stats-compact .stat:nth-child(3) { animation-delay: 1s; }

@keyframes heroStatPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.95; }
}

/* Scroll indicator — bounce */
.hero-page-header .scroll-indicator {
  animation: heroScrollBounce 2.5s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 1; }
}

.hero-page-header .scroll-line {
  animation: heroScrollLinePulse 2s ease-in-out infinite;
}

@keyframes heroScrollLinePulse {
  0%, 100% { height: 24px; opacity: 0.6; }
  50% { height: 32px; opacity: 1; }
}

/* Staggered entrance */
.hero-page-header .hero-content .section-tag {
  animation: heroStaggerIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-page-header .hero-title-unified {
  animation: heroStaggerIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both, heroTitleGradientFlow 6s ease-in-out infinite 1s;
}

.hero-page-header .hero-desc {
  animation: heroStaggerIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-page-header .hero-actions {
  animation: heroStaggerIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-page-header .hero-stats-compact {
  animation: heroStaggerIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

@keyframes heroStaggerIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animated ticker — lightweight marquee */
.hero-ticker-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  margin: 20px auto 28px;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  animation: heroStaggerIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation: heroTickerScroll 20s linear infinite;
  white-space: nowrap;
}

.hero-ticker-track span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(147, 197, 253, 0.7);
}

.hero-ticker-track span:nth-child(odd) { color: rgba(96, 165, 250, 0.9); }

@keyframes heroTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-page-header .hero-content,
  .hero-3d-orb,
  .hero-page-header .hero-title-unified,
  .hero-stats-compact .stat,
  .hero-page-header .scroll-indicator,
  .hero-page-header .scroll-line,
  .hero-ticker-track {
    animation: none !important;
  }
}
