/* Custom styles beyond Tailwind */

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

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(5, 14, 30, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-text {
    color: white;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
    color: white;
}

/* Mobile menu links */
.mobile-link:hover {
    color: #a8dcbd;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state: always visible for accessibility */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #183f80;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #74c79a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: #4db07a !important;
}

/* Hero section adjustments */
#hero {
    scroll-margin-top: 0;
}

/* Ensure all text has proper contrast */
.text-midnight-900 { color: #091a38; }
.text-midnight-800 { color: #0e2650; }
.text-midnight-700 { color: #133368; }
.text-midnight-600 { color: #183f80; }
.text-midnight-500 { color: #1d4c98; }
.text-midnight-400 { color: #4970ac; }
.text-midnight-300 { color: #7694c0; }
.text-midnight-200 { color: #a3b8d4; }
.text-midnight-100 { color: #d0dce8; }
.text-midnight-50 { color: #f0f4f8; }

.text-mint-900 { color: #17432e; }
.text-mint-800 { color: #1d5539; }
.text-mint-700 { color: #266e49; }
.text-mint-600 { color: #358e5f; }
.text-mint-500 { color: #4db07a; }
.text-mint-400 { color: #74c79a; }
.text-mint-300 { color: #a8dcbd; }
.text-mint-200 { color: #d0ebd9; }
.text-mint-100 { color: #e8f5ed; }
.text-mint-50 { color: #f4fbf7; }

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(29, 76, 152, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
