/* Custom styles and overrides */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #102a43;
}

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

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

/* Reveal animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Mobile menu styles */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #eab308;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

/* Button hover effects */
button:hover,
a:hover {
    cursor: pointer;
}

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

/* Print styles */
@media print {
    nav,
    .animate-float,
    .animate-float-delayed,
    .animate-spin-slow,
    .animate-bounce {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-navy-800\/50 {
        background-color: rgba(36, 59, 83, 0.9) !important;
    }
}

/* Active nav link */
nav a.active {
    color: #eab308;
}

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

/* Selection color */
::selection {
    background: #eab308;
    color: #102a43;
}
