/* =========================================================================
   praveen vinny — portfolio
   palette: github dark + a friendlier green accent
   ========================================================================= */

:root {
  --bg: #0d1117;
  --bg-alt: #0a0e14;
  --panel: #161b22;
  --panel-2: #1c232c;
  --border: #30363d;
  --border-soft: #21262d;
  --text: #c9d1d9;
  --text-dim: #8b949e;
  --text-mute: #6e7681;
  --accent: #7ee787;
  --accent-2: #58a6ff;
  --accent-warn: #f0883e;
  --red: #ff7b72;
  --yellow: #d29922;
  --green: #3fb950;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(126,231,135,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(88,166,255,.05), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg);
  padding: 8px 12px; border-radius: 6px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* TOP BAR ----------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,17,23,.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  color: var(--text); display: inline-flex; align-items: baseline; gap: 6px;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand-prompt { color: var(--accent); }
.brand-cursor { color: var(--accent); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav { display: flex; gap: 22px; }
.nav a {
  font-family: var(--mono); font-size: 13px;
  color: var(--text-dim);
}
.nav a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  width: 38px; height: 32px; border-radius: 6px;
  flex-direction: column; justify-content: center; gap: 4px; padding: 0 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-dim); }

/* HERO -------------------------------------------------------------------- */
.hero { padding: 56px 0 72px; }

.terminal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #20262d, #161b22);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title {
  margin-left: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--text-mute);
}
.terminal-body {
  padding: 22px 22px 26px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
}
.terminal-body .line { margin: 0; color: var(--text); }
.terminal-body .output {
  margin: 4px 0 18px;
  color: var(--text-dim);
  padding-left: 20px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.7;
}
.terminal-body .prompt { color: var(--accent); margin-right: 6px; }
.terminal-body .cmd { color: var(--text); }
.terminal-body .links-inline { display: flex; gap: 18px; flex-wrap: wrap; }
.terminal-body .links-block { display: flex; flex-direction: column; gap: 4px; }
.cursor-blink {
  display: inline-block;
  width: 9px; background: var(--accent); color: var(--accent);
  animation: blink 1.05s steps(1) infinite; margin-left: 2px;
}
.type-target { min-height: 1.6em; }

.hero-meta {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--mono); font-size: 12px; color: var(--text-mute);
}
.meta-key { color: var(--accent); margin-right: 6px; }

/* SECTIONS ---------------------------------------------------------------- */
.section { padding: 80px 0; border-top: 1px solid var(--border-soft); }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--mono);
  font-size: 22px; font-weight: 600; color: var(--text);
  margin: 0 0 32px;
  letter-spacing: -.01em;
}
.section-title .hash { color: var(--accent); margin-right: 6px; }
.sub-title {
  font-family: var(--mono);
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 56px 0 18px;
}
.sub-title .hash { color: var(--accent); margin-right: 6px; }
.section-lede {
  color: var(--text-dim); margin: -16px 0 28px; font-size: 15px;
}

.lead { font-size: 17px; color: var(--text); }

/* GRID -------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }

/* KEY-VALUE CARD ---------------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.kv-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
}
.kv-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-family: var(--mono); font-size: 13px;
}
.kv-row:last-child { border-bottom: none; }
.kv-key { color: var(--text-mute); }
.kv-val { color: var(--text); text-align: right; }

/* TIMELINE ---------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.t-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
}
.t-item:last-child { border-bottom: none; }
.t-time { font-family: var(--mono); }
.t-year { display: block; font-size: 18px; color: var(--accent); font-weight: 600; }
.t-range { display: block; font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.t-role { margin: 0 0 4px; font-size: 18px; color: var(--text); }
.t-company { margin: 0 0 8px; color: var(--text-dim); font-size: 14px; }
.t-desc { margin: 0 0 12px; color: var(--text-dim); }
.t-tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.t-tags li {
  font-family: var(--mono); font-size: 11px;
  background: var(--panel); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px; color: var(--text-dim);
}

/* SKILLS ------------------------------------------------------------------ */
.skill-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.skill-h {
  font-family: var(--mono); font-size: 13px; color: var(--text-mute);
  margin: 0 0 10px; letter-spacing: .04em; text-transform: uppercase;
}
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list li {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--panel); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 6px; color: var(--text);
}
.chip-list.small li { font-size: 11.5px; padding: 3px 8px; }

