/* ═══════════════════════════════════════════════
   PRAJWAL SINGH — PORTFOLIO
   Shared Styles
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── TOKENS ── */
:root {
  --g: #35bb78;
  --g-dark: #27a366;
  --g-glow: rgba(53,187,120,0.25);
  --g-soft: rgba(53,187,120,0.1);
  --black: #0a0a0a;
  --white: #ffffff;
  --bg: #ffffff;
  --bg2: #f7f7f7;
  --bg3: #efefef;
  --fg: #0a0a0a;
  --fg2: #555;
  --fg3: #999;
  --border: rgba(0,0,0,0.09);
  --card: #ffffff;
  --card-border: rgba(0,0,0,0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --bg2: #111; --bg3: #1a1a1a;
    --fg: #f0f0f0; --fg2: #aaa; --fg3: #666;
    --border: rgba(255,255,255,0.08);
    --card: #131313; --card-border: rgba(255,255,255,0.06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg2: #111; --bg3: #1a1a1a;
  --fg: #f0f0f0; --fg2: #aaa; --fg3: #666;
  --border: rgba(255,255,255,0.08);
  --card: #131313; --card-border: rgba(255,255,255,0.06);
  color-scheme: dark;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
#nav.solid {
  border-color: var(--border);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}
.nav-logo {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--fg);
}
.nav-logo em { color: var(--g); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 7px 16px; font-size: .83rem; font-weight: 600;
  color: var(--fg2); border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg2); }
.nav-links a.active { color: var(--g); background: var(--bg2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: border-color .2s;
}
.theme-btn:hover { border-color: var(--g); }
.cta-btn {
  background: var(--g); color: #fff; border: none;
  padding: 8px 18px; border-radius: 8px;
  font-size: .82rem; font-weight: 700;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.cta-btn:hover {
  background: var(--g-dark);
  box-shadow: 0 4px 16px var(--g-glow);
  transform: translateY(-1px);
}
.ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.ham span {
  display: block; width: 22px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob-nav {
  display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 999;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 12px 20px; flex-direction: column; gap: 2px;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  padding: 12px 8px; font-size: .95rem; font-weight: 600;
  color: var(--fg2); border-radius: 8px; transition: color .2s;
}
.mob-nav a:hover { color: var(--g); }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 28px 40px;
  position: relative; overflow: hidden;
  margin-top: 60px;
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(53,187,120,.15) 0%, transparent 70%);
  right: -100px; top: -100px;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(53,187,120,.08) 0%, transparent 70%);
  left: 10%; bottom: 10%; animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g-soft); color: var(--g-dark);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  width: fit-content; margin-bottom: 28px;
  animation: fadeUp .7s .1s both;
}
.hero-chip::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--g); animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.hero-name {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 800; line-height: 1.0; letter-spacing: -.04em;
  animation: fadeUp .7s .2s both;
}
.hero-name .green { color: var(--g); }
.green { color: var(--g); }
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 400; color: var(--fg2);
  margin: 20px 0 36px; max-width: 520px; line-height: 1.65;
  animation: fadeUp .7s .3s both;
}
.hero-title strong { color: var(--fg); font-weight: 600; }
.hero-btns {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp .7s .4s both;
}
.btn-g {
  background: var(--g); color: #fff; border: none;
  padding: 13px 26px; border-radius: 9px;
  font-size: .88rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-g:hover {
  background: var(--g-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--g-glow);
}
.btn-out {
  background: transparent; color: var(--fg);
  border: 1.5px solid var(--border);
  padding: 13px 26px; border-radius: 9px;
  font-size: .88rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-out:hover { border-color: var(--g); color: var(--g); transform: translateY(-2px); }
.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--fg3); font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  animation: fadeUp .7s .8s both;
}
.scroll-dot {
  width: 1.5px; height: 36px;
  background: linear-gradient(to bottom, var(--g), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTION COMMONS ── */
.section-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--g); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
}
.section-sub { color: var(--fg2); font-size: .93rem; margin-top: 12px; max-width: 500px; }
.section-header { margin-bottom: 48px; }
.divider { height: 1px; background: var(--border); margin: 0 28px; }

