/* Custom styles for Knucklebusters Restoration */

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

/* Hero overlay with burgundy gradient */
.hero {
    position: relative;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(61, 10, 23, 0.88) 0%,
        rgba(132, 28, 55, 0.75) 50%,
        rgba(61, 10, 23, 0.85) 100%
    );
}

/* Hero content animation */
.hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator animation */
.scroll-indicator {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(300%); opacity: 0; }
}

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

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

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

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll effect */
.nav-scrolled {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #841c37;
}

/* Selection color */
::selection {
    background: rgba(132, 28, 55, 0.2);
    color: #3d0a17;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #c41c37 !important;
    box-shadow: 0 0 0 3px rgba(196, 28, 55, 0.1) !important;
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