/* PROJECTS ---------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card-grid.single { grid-template-columns: 1fr; max-width: 760px; }
.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--panel-2);
}
.project-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.project-tag {
  font-family: var(--mono); font-size: 10.5px;
  background: rgba(126,231,135,.12); color: var(--accent);
  padding: 3px 8px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase;
}
.project-title { margin: 0; font-size: 17px; color: var(--text); }
.project-desc { margin: 8px 0 14px; color: var(--text-dim); font-size: 14.5px; }
.project-links { margin: 12px 0 0; font-family: var(--mono); font-size: 13px; display: flex; flex-wrap: wrap; gap: 14px; }
.project-empty { border-style: dashed; opacity: .85; }
.edu-spec {
  margin: -2px 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .01em;
}

/* HOBBIES ----------------------------------------------------------------- */
.hobby-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.hobby {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .18s ease, border-color .18s ease;
}
.hobby:hover { transform: translateY(-2px); border-color: var(--accent); }
.hobby-icon { font-size: 22px; margin-bottom: 8px; }
.hobby h3 { margin: 0 0 4px; font-size: 15px; color: var(--text); font-family: var(--mono); }
.hobby p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.65; }
.hobby p strong { color: var(--text); font-weight: 600; }
.hobby p em { color: var(--text); font-style: italic; }

/* Featured hobby (travel) -------------------------------------------------- */
.hobby-featured {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  transition: transform .18s ease, border-color .18s ease;
}
.hobby-featured:hover { transform: translateY(-2px); border-color: var(--accent); }
.fh-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.fh-head .hobby-icon { margin: 0; font-size: 22px; line-height: 1; }
.fh-head h3 {
  margin: 0; font-size: 17px; color: var(--text);
  font-family: var(--mono);
}
.fh-badge {
  font-family: var(--mono); font-size: 10.5px;
  background: rgba(126,231,135,.12); color: var(--accent);
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: .04em; text-transform: uppercase;
}
.hobby-featured p {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.hobby-featured p:last-of-type { margin-bottom: 0; }
.hobby-featured p strong { color: var(--text); font-weight: 600; }
.fh-chips { margin-top: 14px; }

/* CONTACT ----------------------------------------------------------------- */
.contact-wrap { max-width: 760px; }
.contact-term { margin-top: 6px; }

/* TODO MARKER ------------------------------------------------------------- */
.todo {
  background: rgba(240,136,62,.12);
  color: var(--accent-warn);
  border: 1px dashed rgba(240,136,62,.45);
  padding: 1px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: .85em;
}

/* FOOTER ------------------------------------------------------------------ */
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-mute);
  font-family: var(--mono); font-size: 12.5px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}

/* MOBILE ------------------------------------------------------------------ */
@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--panel); border-bottom: 1px solid var(--border);
    padding: 14px 24px; gap: 12px;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hobby-grid { grid-template-columns: 1fr 1fr; }
  .t-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .terminal-body { padding: 18px 16px 22px; font-size: 13.5px; }
  .terminal-body .output { font-size: 13px; padding-left: 14px; }
  .hobby-grid, .skill-grid { grid-template-columns: 1fr; }
  .hobby-featured { padding: 20px 18px; }
  .fh-head h3 { font-size: 17px; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-cursor, .cursor-blink { animation: none; }
  .project-card:hover, .hobby:hover { transform: none; }
  .hobby-featured { transition: none; }
}
