/* ═══════════════════════════════════════════════════════════════
   pankajsaikia.co.in — Shared Stylesheet
   "Ink & Gold" editorial design system
   Typography: Fraunces (display serif) + Inter (text)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* palette — warm paper, deep ink, antique gold */
  --bg:        #faf8f3;
  --surface:   #ffffff;
  --dim:       #f2eee4;
  --border:    #e7e0d1;
  --navy:      #16294a;            /* deep ink */
  --navy-dim:  rgba(22,41,74,0.07);
  --navy-mid:  rgba(22,41,74,0.14);
  --accent:    #96691c;            /* bronze-gold, link colour */
  --gold:      #c19a3d;            /* bright gold, decorative */
  --text:      #232f3f;
  --muted:     #5c6a7a;
  --subtle:    #8e99a7;
  --radius:    14px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px rgba(22,41,74,0.05), 0 2px 8px rgba(22,41,74,0.04);
  --shadow-md: 0 4px 12px rgba(22,41,74,0.07), 0 12px 32px rgba(22,41,74,0.07);
  --shadow-lg: 0 8px 24px rgba(22,41,74,0.10), 0 24px 64px rgba(22,41,74,0.10);
}

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

html { scroll-behavior: smooth; }

::selection { background: var(--gold); color: #fff; }

body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── ENTRANCE ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero > * { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.15s; }
.hero > *:nth-child(3) { animation-delay: 0.25s; }
.hero > *:nth-child(4) { animation-delay: 0.32s; }
.hero > *:nth-child(5) { animation-delay: 0.40s; }
.hero > *:nth-child(6) { animation-delay: 0.50s; }

.cards .card,
.interest-card,
.blog-post,
.info-block,
.family-card,
.stat,
.tl-item { animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both; }

.cards .card:nth-child(1), .stat:nth-child(1), .family-card:nth-child(1) { animation-delay: 0.05s; }
.cards .card:nth-child(2), .stat:nth-child(2), .family-card:nth-child(2) { animation-delay: 0.13s; }
.cards .card:nth-child(3), .stat:nth-child(3), .family-card:nth-child(3) { animation-delay: 0.21s; }
.cards .card:nth-child(4), .stat:nth-child(4) { animation-delay: 0.29s; }
.cards .card:nth-child(5) { animation-delay: 0.37s; }
.interest-card:nth-of-type(1), .tl-item:nth-child(1) { animation-delay: 0.05s; }
.interest-card:nth-of-type(2), .tl-item:nth-child(2) { animation-delay: 0.12s; }
.interest-card:nth-of-type(3), .tl-item:nth-child(3) { animation-delay: 0.19s; }
.interest-card:nth-of-type(4), .tl-item:nth-child(4) { animation-delay: 0.26s; }
.interest-card:nth-of-type(5), .tl-item:nth-child(5) { animation-delay: 0.33s; }
.interest-card:nth-of-type(6), .tl-item:nth-child(6) { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,243,0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.nav-brand span {
  font-family: var(--font-text);
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 0.15rem; }
.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.18s, background 0.18s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: none; color: var(--navy); font-size: 1.45rem; cursor: pointer; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(193,154,61,0.13), transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 110%, rgba(22,41,74,0.06), transparent 70%),
    linear-gradient(175deg, #f6f1e6 0%, var(--bg) 65%);
}
/* faint star-field — a nod to Jyotish */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1.2px at 12% 28%, rgba(22,41,74,0.22) 99%, transparent),
    radial-gradient(circle 1px   at 26% 64%, rgba(150,105,28,0.28) 99%, transparent),
    radial-gradient(circle 1.4px at 38% 18%, rgba(22,41,74,0.16) 99%, transparent),
    radial-gradient(circle 1px   at 55% 75%, rgba(22,41,74,0.18) 99%, transparent),
    radial-gradient(circle 1.3px at 68% 30%, rgba(150,105,28,0.25) 99%, transparent),
    radial-gradient(circle 1px   at 80% 60%, rgba(22,41,74,0.20) 99%, transparent),
    radial-gradient(circle 1.5px at 90% 22%, rgba(193,154,61,0.30) 99%, transparent),
    radial-gradient(circle 1px   at 7%  80%, rgba(22,41,74,0.15) 99%, transparent);
  pointer-events: none;
}

