/* Custom styles for Blue Oval Performance */

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

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

/* Only apply animation on devices that support it and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

/* Custom selection color */
::selection {
    background-color: rgba(45, 108, 75, 0.2);
    color: #152e27;
}

/* Subtle gradient for hero text */
.text-gradient-green {
    background: linear-gradient(135deg, #2a5c4b 0%, #5fa18a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.group:hover .group-hover\:bg-forest-200 {
    background-color: #b8dbcc;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

/* Remove default focus outline for mouse users */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}
