/* ===================== Ravi Kumar Krishnamoorthy — CV ===================== */
/* Standalone page. Deliberately NOT the JORA Nexus corporate stylesheet —
   this is a personal page, light-themed body with the same dark-bluish-black
   + amber pairing used for tiles/headers elsewhere in JORA Nexus work. */
:root {
  --ink: #1c2229;
  --muted: #6b6155;
  --dark: #0d1117;
  --dark-2: #1a2340;
  --paper: #ffffff;
  --paper-alt: #faf6ef;
  --border: #e8e1d4;
  --amber: #a66322;
  --amber-deep: #7a4718;
  --font-sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --maxw: 980px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: var(--font-sans); background: var(--paper); color: var(--ink);
  min-height: 100vh; font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Decorative concept-name texture: fixed, full-viewport, behind everything.
   Every content block sits on an opaque surface above it, so the pattern
   only ever shows through in the gaps and margins of the white body. */
.cv-bgpattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
}

.cv-page { position: relative; z-index: 1; }

a { color: inherit; }

/* Top bar */
.cv-topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 2rem;
  position: relative; z-index: 2;
}
.cv-topbar-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--dark); }
.cv-topbar-right { display: flex; align-items: center; gap: 1rem; }
.cv-site-link {
  font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color 0.25s ease, border-color 0.25s ease;
}
.cv-site-link:hover { color: var(--amber-deep); border-color: var(--amber-deep); }

/* Buttons */
.cv-btn {
  display: inline-block; text-decoration: none; font-family: var(--font-sans);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; padding: 0.75rem 1.4rem;
  border-radius: 4px; cursor: pointer; transition: all 0.25s ease; border: 1.5px solid transparent;
}
.cv-btn-solid { background: var(--amber); color: #fff; }
.cv-btn-solid:hover { background: var(--amber-deep); }
.cv-btn-ghost { background: transparent; color: var(--dark); border-color: var(--border); }
.cv-btn-ghost:hover { border-color: var(--amber); color: var(--amber-deep); }
.cv-btn-ghost-inverse { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.cv-btn-ghost-inverse:hover { background: rgba(255,255,255,0.16); border-color: #fff; }
.cv-btn-white { background: #fff; color: var(--dark); }
.cv-btn-white:hover { background: var(--amber); color: #fff; }
.cv-cta-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.cv-cta-row.center { justify-content: center; }

/* Hero — full-bleed dark band, no floating card, no separate grey stats box.
   Stats live inside this same band so the opening reads as one deliberate
   shape instead of a dark card sitting on top of a pale grey one. */
.cv-hero {
  position: relative; z-index: 1; overflow: hidden;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 3.75rem 2rem 0;
}
.cv-hero::before {
  content: ""; position: absolute; top: -30%; right: -10%; width: 55%; height: 160%;
  background: radial-gradient(circle, rgba(166, 99, 34, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.cv-hero-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.cv-hero-photo {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover; object-position: top center;
  display: block; margin: 0 auto 1.5rem; border: 3px solid rgba(166, 99, 34, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.cv-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--amber); margin-bottom: 1.1rem;
}
.cv-hero-title {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 2.9rem);
  line-height: 1.18; color: #fff; margin-bottom: 0.85rem;
}
.cv-hero-summary { font-size: 1rem; line-height: 1.85; color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 2rem; }
.cv-contact-row { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; margin-bottom: 1.75rem; }
.cv-contact-row a, .cv-contact-row span {
  font-size: 12.5px; color: rgba(255,255,255,0.92); text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; padding: 0.5rem 0.95rem;
}
.cv-contact-row a:hover { border-color: var(--amber); }

/* Stats row, built directly into the base of the dark hero — divided by
   hairlines, not boxed, so nothing here reads as a separate grey tile. */
.cv-hero-stats {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center;
  max-width: var(--maxw); margin: 2.75rem auto 0; padding: 0 1rem;
}
.cv-hero-stat {
  flex: 1 1 140px; text-align: center; padding: 1.5rem 1rem 2rem;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.cv-hero-stat:first-child { border-left: none; }
.cv-hero-stat-num { display: block; font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--amber); margin-bottom: 0.3rem; }
.cv-hero-stat-label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* Sections — plain content on the white page, separated by a short amber
   rule rather than a bordered grey card. */
.cv-section { max-width: var(--maxw); margin: 0 auto; padding: 5rem 2rem 0; position: relative; z-index: 1; }
.cv-section-head { text-align: center; margin-bottom: 3rem; }
.cv-section-rule { width: 48px; height: 2px; background: var(--amber); margin: 0 auto 1.5rem; }
.cv-section-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--amber-deep); margin-bottom: 0.75rem; }
.cv-section-heading { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--dark); }

/* Experience timeline */
.cv-timeline { position: relative; display: flex; flex-direction: column; gap: 2.75rem; padding-left: 2rem; border-left: 2px solid var(--border); }
.cv-role { position: relative; }
.cv-role::before {
  content: ""; position: absolute; left: -2.4rem; top: 0.35rem; width: 11px; height: 11px;
  border-radius: 50%; background: var(--dark); box-shadow: 0 0 0 4px var(--paper);
}
.cv-role-dates { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-deep); font-weight: 700; margin-bottom: 0.4rem; }
.cv-role-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; color: var(--dark); margin-bottom: 0.2rem; }
.cv-role-org { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.cv-role ul { list-style: none; }
.cv-role li { position: relative; padding-left: 1.1rem; font-size: 0.92rem; color: var(--muted); line-height: 1.75; margin-bottom: 0.55rem; }
.cv-role li::before { content: "\2013"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

/* Authored work — white cards with an amber rail, not filled grey tiles */
.cv-work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.cv-work-card { background: var(--paper); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 6px; padding: 1.75rem 1.6rem; }
.cv-work-tag { display: inline-block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--amber-deep); background: rgba(166,99,34,0.09); border-radius: 20px; padding: 0.3rem 0.7rem; margin-bottom: 1rem; }
.cv-work-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--dark); margin-bottom: 0.6rem; line-height: 1.35; }
.cv-work-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* Skills */
.cv-skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.cv-skill-group-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--dark); margin-bottom: 0.9rem; }
.cv-tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cv-tag { font-size: 11.5px; color: var(--ink); background: var(--paper-alt); border: 1px solid var(--border); border-radius: 20px; padding: 0.4rem 0.85rem; }

