/* techrajesh.com: single-page personal site */
:root {
  --bg: #0b0f14;
  --bg-alt: #0f151c;
  --surface: #141c25;
  --surface-2: #1a2430;
  --line: #233040;
  --text: #e8eef4;
  --muted: #93a3b5;
  --accent: #3ee6a8;
  --accent-ink: #062b1d;
  --accent-soft: rgba(62, 230, 168, 0.12);
  --warm: #ffb547;
  --radius: 16px;
  --wrap: 1140px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fb;
    --bg-alt: #eef3f7;
    --surface: #ffffff;
    --surface-2: #f2f6f9;
    --line: #dbe3ea;
    --text: #0e1720;
    --muted: #556577;
    --accent: #0a9e6c;
    --accent-ink: #ffffff;
    --accent-soft: rgba(10, 158, 108, 0.1);
    --warm: #c27400;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 360px at 85% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(500px 300px at 0% 90%, rgba(255, 181, 71, 0.07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 230, 168, .5); } 70% { box-shadow: 0 0 0 10px rgba(62, 230, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 230, 168, 0); } }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 15px; }
.proof strong { color: var(--text); }
.proof li { display: flex; align-items: center; gap: 6px; }
.proof li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* Hero workflow card */
.flow { position: relative; }
.flow-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.flow-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.flow-dots { display: flex; gap: 6px; }
.flow-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.flow-title { color: var(--muted); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.flow-live { margin-left: auto; color: var(--accent); font-weight: 600; }
.flow-steps { padding: 18px; display: grid; gap: 10px; counter-reset: s; }
.flow-steps li {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  opacity: .55; transition: opacity .3s ease, border-color .3s ease, transform .3s ease;
}
.flow-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; bottom: -11px; width: 2px; height: 10px; background: var(--line);
}
.flow-steps li.on { opacity: 1; border-color: var(--accent); transform: translateX(4px); }
.flow-steps li.done { opacity: 1; }
.flow-steps .ic {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent); font-size: 16px;
}
.flow-steps b { display: block; font-size: 15px; font-weight: 600; }
.flow-steps small { color: var(--muted); font-size: 13px; }
.flow-foot { display: flex; justify-content: space-between; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.flow-foot b { color: var(--text); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 30px 20px; text-align: center; }
.stats-grid div + div { border-left: 1px solid var(--line); }
.stats-grid b { display: block; font: 700 40px/1 var(--font-head); color: var(--accent); margin-bottom: 8px; }
.stats-grid span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 720px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 680px; margin-top: 16px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent); font: 700 18px var(--font-head);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Case studies */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.case {
  display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.case-tag { font-size: 13px; color: var(--warm); font-weight: 600; margin-bottom: 14px; }
.case h3 { font-size: 20px; margin-bottom: 10px; }
.case p { color: var(--muted); font-size: 15px; flex: 1; }
.case-result {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.case-result::before { content: "→ "; color: var(--accent); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.product {
  display: block; padding: 22px 24px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s ease, background .2s ease;
}
.product:hover { border-color: var(--accent); background: var(--surface-2); }
.product-name { display: flex; justify-content: space-between; font: 600 18px var(--font-head); margin-bottom: 6px; }
.product .arrow { color: var(--accent); transition: transform .2s ease; }
.product:hover .arrow { transform: translate(2px, -2px); }
.product-desc { display: block; color: var(--muted); font-size: 14px; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.skill-group { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.skill-group h3 { font-size: 18px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px; border-radius: 999px; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
}

/* Experience */
.exp-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.edu { margin-top: 36px; padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 4px; }
.edu-label { font-size: 13px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.edu span:last-child { color: var(--muted); font-size: 15px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.when { font-size: 13px; font-weight: 600; color: var(--accent); }
.timeline h3 { font-size: 20px; margin: 6px 0 2px; }
.org { color: var(--text); font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.timeline p:last-child { color: var(--muted); font-size: 15px; }

/* Steps + quote */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-n { font: 700 14px var(--font-head); color: var(--accent); }
.steps h3 { font-size: 20px; margin: 12px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.quote { margin: 56px 0 0; padding: 36px 40px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -8px; left: 28px; font: 700 96px/1 var(--font-head); color: var(--accent); opacity: .35; }
.quote blockquote { margin: 0; font: 500 clamp(19px, 2.2vw, 24px)/1.5 var(--font-head); }
.quote figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* Contact */
.contact { text-align: center; position: relative; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px 300px at 50% 40%, var(--accent-soft), transparent 70%);
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin: 0 auto; }
.contact .section-lead { margin-left: auto; margin-right: auto; }
.contact-cta { margin: 36px 0 28px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.socials a {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-weight: 500; font-size: 15px; background: var(--surface);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.location { margin-top: 28px; color: var(--muted); font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .exp-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards, .work, .products { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; }
  .hero { padding: 44px 0 64px; }
  .section { padding: 72px 0; }
  .cards, .work, .products, .skills, .steps { grid-template-columns: 1fr; }
  .stats-grid b { font-size: 32px; }
  .quote { padding: 32px 22px 26px; }
  .flow-foot { flex-wrap: wrap; }
  .btn-lg { font-size: 16px; padding: 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
