/* ============================================================
   saurabhsharma92 — terminal theme
   Black + lime, monospace everywhere, sharp corners, dashed
   borders, ASCII flourishes.
============================================================ */

:root {
  --bg:        #0A0A0A;
  --bg-lift:   #111111;
  --fg:        #E7E7E7;
  --fg-dim:    #8F8F8F;
  --fg-mut:    #5A5A5A;
  --line:      #2A2A2A;
  --accent:    #9FEF00;
  --accent-dim:#6EA800;
  --warn:      #FFB627;
  --err:       #FF5F56;

  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, ui-monospace, monospace;
  --content:   980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(159, 239, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 239, 0, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
::selection { background: var(--accent); color: var(--bg); }

/* ============================================================
   Top nav
============================================================ */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-nav-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.top-brand { display: flex; flex-direction: column; color: var(--fg); }
.top-brand:hover { text-decoration: none; }
.top-brand-name {
  font-size: 14px;
  font-weight: 700;
}
.top-brand-name::before {
  content: "~/ ";
  color: var(--accent);
}
.top-brand-role {
  font-size: 10.5px;
  color: var(--fg-mut);
  margin-top: 1px;
  letter-spacing: 0.02em;
}

.top-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
  font-size: 12px;
}
.top-links a {
  color: var(--fg-dim);
  padding: 2px 0;
  position: relative;
  transition: color 0.12s;
}
.top-links a:hover, .top-links a.active { color: var(--accent); text-decoration: none; }
.top-links a.active::before {
  content: "> ";
  color: var(--accent);
  position: absolute;
  left: -14px;
}

.top-extra {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.top-extra a { color: var(--fg-dim); }
.top-extra a:hover { color: var(--accent); text-decoration: none; }
.top-cta {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.top-cta:hover { background: var(--accent); color: var(--bg) !important; text-decoration: none; }

/* ============================================================
   Main
============================================================ */

.main {
  margin: 0 auto;
  padding: 0 28px;
  max-width: var(--content);
  position: relative;
  z-index: 1;
}

.section {
  padding: 72px 0 32px;
  border-bottom: 1px dashed var(--line);
}
.section:last-of-type { border-bottom: 0; }

/* ============================================================
   Hero
============================================================ */

.section-hero { padding-top: 88px; }

.kicker {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.kicker::before { content: "// "; color: var(--fg-mut); }

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--fg);
}
.hero-accent {
  color: var(--accent);
  white-space: nowrap;
  position: relative;
}
.hero-accent::before { content: "["; color: var(--accent-dim); }
.hero-accent::after { content: "]"; color: var(--accent-dim); }

.hero-lede {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 680px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.12s;
}
.btn::before { content: "$ "; color: var(--accent); margin-right: 2px; }
.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 32px;
  border: 1px dashed var(--line);
}
.stat-card {
  padding: 18px;
  border-right: 1px dashed var(--line);
}
.stat-card:last-child { border-right: 0; }

.stat-lb {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.stat-lb::before { content: "# "; color: var(--fg-mut); }

.stat-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.stat-val-sm { font-size: 15px; }
.stat-unit { font-size: 13px; color: var(--fg-mut); }
.stat-sub { font-size: 11px; color: var(--fg-dim); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.chip-cert {
  background: rgba(159, 239, 0, 0.06);
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ============================================================
   Section heads
============================================================ */

.section-head { margin-bottom: 28px; }

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mut);
  margin-bottom: 10px;
}
.section-kicker::before { content: "// "; color: var(--accent); }

.section-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.section-title::before { content: "> "; color: var(--accent); }

.section-lede {
  font-size: 13.5px;
  color: var(--fg-dim);
  max-width: 640px;
  margin: 0;
  line-height: 1.7;
}

.sub-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 40px 0 16px;
}
.sub-section-title::before { content: "// "; color: var(--fg-mut); }

/* ============================================================
   Experience
============================================================ */

.timeline { display: flex; flex-direction: column; gap: 10px; }

.exp-card {
  background: var(--bg-lift);
  border: 1px dashed var(--line);
  padding: 20px 22px;
  transition: border-color 0.15s;
}
.exp-card:hover { border-color: var(--accent); border-style: solid; }
.exp-current {
  border-color: var(--accent);
  border-style: solid;
  background: linear-gradient(180deg, rgba(159, 239, 0, 0.05) 0%, var(--bg-lift) 50%);
}
.exp-current .exp-company::before {
  content: "● ";
  color: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.exp-company {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.exp-sub {
  color: var(--fg-mut);
  font-weight: 400;
  font-size: 13px;
}
.exp-role {
  font-size: 12.5px;
  color: var(--fg-dim);
  margin-top: 2px;
}
.exp-meta { text-align: right; }
.exp-date {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 500;
}
.exp-loc {
  font-size: 10.5px;
  color: var(--fg-mut);
  margin-top: 2px;
}

.exp-bullets {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-bullets li {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.exp-bullets li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}
.exp-bullets li strong { color: var(--accent); font-weight: 600; }

/* ============================================================
   Projects
============================================================ */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.proj-card-lg { grid-column: span 2; }

.proj-card {
  background: var(--bg-lift);
  border: 1px dashed var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.proj-card:hover { border-color: var(--accent); border-style: solid; }

.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.proj-year {
  font-size: 10px;
  color: var(--fg-mut);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.proj-year::before { content: "year: "; color: var(--fg-mut); }

.proj-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.proj-title::before { content: "> "; color: var(--accent); }

.proj-tag {
  font-size: 12px;
  color: var(--fg-dim);
}
.proj-tag::before { content: "// "; color: var(--fg-mut); }

.proj-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  font-weight: 500;
  white-space: nowrap;
}
.badge-public {
  color: var(--accent);
  border-color: var(--accent);
}
.badge-private {
  background: rgba(255, 182, 39, 0.08);
  color: var(--warn);
  border-color: var(--warn);
}

.proj-body {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.7;
  margin: 0 0 16px;
}
.proj-body strong { color: var(--accent); font-weight: 600; }

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}
.tech {
  font-size: 10.5px;
  color: var(--fg-dim);
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.proj-links { display: flex; gap: 8px; padding-top: 4px; margin-top: auto; }
.proj-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-weight: 500;
  transition: all 0.12s;
}
.proj-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.proj-link-primary {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.proj-link-primary:hover { background: var(--accent); color: var(--bg); }

/* Earlier work */
.minor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.minor-card {
  background: var(--bg-lift);
  border: 1px dashed var(--line);
  padding: 16px 18px;
  display: block;
  color: var(--fg);
  transition: all 0.12s;
}
.minor-card:hover {
  border-color: var(--accent);
  border-style: solid;
  text-decoration: none;
}
.minor-year {
  font-size: 10px;
  color: var(--fg-mut);
  letter-spacing: 0.06em;
}
.minor-title {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0;
  color: var(--fg);
}
.minor-title::before { content: "▸ "; color: var(--accent); }
.minor-desc {
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 8px;
}
.minor-tech {
  font-size: 10px;
  color: var(--fg-mut);
  letter-spacing: 0.04em;
}

/* ============================================================
   Skills
============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.skill-card {
  background: var(--bg-lift);
  border: 1px dashed var(--line);
  padding: 18px;
}
.skill-lb {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.skill-lb::before { content: "# "; color: var(--fg-mut); }

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.skill-chips .chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
}

/* ============================================================
   Education + contact
============================================================ */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.edu-card {
  background: var(--bg-lift);
  border: 1px dashed var(--line);
  padding: 20px;
}
.edu-degree {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg);
}
.edu-school {
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.edu-year {
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}
.contact-card {
  background: var(--bg-lift);
  border: 1px dashed var(--line);
  padding: 18px 20px;
  color: var(--fg);
  transition: border-color 0.12s;
}
.contact-card:hover {
  border-color: var(--accent);
  border-style: solid;
  text-decoration: none;
}
.contact-lb {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mut);
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-lb::before { content: "# "; color: var(--accent); }
.contact-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg);
  word-break: break-all;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 48px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--fg-mut);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-l::before { content: "// "; color: var(--accent); }

/* ============================================================
   Responsive
============================================================ */

@media (max-width: 820px) {
  .top-nav-inner { padding: 14px 20px; gap: 14px; }
  .top-links { gap: 14px; }
  .main { padding: 0 20px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card-lg { grid-column: span 1; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 22px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) {
    border-bottom: 1px dashed var(--line);
  }
  .section { padding: 56px 0 24px; }
  .section-hero { padding-top: 72px; }
  .exp-head { flex-direction: column; gap: 6px; }
  .exp-meta { text-align: left; }
  .proj-head { flex-direction: column; }
  .proj-badges { flex-direction: row; align-items: flex-start; }
  .footer { flex-direction: column; align-items: flex-start; }
}
