
:root{--bg:#0a0b14;--surface:#111323;--text:#f7f7fb;--muted:#a8acc7;--line:rgba(255,255,255,.12);--blue:#00d4ff;--violet:#7c5cff;--cyan:#6fffe9;--pink:#ff4fd8;--shadow:0 24px 80px rgba(0,0,0,.35)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at 20% 10%,rgba(124,92,255,.26),transparent 30%),radial-gradient(circle at 85% 20%,rgba(0,212,255,.20),transparent 28%),radial-gradient(circle at 50% 100%,rgba(255,79,216,.12),transparent 35%),var(--bg);overflow-x:hidden}a{color:inherit;text-decoration:none}p{line-height:1.75;color:var(--muted)}main{width:min(1180px,calc(100% - 40px));margin:0 auto}.noise{pointer-events:none;position:fixed;inset:0;z-index:-1;opacity:.12;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:34px 34px}.orb{position:fixed;border-radius:999px;filter:blur(18px);opacity:.35;z-index:-2}.orb-one{width:320px;height:320px;background:var(--violet);left:-120px;top:140px}.orb-two{width:260px;height:260px;background:var(--blue);right:-80px;bottom:160px}.nav{width:min(1180px,calc(100% - 40px));margin:24px auto 0;padding:14px 16px;border:1px solid var(--line);background:rgba(10,11,20,.68);backdrop-filter:blur(18px);border-radius:24px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:16px;z-index:20;box-shadow:var(--shadow)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-weight:900;background:linear-gradient(135deg,var(--blue),var(--violet));color:#fff}.brand small{display:block;color:var(--muted);font-size:.76rem;margin-top:2px}.nav-links{display:flex;align-items:center;gap:6px}.nav-links a{padding:10px 13px;border-radius:14px;color:var(--muted);font-weight:700;font-size:.92rem}.nav-links a:hover,.nav-links a.active{background:rgba(255,255,255,.08);color:var(--text)}.nav-links .nav-cta{background:linear-gradient(135deg,var(--blue),var(--violet));color:white}.nav-toggle{display:none;background:transparent;color:white;border:0;font-size:1.6rem}.hero{min-height:calc(100vh - 96px);display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:42px;padding:84px 0 54px}.eyebrow{margin:0 0 12px;color:var(--cyan);text-transform:uppercase;letter-spacing:.18em;font-size:.78rem;font-weight:900}h1,h2,h3{margin:0;letter-spacing:-.04em}.hero h1{font-size:clamp(3.7rem,9vw,7.7rem);line-height:.9}.hero h1 span{color:transparent;-webkit-text-stroke:1.4px rgba(255,255,255,.86)}.hero-subtitle{font-size:1.08rem;max-width:640px;margin:26px 0}.hero-actions{display:flex;gap:14px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:16px;font-weight:900;border:1px solid var(--line)}.btn.primary{background:linear-gradient(135deg,var(--blue),var(--violet));color:white}.btn.ghost{background:rgba(255,255,255,.06)}.hero-card{min-height:530px;border-radius:36px;border:1px solid var(--line);background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.03)),rgba(17,19,35,.75);box-shadow:var(--shadow);padding:26px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.hero-card:before{content:"";position:absolute;width:280px;height:280px;border-radius:999px;background:linear-gradient(135deg,var(--blue),var(--pink));right:-80px;top:-80px;opacity:.45;filter:blur(6px)}.avatar-card{position:relative;z-index:1;display:grid;place-items:center;gap:22px;margin-top:34px}.avatar-ring{width:230px;height:230px;border-radius:40px;background:linear-gradient(var(--surface),var(--surface)) padding-box,linear-gradient(135deg,var(--blue),var(--violet),var(--pink)) border-box;border:3px solid transparent;display:grid;place-items:center;transform:rotate(-5deg);box-shadow:0 30px 70px rgba(0,0,0,.38)}.avatar-ring span{font-size:4.4rem;font-weight:1000;transform:rotate(5deg);color:transparent;background:linear-gradient(135deg,var(--cyan),var(--violet));-webkit-background-clip:text;background-clip:text}.status-pill{border:1px solid var(--line);background:rgba(255,255,255,.08);padding:10px 14px;border-radius:999px;color:var(--text);font-weight:800}.console-card{position:relative;z-index:1;background:#070812;border:1px solid rgba(255,255,255,.12);border-radius:22px;overflow:hidden}.console-top{height:38px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:0 14px}.console-top span{width:11px;height:11px;border-radius:999px;background:var(--blue)}.console-top span:nth-child(2){background:var(--violet)}.console-top span:nth-child(3){background:var(--pink)}pre{margin:0;padding:18px;white-space:pre-wrap;color:#d7e5ff;font-size:.92rem;line-height:1.65}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 82px}.metrics div,.feature-card,.project-card,.glass-panel,.timeline-card,.skill-column,.cert-card,.contact-card,.experience-item{border:1px solid var(--line);background:linear-gradient(160deg,rgba(255,255,255,.10),rgba(255,255,255,.04));border-radius:28px;padding:26px;box-shadow:var(--shadow)}.metrics strong{font-size:2.2rem;display:block}.metrics span{color:var(--muted);font-weight:700}.section{padding:58px 0}.section-heading{display:flex;justify-content:space-between;gap:30px;margin-bottom:26px;align-items:end}.section-heading h2{font-size:clamp(2rem,5vw,4rem);max-width:780px}.feature-grid,.project-grid,.skills-board{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card .icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:16px;background:rgba(0,212,255,.14);color:var(--cyan);font-weight:1000;margin-bottom:34px}.feature-card h3,.project-card h3,.project-card h2,.skill-column h2{font-size:1.35rem;margin-bottom:10px}.page-hero{padding:90px 0 38px}.page-hero h1{font-size:clamp(3.2rem,8vw,6rem)}.page-hero p{max-width:820px;font-size:1.05rem}.compact{min-height:auto}.split-section{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;padding:24px 0 58px}.timeline-item{padding:20px 0;border-top:1px solid var(--line)}.timeline-item span,.date,.project-tag,.role,.stack{color:var(--cyan);font-weight:900}.cards.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.experience-list{display:grid;gap:18px;padding:24px 0 70px}.experience-item{display:grid;grid-template-columns:220px 1fr;gap:20px}.experience-item ul{padding-left:18px;color:var(--muted);line-height:1.7}.stack{margin-top:12px;font-size:.92rem}.project-grid{grid-template-columns:repeat(2,1fr);padding:24px 0 70px}.project-card.featured{grid-column:span 2}.project-tag{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;margin-bottom:14px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.chips span{padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid var(--line);color:var(--text);font-weight:800;font-size:.82rem}.skills-board{grid-template-columns:repeat(2,1fr);padding:24px 0 34px}.cert-list{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:12px}.cert-list li{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:12px;color:var(--muted)}.cert-list strong{color:var(--text)}.contact-hero{min-height:calc(100vh - 120px);display:grid;grid-template-columns:1fr .85fr;gap:26px;align-items:center;padding:80px 0}.contact-hero h1{font-size:clamp(3rem,7vw,6.2rem);line-height:.95}.contact-card{display:grid;gap:12px}.contact-card a,.contact-card div{display:block;padding:18px;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid var(--line)}.contact-card span{display:block;color:var(--muted);font-size:.85rem;margin-bottom:6px}.contact-card strong{word-break:break-word}.footer{width:min(1180px,calc(100% - 40px));margin:20px auto 32px;border-top:1px solid var(--line);padding-top:22px;display:flex;justify-content:space-between;gap:20px;color:var(--muted)}.footer p{margin:.2rem 0 0}.footer-links{display:flex;gap:14px;align-items:center}.footer-links a{font-weight:900;color:var(--text)}@media (max-width:900px){.nav{border-radius:18px}.nav-toggle{display:block}.nav-links{display:none;position:absolute;left:0;right:0;top:76px;margin:0;background:rgba(10,11,20,.96);border:1px solid var(--line);border-radius:20px;padding:12px;box-shadow:var(--shadow)}.nav-links.open{display:grid}.hero,.split-section,.contact-hero{grid-template-columns:1fr}.hero{padding-top:54px}.hero-card{min-height:420px}.metrics,.feature-grid,.project-grid,.skills-board,.cards.two{grid-template-columns:1fr}.project-card.featured{grid-column:auto}.experience-item{grid-template-columns:1fr}.footer{flex-direction:column}}@media (max-width:560px){main,.nav,.footer{width:min(100% - 24px,1180px)}.hero h1{font-size:3.8rem}.avatar-ring{width:190px;height:190px}.metrics div{padding:18px}}


/* =========================
   Extra Animation Layer
   ========================= */
body {
  cursor: default;
}

.animated-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -3;
}

