/* ==========================================================================
KingEzePrintingHub — Home Page Custom Styles (css/index.css)
========================================================================== */

/* Subtle dot-grid background matching Framer canvas aesthetic */
body {
background-color: #f9f9fb;
background-image: radial-gradient(#d8d8e0 1px, transparent 1px);
background-size: 18px 18px;
color: #111827;
-webkit-font-smoothing: antialiased;
}

/* Smooth sidebar collapse transitions on desktop */
.sidebar-transition {
transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #9ca3af;
}

/* Card hover lift */
.template-card {
transition: transform 0.22s ease,
box-shadow 0.22s ease,
border-color 0.22s ease;
}
.template-card:hover {
transform: translateY(-4px);
box-shadow: 0 14px 30px -10px rgba(17, 24, 39, 0.1);
border-color: #d1d5db;
}

/* Modal & Toast animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(8px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.animate-fade-in {
animation: fadeIn 0.2s ease-out forwards;
}

/* Sequential black-to-white / white-to-black animation for Steps 1, 2, 3 */
@keyframes stepInvert {
0%, 100% {
background-color: #18181b;
color: #ffffff;
border-color: #18181b;
transform: translateY(0) scale(1);
box-shadow: 0 6px 16px -4px rgba(17, 24, 39, 0.22);
}
33%, 62% {
background-color: #ffffff;
color: #111827;
border-color: #d1d5db;
transform: translateY(-2px) scale(1.04);
box-shadow: 0 10px 22px -8px rgba(17, 24, 39, 0.14);
}
}
.step-badge {
animation: stepInvert 4.5s ease-in-out infinite;
}
.step-badge-1 { animation-delay: 0s; }
.step-badge-2 { animation-delay: 1.5s; }
.step-badge-3 { animation-delay: 3s; }