/* Shravan Murali — restored stylesheet */

:root {
  --bg: #1f1815;
  --bg-2: #2b2320;
  --bg-3: #362c28;
  --ink: #d9d0c9;
  --muted: #9a8d84;
  --heading: #fff;
  --accent: #e4785a;
  --line: rgba(255, 255, 255, .14);
  --wrap: 1000px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--heading); }
p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; color: var(--accent); }

:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px;
  background: rgba(31, 24, 21, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--heading);
}
.brand:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  padding: 8px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--heading);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.primary-nav ul { display: flex; flex-wrap: wrap; gap: 2px; }
.primary-nav a {
  display: block;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 4px;
}
.primary-nav a:hover { color: var(--heading); background: var(--bg-2); text-decoration: none; }
/* ---------- banner ---------- */

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  /* capped so the hero never balloons on very tall displays */
  min-height: min(calc(100vh - 70px), 780px);
  padding: 56px 24px 72px;
  text-align: center;
}
.banner__inner { max-width: 560px; }

.avatar {
  width: 200px;
  height: 200px;
  margin: 0 auto 26px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-2);
}

.banner h1 { font-size: clamp(30px, 6vw, 44px); letter-spacing: .02em; }
.roles { margin-top: 14px; font-size: 19px; line-height: 1.5; }

.socials { display: flex; justify-content: center; gap: 18px; margin: 32px 0 28px; }
.social {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  background: var(--bg-2);
  border-radius: 50%;
  transition: transform .25s ease;
}
.social:hover { transform: translateY(-3px); text-decoration: none; }
.social svg { width: 25px; height: 25px; fill: #fff; }
.social--github { background: #24292e; }
.social--facebook { background: #3b5998; }
.social--linkedin { background: #1984bc; }


.blink {
  display: inline-block;
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  animation: blink 1.4s steps(2, start) infinite;
}
.blink:hover { text-decoration: none; color: var(--heading); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- sections ---------- */

.section { padding: 74px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }

.section-title {
  margin-bottom: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title::after {
  display: block;
  width: 46px; height: 2px;
  margin-top: 12px;
  background: var(--accent);
  content: "";
}

/* ---------- timeline ---------- */

.timeline { display: grid; gap: 34px; }
.entry {
  position: relative;
  padding-left: 26px;
  border-left: 2px solid var(--bg-3);
}
.entry::before {
  position: absolute;
  left: -7px; top: 8px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}
.entry__when {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry h3 { margin: 6px 0 8px; font-size: 21px; }
.section--alt .entry { border-left-color: #423631; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cards > * { min-width: 0; }
.card {
  padding: 26px 28px;
  background: var(--bg-2);
  border-radius: 10px;
  border-top: 3px solid var(--accent);
}
.section--alt .card { background: var(--bg-3); }
.card__when {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card h3 { margin: 6px 0 10px; font-size: 21px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
}
.tag--win { background: rgba(228, 120, 90, .18); color: var(--accent); font-weight: 700; }
.tag--link { font-family: var(--mono); color: var(--accent); }
.tag--link:hover { background: rgba(228, 120, 90, .18); text-decoration: none; }

/* ---------- skills ---------- */

.skills { display: grid; gap: 26px; }
.skills h3 {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  background: var(--bg-3);
  border-radius: 6px;
}

/* ---------- education panels ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.two-col > * { min-width: 0; }
.panel {
  padding: 26px 28px;
  background: var(--bg-2);
  border-radius: 10px;
}
.panel h3 {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.sub {
  margin: 18px 0 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sub:first-of-type { margin-top: 0; }

.dots li { padding: 3px 0 3px 16px; position: relative; font-size: 15px; }
.dots li::before {
  position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.awards li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.awards li:last-child { border-bottom: 0; }
.year {
  display: inline-block;
  min-width: 48px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 46px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__lead { font-size: 18px; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- scroll top ---------- */

.scroll-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 42px; height: 42px;
  padding: 0;
  background: var(--accent);
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.scroll-top svg { width: 25px; height: 25px; margin: 0 auto; fill: #1f1815; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .primary-nav a { padding: 7px 8px; font-size: 12px; }
}

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; padding: 14px 18px; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; width: 100%; padding-top: 10px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li + li { border-top: 1px solid var(--line); }
  .primary-nav a { padding: 11px 6px; font-size: 14px; }

  .banner { min-height: auto; padding: 46px 20px 60px; }
  .avatar { width: 160px; height: 160px; }

  .section { padding: 52px 0; }
  .cards, .two-col { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