.float-shape {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,212,255,.28), rgba(124,92,255,.16), rgba(255,79,216,.14));
  border: 1px solid rgba(255,255,255,.08);
  filter: blur(.2px);
  opacity: .55;
  animation: floatDrift 18s ease-in-out infinite alternate;
}

.float-shape.s1 { width: 110px; height: 110px; left: 6%; top: 18%; animation-duration: 19s; }
.float-shape.s2 { width: 72px; height: 72px; right: 12%; top: 24%; animation-duration: 15s; animation-delay: -4s; }
.float-shape.s3 { width: 150px; height: 150px; left: 58%; bottom: 10%; animation-duration: 21s; animation-delay: -8s; }
.float-shape.s4 { width: 48px; height: 48px; right: 28%; bottom: 30%; animation-duration: 13s; animation-delay: -2s; }

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(111,255,233,.07), transparent);
  height: 22vh;
  transform: translateY(-35vh);
  animation: scanMove 9s linear infinite;
  opacity: .48;
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  opacity: .18;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,212,255,.72), rgba(124,92,255,.26) 35%, transparent 70%);
  transition: opacity .25s ease;
}

.brand-mark {
  animation: brandPulse 4s ease-in-out infinite;
}

.hero h1 {
  animation: heroIn .9s cubic-bezier(.2,.8,.2,1) both;
}

.hero-subtitle,
.hero-actions,
.page-hero p,
.page-hero .eyebrow {
  animation: fadeUp .85s cubic-bezier(.2,.8,.2,1) both;
}

.hero-subtitle { animation-delay: .12s; }
.hero-actions { animation-delay: .22s; }

.hero-card {
  animation: cardFloatIn 1s cubic-bezier(.2,.8,.2,1) .14s both, subtleFloat 6s ease-in-out 1.2s infinite;
}

