/* Custom styles beyond Tailwind */

html {
    scroll-behavior: smooth;
}

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

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #fff;
}

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy load fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Custom focus for form elements */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Print styles */
@media print {
    nav, #volunteer, #contact-form, button {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