/* JORA Nexus overview — a closing section, not a sales pitch */
.cv-jora { max-width: 700px; margin: 0 auto; text-align: center; }
.cv-jora p { font-size: 1rem; line-height: 1.85; color: var(--muted); margin-bottom: 1.75rem; }
.cv-jora .cv-tag-list { justify-content: center; margin-bottom: 2rem; }

/* Signature quote */
.cv-signature { text-align: center; max-width: 700px; margin: 0 auto; padding: 0 1rem; }
.cv-signature p { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.2rem; line-height: 1.7; color: var(--dark); }
.cv-signature cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-deep); font-weight: 700; }

/* Bottom CTA */
.cv-cta-section { text-align: center; padding: 5rem 2rem 4rem; position: relative; z-index: 1; }

/* Footer */
.cv-footer {
  position: relative; z-index: 1; text-align: center; padding: 2.5rem 2rem 3rem;
  border-top: 1px solid var(--border); max-width: var(--maxw); margin: 0 auto;
}
.cv-footer p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.cv-footer a { color: var(--amber-deep); text-decoration: none; border-bottom: 1px solid var(--border); }
.cv-footer a:hover { border-color: var(--amber-deep); }

@media (max-width: 720px) {
  .cv-hero { padding: 3rem 1.5rem 0; }
  .cv-hero-stat { flex: 1 1 45%; }
  .cv-section { padding: 3.5rem 1rem 0; }
  .cv-timeline { padding-left: 1.4rem; }
  .cv-role::before { left: -1.8rem; }
  .cv-topbar { padding: 1.25rem 1.25rem; }
}
