/* Custom styles for Slim'z Small Engine Repair */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.navbar-scrolled .nav-text {
    color: #0a2540 !important;
}

.navbar-scrolled .nav-link {
    color: #142d4a !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover */
.group:hover .group-hover\:bg-mint-500 {
    background-color: #10b981;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background-color: rgba(52, 211, 153, 0.3);
    color: #0a2540;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a3a5c;
}
