/* ==========================================================================
   ZIQRO INNOVATIONS - NEXT-GEN MOTION & INTERACTIVITY STYLES
   ========================================================================== */

/* 1. Top Scroll Progress Bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6, #ec4899, #f59e0b);
    z-index: 100000;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
}

/* 2. Interactive Fluid Magnetic Cursor */
#ziqro-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 7px;
    height: 7px;
    background: #6366f1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.25s ease, 
                background-color 0.2s ease;
    will-change: transform;
    opacity: 0;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.9);
}

#ziqro-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.04);
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease, 
                background-color 0.25s ease, 
                box-shadow 0.25s ease,
                opacity 0.3s ease;
    will-change: transform;
    opacity: 0;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.15);
}

/* Cursor on hoverable clickable elements */
body.cursor-hover #ziqro-cursor-ring {
    width: 58px;
    height: 58px;
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.4);
}

body.cursor-hover #ziqro-cursor-dot {
    width: 3px;
    height: 3px;
    background: #818cf8;
}

/* Cursor on pricing cards */
body.cursor-pricing #ziqro-cursor-ring {
    width: 68px;
    height: 68px;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.35);
}

/* Cursor on active click */
body.cursor-active #ziqro-cursor-ring {
    width: 28px;
    height: 28px;
    background: rgba(99, 102, 241, 0.3);
    border-color: #4f46e5;
}

/* Disable custom cursor on touch devices or reduced motion */
@media (hover: none) and (pointer: coarse) {
    #ziqro-cursor-dot,
    #ziqro-cursor-ring {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ziqro-cursor-dot,
    #ziqro-cursor-ring {
        display: none !important;
    }
}

/* 3. Next-Gen Pricing Card Enhancements */
.pricing-card {
    position: relative;
    border-radius: 20px !important;
    padding: 2.25rem 1.75rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
    transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Linear-style Spotlight Cursor Follower on Card Surface */
.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(
        380px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%),
        rgba(99, 102, 241, 0.12),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

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

.pricing-card:hover {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.2), 0 0 25px -5px rgba(168, 85, 247, 0.15) !important;
}

/* Rotating Animated Shimmer Aura on the Featured Card */
@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes rotateBorderGlow {
    to {
        --border-angle: 360deg;
    }
}

.pricing-card.featured {
    border: 2px solid transparent !important;
    background: 
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from var(--border-angle), #6366f1, #a855f7, #ec4899, #f59e0b, #6366f1) border-box !important;
    animation: rotateBorderGlow 6s linear infinite;
    box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.25), 0 0 25px rgba(168, 85, 247, 0.2) !important;
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    box-shadow: 0 32px 65px -12px rgba(99, 102, 241, 0.38), 0 0 35px rgba(168, 85, 247, 0.3) !important;
}

/* Remove old rotated corner ribbon styling */
.pricing-card.featured::before {
    display: none !important;
}

/* Popular Top Pill Badge */
.featured-plan-pill {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    color: #ffffff;
    padding: 5px 18px;
    border-radius: 0 0 14px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    white-space: nowrap;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Feature List Item Polish */
.pricing-card ul li {
    transition: transform 0.2s ease, color 0.2s ease;
    border-radius: 8px;
    padding: 4px 6px;
    margin-left: -6px;
    margin-right: -6px;
}

.pricing-card ul li:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(4px);
    color: #0f172a;
}

.pricing-card ul li i.fa-check {
    transition: transform 0.2s ease;
}

.pricing-card ul li:hover i.fa-check {
    transform: scale(1.25);
    color: #10b981;
}

/* Pricing Card CTA Button Sheen */
.pricing-card .btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.pricing-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}

.pricing-card:hover .btn-primary::before {
    left: 150%;
}

/* 4. 3D Tilt Card Base */
.tilt-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25), 0 0 30px -5px rgba(139, 92, 246, 0.2);
}

/* 5. Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* 6. Interactive Particle Canvas */
#hero-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
}

/* 7. Button Shimmer Effect */
.btn-motion-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-motion-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
    );
    transform: rotate(35deg) translateX(-150%);
    transition: transform 0.8s ease-in-out;
}

.btn-motion-shimmer:hover::after {
    transform: rotate(35deg) translateX(150%);
}

/* 8. Floating animation variants */
.animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatSlow 6s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(2deg); }
}
