/* Custom Styles for Popeye's Tire Shop */

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

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

::-webkit-scrollbar-track {
    background: #2C2C2C;
}

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

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

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Image Grid Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-image:nth-child(1) { animation-delay: 0.1s; }
.hero-image:nth-child(2) { animation-delay: 0.2s; }
.hero-image:nth-child(3) { animation-delay: 0.3s; }
.hero-image:nth-child(4) { animation-delay: 0.4s; }

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

/* Button Hover Glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 74, 0.4);
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

/* 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);
    }
}

/* 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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #374151 !important;
    }
    
    .text-gray-400 {
        color: #9CA3AF !important;
    }
}

/* Print Styles */
@media print {
    nav,
    #mobile-menu-btn,
    footer {
        display: none;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    a {
        text-decoration: underline;
    }
}