/* ── WHERE I WORK ── */
.work-section {
  padding: 80px 28px; max-width: 1100px; margin: 0 auto;
}
.work-list { display: flex; flex-direction: column; gap: 14px; }
.work-item {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 14px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.work-item:hover, .work-item.open {
  border-color: var(--g); box-shadow: 0 4px 24px var(--g-glow);
}
.work-item-head {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; cursor: pointer; transition: background .2s;
}
.work-item-head:hover { background: var(--bg2); }
.wi-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--g-soft); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.wi-info { flex: 1; min-width: 0; }
.wi-info h3 { font-size: 1rem; font-weight: 700; }
.wi-info .wi-role { font-size: .8rem; color: var(--g); font-weight: 600; margin-top: 2px; }
.wi-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wi-badge {
  font-size: .68rem; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; white-space: nowrap;
}
.wi-badge.ft { background: var(--g-soft); color: var(--g-dark); }
.wi-badge.pt { background: var(--bg3); color: var(--fg2); }
.wi-chevron { color: var(--fg3); transition: transform .3s; font-size: .8rem; }
.work-item.open .wi-chevron { transform: rotate(180deg); }
.work-item-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
  padding: 0 24px;
}
.work-item.open .work-item-body { max-height: 500px; padding-bottom: 24px; }
.wi-period {
  font-size: .75rem; font-weight: 600; color: var(--g);
  border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 12px;
}
.wi-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.wi-bullets li {
  font-size: .82rem; color: var(--fg2); padding-left: 16px;
  position: relative; line-height: 1.55;
}
.wi-bullets li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--g);
}
.wi-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; color: var(--g);
  margin-top: 14px; transition: color .2s;
}
.wi-link:hover { color: var(--g-dark); }

