/* ===================================
   ANIMATIONS & GSAP EFFECTS
   =================================== */

/* Scroll Animations - FIXED: Visible by default */
.scroll-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s ease;
}

/* When GSAP is active, it will override these */
.gsap-active .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* ===================================
   HERO SECTION ANIMATIONS
   =================================== */

/* Hero Text Animations */
.hero-badge {
    animation: fadeIn 0.8s ease 0.2s both;
}

.hero-title {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-stats {
    animation: fadeInUp 1s ease 1s both;
}

/* Floating Cards Animation */
.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    animation-delay: 0s;
}

.floating-card.card-2 {
    animation-delay: 0.5s;
}

.floating-card.card-3 {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Image Animation */
.hero-image-container {
    animation: scaleIn 1.2s ease 0.5s both;
}

/* Hero Background Shapes */
.hero-bg-shapes .shape {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   PRICING TOGGLE ANIMATION
   =================================== */

.pricing-grid {
    opacity: 1 !important;
    max-height: none !important;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.pricing-grid:not(.active) {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.pricing-grid.active {
    opacity: 1;
    max-height: 5000px;
}

/* Toggle Switch Animation */
.toggle-slider {
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(100%);
}

/* ===================================
   PRICING CARDS STAGGER
   =================================== */

.pricing-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.pricing-card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.pricing-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ===================================
   FAQ ACCORDION ANIMATION
   =================================== */

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 24px;
}

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

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ===================================
   COUNTER ANIMATION
   =================================== */

.stat-number,
.metric-number {
    display: inline-block;
    transition: all 0.3s ease;
}

/* ===================================
   HOVER EFFECTS
   =================================== */

/* Card Hover */
.problem-card,
.target-card,
.integration-card,
.metric-card {
    transition: all 0.3s ease;
}

.problem-card:hover,
.target-card:hover,
.integration-card:hover,
.metric-card:hover {
    transform: translateY(-8px);
}

/* Button Hover */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* Pricing Card Hover */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 12px 48px rgba(212, 175, 55, 0.4);
    }
}


/* ===================================
   STEPS ANIMATION
   =================================== */

.step-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.step-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.step-card:nth-child(5) {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.step-connector {
    animation: slideInRight 0.8s ease 0.4s both;
}

/* ===================================
   INTEGRATION CARDS GRID
   =================================== */

.integration-card:nth-child(1) { animation: fadeIn 0.5s ease 0.1s both; }
.integration-card:nth-child(2) { animation: fadeIn 0.5s ease 0.15s both; }
.integration-card:nth-child(3) { animation: fadeIn 0.5s ease 0.2s both; }
.integration-card:nth-child(4) { animation: fadeIn 0.5s ease 0.25s both; }
.integration-card:nth-child(5) { animation: fadeIn 0.5s ease 0.3s both; }
.integration-card:nth-child(6) { animation: fadeIn 0.5s ease 0.35s both; }
.integration-card:nth-child(7) { animation: fadeIn 0.5s ease 0.4s both; }
.integration-card:nth-child(8) { animation: fadeIn 0.5s ease 0.45s both; }

/* ===================================
   METRICS CARDS
   =================================== */

.metric-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s both; }
.metric-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s both; }
.metric-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s both; }
.metric-card:nth-child(4) { animation: fadeInUp 0.6s ease 0.4s both; }

/* ===================================
   NAVBAR SCROLL EFFECT
   =================================== */

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ===================================
   LOADING ANIMATION
   =================================== */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* ===================================
   WHATSAPP FLOAT ANIMATION
   =================================== */

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

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1);
}

/* ===================================
   SMOOTH SCROLL BEHAVIOR
   =================================== */

html {
    scroll-behavior: smooth;
}

/* ===================================
   RESPONSIVE ANIMATIONS
   =================================== */

@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .scroll-animate {
        transform: translateY(0) !important;
    }

    .floating-card {
        animation: none;
    }

    .hero-bg-shapes .shape {
        animation: none;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

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

/* ===================================
   SOLUTION BADGES FLOAT
   =================================== */

.solution-badge-float {
    animation: float 4s ease-in-out infinite;
}

.solution-badge-float.badge-1 {
    animation-delay: 0s;
}

.solution-badge-float.badge-2 {
    animation-delay: 1s;
}

/* ===================================
   FEATURE ITEMS ANIMATION
   =================================== */

.feature-item {
    animation: slideInRight 0.6s ease both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

/* SCROLL FADE IN ANIMATIONS - FIXED */
.scroll-animate,
.problem-card,
.target-card,
.pricing-card,
.integration-card,
.metric-card,
.step-card,
.feature-point,
.blog-card {
    opacity: 0 !important;
    transform: translateY(60px) !important;
    transition: opacity 0.8s ease, transform 0.8s ease !important;
}

.scroll-animate.show-element,
.problem-card.show-element,
.target-card.show-element,
.pricing-card.show-element,
.integration-card.show-element,
.metric-card.show-element,
.step-card.show-element,
.feature-point.show-element,
.blog-card.show-element {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