.avatar-ring {
  animation: avatarTilt 7s ease-in-out infinite;
}

.status-pill {
  animation: pillGlow 3.4s ease-in-out infinite;
}

.console-card {
  animation: consoleBlink 5s ease-in-out infinite;
}

.metrics div,
.feature-card,
.project-card,
.skill-column,
.experience-item,
.glass-panel,
.timeline-card,
.cert-card,
.contact-card {
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.metrics div:hover,
.feature-card:hover,
.project-card:hover,
.skill-column:hover,
.experience-item:hover,
.glass-panel:hover,
.timeline-card:hover,
.cert-card:hover,
.contact-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(111,255,233,.36);
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.055));
  box-shadow: 0 32px 90px rgba(0, 212, 255, .12);
}

.btn {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 212, 255, .18);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.44), transparent);
  transition: left .55s ease;
}

.btn:hover::after {
  left: 115%;
}

.nav {
  animation: navDrop .7s cubic-bezier(.2,.8,.2,1) both;
}

.nav-links a {
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
}

.chips span {
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.chips span:hover {
  transform: translateY(-3px) rotate(-1deg);
  border-color: rgba(0,212,255,.4);
}

.timeline-item,
.cert-list li {
  transition: transform .25s ease, border-color .25s ease;
}

.timeline-item:hover,
.cert-list li:hover {
  transform: translateX(6px);
  border-color: rgba(111,255,233,.32);
}

.experience-item .date {
  position: relative;
}

.experience-item .date::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  animation: lineBreath 2.8s ease-in-out infinite;
}

.project-card.featured {
  position: relative;
  overflow: hidden;
}

.project-card.featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from var(--angle), transparent 0 55%, rgba(0,212,255,.22), rgba(124,92,255,.22), transparent);
  animation: borderSpin 8s linear infinite;
  z-index: -1;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderSpin {
  to { --angle: 360deg; }
}

@keyframes floatDrift {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(34px,-26px,0) rotate(18deg); }
  100% { transform: translate3d(-18px,32px,0) rotate(-12deg); }
}

@keyframes scanMove {
  0% { transform: translateY(-35vh); }
  100% { transform: translateY(120vh); }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px) scale(.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(36px) rotate(2deg) scale(.96); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes avatarTilt {
  0%,100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}

@keyframes pillGlow {
  0%,100% { box-shadow: 0 0 0 rgba(111,255,233,0); }
  50% { box-shadow: 0 0 28px rgba(111,255,233,.22); }
}

@keyframes consoleBlink {
  0%, 88%, 100% { box-shadow: none; }
  90%, 94% { box-shadow: 0 0 30px rgba(0,212,255,.18); }
}

@keyframes brandPulse {
  0%,100% { box-shadow: 0 0 0 rgba(0,212,255,0); }
  50% { box-shadow: 0 0 30px rgba(0,212,255,.26); }
}

@keyframes lineBreath {
  0%,100% { width: 42px; opacity: .55; }
  50% { width: 74px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================
   Institution Logo Integration
   ========================= */
.org-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
}

.org-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  padding: 7px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  user-select: none;
  pointer-events: none;
  animation: logoSoftFloat 5.5s ease-in-out infinite;
}

.project-logo-title .org-logo {
  width: 58px;
  height: 58px;
}

.trusted-logo-panel {
  margin: -36px 0 72px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.trusted-logo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.08), transparent);
  transform: translateX(-100%);
  animation: panelShine 7s ease-in-out infinite;
}

.trusted-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.trusted-grid div {
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  border-radius: 22px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.trusted-grid div:hover {
  transform: translateY(-8px);
  border-color: rgba(111,255,233,.38);
  background: rgba(255,255,255,.095);
}

.trusted-grid span {
  color: var(--text);
  font-size: .82rem;
  font-weight: 900;
}

.logo-marquee {
  margin: 8px 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 10px 0;
  animation: marqueeMove 26s linear infinite;
}

.logo-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 8px 16px;
  color: var(--text);
  font-weight: 900;
}

.logo-track .org-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 5px;
}

/* More premium animations across all pages */
.page-hero h1 {
  animation: titleReveal 1s cubic-bezier(.2,.8,.2,1) both;
}

.page-hero h1::after,
.section-heading h2::after {
  content: "";
  display: block;
  width: 96px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  animation: underlineGrow 1.2s cubic-bezier(.2,.8,.2,1) .2s both;
}

.experience-item {
  position: relative;
  overflow: hidden;
}

.experience-item::before,
.project-card::after,
.skill-column::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -20%;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,212,255,.18), transparent 70%);
  transform: scale(.8);
  transition: transform .35s ease, opacity .35s ease;
  opacity: .4;
  pointer-events: none;
}

.experience-item:hover::before,
.project-card:hover::after,
.skill-column:hover::after {
  transform: scale(1.4);
  opacity: .8;
}

.nav::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.9), rgba(124,92,255,.9), transparent);
  animation: navLight 4.5s ease-in-out infinite;
}

.footer {
  animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes logoSoftFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes panelShine {
  0%, 30% { transform: translateX(-120%); opacity: 0; }
  45% { opacity: 1; }
  70%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(24px); letter-spacing: .06em; filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); letter-spacing: -.04em; filter: blur(0); }
}

