/* =============================================================================
   NextJob Landing Page Animations
   High-converting animations with scroll-triggered reveals and micro-interactions
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Keyframe Animations
   ----------------------------------------------------------------------------- */

/* Fade Up - Primary entrance animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In - Simple opacity transition */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In - For cards and popups */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Float - Subtle floating effect for hero images */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse - For attention-grabbing elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Shimmer - Loading/highlight effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Bounce subtle */
@keyframes bounceSoft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Gradient shift for backgrounds */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* -----------------------------------------------------------------------------
   Animation Classes - Base
   ----------------------------------------------------------------------------- */

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

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

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

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

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

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

.animate-bounce-soft {
    animation: bounceSoft 2s ease-in-out infinite;
}

/* -----------------------------------------------------------------------------
   Staggered Animation Delays
   ----------------------------------------------------------------------------- */

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* -----------------------------------------------------------------------------
   Scroll-Triggered Animations (Intersection Observer)
   ----------------------------------------------------------------------------- */

/* Initial hidden state for scroll-triggered elements */
[data-animate] {
    opacity: 0;
}

[data-animate].animated {
    opacity: 1;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    transition: opacity 0.5s ease-out;
}

[data-animate="fade-in"].animated {
    opacity: 1;
}

[data-animate="slide-left"] {
    transform: translateX(-50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate="slide-left"].animated {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="slide-right"] {
    transform: translateX(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate="slide-right"].animated {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="scale-in"] {
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-animate="scale-in"].animated {
    opacity: 1;
    transform: scale(1);
}

[data-animate="zoom-in"] {
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="zoom-in"].animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for scroll animations */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* -----------------------------------------------------------------------------
   Button Hover Effects
   ----------------------------------------------------------------------------- */

.btn-hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
}

.btn-hover-scale {
    transition: transform 0.2s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.02);
}

.btn-hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 77, 66, 0.4);
}

/* -----------------------------------------------------------------------------
   Card Hover Effects
   ----------------------------------------------------------------------------- */

.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-hover-border {
    transition: border-color 0.3s ease;
}

.card-hover-border:hover {
    border-color: #ff4d42;
}

/* -----------------------------------------------------------------------------
   Hero Section Specific
   ----------------------------------------------------------------------------- */

.hero-screenshot {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}

.hero-badge {
    animation: bounceSoft 3s ease-in-out infinite;
}

/* Hero gradient background animation */
.hero-gradient {
    background: linear-gradient(135deg, #fff1f0 0%, #ffffff 50%, #f0f9ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* -----------------------------------------------------------------------------
   Feature Icons
   ----------------------------------------------------------------------------- */

.feature-icon-hover {
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-icon-hover:hover {
    transform: scale(1.1) rotate(5deg);
}

/* -----------------------------------------------------------------------------
   Pricing Card Effects
   ----------------------------------------------------------------------------- */

.pricing-card-popular {
    position: relative;
    overflow: hidden;
}

.pricing-card-popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4d42, #ff6b63, #ff4d42);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

/* -----------------------------------------------------------------------------
   FAQ Accordion
   ----------------------------------------------------------------------------- */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out;
}

.faq-answer.open {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* -----------------------------------------------------------------------------
   Counter/Number Animation
   ----------------------------------------------------------------------------- */

.counter-animate {
    display: inline-block;
    transition: transform 0.3s ease;
}

.counter-animate:hover {
    transform: scale(1.1);
}

/* -----------------------------------------------------------------------------
   CTA Section Effects
   ----------------------------------------------------------------------------- */

.cta-glow {
    position: relative;
}

.cta-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ff4d42, #ff6b63, #ff8a84, #ff4d42);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-glow:hover::before {
    opacity: 1;
}

/* -----------------------------------------------------------------------------
   Process Steps Connection Line
   ----------------------------------------------------------------------------- */

.process-line {
    position: relative;
}

.process-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, #ff4d42);
    transform: translateY(-50%);
}

/* -----------------------------------------------------------------------------
   Smooth Scroll Behavior
   ----------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

/* -----------------------------------------------------------------------------
   Reduced Motion Support
   ----------------------------------------------------------------------------- */

@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-float,
    .animate-pulse-soft,
    .animate-bounce-soft {
        animation: none !important;
    }
}

