/* Custom Styles for Edgars Tire Shop */

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

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #14b8a6;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #14b8a6;
    color: white;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

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

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}

/* Loading animation for images */
img {
    background: linear-gradient(90deg, #f0fdf9 0%, #ccfbf1 50%, #f0fdf9 100%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

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

/* Print styles */
@media print {
    nav,
    .fixed {
        display: none;
    }
    
    body {
        background: white;
    }
}