@keyframes underlineGrow {
  from { width: 0; opacity: 0; }
  to { width: 96px; opacity: 1; }
}

@keyframes navLight {
  0%,100% { opacity: .18; transform: scaleX(.45); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 900px) {
  .trusted-grid { grid-template-columns: repeat(2, 1fr); }
  .org-title { align-items: flex-start; }
}

@media (max-width: 560px) {
  .trusted-grid { grid-template-columns: 1fr; }
  .org-logo { width: 48px; height: 48px; }
}


/* =========================
   Profile Photo + Welcome Popup
   ========================= */
.photo-ring {
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(var(--surface),var(--surface)) padding-box,
    linear-gradient(135deg,var(--blue),var(--violet),var(--pink)) border-box;
}

.profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(5deg) scale(1.07);
  filter: saturate(1.1) contrast(1.03);
  user-select: none;
  pointer-events: none;
}

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.welcome-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,4,10,.72);
  backdrop-filter: blur(18px);
}

.welcome-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 34px;
  padding: 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,212,255,.16), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(124,92,255,.18), transparent 34%),
    linear-gradient(160deg, rgba(20,23,42,.96), rgba(9,11,21,.96));
  box-shadow: 0 42px 120px rgba(0,0,0,.55);
  transform: translateY(24px) scale(.96);
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}

.welcome-modal.show .welcome-card {
  transform: translateY(0) scale(1);
  animation: welcomePop .72s cubic-bezier(.2,.8,.2,1) both;
}

.welcome-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(from var(--angle), transparent, rgba(0,212,255,.22), rgba(124,92,255,.22), transparent 40%);
  animation: borderSpin 7s linear infinite;
  z-index: -1;
}

.welcome-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.welcome-photo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
}

.welcome-photo {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.9);
  position: relative;
  z-index: 2;
}

.welcome-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--pink));
  opacity: .25;
  filter: blur(10px);
  animation: welcomePulse 2.5s ease-in-out infinite;
}

.welcome-card h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
  margin-bottom: 12px;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@keyframes welcomePop {
  from { opacity: 0; transform: translateY(28px) scale(.94); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes welcomePulse {
  0%,100% { transform: scale(.95); opacity: .18; }
  50% { transform: scale(1.08); opacity: .34; }
}


/* =========================
   Always-on Idle Motion Upgrade
   ========================= */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -4;
  pointer-events: none;
  background:
    conic-gradient(from 0deg at 50% 50%,
      rgba(0,212,255,.06),
      rgba(124,92,255,.08),
      rgba(255,79,216,.055),
      rgba(111,255,233,.05),
      rgba(0,212,255,.06));
  animation: ambientRotate 28s linear infinite;
  filter: blur(42px);
  opacity: .9;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--auto-x, 20%) var(--auto-y, 30%), rgba(0,212,255,.16), transparent 28%),
    radial-gradient(circle at calc(100% - var(--auto-x, 20%)) calc(100% - var(--auto-y, 30%)), rgba(124,92,255,.13), transparent 32%);
  animation: ambientPosition 16s ease-in-out infinite alternate;
}

.noise {
  animation: gridSlide 18s linear infinite;
}

.orb-one {
  animation: orbOneIdle 13s ease-in-out infinite alternate;
}

.orb-two {
  animation: orbTwoIdle 15s ease-in-out infinite alternate;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.08), transparent 80%);
  transform: translateX(-120%);
  animation: heroCardSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.console-card pre::after {
  content: "▋";
  color: var(--cyan);
  animation: cursorBlink 1s steps(2, start) infinite;
}

.feature-card::before,
.project-card::before,
.skill-column::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(111,255,233,.10), transparent 32%);
  opacity: .7;
  animation: cardGlowDrift 8s ease-in-out infinite alternate;
}

.feature-card,
.project-card,
.skill-column {
  position: relative;
  overflow: hidden;
}

.trusted-grid div,
.metrics div {
  animation: softBob 6s ease-in-out infinite;
}

.trusted-grid div:nth-child(2),
.metrics div:nth-child(2) { animation-delay: -1.2s; }
.trusted-grid div:nth-child(3),
.metrics div:nth-child(3) { animation-delay: -2.4s; }
.trusted-grid div:nth-child(4),
.metrics div:nth-child(4) { animation-delay: -3.6s; }
.trusted-grid div:nth-child(5) { animation-delay: -4.8s; }

.org-logo {
  animation: logoSoftFloat 5.5s ease-in-out infinite, logoBreath 3.7s ease-in-out infinite !important;
}

.nav .brand strong {
  background: linear-gradient(90deg, var(--text), var(--cyan), var(--text));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 5s linear infinite;
}

.page-hero .eyebrow,
.hero .eyebrow {
  animation: fadeUp .85s cubic-bezier(.2,.8,.2,1) both, textGlow 3.8s ease-in-out infinite;
}

@keyframes ambientRotate {
  to { transform: rotate(360deg); }
}

@keyframes ambientPosition {
  0% { --auto-x: 18%; --auto-y: 24%; opacity: .76; }
  35% { --auto-x: 72%; --auto-y: 18%; opacity: .94; }
  70% { --auto-x: 64%; --auto-y: 76%; opacity: .82; }
  100% { --auto-x: 24%; --auto-y: 68%; opacity: .94; }
}

