/* Accessibility Improvements */

/* Skip navigation link */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    border-radius: 4px;
    transition: top 0.3s ease;
}

.skip-nav:focus {
    top: 6px;
}

/* Improved focus indicators */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #0069ff;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(0, 105, 255, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .home .content h1,
    .heading,
    .content h3 {
        text-shadow: none;
        font-weight: bold;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure adequate color contrast for links */
a {
    text-decoration-skip-ink: auto;
}

/* Focus management for dynamic content */
.timeline .container:focus-within {
    outline: 2px solid #0069ff;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Improve form accessibility */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Ensure icons don't interfere with screen readers */
[aria-hidden="true"] {
    speak: never;
}