/* Performance and Accessibility Optimizations */

/* Font Display Optimization */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Improve contrast for better accessibility */
.navbar-nav .nav-link {
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Ensure links have sufficient contrast */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Improve focus states for accessibility */
.nav-link:focus,
.btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Video optimizations */
video {
    will-change: auto;
}

/* Lazy loading support for older browsers */
img[loading="lazy"] {
    transition: opacity 0.3s;
}

/* Improve button accessibility */
.btn {
    min-height: 44px;
    min-width: 44px;
}

/* Ensure sufficient color contrast */
.text-muted {
    color: #6c757d !important;
}

/* Improve heading hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Improve card image performance */
.card-img-top {
    object-fit: cover;
    height: 200px;
}

/* Video container optimization */
.video-container {
    contain: layout style paint;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}
