/* Nidhi Infotech - Animations */

/* ============================================
   FADE IN ANIMATIONS
============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

/* Staggered animations */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* Initial hidden state for animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion */
details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item[open] summary span:last-child {
    transform: rotate(180deg);
}

details.faq-item summary:hover {
    background-color: var(--color-surface);
}

/* ============================================
   HOVER ANIMATIONS
============================================ */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ============================================
   LOADING ANIMATION
============================================ */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   PAGE LOAD ANIMATION
============================================ */

body {
    animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   PULSE ANIMATION FOR CTAs
============================================ */

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 21, 56, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(139, 21, 56, 0);
    }
}

.btn-primary:not(:hover) {
    animation: pulse 2s infinite;
}

/* ============================================
   GRADIENT SHIMMER FOR HERO TEXT
============================================ */

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--color-primary) 0%, #a64d6b 50%, var(--color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ============================================
   FLOATING ANIMATION FOR ICONS
============================================ */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.feature-icon {
    animation: float 3s ease-in-out infinite;
}

/* Staggered float animation */
.grid-3 .card:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.grid-3 .card:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

/* ============================================
   REDUCED MOTION
============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}