/* ============================================================
   Geet Sehgal — Business Analyst portfolio
   Design concept: an annual-report / dashboard aesthetic.
   Deep ink-navy ground, warm gold display type, soft teal as a
   secondary data accent, an upward chart line as the hero
   signature. Mono type reserved for labels and data only.
   ============================================================ */

:root{
  --bg: #0e161d;
  --bg-2: #131e27;
  --card: #1a2732;
  --card-hi: #21313e;
  --text: #eef3f2;
  --text-soft: #a9bac1;
  --text-faint: #6d818b;
  --line: rgba(238,243,242,.10);
  --line-strong: rgba(238,243,242,.18);
  --gold: #d7a94c;
  --gold-deep: #b9860f;
  --gold-ink: #241a05;
  --teal: #59bfae;
  --radius: 4px;
  --max: 1120px;
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

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

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

.mono{ font-family: var(--font-mono); }
a{ color: inherit; }
img{ max-width: 100%; display: block; }
h1, h2, h3{ font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--text); }
p{ margin: 0 0 1em; color: var(--text-soft); }
em{ font-style: italic; color: var(--gold); }
strong{ color: var(--text); font-weight: 600; }

:focus-visible{ outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link{
  position: absolute; left: -999px; top: auto;
  background: var(--gold); color: var(--gold-ink);
  padding: 10px 16px; z-index: 999;
  font-family: var(--font-mono); font-size: .85rem; border-radius: var(--radius);
}
.skip-link:focus{ left: 12px; top: 12px; }
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- shared layout ---------- */
.section{
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px;
}
.section--alt{
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > *{ max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head{ max-width: 700px; margin-bottom: 44px; }
.section-sub{ font-size: 1.02rem; margin-top: 10px; }
.eyebrow{
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 14px;
}
.display{ font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; }

.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; font-family: var(--font-mono); font-size: .86rem;
  border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary{ background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover{ background: #e8bd66; transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }

.chips{ list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.chips li{
  font-family: var(--font-mono); font-size: .72rem; padding: 5px 10px;
  background: var(--card); border-radius: var(--radius); color: var(--text-soft);
}
.chips--outline li{ background: transparent; border: 1px solid var(--line-strong); }
.badge{
  display: inline-block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .05em; text-transform: uppercase; background: var(--teal);
  color: #08201b; padding: 3px 8px; border-radius: var(--radius);
  vertical-align: middle; margin-left: 8px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.is-scrolled{
  background: rgba(14,22,29,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-inner{
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; min-height: 64px;
}
.brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark{
  font-family: var(--font-mono); font-weight: 500; font-size: .8rem;
  background: var(--gold); color: var(--gold-ink);
  width: 30px; height: 30px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name{ font-family: var(--font-display); font-size: 1.02rem; color: var(--text); display: none; }
@media (min-width: 560px){ .brand-name{ display: inline; } }

.nav-toggle{
  position: relative; z-index: 5;
  margin-left: auto; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius); width: 40px; height: 36px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
}
.nav-toggle span{ width: 18px; height: 2px; background: var(--text); display: block; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 860px){ .nav-toggle{ display: none; } }

.nav-links{ display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (max-width: 859px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(14,22,29,.98); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px; gap: 2px;
    display: none;
  }
  .nav-links.is-open{ display: flex; }
}
.nav-links a{
  font-family: var(--font-mono); font-size: .82rem; text-decoration: none;
  color: var(--text-soft); padding: 10px 14px; border-radius: var(--radius);
  position: relative; transition: color .15s ease;
}
.nav-links a:hover{ color: var(--text); }
.nav-links a.is-active{ color: var(--gold); }
.nav-links a[data-nav]:not(.nav-cta)::after{
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a.is-active::after{ transform: scaleX(1); }
.nav-cta{
  border: 1px solid var(--line-strong); margin-left: 6px;
}
.nav-cta:hover{ border-color: var(--gold); color: var(--gold) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  padding: 88px 24px 0;
  overflow: hidden;
}
.hero-chart{
  position: absolute; inset: auto 0 0 0; width: 100%; height: 60%;
  opacity: .5; pointer-events: none;
}
.hero-chart-line{
  fill: none; stroke: var(--teal); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
}
body.hero-animate .hero-chart-line{ animation: draw 2.2s .2s ease forwards; }
body.hero-static .hero-chart-line{ stroke-dashoffset: 0; }
.hero-chart-fill{
  fill: url(#none); fill: rgba(89,191,174,.08); stroke: none;
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }

.hero-inner{
  max-width: var(--max); margin: 0 auto; position: relative; z-index: 1;
  padding-bottom: 64px;
}
.hero-inner .eyebrow{ margin-bottom: 20px; }
.hero-title{ font-size: clamp(2.6rem, 7vw, 4.4rem); margin-bottom: 12px; }
.hero-role{
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--text); margin-bottom: 20px; max-width: 32ch;
}
.hero-lede{ font-size: 1.05rem; max-width: 52ch; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.stat-strip{
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 760px){ .stat-strip{ grid-template-columns: repeat(2, 1fr); } }
.stat{
  padding: 28px 22px; border-right: 1px solid var(--line);
}
.stat:last-child{ border-right: none; }
@media (max-width: 760px){
  .stat:nth-child(2n){ border-right: none; }
  .stat:nth-child(-n+2){ border-bottom: 1px solid var(--line); }
}
.stat-num{ color: var(--gold); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.stat-label{ font-size: .72rem; color: var(--text-faint); line-height: 1.4; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid{ display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
@media (max-width: 800px){ .about-grid{ grid-template-columns: 1fr; } }
.about-copy p{ font-size: 1.02rem; }
.about-note{
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 22px 24px; align-self: start;
}
.note-label{ color: var(--gold); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.about-note p:last-child{ margin-bottom: 0; }

/* ============================================================
   EXPERIENCE — timeline
   ============================================================ */
.timeline{ list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.timeline-item{ position: relative; padding: 0 0 42px 32px; }
.timeline-item::before{
  content: ""; position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; background: var(--bg-2);
  border: 2px solid var(--gold); border-radius: 50%;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-meta{ font-size: .75rem; color: var(--teal); margin-bottom: 6px; }
.timeline-item h3{ font-size: 1.18rem; margin-bottom: 8px; }
.timeline-item p{ max-width: 68ch; }

/* ============================================================
   PROJECTS
   ============================================================ */
.project-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.project-card{
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.project-card:hover{ border-color: var(--gold); transform: translateY(-3px); background: var(--card-hi); }
.project-kicker{ font-size: .68rem; color: var(--text-faint); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.project-card h3{ font-size: 1.1rem; margin-bottom: 10px; }
.project-card p{ font-size: .93rem; flex-grow: 1; }
.project-link{
  font-family: var(--font-mono); font-size: .8rem; color: var(--gold);
  text-decoration: none; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px;
}
.project-link:hover{ color: #e8bd66; }
.project-card--cta{ background: transparent; border-style: dashed; }

/* ============================================================
   SKILLS
   ============================================================ */
.skill-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.skill-card{ padding: 24px 0 0; border-top: 1px solid var(--line-strong); }
.skill-tag{
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: var(--gold); color: var(--gold-ink);
  border-radius: var(--radius); font-size: .78rem; margin-bottom: 14px;
}
.skill-card h3{ font-size: 1.06rem; margin-bottom: 8px; }
.skill-card p{ font-size: .92rem; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 28px; }
.edu-item{ background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.edu-years{ color: var(--teal); font-size: .78rem; margin-bottom: 8px; }
.edu-item h3{ font-size: 1.06rem; margin-bottom: 6px; }
.edu-school{ color: var(--text); font-size: .92rem; margin-bottom: 4px; }
.edu-detail{ font-size: .86rem; color: var(--text-faint); margin-bottom: 0; }
.certs-row{ margin-top: 4px; }

/* ============================================================
   APPROACH
   ============================================================ */
.section--approach{
  max-width: none;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section--approach .section-head, .section--approach .approach-grid{
  max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px;
}
.approach-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.approach-num{ color: var(--gold); font-size: .92rem; margin-bottom: 8px; }
.approach-step h3{ font-size: 1.04rem; margin-bottom: 8px; }
.approach-step p{ font-size: .92rem; }

/* ============================================================
   BEYOND WORK
   ============================================================ */
.beyond-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.beyond-item h3{ font-size: 1.02rem; margin-bottom: 8px; color: var(--gold); }
.beyond-item p{ font-size: .92rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
/* ============================================================
   FOOTER
   ============================================================ */
.footer{ border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner{
  max-width: var(--max); margin: 0 auto; padding: 32px 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer .brand-mark{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 500; font-size: .8rem;
  background: var(--gold); color: var(--gold-ink);
  width: 30px; height: 30px; border-radius: var(--radius);
}
.footer-tag{ font-size: .74rem; color: var(--text-faint); margin-top: 8px; }
.footer-links{ display: flex; gap: 18px; }
.footer-links a{ text-decoration: none; font-size: .8rem; color: var(--text-soft); }
.footer-links a:hover{ color: var(--gold); }
