/* =========================================================
   Ashish Goyal — personal site
   Two modes, one system:
   - Automation mode (default): blueprint navy, circuit teal
   - Travel mode (.travel, used on the Yatrika page content):
     sand paper, route gold, map teal, pin coral
   Nav + footer stay in automation ink everywhere — the
   constant "frame" both projects ship inside.
   ========================================================= */

* { box-sizing: border-box; }
::selection { background: #2DD4BF; color: #06110F; }

:root{
  --ink: #0B1220;
  --panel: #101B2D;
  --panel-2: #0D1626;
  --paper: #E7ECF3;
  --muted: #8FA0B8;
  --grid-line: rgba(148,163,184,0.14);
  --border: rgba(148,163,184,0.22);
  --teal: #2DD4BF;
  --blue: #5B8DEF;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --maxw: 1180px;
}

html { scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

@media (max-width: 760px){
  .container{ padding: 0 20px; }
}

/* ---------- blueprint grid backdrop ---------- */
.grid-bg{
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ================= NAVBAR ================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11,18,32,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.brand-mark{
  width: 30px; height: 30px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}
.brand-name{ color: var(--paper); font-size: 14px; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-links a{
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active{ color: var(--paper); }
.nav-links a.active::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--teal);
}
.nav-cta{
  border: 1px solid var(--teal);
  color: var(--teal) !important;
  padding: 7px 12px;
  border-radius: 7px;
}
.nav-cta:hover{ background: var(--teal); color: var(--ink) !important; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--paper);
  width: 38px; height: 34px;
  font-family: var(--font-mono);
}

@media (max-width: 760px){
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--panel);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open{ max-height: 320px; }
  .nav-links a{ padding: 14px 20px; width: 100%; }
  .nav-links a.active::after{ display:none; }
  .nav-toggle{ display: block; }
}

/* ================= EYEBROW / LABELS ================= */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.18);
}

/* ================= HERO ================= */
.hero{
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1{
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.hero h1 .accent{ color: var(--teal); }
.hero .role{
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}
.hero p.summary{
  margin-top: 20px;
  max-width: 480px;
  color: #C6D0E0;
  font-size: 16px;
}
.hero-ctas{
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 12px 20px;
  border-radius: 9px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary{
  background: linear-gradient(135deg, var(--teal), #22b8a3);
  color: #04140F;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(45,212,191,0.18);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-ghost{
  border-color: var(--border);
  color: var(--paper);
}
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); }

/* ---------- hero node diagram ---------- */
.node-stage{
  position: relative;
  height: 380px;
}
.node-photo{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 176px; height: 176px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.node-photo img{ width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.node-photo .initials{
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--teal);
}
.node-photo::before, .node-photo::after{
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--teal);
}
.node-photo::before{ top: -6px; left: -6px; border-right: none; border-bottom: none; }
.node-photo::after{ bottom: -6px; right: -6px; border-left: none; border-top: none; }

.node-chip{
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 3;
}
.node-chip span{ color: var(--teal); }
.n1{ top: 6%;  left: 2%; }
.n2{ top: 12%; right: 0%; }
.n3{ bottom: 14%; left: -2%; }
.n4{ bottom: 6%; right: 4%; }

.node-lines{ position: absolute; inset: 0; z-index: 1; }
.node-lines path{
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}
.node-lines .flow{
  stroke: var(--teal);
  stroke-dasharray: 3 7;
  animation: dash 3.2s linear infinite;
  opacity: 0.9;
}
@keyframes dash{ to{ stroke-dashoffset: -100; } }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .node-stage{ height: 300px; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce){
  .node-lines .flow{ animation: none; }
}

/* ================= SECTION HEADS ================= */
section{ padding: 76px 0; }
.section-head{ margin-bottom: 40px; }
.section-head h2{
  font-family: var(--font-display);
  font-size: 30px;
  margin: 10px 0 0;
}
.section-head p{ color: var(--muted); max-width: 560px; margin-top: 10px; }

/* ================= SKILLS ================= */
.skill-groups{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 800px){ .skill-groups{ grid-template-columns: 1fr; } }

.skill-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  position: relative;
}
.skill-card::before, .skill-card::after{
  content: "";
  position: absolute;
  width: 10px; height: 10px;
}
.skill-card::before{ top: 8px; left: 8px; border-top: 1px solid var(--teal); border-left: 1px solid var(--teal); }
.skill-card::after{ bottom: 8px; right: 8px; border-bottom: 1px solid var(--teal); border-right: 1px solid var(--teal); }
.skill-card h4{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.skill-tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.25);
  color: #B7F3EA;
}

