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

html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(17, 30, 17, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Selection color */
::selection {
    background: #315731;
    color: #fdfcfa;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e6;
}
::-webkit-scrollbar-thumb {
    background: #9cc59a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #315731;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #315731;
    outline-offset: 2px;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fdfcfa inset !important;
    -webkit-text-fill-color: #111e11 !important;
}

/* Subtle pattern for gallery section */
#gallery {
    background-image: radial-gradient(circle at 1px 1px, rgba(49, 87, 49, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Image loading placeholder */
img {
    background-color: #e3efe0;
}