/* ── PROJECTS ── */
.projects-section { padding: 80px 28px; max-width: 1100px; margin: 0 auto; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 18px;
}
.proj-card {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  position: relative; overflow: hidden;
}
.proj-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--g);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.proj-card:hover::after { transform: scaleX(1); }
.proj-card:hover {
  border-color: var(--g); box-shadow: 0 6px 32px var(--g-glow);
  transform: translateY(-4px);
}
.proj-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 16px;
}
.proj-emoji {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--g-soft); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem;
}
.proj-tag {
  font-size: .67rem; font-weight: 700; padding: 4px 10px; border-radius: 100px;
}
.proj-tag.delivered { background: var(--bg3); color: var(--fg2); }
.proj-tag.wip {
  background: rgba(53,187,120,.12); color: var(--g-dark);
  animation: wipPulse 2.5s ease-in-out infinite;
}
@keyframes wipPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--g-glow); }
  50% { box-shadow: 0 0 0 4px transparent; }
}
.proj-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.proj-card p { font-size: .8rem; color: var(--fg2); line-height: 1.65; flex: 1; }
.proj-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px;
}
.proj-techs { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-tech {
  font-size: .68rem; font-weight: 600;
  background: var(--bg2); color: var(--fg3);
  padding: 3px 8px; border-radius: 5px;
}
.proj-links { display: flex; gap: 8px; }
.proj-link {
  font-size: .75rem; font-weight: 700; color: var(--g);
  display: flex; align-items: center; gap: 4px; transition: color .2s;
}
.proj-link:hover { color: var(--g-dark); }
.proj-link.buy {
  background: var(--g); color: #fff;
  padding: 5px 12px; border-radius: 6px; transition: background .2s;
}
.proj-link.buy:hover { background: var(--g-dark); }

/* ── RESUME ── */
.resume-page {
  max-width: 900px; margin: 0 auto;
  padding: 56px 28px 80px;
  margin-top: 60px;
}
.resume-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 24px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.resume-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.resume-header h1 span { color: var(--g); }
.rh-sub { font-size: .95rem; color: var(--fg2); margin-top: 8px; }
.rh-loc {
  font-size: .82rem; color: var(--fg3); margin-top: 4px;
  display: flex; align-items: center; gap: 5px;
}
.dl-btn {
  background: var(--g); color: #fff; border: none;
  padding: 10px 20px; border-radius: 8px;
  font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; align-self: flex-start;
  transition: background .2s, transform .15s;
}
.dl-btn:hover { background: var(--g-dark); transform: translateY(-1px); }
.resume-section { margin-bottom: 48px; }
.rs-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--g);
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 32px; padding-left: 20px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -26px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--g); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--g);
}
.tl-period { font-size: .72rem; font-weight: 700; color: var(--g); letter-spacing: .03em; margin-bottom: 5px; }
.tl-title { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.tl-org { font-size: .85rem; color: var(--fg2); margin-bottom: 10px; }
.tl-bullets { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.tl-bullets li {
  font-size: .8rem; color: var(--fg2); padding-left: 14px;
  position: relative; line-height: 1.55;
}
.tl-bullets li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--g);
}
.skills-wrap { display: flex; flex-direction: column; gap: 16px; }
.skill-row { display: flex; align-items: flex-start; gap: 16px; }
.skill-label {
  font-size: .75rem; font-weight: 700; color: var(--fg2);
  min-width: 120px; padding-top: 4px;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .75rem; font-weight: 600;
  background: var(--bg2); color: var(--fg2);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
}
.chip.green { background: var(--g-soft); color: var(--g-dark); border-color: transparent; }
.interests { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-item {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px;
  font-size: .8rem; font-weight: 600; color: var(--fg2);
  transition: border-color .2s, color .2s;
}
.interest-item:hover { border-color: var(--g); color: var(--fg); }

/* ── CONTACT ── */
.contact-page {
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 28px 80px;
  max-width: 1100px; margin: 60px auto 0;
}
.contact-hero { margin-bottom: 60px; }
.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 20px;
}
.contact-hero h1 span { color: var(--g); }
.hero-blurb {
  font-size: .98rem; color: var(--fg2); max-width: 580px; line-height: 1.75;
}
.hero-blurb strong { color: var(--fg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start;
}
.socials-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.social-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 11px; color: var(--fg); font-weight: 600; font-size: .88rem;
  transition: border-color .2s, transform .15s, color .2s;
}
.social-item:hover { border-color: var(--g); transform: translateX(5px); color: var(--g); }
.social-item.wa:hover { border-color: #25d366; color: #25d366; }
.si-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--g-soft); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.social-item.wa .si-icon { background: rgba(37,211,102,.12); }
.availability-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--g-soft); border: 1px solid rgba(53,187,120,.2);
  border-radius: 10px; padding: 14px 18px;
  font-size: .83rem; font-weight: 600; color: var(--fg);
}
.av-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); animation: blink 2s infinite; }
.c-form {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 18px; padding: 36px;
}
.c-form h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; }
.fg { margin-bottom: 18px; }
.fg label {
  display: block; font-size: .75rem; font-weight: 700;
  color: var(--fg); margin-bottom: 6px; letter-spacing: .02em;
}
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 11px 14px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; color: var(--fg);
  font-family: 'Poppins', sans-serif; font-size: .85rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--g); box-shadow: 0 0 0 3px rgba(53,187,120,.1);
}
.fg textarea { min-height: 110px; resize: vertical; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-sub {
  width: 100%; background: var(--g); color: #fff; border: none;
  padding: 13px; border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.f-sub:hover {
  background: var(--g-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--g-glow);
}
.f-note { font-size: .72rem; color: var(--fg3); text-align: center; margin-top: 10px; }
.f-err {
  background: rgba(220,53,69,.08); border: 1px solid rgba(220,53,69,.3);
  color: #c0392b; border-radius: 7px; padding: 10px 14px;
  font-size: .82rem; line-height: 1.45; margin-bottom: 6px;
}
[data-theme="dark"] .f-err { background: rgba(220,53,69,.13); border-color: rgba(220,53,69,.45); color: #e57373; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .f-err { background: rgba(220,53,69,.13); border-color: rgba(220,53,69,.45); color: #e57373; } }
.f-sub:disabled { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.f-success { text-align: center; padding: 32px 20px; }
.f-success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.f-success h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.f-success p { font-size: .85rem; color: var(--fg2); }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  padding: 28px;
  text-align: center;
}
.sf-copy { font-size: .75rem; color: #555; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.on { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-actions .cta-btn { display: none; }
  .ham { display: flex; }
  .hero-btns { flex-direction: column; }
  .btn-g, .btn-out { justify-content: center; }
  .fg-row { grid-template-columns: 1fr; }
  .resume-header { flex-direction: column; }
  .skill-row { flex-direction: column; gap: 6px; }
  .skill-label { min-width: unset; }
  .c-form { padding: 22px 16px; }
}

/* ══════════════════════════════════════════════════════
   AVATAR SYSTEM — Prajwal's robot-builder companion
══════════════════════════════════════════════════════ */

/* ── HOST & WRAP ── */
#av-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  font-family: 'Poppins', system-ui, sans-serif;
}
#av-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100px;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}
#av-body {
  width: 100px;
  cursor: grab;
  filter: drop-shadow(0 0 12px rgba(53,187,120,0.4)) drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  transition: filter .3s ease;
}
#av-body:hover {
  filter: drop-shadow(0 0 20px rgba(53,187,120,0.7)) drop-shadow(0 4px 24px rgba(0,0,0,0.5));
}
#av-body:active { cursor: grabbing; }
#av-svg { overflow: visible; }

