/* ==========================================================================
   HEY, I'M ROHIT — ANIMATIONS & 3D EFFECTS (animation.css)
   Handles Preloader, Infinite Marquee, Ambient Glows, and Smooth 3D Motion
   ========================================================================== */

/* 1. Preloader Ring Rotation & Pulse */
@keyframes pulseSpin {
  0% {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
  }
  50% {
    transform: rotate(180deg) scale(1.06);
    box-shadow: 0 0 42px rgba(139, 92, 246, 0.7);
  }
  100% {
    transform: rotate(360deg) scale(1);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
  }
}

/* 2. Status Dot Breathing Pulse */
@keyframes statusPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

.status-dot {
  animation: statusPulse 2s ease-in-out infinite;
}

/* 3. Ambient Floating Orbs */
@keyframes floatOrbOne {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(35px, 45px) scale(1.12);
  }
}

@keyframes floatOrbTwo {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, -35px) scale(1.15);
  }
}

.orb-blue {
  animation: floatOrbOne 14s ease-in-out infinite;
}

.orb-purple {
  animation: floatOrbTwo 16s ease-in-out infinite;
}

/* 4. Infinite Right-to-Left Logo Slider (Seamless Loop, Zero Gaps) */
@keyframes infiniteMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* 5. Main Card Entrance Animation */
@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.identity-card {
  animation: cardEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 6. Staggered Scroll / Load Reveal for Sections */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 7. Subtle 3D Tilt & Shimmer Polish */
.tilt-element {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s ease-out, box-shadow 0.3s ease;
}

/* Shimmer sweep on primary gradient buttons */
.btn-primary-gradient,
.agency-btn {
  position: relative;
  overflow: hidden;
}

.btn-primary-gradient::after,
.agency-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.24),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.btn-primary-gradient:hover::after,
.agency-btn:hover::after {
  left: 140%;
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none !important;
  }
}
