/* ==========================================================================
   rahullingampally.online — design tokens
   Terminal / SOC console aesthetic. Everything keys off a shell metaphor:
   sections are "commands", the nav is a tmux bar, the hero is a boot log.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  /* color */
  --bg: #090c0a;
  --bg-panel: #0f1512;
  --bg-panel-2: #131b17;
  --bg-raised: #17211b;
  --border: #1e2b23;
  --border-bright: #2c4234;

  --green: #39ff88;
  --green-dim: #1f8f52;
  --green-faint: rgba(57, 255, 136, 0.08);
  --amber: #ffb32e;
  --red: #ff5c5c;

  --text: #d3ded6;
  --text-dim: #7c8f82;
  --text-faint: #45564c;

  /* type */
  --font: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* layout */
  --maxw: 980px;
  --radius: 3px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  position: relative;
}

/* faint scanline atmosphere across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

::selection { background: var(--green-dim); color: #06110a; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

h1, h2, h3, h4 { font-family: var(--font); margin: 0; color: var(--text); }

img { max-width: 100%; }

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

/* ---------- tmux-style top bar ---------- */
.tmux-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 12, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.tmux-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 46px;
  gap: 4px;
  overflow-x: auto;
}
.tmux-session {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  padding-right: 14px;
  margin-right: 10px;
  border-right: 1px solid var(--border);
}
.tmux-tab {
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.tmux-tab:hover { color: var(--green); background: var(--green-faint); text-decoration: none; }
.tmux-tab.is-active { color: var(--bg); background: var(--green); }
.tmux-status {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  padding-left: 14px;
}
.tmux-status .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- prompt / command headers ---------- */
.prompt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.prompt .user { color: var(--green-dim); font-size: 13px; }
.prompt .cmd { color: var(--green); font-size: 15px; font-weight: 700; }
.prompt .cmd::after {
  content: "";
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--green);
  margin-left: 6px;
  vertical-align: -3px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

section { padding: 70px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.boot-log {
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: pre-wrap;
  min-height: 190px;
  margin-bottom: 28px;
}
.boot-log .ok { color: var(--green-dim); }
.boot-log .warn { color: var(--amber); }
.hero-name {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-name .glow { color: var(--green); text-shadow: 0 0 24px rgba(57,255,136,.35); }
.hero-role {
  margin-top: 14px;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--green);
}
.hero-role .caret {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--green);
  vertical-align: -3px;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
.hero-tagline {
  margin-top: 18px;
  max-width: 640px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 24px;
  font-size: 11px;
  color: var(--text-faint);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  color: var(--text);
  background: var(--bg-panel);
  transition: border-color .15s, color .15s, background .15s, transform .1s;
}
.btn:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #06110a; border-color: var(--green); }
.btn-primary:hover { background: #4bffa0; color: #06110a; }

/* ---------- about ---------- */
.about-body { max-width: 700px; color: var(--text-dim); font-size: 14.5px; }
.about-body strong { color: var(--text); font-weight: 700; }
.about-facts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.fact { background: var(--bg-panel); padding: 16px 18px; }
.fact-k { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.fact-v { font-size: 13.5px; color: var(--green); }

/* ---------- cert grid ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cert-card {
  background: var(--bg-panel);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: background .2s;
}
.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, var(--green-faint) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.cert-card:hover::before { transform: translateX(120%); }
.cert-card:hover { background: var(--bg-raised); }
.cert-tag { font-size: 10px; color: var(--green-dim); letter-spacing: .1em; text-transform: uppercase; }
.cert-name { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.cert-issuer { margin-top: 6px; font-size: 12px; color: var(--text-faint); }

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.skill-group-name {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 5px 10px;
  transition: color .15s, border-color .15s, background .15s;
}
.pill:hover { color: var(--green); border-color: var(--green); background: var(--green-faint); }

/* ---------- experience ---------- */
.exp-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; margin-bottom: 6px; }
.exp-date { font-size: 12px; color: var(--text-faint); padding-top: 3px; }
.exp-role { font-size: 16px; font-weight: 700; color: var(--text); }
.exp-org { font-size: 13px; color: var(--green-dim); margin-top: 2px; margin-bottom: 14px; }
.exp-bullets { color: var(--text-dim); font-size: 13.5px; padding-left: 18px; }
.exp-bullets li { margin-bottom: 8px; }
.exp-bullets::marker { color: var(--green-dim); }

/* ---------- projects ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.proj-card { background: var(--bg-panel); padding: 24px; transition: background .2s; }
.proj-card:hover { background: var(--bg-raised); }
.proj-name { font-size: 15px; font-weight: 700; color: var(--text); }
.proj-desc { margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.proj-stack { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.proj-stack span { font-size: 10.5px; color: var(--green-dim); border: 1px solid var(--border-bright); padding: 3px 7px; border-radius: var(--radius); }

/* ---------- walkthroughs / blog list ---------- */
.wt-list { display: flex; flex-direction: column; border: 1px solid var(--border); }
.wt-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  transition: background .15s;
}
.wt-row:last-child { border-bottom: none; }
.wt-row:hover { background: var(--bg-raised); text-decoration: none; }
.wt-status { font-size: 10.5px; color: var(--red); border: 1px solid var(--red); border-radius: var(--radius); padding: 3px 7px; text-align: center; letter-spacing: .06em; }
.wt-info .wt-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.wt-info .wt-sub { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.wt-arrow { color: var(--text-faint); font-size: 13px; }
.wt-row:hover .wt-arrow { color: var(--green); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 30px;
}
.contact-card {
  background: var(--bg-panel);
  padding: 20px;
  transition: background .15s;
}
.contact-card:hover { background: var(--bg-raised); text-decoration: none; }
.contact-k { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.contact-v { margin-top: 8px; font-size: 13.5px; color: var(--green); word-break: break-word; }

footer {
  padding: 34px 0 50px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  section { padding: 50px 0; }
  .exp-item { grid-template-columns: 1fr; gap: 6px; }
  .wt-row { grid-template-columns: 1fr; gap: 8px; }
  .wt-status { justify-self: start; }
}

/* ---------- article pages (walkthroughs) share the same shell ---------- */
.article-header { padding: 60px 0 20px; border-bottom: 1px solid var(--border); }
.article-tag { font-size: 11px; color: var(--red); border: 1px solid var(--red); display: inline-block; padding: 3px 8px; border-radius: var(--radius); letter-spacing: .06em; margin-bottom: 16px; }
.article-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--text); line-height: 1.15; }
.article-meta { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); }
.article-body { padding: 40px 0 70px; max-width: 780px; }
.article-body h2 { font-size: 18px; color: var(--green); margin-top: 40px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--text-dim); font-size: 14px; margin: 0 0 16px; }
.article-body ul, .article-body ol { color: var(--text-dim); font-size: 14px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--green); }
.article-body pre {
  background: #050705;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #c8f5da;
}
.article-body code { font-family: var(--font); }
.article-body p code, .article-body li code {
  background: var(--bg-panel-2);
  border: 1px solid var(--border-bright);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--green);
}
.article-back { margin-top: 40px; }