/* ================= EXPERIENCE FLOW ================= */
.flow{
  position: relative;
  padding-left: 46px;
}
.flow::before{
  content: "";
  position: absolute;
  left: 14px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--border));
}
.flow-item{ position: relative; margin-bottom: 44px; }
.flow-item:last-child{ margin-bottom: 0; }
.flow-node{
  position: absolute;
  left: -46px; top: 2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
}
.flow-item.current{
  background: linear-gradient(135deg, rgba(45,212,191,0.10), rgba(45,212,191,0.02));
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.flow-item.current .flow-node{ background: var(--teal); color: var(--ink); }
.flow-header h3{ margin: 0; font-family: var(--font-display); font-size: 19px; }
.flow-org{ color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; margin-top: 4px; }
.flow-date{
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  border: 1px solid rgba(45,212,191,0.3);
  padding: 3px 9px;
  border-radius: 20px;
}
.flow-points{
  margin: 14px 0 0;
  padding-left: 18px;
  color: #C6D0E0;
  max-width: 640px;
}
.flow-points li{ margin-bottom: 6px; }

/* ================= PROJECT TEASER / GRID ================= */
.teaser{
  border-radius: var(--radius-lg);
  padding: 44px;
  background: linear-gradient(120deg, #1a2f2b, #101B2D 55%);
  border: 1px solid rgba(185,129,46,0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.teaser .eyebrow{ color: #E4B65C; }
.teaser .eyebrow::before{ background: #E4B65C; box-shadow: 0 0 0 3px rgba(228,182,92,0.18); }
.teaser h3{ font-family: var(--font-display); font-size: 26px; margin: 12px 0 8px; }
.teaser p{ color: #C6D0E0; max-width: 480px; margin: 0; }
.teaser .btn-primary{ background: linear-gradient(135deg, #E4B65C, #C98A3D); color: #241705; }
@media (max-width: 760px){ .teaser{ flex-direction: column; align-items: flex-start; } }

.project-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px){ .project-grid{ grid-template-columns: 1fr; } }

.project-group{ margin-bottom: 46px; }
.project-group:last-child{ margin-bottom: 0; }
.project-group h4{
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}

.project-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--panel);
  text-decoration: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform .18s ease, border-color .18s ease;
}
.project-card:hover{ transform: translateY(-3px); border-color: var(--teal); }
.project-card .tag-row{ display:flex; gap:8px; flex-wrap: wrap; margin-bottom: 16px; }
.project-card h3{ font-family: var(--font-display); font-size: 21px; margin: 0 0 10px; }
.project-card p{ color: var(--muted); font-size: 14.5px; flex-grow: 1; }
.project-card .go{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal);
  margin-top: 14px;
}
.project-card.gold{ border-color: rgba(228,182,92,0.35); }
.project-card.gold:hover{ border-color: #E4B65C; }
.project-card.gold .go{ color: #E4B65C; }

.project-card.violet{ border-color: rgba(139,127,240,0.35); }
.project-card.violet:hover{ border-color: #8B7FF0; }
.project-card.violet .go{ color: #8B7FF0; }

/* ================= CONTACT / FOOTER ================= */
footer.site-footer{
  border-top: 1px solid var(--border);
  padding: 50px 0;
  margin-top: 30px;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links{ display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.footer-links a{ text-decoration: none; color: var(--muted); }
.footer-links a:hover{ color: var(--teal); }
.footer-note{ font-family: var(--font-mono); font-size: 12px; color: #56637A; margin-top: 24px; }

/* =========================================================
   PROJECT THEME SYSTEM — a light "content well" used inside
   individual project pages. Structural rules live on
   .theme-page; each project sets its own palette by adding
   a second class (.travel, .speak, ...) alongside it.
   ========================================================= */
.theme-page{
  background: var(--bg);
  color: var(--ink2);
}
.theme-page .container{ max-width: var(--maxw); }
.theme-page section{ padding: 72px 0; }

.theme-page.travel{
  --bg: #F3E9D4;
  --ink2: #23291D;
  --card: #FBF4E6;
  --gold: #B9812E;
  --teal2: #2F6F62;
  --coral: #D9694A;
  --border2: rgba(35,41,29,0.14);
  --muted2: #6B6350;
  --summary-ink: #3A3E30;
  --split-ink: #4A4636;
  --btn-primary-text: #FBF4E6;
  --status-bg: rgba(185,129,46,0.14);
  --status-border: rgba(185,129,46,0.4);
  --bg-dot: rgba(35,41,29,0.14);
}

.theme-page.speak{
  --bg: #F4F1FC;
  --ink2: #241F3A;
  --card: #FFFFFF;
  --gold: #E8623D;
  --teal2: #5B4FE0;
  --coral: #E8623D;
  --border2: rgba(36,31,58,0.12);
  --muted2: #675E85;
  --summary-ink: #34294F;
  --split-ink: #40365A;
  --btn-primary-text: #FFFFFF;
  --status-bg: rgba(91,79,224,0.10);
  --status-border: rgba(91,79,224,0.35);
  --bg-dot: rgba(36,31,58,0.12);
}

.theme-hero{
  padding: 84px 0 60px;
  background-image: radial-gradient(circle at 1px 1px, var(--bg-dot) 1px, transparent 0);
  background-size: 22px 22px;
}
.theme-mark{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal2);
  display: inline-flex; align-items: center; gap: 8px;
}
.theme-mark::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--teal2); }
.theme-hero h1{
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  margin: 14px 0 6px;
  color: var(--ink2);
}
.devanagari{ color: var(--gold); font-family: var(--font-display); }
.theme-hero .meaning{
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted2);
  margin-bottom: 18px;
}
.theme-hero p.summary{ max-width: 560px; font-size: 17px; color: var(--summary-ink); }

.route-stage{ margin-top: 46px; }
.route-stage svg{ width: 100%; height: auto; }
.route-stage .dashed{ stroke-dasharray: 6 8; }
.route-stage .flowing{
  stroke-dasharray: 4 9;
  animation: dashTravel 3.6s linear infinite;
}
@keyframes dashTravel{ to{ stroke-dashoffset: -120; } }
@media (prefers-reduced-motion: reduce){ .route-stage .flowing{ animation: none; } }

.theme-page h2{ font-family: var(--font-display); font-size: 28px; color: var(--ink2); margin: 0 0 14px; }
.theme-page .lede{ color: var(--muted2); max-width: 620px; font-size: 16px; }

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
@media (max-width: 800px){ .split{ grid-template-columns: 1fr; } }
.split .panel-card{
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 26px;
}
.split .panel-card h3{ font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.before h3{ color: var(--coral); }
.after h3{ color: var(--teal2); }
.split ul{ margin: 0; padding-left: 18px; color: var(--split-ink); }
.split li{ margin-bottom: 8px; }

.feature-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}
@media (max-width: 760px){ .feature-grid{ grid-template-columns: 1fr; } }
.feature-card{
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 22px;
}
.feature-card .num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}
.feature-card h4{ font-family: var(--font-display); font-size: 18px; margin: 8px 0 8px; }
.feature-card p{ color: var(--muted2); font-size: 14.5px; margin: 0; }

.maker-strip{
  margin-top: 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.maker-strip p{ color: #C6D0E0; max-width: 520px; margin: 8px 0 0; }
.maker-strip .eyebrow{ color: var(--teal); }

.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink2);
  background: var(--status-bg);
  border: 1px solid var(--status-border);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.status-pill::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--gold); }

.theme-page .btn-primary{
  background: linear-gradient(135deg, var(--gold), var(--teal2));
  color: var(--btn-primary-text);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
.theme-page .btn-ghost{
  border-color: var(--border2);
  color: var(--ink2);
}
.theme-page .btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }
