/* =============================================================
   Manish Kumar Dhasmana — Portfolio
   Modern, professional academic theme
   ============================================================= */

:root {
  --bg: #ffffff;
  --surface: #f6f9fc;
  --surface-2: #eef3f8;
  --ink: #0f1e2e;
  --body: #43566b;
  --muted: #6b7c90;
  --primary: #0a4a72;
  --primary-dark: #073a5b;
  --accent: #0ea5a4;
  --accent-soft: rgba(14, 165, 164, 0.12);
  --primary-soft: rgba(10, 74, 114, 0.08);
  --border: #e4ebf2;
  --shadow-sm: 0 1px 2px rgba(15, 30, 46, 0.06), 0 2px 8px rgba(15, 30, 46, 0.05);
  --shadow-md: 0 6px 24px rgba(15, 30, 46, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", var(--font-sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--body);
  font-weight: 500;
  font-size: 0.925rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-soft);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.925rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--surface), #fff 70%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero .role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  font-family: var(--font-head);
}
.hero .lead {
  font-size: 1.05rem;
  color: var(--body);
  margin-bottom: 24px;
  max-width: 54ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip i { color: var(--primary); }

.hero-photo { display: flex; justify-content: center; }
.hero-photo .frame {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-md);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid #fff;
}
.social-row { display: flex; gap: 10px; margin-top: 18px; justify-content: center; }
.social-row a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.social-row a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head .kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}
.section-head p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.skill-card .icon {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.skill-card h3 { font-size: 1rem; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.8rem;
  color: var(--body);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
  opacity: 0.35;
}
.tl-item { position: relative; padding: 0 0 30px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.tl-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
}
.tl-item h3 { font-size: 1.1rem; margin: 0; }
.tl-org { color: var(--primary); font-weight: 600; font-size: 0.95rem; margin: 2px 0 8px; }
.tl-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tl-item ul { margin: 8px 0 0; padding-left: 18px; }
.tl-item ul li { margin-bottom: 5px; }
.tl-item ul li::marker { color: var(--accent); }
.tl-note { margin: 6px 0 0; }

/* ---------- Publications ---------- */
.pub-group { margin-bottom: 34px; }
.pub-group:last-child { margin-bottom: 0; }
.pub-group h3 {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
}
.pub-group h3 .count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 10px;
  border-radius: 999px;
}
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pub-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.pub-list li:hover { transform: translateX(3px); box-shadow: var(--shadow-md); }
.pub-list .authors strong { color: var(--ink); }
.pub-list .venue { color: var(--primary); font-style: italic; }
.pub-list .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Cards grid (training / awards) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card .ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.05rem;
}
.info-card.award .ic { background: rgba(240, 180, 41, 0.15); color: #d9930b; }
.info-card h3 { font-size: 0.98rem; margin: 0 0 4px; }
.info-card .meta { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Interests / Contact ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.contact-card h3 { color: #fff; }
.contact-card p { color: rgba(255, 255, 255, 0.85); }
.contact-card a { color: #fff; font-weight: 600; text-decoration: underline; }
.contact-card a:hover { color: #cfeae9; }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list i { width: 20px; text-align: center; }

.references-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.references-list li { display: flex; gap: 10px; align-items: flex-start; }
.references-list i { color: var(--primary); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer .brand { color: #fff; display: block; margin-bottom: 6px; }
.site-footer a { color: #9fd0ce; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.15s ease;
}
.footer-social a:hover { background: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; }
  .two-col { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 520px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .hero-photo .frame { width: 220px; height: 220px; }
  .tl-head { flex-direction: column; }
}
