/* Custom Styles for A Plus Tire Shop */

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

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

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

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

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

/* Hero Image Rotation Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.hero-image-float {
    animation: float 6s ease-in-out infinite;
}

/* Geometric Decorative Elements */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

/* Text Selection Color */
::selection {
    background: #e07a5f;
    color: white;
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

#mobile-menu.open {
    max-height: 300px;
}

/* Service Card Hover Effect */
.group:hover .group-hover\\:rotate-12 {
    transform: rotate(12deg);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Button Hover Scale */
button:hover,
a:hover {
    transition: transform 0.2s ease;
}

/* Testimonial Card Hover */
.bg-sand-50:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Input Focus Ring */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.2);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
