/* =====================================================
   HOME OWNERS ENERGY — ANIMATION LIBRARY
   Particles · 3D · Neon · SVG · Scroll Effects
   ===================================================== */

/* ════════════════════════════════════════
   KEYFRAME DEFINITIONS
════════════════════════════════════════ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes floatX {
  0%, 100% { transform: translateX(0px); }
  50%       { transform: translateX(10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.3), 0 0 40px rgba(255,215,0,0.1); }
  50%       { box-shadow: 0 0 40px rgba(255,215,0,0.6), 0 0 80px rgba(255,215,0,0.2); }
}
@keyframes pulse-green-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,232,122,0.3); }
  50%       { box-shadow: 0 0 50px rgba(0,232,122,0.7); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -100; }
}
@keyframes energy-flow {
  0%   { stroke-dashoffset: 300; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes morph {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
@keyframes shimmer-sweep {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes rise-particle {
  0%   { transform: translateY(0) scale(1); opacity: 0.8; }
  100% { transform: translateY(-120px) scale(0); opacity: 0; }
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes wave-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes counter-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 40px #FFD700;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}
@keyframes border-dance {
  0%, 100% { clip-path: inset(0 0 98% 0); }
  25%       { clip-path: inset(0 98% 0 0); }
  50%       { clip-path: inset(98% 0 0 0); }
  75%       { clip-path: inset(0 0 0 98%); }
}
@keyframes battery-fill {
  from { height: 0%; }
  to   { height: var(--fill); }
}
@keyframes solar-charge {
  0%   { stroke-dashoffset: 300; opacity: 0.3; }
  50%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.3; }
}
@keyframes ring-expand {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes tilt-bob {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%       { transform: rotate(2deg) translateY(-6px); }
}
@keyframes sun-rays {
  0%   { transform: rotate(0deg) scale(1); opacity: 0.7; }
  50%  { transform: rotate(180deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.7; }
}
@keyframes glow-text {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255,215,0,0.5)); }
  50%       { filter: drop-shadow(0 0 20px rgba(255,215,0,0.9)); }
}
@keyframes slide-in-bottom {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes zap {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.6; transform: scaleY(0.95) scaleX(1.05); }
}
@keyframes bg-pan {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* ════════════════════════════════════════
   PARTICLE CANVAS
════════════════════════════════════════ */
#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════
   ANIMATED HERO EXTRAS
════════════════════════════════════════ */
.hero-animated-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,215,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: bg-pan 8s linear infinite;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,215,0,0.18) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,232,122,0.12) 0%, transparent 70%);
  bottom: -60px; left: 5%;
  animation: float 10s ease-in-out infinite 3s;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,140,0,0.15) 0%, transparent 70%);
  top: 40%; left: 38%;
  animation: float 6s ease-in-out infinite 1.5s;
}

/* ════════════════════════════════════════
   ANIMATED SUN COMPONENT
════════════════════════════════════════ */
.sun-widget {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sun-core {
  width: 60px; height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255,215,0,0.6), 0 0 60px rgba(255,215,0,0.3);
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.sun-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255,215,0,0.3);
  animation: spin-slow 12s linear infinite;
}
.sun-ring-2 {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px solid rgba(255,215,0,0.15);
  animation: spin-reverse 20s linear infinite;
}
.sun-ray {
  position: absolute;
  width: 3px;
  height: 18px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform-origin: 50% 100%;
  opacity: 0.7;
  animation: glow-text 2s ease-in-out infinite;
}
.sun-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,215,0,0.4);
  animation: ring-expand 2.5s ease-out infinite;
}
.sun-pulse-ring-2 {
  animation-delay: 1.25s;
}

