/* ============================================
   ABLE IT PROS — Animations & Transitions
   ============================================ */

/* --- Keyframe Animations --- */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -30px);
    }
    50% {
        transform: translate(-15px, 15px);
    }
    75% {
        transform: translate(25px, 20px);
    }
}

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

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

@keyframes scroll-indicator {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    30% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    60% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* --- Form Submit Spinner --- */
.spin {
    animation: spin 1s linear infinite;
}

/* --- Scroll-Triggered Fade Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Hover Micro-interactions --- */
.bento-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(43, 57, 144, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
    pointer-events: none;
}

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

/* Border glow on hover */
.bento-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(43, 57, 144, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
    pointer-events: none;
}

.bento-card:hover::after {
    opacity: 1;
}

/* --- Gradient Text Animation --- */
.hero-gradient-text {
    background-size: 200% auto;
    animation: gradient-shift 6s ease infinite;
}

/* --- Nav Animation --- */
.nav {
    transition: all 0.3s ease;
}

.nav.hidden {
    transform: translateY(-100%);
}

/* --- Button Ripple Effect --- */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* --- Testimonial Card Hover Glow --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(43, 57, 144, 0.1), rgba(59, 76, 192, 0.1));
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

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

/* --- Contact Form Focus States --- */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-surface) 50%, var(--color-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

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

    .fade-up {
        opacity: 1;
        transform: none;
    }

    .gradient-orb {
        animation: none;
    }

    .about-card {
        animation: none;
    }

    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
}
