/* Custom Styles for Empire Repair and Performance */

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

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

::-webkit-scrollbar-track {
    background: #1a1f2e;
}

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

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

/* Selection Color */
::selection {
    background: #b5301d;
    color: #ffffff;
}

/* Animation Classes (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .reveal-left.active {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #b5301d;
    outline-offset: 2px;
}

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

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #f3f0e9 25%, #e6e0d1 50%, #f3f0e9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

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

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    .animate-bounce {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}
