/* Custom Styles for Jer Bodyshop */

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

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

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

::-webkit-scrollbar-thumb {
    background: #78281F;
    border-radius: 4px;
}

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

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

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

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

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

.hero-image-wrapper {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery Item Hover */
.gallery-item {
    cursor: pointer;
}

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

/* Mobile Menu Transitions */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #78281F;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(120, 40, 31, 0.1);
}

/* Print Styles */
@media print {
    nav,
    #contact,
    footer,
    .hero-cta {
        display: none;
    }
    
    body {
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* 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) {
    .service-card:hover {
        background: #5a1d16;
    }
    
    button,
    a {
        border: 2px solid currentColor;
    }
}

/* Selection Color */
::selection {
    background: #78281F;
    color: white;
}

/* Form Validation Styles */
input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

input:valid:not(:placeholder-shown) {
    border-color: #16a34a;
}

/* Loading State for Buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #f5f5f4 0%, #e7e5e4 50%, #f5f5f4 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

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