/* ============================================
   TURKNINJA PRO — PREMIUM ANIMATIONS
   AOS (Animate On Scroll) Custom + Extra Animations
   ============================================ */


/* ============================================
   SCROLL-TRIGGERED ENTRANCE ANIMATIONS
   ============================================ */

/* Fade In Up — Primary entrance */
body.aos-init [data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(24px);
    transition-property: opacity, transform;
}
body.aos-init [data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In — Subtle */
body.aos-init [data-aos="fade"] {
    opacity: 0;
    transition-property: opacity;
}
body.aos-init [data-aos="fade"].aos-animate {
    opacity: 1;
}

/* Scale Up */
body.aos-init [data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition-property: opacity, transform;
}
body.aos-init [data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}


/* ============================================
   STAGGER ANIMATION DELAYS (for card grids)
   ============================================ */

.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.1s !important; }
.stagger-3 { transition-delay: 0.15s !important; }
.stagger-4 { transition-delay: 0.2s !important; }
.stagger-5 { transition-delay: 0.25s !important; }
.stagger-6 { transition-delay: 0.3s !important; }


/* ============================================
   FLOATING/PULSE DECORATIVE ANIMATIONS
   ============================================ */

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

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

@keyframes pulseSoft {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

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

.animate-float { animation: floatSlow 6s ease-in-out infinite; }
.animate-float-medium { animation: floatMedium 4s ease-in-out infinite; }
.animate-pulse-soft { animation: pulseSoft 3s ease-in-out infinite; }
.animate-spin-slow { animation: spinSlow 20s linear infinite; }


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

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
    animation: countUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}


/* ============================================
   NOTIFICATION / BADGE PULSE
   ============================================ */

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.pulse-badge {
    animation: badgePulse 2s ease-in-out infinite;
}


/* ============================================
   HERO TYPING CURSOR EFFECT
   ============================================ */

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-cursor::after {
    content: '|';
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}


/* ============================================
   GRADIENT BORDER ANIMATION
   ============================================ */

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

.animated-border {
    position: relative;
    border-radius: var(--radius-md, 16px);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2, #667eea, var(--primary-color));
    background-size: 300% 300%;
    animation: borderGradient 4s ease infinite;
}
.animated-border > * {
    background: var(--surface-card, white);
    border-radius: calc(var(--radius-md, 16px) - 2px);
}


/* ============================================
   SCROLL INDICATOR (top progress bar)
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    z-index: 9999;
    transition: width 0.1s linear;
}


/* ============================================
   SMOOTH HOVER GROUP — Card Interactions
   ============================================ */

.hover-lift {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hover-scale:hover {
    transform: scale(1.03);
}

.hover-glow {
    transition: all 0.3s ease;
}
.hover-glow:hover {
    box-shadow: 0 0 24px rgba(230, 57, 70, 0.15);
}


/* ============================================
   TOOLTIP PREMIUM STYLING
   ============================================ */

.tooltip-inner {
    background: var(--secondary-color, #1a1a2e);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tooltip .tooltip-arrow::before {
    border-top-color: var(--secondary-color, #1a1a2e);
}


/* ============================================
   LOADING STATES
   ============================================ */

/* Shimmer Loading */
.shimmer {
    background: linear-gradient(90deg,
        rgba(0,0,0,0.03) 25%,
        rgba(0,0,0,0.06) 50%,
        rgba(0,0,0,0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.shimmer-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.shimmer-image {
    width: 100%;
    aspect-ratio: 16/9;
}


/* ============================================
   FOCUS RING — Accessibility
   ============================================ */

/* ============================================
   MARKETING & LANDING PAGE EXTRAS
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- SVG Decorative Blobs --- */
.svg-blob {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.4;
    animation: blobFloat 20s infinite alternate-reverse ease-in-out;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.blob-primary { fill: rgba(13, 110, 253, 0.15); }
.blob-info { fill: rgba(13, 202, 240, 0.15); }
.blob-purple { fill: rgba(118, 75, 162, 0.15); }

/* --- Advanced Glassmorphism --- */
.glass-card-premium {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

[data-bs-theme='dark'] .glass-card-premium {
    background: rgba(15, 15, 25, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* --- Ninja Icon Styles --- */
.ninja-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ninja-icon-bg {
    position: absolute;
    width: 140%;
    height: 140%;
    z-index: -1;
    opacity: 0.1;
    animation: spinSlow 30s linear infinite;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.popular-card {
    border: 2px solid #0d6efd !important;
    transform: scale(1.05);
    z-index: 10;
}

[data-bs-theme='dark'] .glass-card {
    background: rgba(30, 30, 45, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.pricing-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.bg-purple-lt { background-color: rgba(118, 75, 162, 0.1) !important; }
.text-purple { color: #764ba2 !important; }

.hide-mobile {
    display: block;
}
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

/* Fix for testimonial avatars centering on mobile */
@media (max-width: 991px) {
    .testimonial-card { margin-bottom: 1.5rem; }
}
/* Fade In Right */
body.aos-init [data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-40px);
    transition-property: opacity, transform;
}
body.aos-init [data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Left */
body.aos-init [data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(40px);
    transition-property: opacity, transform;
}
body.aos-init [data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}
