html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", sans-serif;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(99,102,241,.10), transparent 22%),
    radial-gradient(circle at 80% 15%, rgba(168,85,247,.10), transparent 22%),
    radial-gradient(circle at 70% 70%, rgba(236,72,153,.08), transparent 24%);
}

h1, h2, h3, .font-display { font-family: "Clash Display", "Space Grotesk", sans-serif; }

.glass {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.dark .glass {
  background: rgba(8,10,20,.72);
  border: 1px solid rgba(255,255,255,.08);
}

.section-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #9333ea, #db2777);
  z-index: 9999;
  transition: width .12s ease;
}

.hero-orb {
  filter: blur(55px);
  opacity: .35;
  animation: floaty 8s ease-in-out infinite;
}
.hero-orb.two {
  animation-delay: 1.5s;
}
@keyframes floaty {
  0%,100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-25px) translateX(10px); }
}

.spin-slow { animation: spin 16s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tech-badge {
  transition: all .25s ease;
}
.tech-badge:hover {
  transform: translateY(-4px) scale(1.03);
}

.card-lift {
  transition: transform .28s ease, box-shadow .28s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.28);
}

.nav-scrolled {
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(99,102,241,.16);
  backdrop-filter: blur(18px);
}
.dark .nav-scrolled {
  background: rgba(5,6,10,.86);
  border-bottom: 1px solid rgba(99,102,241,.22);
}
