/* ============ Soft Sage & Cream — Shruti Dwivedi ============ */
:root {
  --sage-900: #2f3e33;
  --sage-700: #4a6350;
  --sage-500: #7a9b82;
  --sage-300: #aec8b2;
  --sage-100: #dce9dd;
  --sage-50:  #eef4ee;
  --cream:    #faf7f0;
  --cream-2:  #f3eee2;
  --ink:      #33413a;
  --ink-soft: #5f6f66;
  --white:    #ffffff;
  --gold:     #c9a86a;
  --shadow-sm: 0 4px 16px rgba(47, 62, 51, .07);
  --shadow-md: 0 12px 40px rgba(47, 62, 51, .10);
  --radius: 22px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 300;
}

/* ---------- background blobs ---------- */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  z-index: -1;
  pointer-events: none;
}
.blob-1 { width: 520px; height: 520px; background: var(--sage-100); top: -140px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: var(--cream-2); bottom: 10%; left: -160px; }
.blob-3 { width: 340px; height: 340px; background: #e9e2cf; top: 45%; right: -100px; opacity: .5; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .4s ease;
}
.nav.scrolled {
  background: rgba(250, 247, 240, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage-900);
  text-decoration: none;
  letter-spacing: .02em;
}
.brand span { color: var(--sage-500); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .04em;
  position: relative;
  transition: color .3s;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--sage-500);
  border-radius: 2px;
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--sage-700); }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--sage-700);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  transition: background .3s, transform .3s;
}
.nav-cta:hover { background: var(--sage-900); transform: translateY(-2px); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--sage-900); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
}
.hero-content { max-width: 820px; }
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage-500);
  font-weight: 500;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  font-weight: 600;
  color: var(--sage-900);
  line-height: 1.05;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--sage-500); }
.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: all .35s ease;
}
.btn-primary {
  background: var(--sage-700);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(74, 99, 80, .3);
}
.btn-primary:hover { background: var(--sage-900); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(74, 99, 80, .38); }
.btn-ghost {
  color: var(--sage-700);
  border: 1.5px solid var(--sage-300);
  background: rgba(255,255,255,.5);
}
.btn-ghost:hover { border-color: var(--sage-700); background: var(--white); transform: translateY(-3px); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.stat p { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.stat-num, .stat-plus {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--sage-700);
}
.stat-divider { width: 1px; height: 52px; background: var(--sage-300); }

.scroll-hint {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1.5px solid var(--sage-300);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--sage-500);
  border-radius: 4px;
  animation: scrollAnim 2s infinite ease;
}
@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- sections ---------- */
.section { padding: 110px 24px; }
.section-alt { background: linear-gradient(180deg, var(--sage-50), var(--cream) 90%); }
.container { max-width: 1080px; margin: 0 auto; }
.section-eyebrow {
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 600;
  color: var(--sage-900);
  line-height: 1.15;
  margin-bottom: 52px;
}
.section-title em { font-style: italic; color: var(--sage-500); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about-text .lead {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--sage-700);
  line-height: 1.55;
  margin-bottom: 22px;
}
.about-text p:not(.lead) { color: var(--ink-soft); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(174, 200, 178, .3);
  transition: transform .35s ease, box-shadow .35s ease;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon { font-size: 1.7rem; margin-bottom: 12px; }
.about-card h3 { font-size: .98rem; font-weight: 600; color: var(--sage-900); margin-bottom: 6px; }
.about-card p { font-size: .84rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--sage-300), var(--sage-100));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 42px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -36px; top: 30px;
  width: 18px; height: 18px;
  background: var(--cream);
  border: 4px solid var(--sage-500);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(122, 155, 130, .15);
}
.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 38px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(174, 200, 178, .3);
  transition: transform .35s ease, box-shadow .35s ease;
}
.timeline-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.timeline-date {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage-700);
  background: var(--sage-100);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--sage-900);
}
.timeline-org { font-size: .88rem; color: var(--sage-500); font-weight: 500; margin: 4px 0 16px; }
.timeline-card ul { list-style: none; }
.timeline-card li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.timeline-card li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 7px; height: 7px;
  background: var(--sage-300);
  border-radius: 50%;
}

