/* Custom styles for Treadz Tire & Wheel */

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

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

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5e40a3;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #1a0d2e;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(26, 13, 46, 0.15);
}

/* Geometric shape hover effects */
.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

/* Card hover lift effect */
.hover\:-translate-y-2:hover {
    transform: translateY(-8px);
}

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

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #e0d4f5 25%, #f3eefa 50%, #e0d4f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    .animate-float,
    .animate-float-delayed,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
