/* ========================================
   Chassis3D — UX aligned with ProtonBusMods
   Accent: cyan
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* Scrollbar (cyan accent, replaces gradient) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #0891b2;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0e7490;
}

/* Card hover lift (kept — subtle, no gradient) */
.card-hover {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
    border-color: rgba(34, 211, 238, 0.4); /* cyan-400 / 40 */
}

/* Image zoom on hover */
.img-hover {
    overflow: hidden;
}
.img-hover img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-hover:hover img {
    transform: scale(1.05);
}

/* Card grid stagger (page-load reveal) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card-grid > * {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}
.card-grid > *:nth-child(1) { animation-delay: 0.05s; }
.card-grid > *:nth-child(2) { animation-delay: 0.10s; }
.card-grid > *:nth-child(3) { animation-delay: 0.15s; }
.card-grid > *:nth-child(4) { animation-delay: 0.20s; }
.card-grid > *:nth-child(5) { animation-delay: 0.25s; }
.card-grid > *:nth-child(6) { animation-delay: 0.30s; }
.card-grid > *:nth-child(7) { animation-delay: 0.35s; }
.card-grid > *:nth-child(8) { animation-delay: 0.40s; }
.card-grid > *:nth-child(n+9) { animation-delay: 0.45s; }

/* Loading skeleton (kept for future use) */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeletonLoad 1.5s infinite;
}
@keyframes skeletonLoad {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Line-clamp utility (used in chassis card titles) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive typography tweaks (mobile) */
@media (max-width: 640px) {
    h1 { font-size: 1.875rem; line-height: 2.25rem; }
    h2 { font-size: 1.5rem;   line-height: 2rem;    }
}

/* Respect reduced-motion preference */
@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; }
}
