/* ============================================================
   RAHUL NARAIN SAXENA
   Inspired by: ankurwarikoo.com
   — Poppins font, blue page frame, white content cards,
     personal + direct copy, clean resource grid
   ============================================================ */

:root {
  --page-bg:   #1a56c4;      /* blue outer frame — Ankur-style */
  --card-bg:   #ffffff;
  --card-alt:  #f7f9ff;      /* very light blue-tint for alt cards */
  --dark-card: #0f1f4a;      /* dark navy for TYG section */

  --ink:       #1a1a2e;
  --ink-2:     #4a4a6a;
  --ink-3:     #8888aa;
  --ink-light: rgba(255,255,255,0.85);
  --ink-light2:rgba(255,255,255,0.5);

  --blue:      #2563eb;      /* CTA blue */
  --blue-dark: #1d4ed8;
  --blue-lt:   #eff6ff;

  --border:    #e8eaf2;
  --radius:    12px;
  --radius-sm: 8px;

  --font: 'Poppins', -apple-system, sans-serif;

  --max-w: 900px;
  --pad:   20px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p + p { margin-top: 1em; }

/* ── CARD WRAP — the centred white-card layout ───────────── */
.card-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 32px 0; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-lt);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #bfdbfe;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-ghost:hover { background: #dbeafe; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: all 0.18s ease;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-white {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-card);
  background: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}
.btn-white:hover { background: #f0f4ff; transform: translateY(-2px); }

.btn-sm  { padding: 9px 18px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── HEADER ──────────────────────────────────────────────── */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  background: transparent;
}
#siteHeader.scrolled {
  background: rgba(26, 86, 196, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: #fff;
  color: var(--blue) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}
.nav-cta:hover { background: #e8f0fe; transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.2s ease;
}

/* Mobile overlay */
.mob-overlay {
  position: fixed; inset: 0;
  background: var(--dark-card);
  z-index: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.mob-overlay.open { opacity: 1; pointer-events: all; }

.mob-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
}

.mob-nav { display: flex; flex-direction: column; gap: 0; }
.mob-link {
  font-size: 1.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s ease;
}
.mob-link:last-child { border-bottom: none; }
.mob-link:hover { color: #fff; }
.mob-cta-link {
  margin-top: 24px;
  font-size: 1rem !important;
  background: var(--blue);
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 8px;
  border-bottom: none !important;
  text-align: center;
  font-weight: 600;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 32px;
}

.hero-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 56px 52px 48px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.15);
}

.hero-overline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
/* Ankur-style: lowercase, philosophical, personal */
.hero-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-social-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-social-row a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s ease;
}
.hero-social-row a:hover { color: var(--blue); }

/* ── FEATURED STRIP ──────────────────────────────────────── */
.featured-strip { padding: 16px 0 32px; }

.featured-card {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 36px;
  backdrop-filter: blur(4px);
}

.featured-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.featured-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.fstat {
  padding: 0 24px 0 0;
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 24px;
}
.fstat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.fstat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.fstat span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ── SECTION CARDS ───────────────────────────────────────── */
.section-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.1);
}

.section-card--dark {
  background: var(--dark-card);
}

.section-head {
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.section-head p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 600px;
}

.section-head--light h2 { color: #fff; }
.section-head--light p  { color: var(--ink-light2); }

/* ── RESOURCE GRID ───────────────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.res-card {
  background: var(--card-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.res-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.12);
}

.res-card--featured {
  border-color: #bfdbfe;
  background: var(--blue-lt);
}

.res-badge {
  position: absolute;
  top: -1px; right: 16px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--blue);
  padding: 4px 10px;
  border-radius: 0 0 6px 6px;
}

.res-icon {
  margin-bottom: 16px;
  color: var(--blue);
  line-height: 1;
}
.res-icon svg {
  display: block;
}

.res-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}

.res-card > p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.72;
  margin-bottom: 16px;
  flex: 1;
}

.res-list {
  list-style: none;
  margin-bottom: 20px;
}
.res-list li {
  font-size: 0.8rem;
  color: var(--ink-2);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.res-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}
.res-list li:last-child { border-bottom: none; }

/* ── TYG SECTION ─────────────────────────────────────────── */
.tyg-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.tyg-text p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.78;
}
.tyg-text p + p { margin-top: 14px; }
.tyg-text .btn-white { margin-top: 24px; }

.tyg-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pillar {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pillar:last-child { border-bottom: none; }
.pillar-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.pillar-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ── MENTORSHIP ──────────────────────────────────────────── */
.mentorship-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.mentorship-text p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.78;
}
.mentorship-text p + p { margin-top: 14px; }

.mentor-quote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--blue-lt);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
}
.mentor-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  color: var(--blue);
}

.mentorship-text .btn-blue { margin-top: 4px; }

/* Aside box */
.aside-box {
  background: var(--card-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 24px;
}

.aside-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  border: 2px solid #bfdbfe;
  flex-shrink: 0;
}
.aside-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.aside-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.aside-role {
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 16px;
}

.aside-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.aside-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
}
.aside-stat {
  text-align: center;
  padding: 10px 0;
}
.aside-stat:first-child { border-right: 1px solid var(--border); }
.aside-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 3px;
}
.aside-stat span {
  font-size: 0.68rem;
  color: var(--ink-3);
  font-weight: 300;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.82;
}
.about-text p:first-child { color: var(--ink); font-weight: 400; }
.about-text p + p { margin-top: 14px; }
.about-text .btn-blue { margin-top: 20px; }

.portrait-box {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--blue-lt);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--card-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.15s ease;
}
.about-links a:hover { color: var(--blue); border-color: #bfdbfe; background: var(--blue-lt); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { padding: 32px 0 40px; }

.footer-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px 40px;
  backdrop-filter: blur(4px);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}

.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.footer-tagline {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials a {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s ease;
}
.footer-socials a:hover { color: rgba(255,255,255,0.85); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.16s; }
.rd3 { transition-delay: 0.24s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-card { padding: 40px 28px 36px; }
  .section-card { padding: 36px 28px; }
  .footer-card { padding: 28px 24px; }

  .resource-grid { grid-template-columns: 1fr; }
  .tyg-body { grid-template-columns: 1fr; gap: 32px; }
  .mentorship-body { grid-template-columns: 1fr; gap: 32px; }
  .about-cols { grid-template-columns: 1fr; gap: 32px; }
  .about-portrait { display: flex; gap: 20px; align-items: flex-start; }
  .portrait-box { width: 120px; aspect-ratio: 1; flex-shrink: 0; }

  .featured-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .fstat { border-right: none; padding-right: 0; margin-right: 0; }

  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  :root { --pad: 14px; }
  .hero-card { padding: 32px 20px 28px; }
  .section-card { padding: 28px 20px; }
  .hero-h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .featured-stats { grid-template-columns: 1fr 1fr; }
  .mentor-quote { padding: 14px 16px; }
}
