/* AK Learning Hub - global styles (CDN-only) */
:root{
  --ak-bg: #0b1020;
  --ak-card: rgba(255,255,255,0.06);
  --ak-border: rgba(255,255,255,0.12);
  --ak-glow: rgba(99,102,241,0.35);
}

/* Smooth focus */
:focus-visible{
  outline: 2px solid rgba(99,102,241,0.9);
  outline-offset: 2px;
}

/* Scrollbar */
*{ scrollbar-width: thin; scrollbar-color: rgba(99,102,241,0.55) rgba(0,0,0,0); }
*::-webkit-scrollbar{ width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb{ background: rgba(99,102,241,0.55); border-radius: 999px; border: 2px solid rgba(0,0,0,0); background-clip: padding-box; }
*::-webkit-scrollbar-track{ background: rgba(0,0,0,0); }

/* Fancy gradient border helper */
.ak-gradient-border{
  position: relative;
}
.ak-gradient-border:before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(99,102,241,0.9), rgba(16,185,129,0.7), rgba(236,72,153,0.7));
  filter: blur(0px);
  z-index: -1;
}

/* Card shine */
.ak-shine{
  position: relative;
  overflow: hidden;
}
.ak-shine:after{
  content: "";
  position: absolute;
  top: -120%;
  left: -120%;
  width: 240%;
  height: 240%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%);
  transform: rotate(12deg);
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}
.ak-shine:hover:after{
  opacity: 1;
}

/* Subtle floating animation */
@keyframes akFloat{
  0%{ transform: translateY(0px); }
  50%{ transform: translateY(-6px); }
  100%{ transform: translateY(0px); }
}
.ak-float{
  animation: akFloat 4.5s ease-in-out infinite;
}

/* Mouse trail canvas */
#ak-trail{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

/* Particle background canvas */
#ak-particles{
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .ak-float{ animation: none !important; }
}
