/* Custom styles beyond Tailwind */

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

/* Navbar styles */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-logo-sub {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #eab308;
    transition: width 0.3s ease;
}

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

/* Navbar scrolled state */
nav.scrolled .nav-logo-text {
    color: #102a43;
}

nav.scrolled .nav-logo-sub {
    color: #627d98;
}

nav:not(.scrolled) .nav-logo-text {
    color: #ffffff;
}

nav:not(.scrolled) .nav-logo-sub {
    color: rgba(255, 255, 255, 0.6);
}

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

nav:not(.scrolled) .nav-link:hover {
    color: #ffffff;
}

/* Mobile menu */
.mobile-link {
    border-radius: 0.5rem;
}

.mobile-link:hover {
    background: #f0f4f8;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Hero text glow */
h1 span.text-gold-400 {
    text-shadow: 0 0 40px rgba(250, 204, 21, 0.3);
}

/* Form select arrow */
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.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* Active nav link highlight */
.nav-link.active {
    color: #102a43;
}

nav:not(.scrolled) .nav-link.active {
    color: #ffffff;
}

/* Selection color */
::selection {
    background: rgba(234, 179, 8, 0.3);
    color: #102a43;
}
