/* Smooth Scrolling */

html {
    scroll-behavior: smooth;
}

/* 3D Perspective */

.perspective-1000 {
    perspective: 1000px;
}

.rotate-y-minus-12 {
    transform: rotateY(-12deg);
}

.rotate-x-6 {
    transform: rotateX(6deg);
}

/* Background Blobs */

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Floating Cards Animation */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Fade In Up Animation */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    will-change: transform, opacity;
}

/* Performance optimization for scroll-heavy sections */
#features .group,
#analytics .group {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.delay-100 { animation-delay: 0.1s; }

.delay-200 { animation-delay: 0.2s; }

.delay-300 { animation-delay: 0.3s; }

.delay-400 { animation-delay: 0.4s; }

.delay-500 { animation-delay: 0.5s; }

.delay-600 { animation-delay: 0.6s; }

.delay-700 { animation-delay: 0.7s; }

.delay-800 { animation-delay: 0.8s; }

/* Typing Cursor */

.typing-effect::after {
    content: '|';
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a; 
}

::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 4px;
}

