/* Custom styles that complement Tailwind */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Selection color */
::selection {
    background-color: rgba(45, 99, 36, 0.2);
    color: #1f4219;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid rgba(45, 99, 36, 0.3);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .btn-primary::after {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion - ensure content is visible */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Custom focus styles for form inputs */
input,
textarea,
select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
