/* Custom styles for Emerson Electric */

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

/* Navigation background on scroll */
.nav-scrolled {
    background: rgba(253, 252, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(6, 78, 59, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #064e3b !important;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hero stat cards hover */
.group:hover .group-hover\:bg-emerald-600 {
    background-color: #059669;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a7f3d0;
}

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

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

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: no-preference) {
    .float-slow {
        animation: float 4s ease-in-out infinite;
    }
    .float-medium {
        animation: float 3s ease-in-out infinite;
    }
    .float-fast {
        animation: float 2.5s ease-in-out infinite;
    }
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Selection color */
::selection {
    background-color: #a7f3d0;
    color: #064e3b;
}
