:root {
  --bg: #0b0b14;
  --card: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.08);
  --text: #e8ecf1;
  --muted: #a7b0be;
  --accent: #7b5cff;
  --accent-2: #00e5ff;
  --accent-3: #ff6ec7;
  --ring: rgba(123,92,255,.45);
  --canvas-trail: rgba(11,11,20,0.12);
  --particle-hue1: 260;
  --particle-hue2: 320;
  --particle-sat: 90%;
  --particle-light: 60%;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor:none;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  filter: saturate(1.1) brightness(0.9);

}

.cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events:none;
  transform: translate(-50%, -50%);
  transition: width .15s ease, height .15s ease, background .15s ease;
  z-index: 10;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(11,11,20,.65), rgba(11,11,20,.15));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  z-index: 5;
}

.brand {
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  color: var(--text);
}
.brand span {
  color: var(--accent);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
}

.resume{ 
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.theme-toggle {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: none;
}
.theme-toggle:hover { color: var(--text); border-color: rgba(255,255,255,.35); }

.hero {
  position: relative;
  padding: 14vh 20px 8vh;
  text-align: center;
}
/* .blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 50%, rgba(123,92,255,.35), rgba(0,229,255,.35), rgba(255,110,199,.35), rgba(123,92,255,.35));
  filter: blur(80px) saturate(1.2);
  border-radius: 30% 70% 60% 40% / 40% 30% 70% 60%;
  animation: morph 18s ease-in-out infinite alternate;
  z-index: -1;
} */
@keyframes morph {
  0%   { border-radius: 30% 70% 60% 40% / 40% 30% 70% 60%; transform: translateX(-50%) rotate(0deg) scale(1.0); }
  50%  { border-radius: 60% 40% 35% 65% / 55% 70% 30% 45%; transform: translateX(-50%) rotate(30deg) scale(1.05); }
  100% { border-radius: 40% 60% 70% 30% / 35% 45% 65% 55%; transform: translateX(-50%) rotate(-20deg) scale(1.02); }
}

.title { font-size: clamp(36px, 6vw, 72px); margin: 0 0 10px; }
.grad {
  background: linear-gradient(90deg, #b097ff, #00e5ff, #ff9ae0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); }

.cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; }
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 24px var(--ring);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--ring); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: none;
}

.quick-links { margin-top: 16px; display: flex; gap: 14px; justify-content: center; color: var(--muted); flex-wrap: wrap; }

.section { padding: 8vh 20px; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 28px; margin: 0 0 20px; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.tags {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap;
}
.tags li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.08);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient( to bottom right, rgba(255,255,255,.10), rgba(255,255,255,.06) );
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 18px;
  min-height: 150px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.24); box-shadow: 0 16px 38px rgba(0,0,0,.35); }
.card h3 { margin: 4px 0 8px; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; } }

.stat {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.value { font-size: 28px; font-weight: 700; }
.label { color: var(--muted); }

.note { color: var(--muted); margin-top: 12px; }

.contact-card {
  background: linear-gradient( to bottom right, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer {
  color: var(--muted);
  padding: 30px 20px 60px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* Magnetic hover */
.magnetic { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }

/* Light theme toggle (optional) */
.light {
  --bg: #f7f7fb;
  --text: #0b0b14;
  --muted: #000000;
  --card: rgba(0,0,0,0.04);
  --glass: rgba(0,0,0,0.06);
  --ring: rgba(123,92,255,.25);
  --canvas-trail: rgb(247, 247, 251);
  --particle-hue1: 200;
  --particle-hue2: 260;
  --particle-sat: 70%;
  --particle-light: 40%;
}
.light .nav a:hover { background: rgba(0,0,0,0.06); }

.code-profile{
  text-decoration: none;
  color: var(--accent);
}

.project-card{
  text-decoration: none;
  color: var(--text);
}

.social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.social-link svg { display: block; }
.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ring);
  border-color: var(--accent);
}
