/* ApexLook - Animation Styles */

/* ============================================
   FLOATING ANIMATION (Hero Cards)
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delay-1 {
    animation: float 3s ease-in-out infinite 0.5s;
}

.animate-float-delay-2 {
    animation: float 3s ease-in-out infinite 1s;
}

.animate-float-delay-3 {
    animation: float 3s ease-in-out infinite 1.5s;
}

/* ============================================
   INFINITE LOGO SCROLL
   ============================================ */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-slider {
    animation: scroll-logos 20s linear infinite;
}

.logo-slider:hover {
    animation-play-state: paused;
}

/* ============================================
   PROGRESS CIRCLE DRAW
   ============================================ */
@keyframes draw-circle {
    from { stroke-dashoffset: 251.2; }
}

.progress-circle {
    stroke-dasharray: 251.2;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.animate-draw-circle {
    animation: draw-circle 1.5s ease-out forwards;
}

/* ============================================
   FADE IN SLIDE UP
   ============================================ */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

/* Initial hidden state */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.animate-visible {
    animation: fade-in-up 0.6s ease-out forwards;
}

/* ============================================
   STAGGERED CHILDREN ANIMATION
   ============================================ */
[data-stagger] > *:nth-child(1) { animation-delay: 0ms; }
[data-stagger] > *:nth-child(2) { animation-delay: 100ms; }
[data-stagger] > *:nth-child(3) { animation-delay: 200ms; }
[data-stagger] > *:nth-child(4) { animation-delay: 300ms; }
[data-stagger] > *:nth-child(5) { animation-delay: 400ms; }
[data-stagger] > *:nth-child(6) { animation-delay: 500ms; }

/* ============================================
   STAR ROTATION
   ============================================ */
@keyframes rotate-star {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-rotate-star {
    animation: rotate-star 20s linear infinite;
}

/* ============================================
   ORBIT ANIMATION (Testimonial Avatars)
   ============================================ */
@keyframes orbit {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-5px) scale(1.02); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(5px) scale(0.98); }
}

.animate-orbit {
    animation: orbit 4s ease-in-out infinite;
}

.animate-orbit-delay-1 {
    animation: orbit 4s ease-in-out infinite 0.5s;
}

.animate-orbit-delay-2 {
    animation: orbit 4s ease-in-out infinite 1s;
}

.animate-orbit-delay-3 {
    animation: orbit 4s ease-in-out infinite 1.5s;
}

/* ============================================
   PULSE ANIMATION
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   SLIDE IN FROM LEFT
   ============================================ */
@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slide-in-left 0.6s ease-out forwards;
}

/* ============================================
   SLIDE IN FROM RIGHT
   ============================================ */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.6s ease-out forwards;
}

/* ============================================
   SCALE IN
   ============================================ */
@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.4s ease-out forwards;
}

/* ============================================
   BOUNCE IN
   ============================================ */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.animate-bounce-in {
    animation: bounce-in 0.6s ease-out forwards;
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.counter {
    display: inline-block;
}

/* ============================================
   HOVER LIFT EFFECT
   ============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ARROW SLIDE ON HOVER
   ============================================ */
.arrow-slide {
    transition: transform 0.3s ease;
}

.group:hover .arrow-slide,
.arrow-slide-parent:hover .arrow-slide {
    transform: translateX(8px);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .logo-slider {
        animation: none;
    }

    .animate-float,
    .animate-float-delay-1,
    .animate-float-delay-2,
    .animate-float-delay-3 {
        animation: none;
    }

    .animate-rotate-star {
        animation: none;
    }

    .animate-orbit,
    .animate-orbit-delay-1,
    .animate-orbit-delay-2,
    .animate-orbit-delay-3 {
        animation: none;
    }
}

@keyframes float-x {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-22px);
    }
    100% {
        transform: translateX(0);
    }
}

.animate-float-x {
    animation: float-x 3s ease-in-out infinite;
}
