/* Custom styles that extend beyond Tailwind */

:root {
    --color-midnight-900: #060D1F;
    --color-midnight-800: #0A1628;
    --color-midnight-700: #0F1F38;
    --color-mint-500: #1AB888;
    --color-mint-400: #3DD8A8;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-midnight-900);
    color: #ffffff;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(6, 13, 31, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060D1F;
}
::-webkit-scrollbar-thumb {
    background: #1B355C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1AB888;
}

/* Selection color */
::selection {
    background: rgba(26, 184, 136, 0.3);
    color: #ffffff;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #3DD8A8;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Text rendering */
.font-serif {
    text-rendering: optimizeLegibility;
}

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

/* Select dropdown styling */
select option {
    background: #0F1F38;
    color: #ffffff;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0F1F38 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
