/* MotoDrive – Custom CSS */
/* Brand: #FF0000 | Black: #000000 | White: #FFFFFF | Font: Rethink Sans */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

* {
    touch-action: manipulation;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

/* Text selection */
::selection {
    background: rgba(255, 0, 0, 0.25);
    color: #fff;
}

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

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Marquee (brand slider) */
.marquee-track {
    animation: marquee 35s linear infinite;
    width: max-content;
}
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Fade-in keyframe */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer placeholder */
.img-placeholder {
    background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Utility */
.w-4\.5 { width: 1.125rem; }
.h-4\.5 { height: 1.125rem; }

/* Sharp corners variant for brand elements */
.rounded-brand { border-radius: 2px; }

/* Autofill override – prevents browser from applying light background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #000 inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}
