/* Custom styles and animations */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f6f6f7;
}

::-webkit-scrollbar-thumb {
    background: #c4c4c9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9b9ba2;
}

/* Scroll indicator animation */
@keyframes scroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll {
    animation: scroll 1.5s ease-in-out infinite;
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Apply float animation to floating cards */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-0 {
        animation: float 4s ease-in-out infinite;
    }
    
    .absolute.top-20.left-0 {
        animation: float 4s ease-in-out infinite 0.5s;
    }
    
    .absolute.bottom-20.right-10 {
        animation: float 4s ease-in-out infinite 1s;
    }
}

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
.mobile-link {
    transition: all 0.3s ease;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #ff6b4f;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    .fixed,
    .animate-scroll,
    [class*="animate-"] {
        animation: none !important;
    }
    
    header {
        position: static;
    }
}
