/* ===== KEYFRAMES ===== */
@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
  50%       { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
}

@keyframes float-x {
  0%, 100% { transform: translateX(0px) rotate(var(--rot, 0deg)); }
  50%       { transform: translateX(15px) rotate(var(--rot, 0deg)); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--color-primary-glow); }
  50%       { box-shadow: 0 0 50px var(--color-primary-glow), 0 0 80px rgba(0, 200, 255, 0.15); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== 3D FLOATING SHAPES (Hero) ===== */
.shape {
  position: absolute;
  border-radius: var(--radius-md);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.shape-1 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(123, 47, 190, 0.1));
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 24px;
  top: 15%;
  right: 8%;
  --rot: 15deg;
  transform: rotate(15deg);
  animation: float-y 6s ease-in-out infinite alternate;
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.1);
}

.shape-2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.15), rgba(123, 47, 190, 0.1));
  border: 1px solid rgba(255, 51, 102, 0.2);
  border-radius: 50%;
  top: 55%;
  right: 20%;
  animation: float-x 5s ease-in-out infinite alternate;
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.1);
}

.shape-3 {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.15), rgba(0, 200, 255, 0.08));
  border: 1px solid rgba(123, 47, 190, 0.25);
  border-radius: 50%;
  top: 30%;
  right: 30%;
  --rot: -20deg;
  transform: rotate(-20deg);
  animation: float-y 8s ease-in-out 1s infinite alternate;
}

.shape-4 {
  width: 60px;
  height: 60px;
  background: rgba(0, 200, 255, 0.12);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 12px;
  bottom: 25%;
  right: 10%;
  --rot: 30deg;
  transform: rotate(30deg);
  animation: float-x 4s ease-in-out 0.5s infinite alternate;
}

.shape-5 {
  width: 220px;
  height: 220px;
  background: transparent;
  border: 1px solid rgba(0, 200, 255, 0.08);
  border-radius: 50%;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  animation: ring-rotate 20s linear infinite;
}

/* Hero animated gradient title */
.hero-title-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-primary));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Hero entrance */
.hero-content > * {
  animation: fade-in-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content .hero-eyebrow  { animation-delay: 0.1s; }
.hero-content .hero-title    { animation-delay: 0.25s; }
.hero-content .hero-desc     { animation-delay: 0.4s; }
.hero-content .hero-actions  { animation-delay: 0.55s; }

/* Pulsing core */
.hk-core { animation: pulse-glow 3s ease-in-out infinite; }
