/* Custom styles for Brooks Diesel Repair */

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

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

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

::-webkit-scrollbar-thumb {
    background: #8a1c39;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #721a32;
}

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(253, 244, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(138, 28, 57, 0.1);
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-line:nth-child(2) {
    opacity: 0;
}

.menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Subtle pulse for decorative elements */
@keyframes softPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

/* Service card hover effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button press effect */
.btn-press:active {
    transform: scale(0.98);
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #ffd038;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #ffd038;
    color: #3d0a18;
}

/* Print styles */
@media print {
    nav, .reveal, #contact-form, iframe {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