@keyframes gridSlide {
  from { background-position: 0 0, 0 0; }
  to { background-position: 34px 34px, 34px 34px; }
}

@keyframes orbOneIdle {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(58px,42px,0) scale(1.12); }
}

@keyframes orbTwoIdle {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-50px,-38px,0) scale(1.08); }
}

@keyframes heroCardSweep {
  0%, 35% { transform: translateX(-130%); opacity: 0; }
  48% { opacity: .8; }
  70%, 100% { transform: translateX(130%); opacity: 0; }
}

@keyframes cursorBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes cardGlowDrift {
  0% { transform: translate3d(-16px,-12px,0); opacity: .45; }
  100% { transform: translate3d(26px,18px,0); opacity: .9; }
}

@keyframes softBob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes logoBreath {
  0%,100% { box-shadow: 0 12px 32px rgba(0,0,0,.22), 0 0 0 rgba(0,212,255,0); }
  50% { box-shadow: 0 16px 38px rgba(0,0,0,.26), 0 0 22px rgba(0,212,255,.16); }
}

@keyframes textShimmer {
  to { background-position: -220% center; }
}

@keyframes textGlow {
  0%,100% { text-shadow: 0 0 0 rgba(111,255,233,0); }
  50% { text-shadow: 0 0 22px rgba(111,255,233,.32); }
}


/* =========================
   Final Fix: Active Nav, Photo Fallback, Constant Motion
   ========================= */
.nav-links a.active {
  background: linear-gradient(135deg, rgba(0,212,255,.22), rgba(124,92,255,.24));
  color: #fff !important;
  border: 1px solid rgba(111,255,233,.28);
  box-shadow: 0 10px 28px rgba(0,212,255,.12);
}

.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  animation: activeNavLine 2.2s ease-in-out infinite;
}

.photo-ring.image-failed,
.welcome-photo-wrap.image-failed {
  display: grid;
  place-items: center;
}

.photo-ring.image-failed::after,
.welcome-photo-wrap.image-failed::after {
  content: "DA";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 1000;
  font-size: 4rem;
  color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.welcome-photo-wrap.image-failed::after {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background-color: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
}

.profile-hero-img,
.welcome-photo {
  object-position: center center;
  background: rgba(255,255,255,.92);
}

/* Make idle motion visible even when the user does nothing */
.float-shape {
  transform: translate3d(var(--idle-x, 0), var(--idle-y, 0), 0) rotate(var(--idle-r, 0deg));
  animation: floatDrift 11s ease-in-out infinite alternate, shapePulse 4s ease-in-out infinite !important;
}

.float-shape.s2 { animation-duration: 13s, 4.5s !important; }
.float-shape.s3 { animation-duration: 15s, 5s !important; }
.float-shape.s4 { animation-duration: 10s, 3.8s !important; }

.hero-card {
  transform: var(--idle-transform, translateY(0));
  animation: cardFloatIn 1s cubic-bezier(.2,.8,.2,1) .14s both, strongerFloat 4.6s ease-in-out 1.2s infinite !important;
}

.avatar-ring {
  animation: avatarTilt 5.2s ease-in-out infinite, neonBreath 3s ease-in-out infinite !important;
}

.page-hero,
.section,
.experience-list,
.project-grid,
.skills-board,
.contact-hero {
  animation: pageBreath 8s ease-in-out infinite;
}

.scan-line {
  animation: scanMove 5.8s linear infinite !important;
  opacity: .68;
}

.logo-track {
  animation: marqueeMove 17s linear infinite !important;
}

.console-card {
  animation: consoleBlink 3.2s ease-in-out infinite, consoleLift 5s ease-in-out infinite !important;
}

@keyframes activeNavLine {
  0%,100% { transform: scaleX(.35); opacity: .55; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes shapePulse {
  0%,100% { opacity: .42; filter: blur(.2px); }
  50% { opacity: .76; filter: blur(1.4px); }
}

@keyframes strongerFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(.8deg); }
}

@keyframes neonBreath {
  0%,100% { box-shadow: 0 24px 70px rgba(0,0,0,.38), 0 0 0 rgba(0,212,255,0); }
  50% { box-shadow: 0 30px 86px rgba(0,0,0,.42), 0 0 34px rgba(0,212,255,.20); }
}

@keyframes pageBreath {
  0%,100% { filter: saturate(1); }
  50% { filter: saturate(1.12); }
}

@keyframes consoleLift {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}


/* =========================
   FINAL REPAIR PATCH
   ========================= */

/* Fix active nav: only the JS-selected link should look active */
.nav-links a {
  border: 1px solid transparent;
}
.nav-links a:not(.active)::after {
  display: none !important;
}
.nav-links a.active {
  background: linear-gradient(135deg, rgba(0,212,255,.28), rgba(124,92,255,.28)) !important;
  color: #fff !important;
  border-color: rgba(111,255,233,.40) !important;
  box-shadow: 0 10px 32px rgba(0,212,255,.16);
}
.nav-links a.active::after {
  content: "";
  display: block !important;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  animation: activeNavLine 1.8s ease-in-out infinite;
}

/* Force hero photo container to show image properly */
.photo-ring {
  overflow: hidden !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
}
.profile-hero-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 36px;
  filter: saturate(1.08) contrast(1.04);
  background: rgba(255,255,255,.95);
}
.photo-ring.image-failed::after {
  content: "DA";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 1000;
  font-size: 4rem;
  color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Stronger idle motion */
.float-shape {
  transform: translate3d(var(--idle-x, 0), var(--idle-y, 0), 0) rotate(var(--idle-r, 0deg)) !important;
  animation: shapePulse 3.2s ease-in-out infinite !important;
}
.hero-card {
  transform: translateY(var(--card-idle-y, 0)) rotate(var(--card-idle-r, 0deg)) !important;
  animation: cardFloatIn 1s cubic-bezier(.2,.8,.2,1) .14s both !important;
}
.scan-line {
  animation: scanMove 4.2s linear infinite !important;
  opacity: .9 !important;
}
.noise {
  animation: gridSlide 10s linear infinite !important;
}
.orb-one {
  animation: orbOneIdle 8s ease-in-out infinite alternate !important;
}
.orb-two {
  animation: orbTwoIdle 9s ease-in-out infinite alternate !important;
}
.avatar-ring {
  animation: neonBreath 2.6s ease-in-out infinite !important;
}
.console-card {
  animation: consoleLift 3.6s ease-in-out infinite, consoleBlink 2.6s ease-in-out infinite !important;
}
.metrics div,
.trusted-grid div,
.feature-card,
.project-card,
.skill-column {
  animation: softBob 4.8s ease-in-out infinite;
}
.metrics div:nth-child(2),
.trusted-grid div:nth-child(2),
.feature-card:nth-child(2),
.project-card:nth-child(2),
.skill-column:nth-child(2) { animation-delay: -.9s; }
.metrics div:nth-child(3),
.trusted-grid div:nth-child(3),
.feature-card:nth-child(3),
.project-card:nth-child(3),
.skill-column:nth-child(3) { animation-delay: -1.8s; }

/* Home section spacing repair */
.hero {
  padding-top: 64px;
}
.trusted-logo-panel {
  margin-top: -18px;
}
@media (max-width: 900px) {
  .hero-card {
    transform: none !important;
  }
}

@keyframes activeNavLine {
  0%,100% { transform: scaleX(.45); opacity: .55; }
  50% { transform: scaleX(1); opacity: 1; }
}


/* =========================
   Navbar Active State: Underline Only
   ========================= */
.nav-links a,
.nav-links a:hover,
.nav-links a.active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.nav-links a {
  position: relative;
  padding-bottom: 12px;
}

.nav-links a:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  display: block !important;
  transition: transform .28s ease, opacity .28s ease;
}

