/* Custom styles and overrides */

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #ff5c2e;
    color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c4c9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9b9ba2;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

/* Ensure all external links without rel are safe */
a[href^="http"] {
    word-break: break-all;
}
