/* ============================================
   LaunchPad - Animations Stylesheet
   Includes: Scroll animations, hover effects,
   transitions, and keyframe animations
   ============================================ */

/* ============================================
   Fade In Animations
   ============================================ */
.animate-fadeInUp {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fadeInUp.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fadeInLeft {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fadeInLeft.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fadeInRight {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fadeInRight.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animation Delays */
.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; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   Floating Animation (Hero Shapes)
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-bg-shapes .shape-1 {
    animation: float 8s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
    animation: float 6s ease-in-out infinite 1s;
}

.hero-bg-shapes .shape-3 {
    animation: float 10s ease-in-out infinite 2s;
}

/* ============================================
   Pulse Animation (for badges, icons)
   ============================================ */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(108, 92, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

.hero-badge {
    animation: pulse 2s infinite;
}

/* ============================================
   Shimmer Effect (Loading)
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   Button Hover Effects
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn i {
    transition: transform var(--transition-normal);
}

.btn:hover i.fa-arrow-right {
    transform: translateX(3px);
}

/* ============================================
   Card Hover Effects
   ============================================ */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card {
    position: relative;
}

.feature-card:hover::before {
    opacity: 1;
}

/* ============================================
   Step Card Hover Effect
   ============================================ */
.step-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

/* ============================================
   Testimonial Card Effect
   ============================================ */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-light);
    opacity: 0.15;
    line-height: 1;
}

/* ============================================
   Smooth Scroll Indicator
   ============================================ */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   Rotate Animation (Spinner)
   ============================================ */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Counter Animation Placeholder
   Counters are animated via JavaScript
   ============================================ */

/* ============================================
   CTA Section Parallax-like Effect
   ============================================ */
.cta-section {
    background-attachment: scroll;
}

@supports (background-attachment: fixed) {
    .cta-section {
        background-attachment: fixed;
    }
}

/* ============================================
   Nav Link Underline Effect
   ============================================ */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* ============================================
   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;
    }

    .animate-fadeInUp,
    .animate-fadeInLeft,
    .animate-fadeInRight {
        opacity: 1;
        transform: none;
    }
}
