/* Custom styles — overrides and enhancements beyond Tailwind */

:root {
    --color-navy-800: #0C1B3A;
    --color-gold-500: #C8A84E;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(4, 9, 16, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(200, 168, 78, 0.1);
}

/* Reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Always visible regardless of JS */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0C1B3A;
}
::-webkit-scrollbar-thumb {
    background: #C8A84E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E0AF32;
}

/* Selection color */
::selection {
    background: rgba(200, 168, 78, 0.3);
    color: #0C1B3A;
}

/* Date input styling */
input[type="date"] {
    color-scheme: light;
}

/* Smooth focus visible */
:focus-visible {
    outline: 2px solid #C8A84E;
    outline-offset: 2px;
}