.monogram {
  width: 118px; height: 118px;
  border-radius: 50%;
  background: linear-gradient(140deg, #1b3358, #16294a 55%, #0e1d38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: #f3e5c3;
  letter-spacing: 2px;
  margin-bottom: 1.8rem;
  position: relative;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.12);
  outline: 1px solid rgba(193,154,61,0.55);
  outline-offset: 6px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.hero .designation {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.hero .company {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 1.6rem;
}
.hero .tagline {
  max-width: 580px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
}

.divider {
  width: 72px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.6rem auto;
  position: relative;
}
.divider::after {
  content: '◆';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 0.5rem;
  color: var(--gold);
  background: transparent;
}

/* ── SECTION LAYOUT ──────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}
.section-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.section-sub {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
  letter-spacing: 0.3px;
}
.section-rule {
  width: 56px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(193,154,61,0.25));
  margin-bottom: 2.4rem;
  transform-origin: left;
  animation: drawLine 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── CARDS GRID ──────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.3rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s, border-color 0.28s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(193,154,61,0.5);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }

.card .card-icon {
  font-size: 1.5rem;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dim);
  border: 1px solid var(--navy-mid);
  border-radius: 13px;
  margin-bottom: 1.1rem;
  transition: background 0.25s, transform 0.25s;
}
.card:hover .card-icon { background: rgba(193,154,61,0.15); transform: scale(1.06) rotate(-3deg); }
.card .card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
}
.card .card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.card .card-arrow {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: letter-spacing 0.25s;
}
.card:hover .card-arrow { letter-spacing: 2.5px; }

/* ── TIMELINE ────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--navy-mid) 55%, transparent);
}
.tl-item {
  position: relative;
  margin-bottom: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tl-item:hover {
  transform: translateX(4px);
  border-color: rgba(193,154,61,0.45);
  box-shadow: var(--shadow-md);
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -2.62rem; top: 26px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(193,154,61,0.18), 0 0 0 1px rgba(193,154,61,0.4);
}
.tl-year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: rgba(193,154,61,0.10);
  border: 1px solid rgba(193,154,61,0.30);
  padding: 0.18rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.65rem;
}
.tl-role {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.tl-org { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-bottom: 0.6rem; }
.tl-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ── SKILLS / TAGS ───────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.32rem 0.85rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.tag:hover {
  border-color: var(--gold);
  background: rgba(193,154,61,0.08);
  transform: translateY(-1px);
}

/* ── INFO BLOCK ──────────────────────────────────────────────── */
.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.info-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), rgba(193,154,61,0.15));
}
.info-block h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.info-block p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}
.info-block p + p { margin-top: 0.85rem; }
.info-block strong { color: var(--navy); font-weight: 600; }

/* ── INTEREST CARD ───────────────────────────────────────────── */
.interest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.interest-card:hover {
  transform: translateY(-3px);
  border-color: rgba(193,154,61,0.45);
  box-shadow: var(--shadow-md);
}
.interest-icon {
  font-size: 1.7rem;
  min-width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dim);
  border: 1px solid var(--navy-mid);
  border-radius: 15px;
  transition: background 0.25s, transform 0.25s;
}
.interest-card:hover .interest-icon { background: rgba(193,154,61,0.14); transform: rotate(-4deg) scale(1.05); }
.interest-content h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.interest-content p { font-size: 0.87rem; color: var(--muted); line-height: 1.75; }

/* ── BLOG ────────────────────────────────────────────────────── */
.blog-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2.5rem;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.blog-post:hover { border-color: rgba(193,154,61,0.4); box-shadow: var(--shadow-md); }
.blog-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.9rem;
  line-height: 1.3;
}
.blog-excerpt {
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 1.2rem;
}
.blog-tags { margin-bottom: 1rem; }
.read-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.read-more:hover { text-decoration: underline; }

/* full blog post content */
.post-body {
  font-size: 0.95rem;
  color: #45525f;
  line-height: 1.9;
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.2rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--dim);
}
.post-body p { margin-bottom: 1.05rem; }
.post-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.3rem;
  font-weight: 600;
  color: var(--navy);
  float: left;
  line-height: 0.85;
  padding-right: 0.55rem;
  padding-top: 0.25rem;
}

/* ── FAMILY GRID ─────────────────────────────────────────────── */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.family-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.family-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193,154,61,0.45);
  box-shadow: var(--shadow-md);
}
.family-initial {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(140deg, #1b3358, #0e1d38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #f3e5c3;
  margin: 0 auto 0.9rem;
  outline: 1px solid rgba(193,154,61,0.5);
  outline-offset: 3px;
}
.family-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.family-card p { font-size: 0.79rem; color: var(--muted); line-height: 1.6; }

/* ── STATS ROW ───────────────────────────────────────────────── */
.stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.stat {
  position: relative;
  background: linear-gradient(150deg, #1b3358 0%, #16294a 55%, #101f3a 100%);
  border: 1px solid rgba(193,154,61,0.30);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.3rem;
  flex: 1;
  min-width: 145px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 600;
  color: #f3e5c3;
  line-height: 1;
}
.stat .lbl {
  font-size: 0.69rem;
  color: rgba(243,229,195,0.65);
  margin-top: 0.45rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  margin-top: 5rem;
  padding: 3rem 2rem 2.6rem;
  text-align: center;
  background: linear-gradient(160deg, #1b3358 0%, #14264a 50%, #0e1d38 100%);
  border-top: 3px solid var(--gold);
  position: relative;
}
footer p { font-size: 0.8rem; color: rgba(243,235,219,0.65); margin-bottom: 0.35rem; letter-spacing: 0.4px; }
footer a { color: #d9b961; text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; color: #f3e5c3; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.text-gold   { color: var(--accent); }
.text-muted  { color: var(--muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; height: 60px; }
  .nav-brand span { display: none; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(250,248,243,0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.3rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1rem; border-radius: 8px; }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: var(--navy-dim); }
  .nav-toggle { display: block; }

  .hero { padding: 4rem 1.4rem 3.5rem; }
  .section, .section-sm { padding: 3rem 1.3rem; }
  .section-title { font-size: 1.55rem; }
  .stats { gap: 0.7rem; }
  .interest-card { flex-direction: column; gap: 0.9rem; }
  .blog-post { padding: 1.8rem 1.5rem; }
  .blog-title { font-size: 1.35rem; }
  .info-block { padding: 1.6rem 1.5rem; }
  .timeline { padding-left: 1.8rem; }
  .tl-item::before { left: -2.22rem; }
}
