/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

/* Ensure no flash of hidden content */
body {
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Scroll reveal animations - only for below-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(20px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth hover effects for interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}
