/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fdf2f4;
}

::-webkit-scrollbar-thumb {
    background: #d94f69;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c2304e;
}

/* Navbar scroll effect */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

/* Mobile menu transitions */
#mobile-menu:not(.hidden) {
    display: flex;
}

#mobile-menu:not(.hidden).opacity-0 {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu:not(.hidden).opacity-100 {
    opacity: 1;
    pointer-events: all;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

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

/* Smooth image loading */
img {
    image-rendering: auto;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
