/* Nano-Infinity — Houdini CSS Custom Properties + Advanced Animations */
/* Copyright (c) 2024-2026 Norman Kachel */
@property --nano-hue {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --nano-glow {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}
@property --card-shine {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.glass-card {
  background: linear-gradient(
    hsl(from oklch(0.15 0.03 var(--nano-hue)) h s l / 0.15),
    hsl(from oklch(0.10 0.02 calc(var(--nano-hue) + 30deg)) h s l / 0.10)
  );
  transition: --nano-hue 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  --nano-hue: 240deg;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px rgba(80,120,255,0.3);
}
/* Nano scroll-driven animation */
@keyframes nano-reveal {
  from { opacity: 0; translate: 0 2rem; }
  to   { opacity: 1; translate: 0 0; }
}
.reveal-scroll {
  animation: nano-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}
/* Aurora background */
@keyframes aurora {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.aurora-bg {
  background: linear-gradient(135deg, #0a0a1e, #120840, #060620, #0e0a2e, #08162e);
  background-size: 400% 400%;
  animation: aurora 15s ease infinite;
}
/* Glassmorphism card v2 */
.bento-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg,
    rgba(80,120,255,0.2) 0%,
    transparent 50%,
    rgba(160,80,255,0.1) 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s;
}
.bento-card:hover::before { opacity: 1; }
/* Floating particles */
@keyframes float-particle {
  0%   { transform: translate(0,0) scale(1); opacity: 0.6; }
  50%  { transform: translate(var(--px), var(--py)) scale(1.2); opacity: 1; }
  100% { transform: translate(0,0) scale(1); opacity: 0.6; }
}
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle var(--dur, 8s) ease-in-out infinite;
}