.nav-links a:hover::after {
  transform: scaleX(.55);
  opacity: .65;
}

.nav-links a.active {
  color: #fff !important;
}

.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
  animation: activeUnderlinePulse 2.2s ease-in-out infinite;
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--violet)) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 30px rgba(0,212,255,.14) !important;
}

.nav-links .nav-cta.active {
  background: linear-gradient(135deg, var(--blue), var(--violet)) !important;
}

.nav-links .nav-cta::after {
  left: 18px;
  right: 18px;
  bottom: 8px;
  background: rgba(255,255,255,.9);
}

@keyframes activeUnderlinePulse {
  0%, 100% { opacity: .72; transform: scaleX(.82); }
  50% { opacity: 1; transform: scaleX(1); }
}


/* =========================
   Local Photo, Audio Button, Responsive Polish
   ========================= */
.music-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--cyan);
  font-weight: 1000;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.music-toggle:hover,
.music-toggle.playing {
  transform: translateY(-2px);
  background: rgba(0,212,255,.14);
  border-color: rgba(111,255,233,.42);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,212,255,.14);
}

.music-toggle.playing {
  animation: musicPulse 1.35s ease-in-out infinite;
}

.photo-ring {
  overflow: hidden !important;
  padding: 0 !important;
}

.profile-hero-img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 36px;
  background: rgba(255,255,255,.92);
}

.photo-ring.image-failed::after,
.welcome-photo-wrap.image-failed::after {
  content: "DA";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 1000;
  font-size: 4rem;
  color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.welcome-photo {
  object-fit: cover !important;
  object-position: center center !important;
}

@keyframes musicPulse {
  0%,100% { box-shadow: 0 0 0 rgba(0,212,255,0); }
  50% { box-shadow: 0 0 26px rgba(0,212,255,.26); }
}

/* Responsive final polish */
@media (max-width: 1100px) {
  .nav {
    width: min(100% - 28px, 1180px);
  }
  .hero {
    gap: 28px;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 8vw, 6rem);
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: center;
  }
  .nav-links {
    gap: 4px;
  }
  .nav-links.open {
    display: grid;
    grid-template-columns: 1fr;
  }
  .music-toggle {
    width: 100%;
    height: 44px;
  }
  .nav-links a::after {
    left: 10px;
    right: 10px;
  }
  .hero {
    min-height: auto;
    padding: 56px 0 42px;
  }
  .hero-card {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .trusted-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .experience-item {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }
  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }
  .hero-subtitle {
    font-size: .98rem;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .trusted-grid {
    grid-template-columns: 1fr;
  }
  .project-card,
  .feature-card,
  .skill-column,
  .experience-item,
  .glass-panel,
  .timeline-card,
  .cert-card,
  .contact-card {
    border-radius: 22px;
    padding: 20px;
  }
  .cert-list li {
    flex-direction: column;
    gap: 4px;
  }
  .footer-links {
    flex-wrap: wrap;
  }
}


/* =========================
   No Music + Cooler Visual Upgrade
   ========================= */
.music-toggle {
  display: none !important;
}

/* Animated cyber grid layer */
body {
  background:
    radial-gradient(circle at 20% 10%, rgba(124,92,255,.26), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(0,212,255,.20), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255,79,216,.12), transparent 35%),
    linear-gradient(120deg, #080a14, #0b1024 45%, #061728);
  background-size: 100% 100%, 100% 100%, 100% 100%, 240% 240%;
  animation: bgShift 18s ease-in-out infinite alternate;
}

.animated-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,212,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(124,92,255,.045) 1px, transparent 1px);
  background-size: 82px 82px;
  transform: perspective(900px) rotateX(62deg) translateY(18vh);
  transform-origin: center bottom;
  animation: cyberGridMove 10s linear infinite;
  opacity: .42;
}

