/* ============================================================
   Vinod Pungle — Personal Site
   Design system: dark modern tech
   Near-black base · electric blue → violet gradients ·
   glass cards · glowing accents · recruiter-scannable hierarchy
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --bg-elev: #101627;
  --bg-elev-2: #141b2d;
  --ink: #e5e7eb;
  --ink-soft: #c3cad6;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --accent-grad: linear-gradient(120deg, var(--blue), var(--violet));
  --accent-grad-wide: linear-gradient(120deg, #22d3ee, #3b82f6 45%, #8b5cf6);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --glow-blue: rgba(59, 130, 246, 0.35);
  --glow-violet: rgba(139, 92, 246, 0.3);
  --radius: 16px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Gradient text helper ---------- */

.grad-text {
  background: var(--accent-grad-wide);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  box-shadow: 0 0 18px var(--glow-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.site-nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.site-nav a.active {
  color: var(--ink);
  border-image: var(--accent-grad) 1;
  border-bottom: 2px solid;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 28px var(--glow-blue); }

.btn-secondary {
  background: rgba(148, 163, 184, 0.07);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--blue); box-shadow: 0 0 16px rgba(59, 130, 246, 0.18); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 8px; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

/* subtle grid texture + radial glows, pure CSS */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  top: -260px;
  right: -160px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .lede {
  margin-top: 24px;
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero .lede strong { color: var(--ink-soft); font-weight: 600; }

.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-status {
  margin-top: 30px;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.hero-status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  margin-right: 8px;
}

/* Portrait */

.hero-portrait { position: relative; justify-self: center; }

.hero-portrait .frame {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  border-radius: 24px;
  padding: 3px;
  background: var(--accent-grad-wide);
  box-shadow: 0 0 44px rgba(59, 130, 246, 0.28), 0 0 90px rgba(139, 92, 246, 0.16);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 20%;
  border-radius: 21px;
}

a.badge:hover { text-decoration: none; border-color: var(--blue); }

.hero-portrait .badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ---------- Credibility bar ---------- */

.cred-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 38px 0;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.cred-grid .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--accent-grad-wide);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cred-grid .lbl {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.client-strip {
  margin-top: 30px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.client-strip strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section.alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 720px; margin-bottom: 48px; }

.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Cards & grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  position: relative;
  background: rgba(20, 27, 45, 0.66);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 14px 44px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.card p { color: var(--muted); font-size: 0.95rem; }

.card .kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.9rem; }
.card-link::after { content: " \2192"; }

/* Featured card with gradient border */

.card-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(16, 22, 39, 0.96), rgba(16, 22, 39, 0.96)) padding-box,
    var(--accent-grad-wide) border-box;
}
.card-featured:hover {
  box-shadow: 0 0 34px rgba(59, 130, 246, 0.22), 0 14px 44px rgba(0, 0, 0, 0.4);
}

/* ---------- Chips / tags ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.chip.accent {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

/* ---------- Timeline (Resume page) ---------- */

.timeline { position: relative; margin-top: 12px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue) 40%, var(--violet));
  opacity: 0.5;
}

.t-item { position: relative; padding: 0 0 52px 44px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--blue);
  box-shadow: 0 0 12px var(--glow-blue);
}

.t-item .t-period {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.t-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 6px;
}

.t-item .t-org { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; margin-top: 2px; }

.t-item p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; max-width: 72ch; }

.t-item ul { margin: 12px 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.t-item li { margin-bottom: 7px; max-width: 70ch; }

/* ---------- Case study cards (Projects page) ---------- */

.case {
  background: rgba(20, 27, 45, 0.66);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 36px;
  margin-bottom: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.case:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 14px 44px rgba(0, 0, 0, 0.4);
}

.case-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }

.case h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.42rem; }

.case .case-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

.case .case-role {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.case p.case-summary { margin-top: 14px; color: var(--ink-soft); font-size: 0.98rem; max-width: 80ch; }

.case ul { margin: 14px 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.case li { margin-bottom: 7px; max-width: 78ch; }

/* ---------- Topic pipeline (Published Work) ---------- */

.topic-list { list-style: none; margin-top: 16px; }
.topic-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: var(--muted);
  font-size: 0.93rem;
  border-bottom: 1px solid var(--border);
}
.topic-list li:last-child { border-bottom: none; }
.topic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-grad);
  opacity: 0.85;
}
.topic-list li strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Skill matrix ---------- */

.skill-group h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.skill-group > p { font-size: 0.9rem; color: var(--muted); }

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

.repo-meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- Stats inline ---------- */

.stat-inline { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 28px; }
.stat-inline div .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-grad-wide);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-inline div .lbl { font-size: 0.8rem; color: var(--muted); }
.stat-inline a { text-decoration: none; }
.stat-inline a:hover { text-decoration: none; }
.stat-inline a:hover .lbl { color: var(--cyan); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 84px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 30% 100%, rgba(59, 130, 246, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 90% at 70% 100%, rgba(139, 92, 246, 0.14), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  max-width: 28ch;
  margin: 0 auto;
}

.cta-band p { color: var(--muted); max-width: 58ch; margin: 16px auto 0; }

.cta-band .btn-primary { margin-top: 30px; }
.cta-band .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.cta-band .hero-actions .btn { margin-top: 0; }

/* ---------- Contact ---------- */

.contact-list { list-style: none; margin-top: 8px; }
.contact-list li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .k {
  min-width: 110px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding-top: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #070a13;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 52px 0 40px;
  font-size: 0.9rem;
}

.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: #fff; }
.site-footer .foot-brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.site-footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .foot-note { margin-top: 26px; font-size: 0.8rem; color: #5b6472; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -300px;
  right: -140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.13), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.page-hero p { margin-top: 16px; color: var(--muted); max-width: 66ch; font-size: 1.05rem; }
.page-hero .hero-actions { margin-top: 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 1160px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; align-items: flex-start; }
  .site-nav a:not(.btn) { display: block; padding: 10px 0; font-size: 1rem; }
  .site-nav .btn { margin-top: 10px; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-portrait { order: -1; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 60px 0; }
  .case { padding: 28px 22px; }
}
