/* Custom overrides and enhancements */

/* Smooth focus visible styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #52d4a8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #8ce3c7;
    color: #0f1c4a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3ff;
}
::-webkit-scrollbar-thumb {
    background: #91a7ff;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c7cfa;
}

/* Reduced motion */
@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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .animate-bounce {
        animation: none !important;
    }
}

/* Mobile menu open state */
#mobileMenu.open {
    display: block;
}

#menuBtn.active #bar1 {
    transform: translateY(7px) rotate(45deg);
}
#menuBtn.active #bar2 {
    opacity: 0;
}
#menuBtn.active #bar3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navbar scroll state */
header.scrolled {
    box-shadow: 0 4px 30px rgba(15, 28, 74, 0.3);
}