/* ---------- education ---------- */
.dissertation {
  background: linear-gradient(120deg, var(--sage-700), var(--sage-500));
  border-radius: var(--radius);
  padding: 34px 40px;
  margin-bottom: 44px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.dissertation-label {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255,255,255,.18);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.dissertation p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(174, 200, 178, .3);
  transition: transform .35s ease, box-shadow .35s ease;
}
.edu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.edu-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sage-700);
  background: var(--sage-100);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.edu-card h3 { font-size: 1rem; font-weight: 600; color: var(--sage-900); margin-bottom: 6px; line-height: 1.4; }
.edu-card p { font-size: .85rem; color: var(--ink-soft); }
.edu-college { display: block; font-size: .78rem; color: var(--sage-500); margin-top: 8px; font-style: italic; }

.quals { margin-top: 52px; }
.quals-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage-900);
  margin-bottom: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--white);
  border: 1.5px solid var(--sage-300);
  color: var(--sage-700);
  font-size: .84rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 50px;
  transition: all .3s ease;
}
.chip:hover { background: var(--sage-700); border-color: var(--sage-700); color: var(--white); transform: translateY(-2px); }

/* ---------- contributions ---------- */
.contrib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contrib-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(174, 200, 178, .3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.contrib-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contrib-card.wide { grid-column: span 3; flex-direction: row; align-items: center; }
.contrib-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--sage-300);
  line-height: 1;
}
.contrib-card p { font-size: .92rem; color: var(--ink); font-weight: 400; line-height: 1.55; }

/* ---------- awards ---------- */
.awards-list { display: flex; flex-direction: column; gap: 16px; }
.award {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(174, 200, 178, .3);
  transition: transform .35s ease, box-shadow .35s ease;
}
.award:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.award-year {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 76px;
}
.award-body { flex: 1; }
.award-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--sage-900); }
.award-body p { font-size: .85rem; color: var(--ink-soft); margin-top: 3px; }
.award-icon { font-size: 1.8rem; }

/* ---------- contact ---------- */
.section-contact { text-align: center; background: linear-gradient(180deg, var(--cream), var(--sage-50)); }
.contact-sub { color: var(--ink-soft); max-width: 480px; margin: -28px auto 48px; }
.contact-cards { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  min-width: 260px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(174, 200, 178, .3);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 1.9rem; margin-bottom: 8px; }
.contact-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-500); font-weight: 600; }
.contact-value { font-size: .95rem; color: var(--sage-900); font-weight: 500; word-break: break-all; }

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 44px 24px;
  background: var(--sage-900);
  color: var(--sage-100);
  font-size: .85rem;
}
.footer-quote { font-family: var(--font-display); font-style: italic; font-size: 1rem; margin-top: 8px; color: var(--sage-300); }

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--sage-700);
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .4s ease;
  box-shadow: var(--shadow-md);
  z-index: 90;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--sage-900); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .edu-grid, .contrib-grid { grid-template-columns: 1fr 1fr; }
  .contrib-card.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    box-shadow: -10px 0 40px rgba(47,62,51,.15);
    transition: right .4s cubic-bezier(.22,.61,.36,1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; }
  .hamburger { display: flex; z-index: 110; }
  .section { padding: 80px 20px; }
  .edu-grid, .contrib-grid { grid-template-columns: 1fr; }
  .contrib-card.wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .timeline { padding-left: 28px; }
  .timeline-dot { left: -28px; }
  .timeline-card { padding: 26px 24px; }
  .award { flex-wrap: wrap; gap: 14px; padding: 24px; }
  .award-icon { order: -1; }
  .stat-divider { display: none; }
  .hero-stats { gap: 26px; }
  .dissertation { padding: 26px 26px; }
}
