/* =========================================================
   Asmita Baskota, RN — clean & warm healthcare portfolio
   ========================================================= */

:root {
  --bg:        #f7faf9;
  --surface:   #ffffff;
  --raised:    #ffffff;
  --text:      #17282c;
  --muted:     #55666b;
  --faint:     #8a969b;
  --border:    #e3ece9;
  --border-2:  #d6e2de;

  --teal:      #0f8a8f;
  --teal-press:#0b7075;
  --teal-deep: #0a5c60;
  --teal-soft: #e7f4f3;
  --teal-tint: #f0f8f7;
  --coral:     #e8836b;
  --coral-soft:#fdeee9;
  --gold:      #e0a458;

  --shadow-sm: 0 1px 2px rgba(16,40,44,.05), 0 6px 16px -10px rgba(16,40,44,.18);
  --shadow-md: 0 2px 6px rgba(16,40,44,.06), 0 20px 40px -20px rgba(16,40,44,.28);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 900px;
  --narrow: 720px;
  --pad: clamp(1.15rem, 4vw, 1.9rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal-press); text-decoration: none; }
ul { list-style: none; }
strong, b { font-weight: 650; color: var(--text); }
::selection { background: var(--teal-soft); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 5px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--text); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: var(--narrow); }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--teal); color: #fff; font-weight: 600; padding: .6rem 1rem; border-radius: 8px; z-index: 200; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: .85rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 500; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--teal-press); }
.nav-links .nav-cta { color: var(--teal-press); font-weight: 600; }
@media (max-width: 560px) { .nav-links { gap: 1rem; } .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--sans); font-size: .96rem; font-weight: 600; padding: .78rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .16s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 22px -12px rgba(15,138,143,.8); }
.btn-primary:hover { background: var(--teal-press); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--teal-press); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-press); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 5.5rem) var(--pad) clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% -10%, var(--teal-tint), transparent 70%), radial-gradient(50% 60% at 0% 110%, var(--coral-soft), transparent 70%); }
.avail { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600; color: var(--teal-deep); background: var(--teal-soft); border: 1px solid var(--border-2); padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.6rem; }
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(15,138,143,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,138,143,.45); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 3.8rem); line-height: 1.05; margin-bottom: .5rem; }
.hero .title { font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 600; color: var(--teal-press); margin-bottom: 1.3rem; }
.hero .title .sep { color: var(--faint); margin: 0 .5rem; }
.hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 60ch; margin-bottom: 1.6rem; }
.hero .place { color: var(--muted); font-size: 1rem; max-width: 64ch; margin: -.3rem 0 1.5rem; }
.hero .place b { color: var(--teal-deep); font-weight: 650; }
.creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.9rem; }
.creds li { font-size: .82rem; font-weight: 600; color: var(--teal-deep); background: var(--surface); border: 1px solid var(--border-2); padding: .35rem .75rem; border-radius: 8px; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero photo layout */
.hero-grid { display: grid; grid-template-columns: 1fr minmax(230px, 300px); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-text { grid-column: 1; grid-row: 1; }
.hero-media { grid-column: 2; grid-row: 1; justify-self: end; }
.hero-photo { position: relative; width: 100%; max-width: 300px; margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: 22px; border: 5px solid #fff; box-shadow: var(--shadow-md); display: block; }
.hero-photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--teal); border-radius: 22px; z-index: -1; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { grid-column: 1; grid-row: 2; }
  .hero-media { grid-column: 1; grid-row: 1; justify-self: center; margin-bottom: 1.4rem; }
  .hero-photo { max-width: 240px; }
}

/* ---------- Highlights band ---------- */
.hl-band { background: var(--teal-tint); border-block: 1px solid var(--border); padding: clamp(1.5rem, 3.6vw, 2.1rem) 0; }
.hl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.hl-list li { display: flex; flex-direction: column; gap: .25rem; padding-left: 1rem; border-left: 3px solid var(--teal); }
.hl-list b { font-family: var(--serif); font-size: 1.14rem; color: var(--teal-deep); font-weight: 600; }
.hl-list span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
@media (max-width: 640px) { .hl-list { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6.5vw, 5rem) var(--pad); }
.section + .section { border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.15rem); margin-bottom: 1.6rem; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.prose p + p { margin-top: 1rem; }

/* Experience timeline */
.timeline { display: grid; gap: 1.1rem; }
.job { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(1.3rem, 3.4vw, 1.9rem); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.4rem; margin-bottom: .3rem; }
.job h3 { font-size: 1.28rem; }
.job-org { color: var(--teal-press); font-weight: 600; font-family: var(--sans); }
.job-date { font-size: .9rem; color: var(--faint); font-weight: 500; white-space: nowrap; padding-top: .3rem; }
.job .bullets { display: grid; gap: .6rem; margin-top: 1rem; }
.job .bullets li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.job .bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); opacity: .6; }

/* Pills (specialties / skills) */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pills li { font-size: .95rem; font-weight: 500; color: var(--teal-deep); background: var(--teal-soft); border: 1px solid var(--border-2); padding: .5rem .95rem; border-radius: 999px; transition: background .2s var(--ease), transform .2s var(--ease); }
.pills li:hover { background: #dcefee; transform: translateY(-2px); }

/* Credentials grid */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cred-card { display: flex; align-items: flex-start; gap: .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; box-shadow: var(--shadow-sm); }
.cred-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-press); font-size: 1.15rem; }
.cred-card h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }
.cred-card p { color: var(--faint); font-size: .88rem; margin-top: .15rem; }

/* Education / generic card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(1.3rem, 3.4vw, 1.9rem); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.25rem; }
.card .card-sub { color: var(--teal-press); font-weight: 600; margin-top: .2rem; }
.card .card-meta { color: var(--faint); font-size: .92rem; margin-top: .4rem; }

/* Contact */
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); text-align: center; }
.contact-card .lead { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 1.8rem; }
.contact-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-top: 1.8rem; color: var(--muted); font-size: .96rem; }
.contact-methods a { color: var(--teal-press); font-weight: 600; }
.contact-methods .cm { display: inline-flex; align-items: center; gap: .5rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; color: var(--faint); font-size: .9rem; }
.footer-in a { color: var(--muted); }
.footer-in a:hover { color: var(--teal-press); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html:not(.js) .reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .avail .dot { animation: none; }
  .btn:hover, .job:hover, .pills li:hover { transform: none; }
}

@media (max-width: 560px) {
  .cta { width: 100%; } .cta .btn { flex: 1; }
  .contact-methods { flex-direction: column; gap: .8rem; align-items: center; }
}
