/* Custom styles for DW Heavy Duty Truck Services */

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

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

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #C45B3B, #D4755A);
    border-radius: 5px;
}

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

/* Animation on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(to right, #C45B3B, #D4755A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover effects for cards */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(196, 91, 59, 0.1);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Input focus effects */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 91, 59, 0.2);
}

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

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

/* Navigation active state */
nav a.active {
    color: #E8D5B7;
}

/* Hero background parallax effect */
#hero {
    background-attachment: fixed;
}

/* Subtle glow effect for accent elements */
.glow-accent {
    box-shadow: 0 0 30px rgba(196, 91, 59, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
    
    .font-['Playfair_Display',serif] {
        font-size: 2.5rem;
    }
}