/* Premium glass nav */
.nav {
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
    rgba(10,11,20,.72);
  border: 1px solid rgba(111,255,233,.16);
}

.brand-mark {
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-90%) rotate(20deg);
  animation: brandSweep 4.5s ease-in-out infinite;
}

/* Hero upgrade */
.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 52px;
  width: 7px;
  height: 172px;
  border-radius: 999px;
  background: linear-gradient(var(--blue), var(--violet), transparent);
  box-shadow: 0 0 30px rgba(0,212,255,.35);
  animation: sideBarGlow 3s ease-in-out infinite;
}

.hero h1 span {
  text-shadow: 0 0 38px rgba(0,212,255,.15);
}

.hero-card {
  border-color: rgba(111,255,233,.18);
  background:
    radial-gradient(circle at 70% 10%, rgba(0,212,255,.18), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(124,92,255,.16), transparent 34%),
    linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,.035));
}

.avatar-ring {
  border-radius: 46px;
}

.profile-hero-img {
  filter: saturate(1.12) contrast(1.05);
}

.status-pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(111,255,233,.9);
  animation: onlinePulse 1.6s ease-in-out infinite;
}

/* Cards: stronger premium effect */
.feature-card,
.project-card,
.skill-column,
.experience-item,
.glass-panel,
.timeline-card,
.cert-card,
.contact-card,
.metrics div,
.trusted-grid div {
  backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,.13);
}

.feature-card:hover,
.project-card:hover,
.skill-column:hover,
.experience-item:hover,
.glass-panel:hover,
.timeline-card:hover,
.cert-card:hover,
.contact-card:hover,
.metrics div:hover,
.trusted-grid div:hover {
  box-shadow:
    0 34px 100px rgba(0,0,0,.35),
    0 0 42px rgba(0,212,255,.13);
}

/* Decorative corner brackets */
.project-card,
.experience-item,
.feature-card {
  position: relative;
}

.project-card > *,
.experience-item > *,
.feature-card > * {
  position: relative;
  z-index: 1;
}

.project-card::before,
.experience-item::after,
.feature-card::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  right: 18px;
  top: 18px;
  border-top: 2px solid rgba(111,255,233,.28);
  border-right: 2px solid rgba(111,255,233,.28);
  border-radius: 0 18px 0 0;
  opacity: .8;
  animation: cornerBlink 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* Better mobile feeling */
.nav-toggle {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 44px;
  height: 44px;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes cyberGridMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 82px 82px, 82px 82px; }
}

@keyframes brandSweep {
  0%, 55% { transform: translateX(-90%) rotate(20deg); opacity: 0; }
  70% { opacity: .9; }
  100% { transform: translateX(90%) rotate(20deg); opacity: 0; }
}

@keyframes sideBarGlow {
  0%,100% { opacity: .42; transform: scaleY(.82); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes onlinePulse {
  0%,100% { transform: scale(.82); opacity: .62; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes cornerBlink {
  0%,100% { opacity: .25; transform: translate(0,0); }
  50% { opacity: 1; transform: translate(-3px,3px); }
}

@media (max-width: 900px) {
  .hero-copy::before {
    left: -14px;
    top: 42px;
    height: 120px;
  }
  .nav-links a::after {
    bottom: 4px;
  }
}

@media (max-width: 640px) {
  .hero-copy::before {
    display: none;
  }
  .nav {
    top: 10px;
    margin-top: 12px;
  }
  .hero-card {
    min-height: 390px;
  }
  .avatar-ring {
    width: 176px;
    height: 176px;
  }
}


.spark-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(111,255,233,.9);
  box-shadow: 0 0 16px rgba(111,255,233,.8);
  opacity: 0;
  animation: sparkDrift 12s linear infinite;
}

.spark:nth-child(3n) {
  background: rgba(124,92,255,.9);
  box-shadow: 0 0 16px rgba(124,92,255,.8);
}

.spark:nth-child(4n) {
  background: rgba(0,212,255,.9);
  box-shadow: 0 0 16px rgba(0,212,255,.8);
}

@keyframes sparkDrift {
  0% { transform: translate3d(0, 40px, 0) scale(.4); opacity: 0; }
  12% { opacity: .9; }
  80% { opacity: .55; }
  100% { transform: translate3d(90px, -140px, 0) scale(1); opacity: 0; }
}


/* =========================
   OpenRouter AI Chatbot
   ========================= */
.ai-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(111,255,233,.35);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0,212,255,.95), rgba(124,92,255,.95));
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 24px 70px rgba(0,212,255,.22);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.ai-chat-launcher:hover {
  transform: translateY(-6px) rotate(-2deg);
  box-shadow: 0 34px 90px rgba(124,92,255,.28);
}

.launcher-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.55), transparent);
  animation: borderSpin 3.8s linear infinite;
}

