/* Custom styles for Autotronics */

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

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

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

/* Navbar scroll effect */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3a634e;
}

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

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

/* Service card hover effects */
.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(79, 128, 99, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

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

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}