/* ════════════════════════════════════════
   ENERGY FLOW SVG DIAGRAM
════════════════════════════════════════ */
.energy-diagram {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.energy-diagram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.energy-path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 8;
  animation: dash-flow 2s linear infinite;
}
.energy-path-solar  { stroke: #FFD700; }
.energy-path-battery{ stroke: #00E87A; animation-delay: 0.5s; }
.energy-path-home   { stroke: #63B3ED; animation-delay: 1s; }

.energy-node {
  cursor: default;
  transition: filter 0.3s;
}
.energy-node:hover { filter: brightness(1.2); }

.energy-node-circle {
  filter: drop-shadow(0 0 12px rgba(255,215,0,0.5));
  animation: pulse-glow 3s ease-in-out infinite;
}
.energy-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  fill: #E8EDF5;
}
.energy-sublabel {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  fill: #8892A4;
}
.energy-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 15px;
  fill: #FFD700;
}

/* Animated flow dot along path */
.flow-dot {
  r: 5;
  fill: #FFD700;
  filter: drop-shadow(0 0 6px #FFD700);
  animation: zap 0.4s ease-in-out infinite;
}
.flow-dot-green { fill: #00E87A; filter: drop-shadow(0 0 6px #00E87A); }
.flow-dot-blue  { fill: #63B3ED; filter: drop-shadow(0 0 6px #63B3ED); }

/* ════════════════════════════════════════
   WAVE DIVIDERS
════════════════════════════════════════ */
.wave-divider {
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 2;
}
.wave-divider svg {
  display: block;
  width: 100%;
}
.wave-divider.flip { transform: rotateX(180deg); }

.wave-path-primary { fill: #0A1628; }
.wave-path-card    { fill: #0F1E3A; }

.wave-animated {
  animation: wave-move 8s linear infinite;
  width: 200%;
}

/* ════════════════════════════════════════
   3D CARD TILT (JS controlled via style props)
════════════════════════════════════════ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform;
}
.tilt-card .tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.12) 0%,
    transparent 60%);
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
  z-index: 10;
}
.tilt-card:hover .tilt-shine { opacity: 1; }

/* ════════════════════════════════════════
   NEON / GLOW TEXT
════════════════════════════════════════ */
.neon-yellow {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255,215,0,0.8), 0 0 30px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.2);
}
.neon-green {
  color: #00E87A;
  text-shadow: 0 0 10px rgba(0,232,122,0.8), 0 0 30px rgba(0,232,122,0.4);
}
.text-animated-gradient {
  background: linear-gradient(270deg, #FFD700, #00E87A, #FFD700, #FF8C00);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

/* ════════════════════════════════════════
   GLOWING BORDER CARD
════════════════════════════════════════ */
.glow-card {
  position: relative;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from var(--angle, 0deg), #FFD700, #00E87A, #FFD700, #FF8C00, #FFD700);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  animation: spin-slow 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.glow-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.glow-card:hover::before { opacity: 1; }
.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(255,215,0,0.1);
}

/* ════════════════════════════════════════
   BATTERY ANIMATION
════════════════════════════════════════ */
.battery-widget {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.battery-body {
  width: 50px; height: 90px;
  border: 3px solid rgba(0,232,122,0.6);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: rgba(0,232,122,0.05);
  box-shadow: 0 0 20px rgba(0,232,122,0.2), inset 0 0 10px rgba(0,232,122,0.05);
}
.battery-cap {
  width: 20px; height: 5px;
  background: rgba(0,232,122,0.6);
  border-radius: 2px 2px 0 0;
  margin: -5px auto 0;
}
.battery-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #00E87A, #00FF88);
  transition: height 1.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -4px 20px rgba(0,232,122,0.5);
}
.battery-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer-sweep 2s ease-in-out infinite;
}
.battery-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00E87A;
  font-family: 'Poppins', sans-serif;
}

/* ════════════════════════════════════════
   SOLAR PANEL ANIMATION
════════════════════════════════════════ */
.panel-widget {
  width: 120px;
  height: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 6px;
  padding: 4px;
  background: rgba(255,215,0,0.05);
  box-shadow: 0 0 20px rgba(255,215,0,0.15);
}
.panel-cell {
  background: linear-gradient(135deg, #0A1628, #1A2B4E);
  border-radius: 2px;
  border: 1px solid rgba(255,215,0,0.15);
  transition: background 0.3s;
  animation: panel-charge var(--delay, 2s) ease-in-out infinite;
}
@keyframes panel-charge {
  0%, 100% { background: linear-gradient(135deg, #0A1628, #1A2B4E); box-shadow: none; }
  50%       { background: linear-gradient(135deg, #1a3060, #243d6e); box-shadow: inset 0 0 6px rgba(255,215,0,0.3); }
}

/* ════════════════════════════════════════
   TYPEWRITER
════════════════════════════════════════ */
.typewriter-cursor::after {
  content: '|';
  animation: blink-cursor 0.8s step-end infinite;
  color: #FFD700;
  font-weight: 300;
  margin-left: 2px;
}

/* ════════════════════════════════════════
   STAT RINGS (Circular Progress)
════════════════════════════════════════ */
.stat-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-ring-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.stat-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}
.stat-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339;
  stroke-dashoffset: 339;
  transition: stroke-dashoffset 2s cubic-bezier(0.4,0,0.2,1);
}
.stat-ring-fill.yellow { stroke: url(#ring-grad-yellow); }
.stat-ring-fill.green  { stroke: url(#ring-grad-green); }
.stat-ring-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #FFD700;
  line-height: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-ring-label {
  font-size: 0.6rem;
  color: #8892A4;
  text-align: center;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════════
   FLOATING BADGES / TAGS
════════════════════════════════════════ */
.floating-badge {
  position: absolute;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.1);
  animation: float var(--dur, 5s) ease-in-out infinite var(--delay, 0s);
  white-space: nowrap;
}
.floating-badge .fb-icon { font-size: 1.25rem; }
.floating-badge .fb-val  { font-family:'Poppins',sans-serif; font-weight:700; font-size:1.1rem; color:#FFD700; line-height:1; }
.floating-badge .fb-text { font-size:0.7rem; color:#8892A4; }

/* ════════════════════════════════════════
   SCROLL-TRIGGERED REVEALS (enhanced)
════════════════════════════════════════ */
.reveal-up    { opacity:0; transform:translateY(40px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal-left  { opacity:0; transform:translateX(-50px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity:0; transform:translateX(50px);  transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal-scale { opacity:0; transform:scale(0.88);       transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed, .reveal-scale.revealed {
  opacity:1; transform:none;
}
.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }
.reveal-delay-5 { transition-delay: 0.5s !important; }
.reveal-delay-6 { transition-delay: 0.6s !important; }

/* ════════════════════════════════════════
   HOVER EFFECTS — CARDS
════════════════════════════════════════ */
.card-hover-lift {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 40px rgba(255,215,0,0.12);
  border-color: rgba(255,215,0,0.35) !important;
}
.card-hover-glow:hover {
  box-shadow: 0 0 30px rgba(255,215,0,0.2), 0 8px 40px rgba(0,0,0,0.5);
}

/* ════════════════════════════════════════
   BUTTON ANIMATIONS
════════════════════════════════════════ */
.btn-pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
}
.btn-ripple:active::after { transform: scale(1); transition: none; }

.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-15deg);
  transition: none;
}
.btn-shine:hover::before {
  left: 125%;
  transition: left 0.5s ease;
}

/* ════════════════════════════════════════
   STATS COUNTER ANIMATION
════════════════════════════════════════ */
.stat-animated { animation: counter-up 0.6s ease both; }
.stat-animated .stat-num { animation: fadeInUp 0.8s ease both; }

/* ════════════════════════════════════════
   ANIMATED BACKGROUND SECTIONS
════════════════════════════════════════ */
.section-aurora {
  position: relative;
  overflow: hidden;
}
.section-aurora::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(255,215,0,0.06) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}
.section-aurora::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,232,122,0.05) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation: float 10s ease-in-out infinite 4s;
  pointer-events: none;
}

/* ════════════════════════════════════════
   SCROLLING TICKER
════════════════════════════════════════ */
.ticker-wrap {
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,215,0,0.08), rgba(0,232,122,0.05));
  border-top: 1px solid rgba(255,215,0,0.2);
  border-bottom: 1px solid rgba(255,215,0,0.2);
  padding: 0.6rem 0;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  animation: wave-move 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FFD700;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.ticker-dot.green { background: #00E87A; }

/* ════════════════════════════════════════
   PARTICLE MINI (CSS-only rising sparks)
════════════════════════════════════════ */
.sparks-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.spark {
  position: absolute;
  bottom: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 8px #FFD700;
  animation: rise-particle var(--dur, 3s) ease-out infinite var(--delay, 0s);
}
.spark.green { background: #00E87A; box-shadow: 0 0 8px #00E87A; }

/* ════════════════════════════════════════
   ICON BOUNCE
════════════════════════════════════════ */
.icon-bounce:hover { animation: float 0.6s ease-in-out; }
.icon-spin-hover:hover { animation: spin-slow 0.8s linear; }
.icon-zap:hover { animation: zap 0.3s ease-in-out 3; }

/* ════════════════════════════════════════
   GRADIENT BORDER ANIMATED
════════════════════════════════════════ */
.border-gradient-animated {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  padding: 1px;
}
.border-gradient-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(var(--angle,0deg), #FFD700 0%, #00E87A 33%, #FFD700 66%, #FF8C00 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-slow 4s linear infinite;
}

/* ════════════════════════════════════════
   MEDIA QUERIES
════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 768px) {
  .hero-orb-1 { width: 300px; height: 300px; }
  .hero-orb-2 { display: none; }
  .energy-diagram { overflow-x: auto; }
}