.launcher-icon {
  position: relative;
  z-index: 1;
  letter-spacing: .05em;
}

.ai-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 71;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 140px));
  border: 1px solid rgba(111,255,233,.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,212,255,.14), transparent 30%),
    linear-gradient(160deg, rgba(17,19,35,.96), rgba(8,10,20,.96));
  backdrop-filter: blur(20px);
  box-shadow: 0 34px 120px rgba(0,0,0,.55);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.96);
  transition: opacity .25s ease, transform .25s ease;
}

.ai-chat-widget.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ai-chat-header strong,
.ai-chat-header small {
  display: block;
}

.ai-chat-header small {
  color: var(--muted);
  margin-top: 3px;
}

.ai-status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(111,255,233,.8);
  animation: onlinePulse 1.6s ease-in-out infinite;
}

.ai-chat-header button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
}

.ai-chat-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

.ai-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.55;
  font-size: .92rem;
  animation: fadeUp .22s ease both;
}

.ai-message.bot {
  align-self: flex-start;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--text);
}

.ai-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0,212,255,.88), rgba(124,92,255,.88));
  color: #fff;
}

.ai-message.loading {
  opacity: .78;
  font-style: italic;
}

.ai-chat-form {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.ai-chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
}

.ai-chat-form input:focus {
  border-color: rgba(111,255,233,.5);
  box-shadow: 0 0 0 4px rgba(0,212,255,.10);
}

.ai-chat-form button {
  border: 0;
  border-radius: 16px;
  padding: 0 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  cursor: pointer;
}

@media (max-width: 640px) {
  .ai-chat-launcher {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    border-radius: 20px;
  }
  .ai-chat-widget {
    right: 12px;
    left: 12px;
    bottom: 88px;
    width: auto;
    height: min(560px, calc(100vh - 112px));
    border-radius: 24px;
  }
}


/* =========================
   Chatbot Click Fix
   ========================= */
.ai-chat-launcher {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 9998 !important;
  width: 68px !important;
  height: 68px !important;
  border: 1px solid rgba(111,255,233,.45) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(0,212,255,.96), rgba(124,92,255,.96)) !important;
  color: #fff !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  box-shadow: 0 24px 70px rgba(0,212,255,.25) !important;
  pointer-events: auto !important;
  user-select: none !important;
}

.ai-chat-launcher:hover {
  transform: translateY(-6px) rotate(-2deg);
}

.launcher-glow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.55), transparent);
  animation: borderSpin 3.8s linear infinite;
  pointer-events: none;
}

.launcher-icon {
  position: relative;
  z-index: 1;
  pointer-events: none;
  letter-spacing: .05em;
}

.ai-chat-widget {
  position: fixed !important;
  right: 24px !important;
  bottom: 104px !important;
  z-index: 9999 !important;
  width: min(390px, calc(100vw - 32px)) !important;
  height: min(560px, calc(100vh - 140px)) !important;
  border: 1px solid rgba(111,255,233,.22) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,212,255,.14), transparent 30%),
    linear-gradient(160deg, rgba(17,19,35,.98), rgba(8,10,20,.98)) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 34px 120px rgba(0,0,0,.58) !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(18px) scale(.96) !important;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease !important;
}

.ai-chat-widget.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.ai-chat-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ai-chat-header strong,
.ai-chat-header small {
  display: block;
}

.ai-chat-header small {
  color: var(--muted);
  margin-top: 3px;
}

.ai-status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(111,255,233,.8);
  animation: onlinePulse 1.6s ease-in-out infinite;
}

.ai-chat-header button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
}

.ai-chat-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

.ai-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.55;
  font-size: .92rem;
  animation: fadeUp .22s ease both;
}

.ai-message.bot {
  align-self: flex-start;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--text);
}

.ai-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0,212,255,.88), rgba(124,92,255,.88));
  color: #fff;
}

.ai-message.loading {
  opacity: .78;
  font-style: italic;
}

.ai-chat-form {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.ai-chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
}

.ai-chat-form input:focus {
  border-color: rgba(111,255,233,.5);
  box-shadow: 0 0 0 4px rgba(0,212,255,.10);
}

.ai-chat-form button {
  border: 0;
  border-radius: 16px;
  padding: 0 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  cursor: pointer;
}

@media (max-width: 640px) {
  .ai-chat-launcher {
    right: 16px !important;
    bottom: 16px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 20px !important;
  }
  .ai-chat-widget {
    right: 12px !important;
    left: 12px !important;
    bottom: 88px !important;
    width: auto !important;
    height: min(560px, calc(100vh - 112px)) !important;
    border-radius: 24px !important;
  }
}
