/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base states — content is ALWAYS visible */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS adds the .active class */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(30px);
        opacity: 0;
    }
    .reveal-left {
        transform: translateX(-30px);
        opacity: 0;
    }
    .reveal-right {
        transform: translateX(30px);
        opacity: 0;
    }
    .reveal-up.active,
    .reveal-left.active,
    .reveal-right.active {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
nav.scrolled .bg-white\/90 {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #142c56;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f2140;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #34d399;
    color: #060d1f;
}
