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

# Add trendy, colorful hover effects for tool cards
$trendyCss = @"

/* --- TRENDY TOOL CARDS --- */
.tool-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(124,47,245,0.4), rgba(238,31,166,0.4), rgba(37,211,102,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.tool-card:hover::before {
  opacity: 1;
}
.tool-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px -10px rgba(124,47,245, 0.2);
}
"@

if ($css -notmatch "TRENDY TOOL CARDS") {
    $css += $trendyCss
    Set-Content -Path $cssPath -Value $css -Encoding UTF8
}

Write-Host "Trendy CSS applied."
