/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #111820;
    color: #d9e2ec;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(17, 24, 32, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 158, 120, 0.1);
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2f3a48;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3e4c5b;
}

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

/* Selection color */
::selection {
    background: rgba(74, 158, 120, 0.3);
    color: #f0f4f8;
}

/* Image loading shimmer */
img {
    background: linear-gradient(135deg, #1e2733 0%, #2f3a48 100%);
}
