$cssPath = "site\assets\style.css"
$css = Get-Content $cssPath -Raw

# Update .btn-primary with a trendy gradient animation, hover lift, and active press state
$oldBtnPrimary = '.btn-primary{background:var(--gradient-brand);color:#fff;box-shadow:0 10px 24px -6px rgba(124,47,245,.55);text-shadow:0 1px 2px rgba(0,0,0,.12);}'
$newBtnPrimary = '.btn-primary{background: linear-gradient(270deg, #7c2ff5, #ee1fa6, #7c2ff5); background-size: 200% 200%; color:#fff;box-shadow:0 10px 24px -6px rgba(124,47,245,.55);text-shadow:0 1px 2px rgba(0,0,0,.12); animation: gradientFlow 5s ease infinite; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);}
.btn-primary:hover {transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px -4px rgba(238,31,166,0.6); filter: brightness(1.1);}
.btn-primary:active {transform: translateY(2px) scale(0.97); box-shadow: 0 5px 15px -4px rgba(124,47,245,0.4); transition: all 0.1s;}'

$css = $css.Replace($oldBtnPrimary, $newBtnPrimary)

# Add the gradientFlow keyframes to the end of the file
$keyframes = '
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
'
$css = $css + $keyframes

Set-Content -Path $cssPath -Value $css -Encoding UTF8
Write-Host "Updated .btn-primary to a trendy, catchy animated style."
