/* Custom styles for Ogemaw County Jail website */

html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 37, 64, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A2540;
}
::-webkit-scrollbar-thumb {
    background: #34D4B2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2BB899;
}

/* Selection color */
::selection {
    background: rgba(52, 212, 178, 0.3);
    color: #0A2540;
}

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

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Card hover elevation */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}