/* ── SPEECH BUBBLE ── */
#av-bubble {
  position: absolute;
  bottom: 115px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card, #fff);
  border: 1.5px solid #35bb78;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg, #0a0a0a);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(53,187,120,0.2), 0 2px 8px rgba(0,0,0,0.15);
  animation: avPop .2s cubic-bezier(.34,1.56,.64,1) both;
  transition: opacity .3s ease, transform .3s ease;
}
#av-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #35bb78;
  border-bottom: none;
}
#av-bubble.av-bubble-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}
@keyframes avPop {
  from { opacity: 0; transform: translateX(-50%) scale(.7) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}

/* ── HEARTS / PARTICLES ── */
#av-hearts {
  position: absolute;
  top: 0; left: 0;
  width: 100px;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.av-heart {
  position: absolute;
  top: -10px;
  font-size: 18px;
  animation: avFloatUp var(--dur, 1s) ease-out forwards;
}
@keyframes avFloatUp {
  0%   { opacity: 1; transform: translateY(0) scale(1) rotate(-10deg); }
  60%  { opacity: 1; transform: translateY(-55px) scale(1.2) rotate(10deg); }
  100% { opacity: 0; transform: translateY(-90px) scale(0.7) rotate(-5deg); }
}

/* ── CHAT PANEL ── */
#av-chat {
  position: fixed;
  bottom: 160px;
  right: 120px;
  width: 320px;
  max-height: 420px;
  background: var(--card, #fff);
  border: 1.5px solid rgba(53,187,120,0.5);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(53,187,120,0.1);
  pointer-events: auto;
  animation: avPanelIn .25s cubic-bezier(.34,1.56,.64,1) both;
  z-index: 10000;
}
@keyframes avPanelIn {
  from { opacity: 0; transform: scale(.9) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* chat header */
#av-chat-head {
  background: linear-gradient(135deg, #35bb78, #27a366);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#av-chat-head-left { display: flex; align-items: center; gap: 10px; }
#av-chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
#av-chat-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
#av-chat-status {
  font-size: 11px; color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 5px;
}
.av-status-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: avPulse 2s ease-in-out infinite;
}
@keyframes avPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
#av-chat-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
#av-chat-close:hover { background: rgba(255,255,255,0.35); }

/* messages area */
#av-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
#av-chat-msgs::-webkit-scrollbar { width: 4px; }
#av-chat-msgs::-webkit-scrollbar-track { background: transparent; }
#av-chat-msgs::-webkit-scrollbar-thumb { background: rgba(53,187,120,0.3); border-radius: 2px; }

.av-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
  animation: avMsgIn .2s ease both;
}
@keyframes avMsgIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.av-msg-bot {
  background: var(--bg2, #f7f7f7);
  color: var(--fg, #0a0a0a);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
}
.av-msg-user {
  background: linear-gradient(135deg, #35bb78, #27a366);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* typing indicator */
#av-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px 8px;
  flex-shrink: 0;
}
#av-typing span {
  width: 7px; height: 7px;
  background: #35bb78;
  border-radius: 50%;
  animation: avDot .9s ease-in-out infinite;
}
#av-typing span:nth-child(2) { animation-delay: .2s; }
#av-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes avDot {
  0%,80%,100% { transform: scale(.7); opacity: .4; }
  40%          { transform: scale(1); opacity: 1; }
}

/* input row */
#av-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border, rgba(0,0,0,0.08));
  flex-shrink: 0;
  background: var(--card, #fff);
}
#av-chat-input {
  flex: 1;
  border: 1.5px solid var(--border, rgba(0,0,0,0.1));
  border-radius: 22px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg2, #f7f7f7);
  color: var(--fg, #0a0a0a);
  outline: none;
  transition: border-color .2s;
}
#av-chat-input:focus { border-color: #35bb78; }
#av-chat-send {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #35bb78, #27a366);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(53,187,120,0.35);
}
#av-chat-send:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(53,187,120,0.5); }
#av-chat-send:active { transform: scale(0.95); }

/* mobile: smaller avatar + side-safe chat */
@media (max-width: 640px) {
  #av-wrap { width: 78px; }
  #av-body { width: 78px; }
  #av-chat {
    width: calc(100vw - 24px);
    left: 12px !important;
    right: 12px !important;
    bottom: 100px;
    max-height: 55vh;
  }
  #av-bubble { font-size: 12px; padding: 6px 10px; }
}
