/* Custom styles for Edwards Towing website */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #784f7d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8f6294;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #432e47 25%, #503553 50%, #432e47 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(37, 24, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover effect */
.group:hover .group-hover\:bg-amber-600 {
    transition: background-color 0.3s ease;
}

/* Button hover lift effect */
.transform:hover {
    transition: transform 0.3s ease;
}

/* Text selection color */
::selection {
    background: #f59e0b;
    color: #251829;
}
