/* Custom styles to supplement Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    /* Prevents jumping on mobile when scrolling */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Fade In Animation for Scroll (Progressive Enhancement) */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

/* Only apply animation if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 0;
        transform: translateY(20px);
    }
    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}
