/* Custom styles for John & Sons Auto Repair */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Geometric shape animations */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

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

::-webkit-scrollbar-track {
    background: #1a0d19;
}

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

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

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

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

/* 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.2), transparent);
    transition: left 0.5s ease;
}

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

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

/* Image hover zoom */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Text gradient effect */
.text-gradient {
    background: linear-gradient(135deg, #FFB800 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for CTA buttons */
@keyframes pulse-amber {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 184, 0, 0);
    }
}

.pulse-amber {
    animation: pulse-amber 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-pattern {
        display: none;
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    .no-print {
        display: none;
    }
}
