/* Home page only: entrance animations */
/* ============ MOTION & ANIMATIONS ============ */
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(40px,-30px) scale(1.15); }
    100% { transform: translate(0,0) scale(1); }
}
@keyframes drift2 {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(-40px,30px) scale(1.2); }
    100% { transform: translate(0,0) scale(1); }
}
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow {
    0%,100% { box-shadow: 0 0 0 0 rgba(139,92,246,.35); }
    50%     { box-shadow: 0 0 26px 6px rgba(139,92,246,.28); }
}
@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}

/* Animated background blobs */
.aurora-blob { animation: drift 18s ease-in-out infinite; }
.aurora-blob.alt { animation: drift2 22s ease-in-out infinite; }

/* Sidebar & header entrance */
@media (min-width: 768px) { #sidebar { animation: slideInLeft .6s cubic-bezier(.2,.7,.2,1) both; } } /* phones: the slide-in must not lock the drawer open */
header { animation: fadeDown .5s ease both; }

/* Hero */
#view-home section.premium-card { animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-badge { animation: floatY 4s ease-in-out infinite; }
.brand-shimmer {
    background-size: 200% auto;
    animation: shimmer 5s linear infinite;
}

/* Tool cards staggered rise + hover lift */
.tool-card { animation: riseIn .6s cubic-bezier(.2,.7,.2,1) both; }
.tool-card:nth-child(1){ animation-delay:.05s }
.tool-card:nth-child(2){ animation-delay:.12s }
.tool-card:nth-child(3){ animation-delay:.19s }
.tool-card:nth-child(4){ animation-delay:.26s }
.tool-card:nth-child(5){ animation-delay:.33s }
.tool-card:nth-child(6){ animation-delay:.40s }
.tool-card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.tool-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.tool-card .card-icon { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tool-card:hover .card-icon { transform: scale(1.12) rotate(-4deg); }
.tool-card .open-link i { transition: transform .3s; }
.tool-card:hover .open-link i { transform: translate(2px,-2px); }

/* Sidebar icon micro-interaction */
.sidebar-link i { transition: transform .25s ease, color .25s ease; }
.sidebar-link:hover i { transform: scale(1.15); }

/* CTA pulse */
.cta-pulse { animation: pulseGlow 3.2s ease-in-out infinite; }

/* Premium cards hover */
.hover-lift { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.hover-lift:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.25); box-shadow: 0 14px 30px -16px rgba(0,0,0,.7); }

.site-footer { animation: fadeDown .6s ease .15s both; }
