/* ============================================================
   thevishalthakur.in — premium dark/green theme
   Canvas: deep charcoal-green · Accent: emerald + animated
   RGB-style gradient glow on key elements
   ============================================================ */
:root {
  --canvas: #0A0F0D;
  --surface: #111B17;
  --surface-2: #16221D;
  --ink: #EAF2ED;
  --ink-soft: #9DB3A8;
  --green: #22C55E;
  --green-bright: #4ADE80;
  --teal: #14B8A6;
  --lime: #A3E635;
  --line: #223028;
  --white: #FFFFFF;

  --display: 'Fraunces', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', monospace;

  --max: 1040px;
  --glow-gradient: linear-gradient(100deg, #22C55E, #14B8A6, #A3E635, #22C55E);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Animated gradient utilities (the "RGB" premium glow) ---------- */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: var(--glow-gradient);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 18px 0 rgba(34,197,94,0.35), 0 0 2px 0 rgba(20,184,166,0.4); }
  50%      { box-shadow: 0 0 30px 4px rgba(34,197,94,0.55), 0 0 8px 0 rgba(163,230,53,0.4); }
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.nav__mark {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--green);
  padding: 6px 10px;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(34,197,94,0.25);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--green-bright);
  border-color: var(--green-bright);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(34,197,94,0.25) 0%, rgba(20,184,166,0.10) 45%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(163,230,53,0.14) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 12ch;
  color: var(--ink);
}

.hero__title em { font-style: italic; }

.hero__lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid var(--green);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-1px); }

.btn--solid {
  background: var(--glow-gradient);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  color: #06120C;
  font-weight: 600;
  border: none;
}
.btn--solid:hover { box-shadow: 0 0 24px rgba(34,197,94,0.45); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
  box-shadow: 0 0 16px rgba(34,197,94,0.25);
}

/* ---------- Section scaffolding ---------- */
section { padding: 70px 0; }
section + section { border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section__label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.section__title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  margin: 6px 0 0;
  color: var(--ink);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  align-items: start;
}

.about__portrait-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.about__portrait {
  width: 240px;
  height: 300px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 3rem;
  color: var(--green-bright);
  overflow: hidden;
  box-shadow: 0 0 26px rgba(34,197,94,0.25);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about__name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.about__name span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 4px;
  font-weight: 400;
}

.about__body p { margin: 0 0 16px; color: var(--ink-soft); }
.about__body p:first-child { color: var(--ink); font-size: 1.08rem; }

.about__base {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.about__base strong { color: var(--green-bright); }

@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { width: 180px; height: 220px; font-size: 2rem; }
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--green) 0 6px, transparent 6px 12px);
  opacity: 0.6;
}

.timeline li {
  position: relative;
  padding: 0 0 30px 34px;
}
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--green);
  box-shadow: 0 0 10px rgba(34,197,94,0.4);
}

.timeline__period {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.timeline__title {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.timeline__desc {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
}

/* ---------- Pipeline ---------- */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.pipeline::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 12px);
  z-index: 0;
  opacity: 0.6;
}

.pipeline li { position: relative; z-index: 1; padding-right: 14px; }

.pipeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--green);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 14px;
  box-shadow: 0 0 14px rgba(34,197,94,0.3);
}

.pipeline__title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}

.pipeline__desc { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 800px) {
  .pipeline { grid-template-columns: 1fr; gap: 26px; }
  .pipeline::before { display: none; }
}

/* ---------- Blog ---------- */
.postcard {
  display: block;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.2s;
}
.postcard:first-of-type { border-top: none; }
.postcard:hover { padding-left: 8px; }

.postcard__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.postcard__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 8px;
  transition: color 0.2s;
  color: var(--ink);
}
.postcard:hover .postcard__title { color: var(--green-bright); }

.postcard__excerpt { color: var(--ink-soft); margin: 0; max-width: 62ch; }

.empty-note { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }

/* ---------- Post (single) ---------- */
.post__meta {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 14px;
}
.post__title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 28px;
  max-width: 20ch;
  color: var(--ink);
}
.post__body { max-width: 68ch; }
.post__body p { color: var(--ink-soft); margin: 0 0 18px; }
.post__body h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--green-bright);
}
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
}
.back-link:hover { color: var(--green-bright); border-color: var(--green-bright); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-card {
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s, box-shadow 0.3s;
  position: relative;
}
.contact-card:hover {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,0.4), 0 0 20px rgba(34,197,94,0.15);
}

.contact-card__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.contact-card__label svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--teal);
  transition: color 0.2s;
}
.contact-card:hover .contact-card__label svg { color: var(--green-bright); }

.contact-card__value {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.contact-card:hover .contact-card__value { color: var(--green-bright); }

/* ---------- Footer ---------- */
footer {
  padding: 36px 0 60px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}
