@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --bg:#0b1223;
  --card: rgba(17, 24, 39, 0.58);
  --border: rgba(148, 163, 184, 0.12);
  --muted: rgba(226, 232, 240, 0.78);
  --glow: rgba(124, 58, 237, 0.55);
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: #f8fafc;
  overflow-x: hidden;
}

.gradient-text{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass{
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.card-hover{
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card-hover:hover{
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: 0 22px 55px rgba(0,0,0,0.35);
}

.btn-glow{
  position: relative;
  isolation: isolate;
}
.btn-glow::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(99,102,241,0.45), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(139,92,246,0.45), transparent 55%);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: -1;
}
.btn-glow:hover::after{ opacity: 1; }

.navlink{
  position:relative;
  color: rgba(248,250,252,0.86);
  transition: color 180ms ease;
}
.navlink:hover{ color: rgba(196,181,253,1); }
.navlink::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  height:2px;
  width:0%;
  background: linear-gradient(90deg, rgba(99,102,241,1), rgba(139,92,246,1));
  transition: width 220ms ease;
  border-radius:999px;
}
.navlink:hover::after{ width:100%; }

.nav-active{
  color: rgba(196,181,253,1);
}
.nav-active::after{ width: 100%; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(17,24,39,0.35);
  color: rgba(226,232,240,0.85);
  font-size: 12px;
}

.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.35), transparent);
}

.noise{
  pointer-events:none;
  position:fixed;
  inset:0;
  opacity:0.06;
  z-index:-1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.bg-blob{
  position:absolute;
  width:560px;
  height:560px;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.26;
  z-index:-2;
  will-change: transform;
  animation: blobFloat 10s ease-in-out infinite;
}
.bg-blob.one{ background: rgba(99,102,241,0.85); top:-220px; left:-180px; }
.bg-blob.two{ background: rgba(139,92,246,0.85); bottom:-260px; right:-220px; animation-delay: 1.2s; }
.bg-blob.three{ background: rgba(16,185,129,0.80); top:42%; left:-280px; animation-delay: 2s; opacity: 0.18; }

@keyframes blobFloat{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(55px,-30px) scale(1.06); }
}

/* reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms ease, transform 720ms ease;
  will-change: transform, opacity;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}
.delay-1{ transition-delay: 80ms; }
.delay-2{ transition-delay: 160ms; }
.delay-3{ transition-delay: 240ms; }
.delay-4{ transition-delay: 320ms; }

/* hero heading subtle type bar */
.typebar{
  display:inline-block;
  border-right: 2px solid rgba(139,92,246,0.9);
  animation: blink 0.8s infinite;
  padding-right: 4px;
}
@keyframes blink { 50% { border-color: transparent; } }

/* mobile menu */
#mobileMenu{
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
#mobileMenu.open{
  max-height: 520px;
}

/* small nice focus */
input, textarea{
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(99,102,241,0.8) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* particles canvas */
#particles{
  position: fixed;
  inset: 0;
  z-index: -10;
  opacity: 0.40;
  pointer-events: none;
}
