/* Custom styles for Baton Rouge Diesel Works */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050d1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(94, 234, 212, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 234, 212, 0.5);
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #f8fafc;
}

/* Base font styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fade-in animation for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.7s ease-out forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.3s;
}

/* Scroll reveal - progressive enhancement, only applies when JS adds the class */
.scroll-reveal {
    /* Default state: visible — works without JS */
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        animation: fadeInUp 0.6s ease-out forwards;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(2, 8, 16, 0.95) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

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

/* Input autofill override for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc;
    -webkit-box-shadow: 0 0 0px 1000px #0f172a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Select dropdown styling */
select option {
    background: #050d1a;
    color: #f8fafc;
}

/* Map contrast fix */
iframe[src*="google.com/maps"] {
    background: #0f172a;
}
