/* ============================================================
   style.css — Unified stylesheet for Ravindra Nath Tripathi
   Theme: Professional Blue (matching index.html)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-blue: #004a99;
  --accent-blue:  #0073e6;
  --text-dark:    #2d3748;
  --text-light:   #718096;
  --bg-white:     #ffffff;
  --bg-subtle:    #f7fafc;
  --border:       #e2e8f0;
  --nav-height:   70px;
  --max-width:    1000px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.75;
  font-size: 15px;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
nav {
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 100%;
}
.nav-name {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-blue);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a.active,
.nav-links a:hover { color: var(--accent-blue); }

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO BANNERS ───────────────────────────────────────────── */
/* Full hero — home page */
.hero {
  margin-top: var(--nav-height);
  height: 320px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              url('https://media.licdn.com/dms/image/v2/D4E16AQGrfUD-Yc1zSw/profile-displaybackgroundimage-shrink_350_1400/B4EZ0_Aqf1IsAY-/0/1774878634938?e=1777507200&v=beta&t=uEFppMoAwJQQ1QbaOxrR10uk-_ipWFQlrAK9xLkBzXA') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Compact hero — inner pages */
.page-hero {
  margin-top: var(--nav-height);
  height: 180px;
  background: linear-gradient(rgba(0, 30, 70, 0.65), rgba(0, 30, 70, 0.65)),
              url('https://media.licdn.com/dms/image/v2/D4E16AQGrfUD-Yc1zSw/profile-displaybackgroundimage-shrink_350_1400/B4EZ0_Aqf1IsAY-/0/1774878634938?e=1777507200&v=beta&t=uEFppMoAwJQQ1QbaOxrR10uk-_ipWFQlrAK9xLkBzXA') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.page-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.page-hero p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0;
}

/* ── CONTAINERS ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: -80px auto 60px;  /* overlap with home hero */
  padding: 0 24px;
  position: relative;
}
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 24px 80px;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.content-card {
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* Home profile card */
.profile-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.profile-sidebar { flex: 0 0 240px; text-align: center; }
.profile-img {
  width: 210px; height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  margin: 0 auto 20px;
}
.profile-text { flex: 1; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 10px;
  line-height: 1.2;
}
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--accent-blue);
  line-height: 1.35;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
p {
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.75;
}
p.lead {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
a { color: var(--accent-blue); }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}
.job-subtitle {
  display: block;
  font-size: 1rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 22px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-wrap { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-dark);
  background: white;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.btn:hover {
  background: var(--bg-subtle);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--primary-blue) !important;
  color: white !important;
  border-color: var(--primary-blue) !important;
}
.btn-primary:hover {
  background: var(--accent-blue) !important;
  border-color: var(--accent-blue) !important;
  transform: translateY(-1px);
}

/* ── TAGS ────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 12px;
  background: #ebf4ff;
  color: var(--primary-blue);
  border: 1px solid #bee3f8;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ── SKILLS CHIPS ────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}
.skill-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-align: center;
  transition: all 0.2s;
  cursor: default;
}
.skill-chip:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

/* ── TIMELINE ────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 36px; margin-bottom: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 5px;
  width: 14px; height: 14px;
  background: white;
  border: 3px solid var(--primary-blue);
  border-radius: 50%;
  z-index: 1;
}
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.job-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}
.job-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-subtle);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.org-name {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-dark);
  margin: 3px 0 2px;
}
.job-location { font-size: 0.82rem; color: var(--text-light); font-style: italic; }
.job-desc { margin-top: 8px; font-size: 0.9rem; color: var(--text-light); line-height: 1.65; text-align: justify; }

/* ── CERTIFICATIONS ─────────────────────────────────────────── */
.cert-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}
.cert-box {
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: 10px;
  border-top: 3px solid var(--accent-blue);
  background: var(--bg-subtle);
}
.cert-box h4 { font-size: 0.92rem; color: var(--primary-blue); margin-bottom: 4px; font-weight: 700; }
.cert-box p  { font-size: 0.82rem; color: var(--text-light); margin: 0; }

/* ── PUBLICATIONS / RESEARCH CARDS ─────────────────────────── */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.pub-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s;
}
.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 74, 153, 0.1);
  border-color: var(--accent-blue);
}
.pub-badge {
  display: inline-block;
  background: #ebf4ff;
  color: var(--primary-blue);
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 10px;
  width: fit-content;
}
.pub-badge.dark { background: var(--primary-blue); color: white; }
.pub-card-title {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text-dark);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 10px;
}
.pub-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px solid var(--bg-subtle);
}

/* ── REVIEWER TAGS ───────────────────────────────────────────── */
.reviewer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.reviewer-tag {
  background: var(--bg-subtle);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-blue);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── TALKS / OUTREACH ────────────────────────────────────────── */
.talk-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.talk-item:last-child { border-bottom: none; }
.talk-venue { font-weight: 700; font-size: 0.97rem; color: var(--primary-blue); margin-bottom: 3px; }
.talk-date { font-size: 0.82rem; color: var(--text-light); font-style: italic; margin-bottom: 8px; }
.talk-desc { font-size: 0.91rem; color: var(--text-dark); line-height: 1.65; }
.talk-desc a { color: var(--accent-blue); }

/* ── CONTACT ROWS ────────────────────────────────────────────── */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.c-icon { font-size: 18px; width: 28px; flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; font-size: 0.85rem; margin-bottom: 2px; color: var(--text-dark); }
.contact-row a { color: var(--accent-blue); text-decoration: none; font-size: 0.9rem; }
.contact-row a:hover { color: var(--primary-blue); text-decoration: underline; }
.contact-row span.address { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; }

/* ── CONTACT FORM ────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg-subtle);
  color: var(--text-dark);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: white;
}

/* ── GRID LAYOUTS ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }

/* ── DIVIDER ─────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── RESEARCH IMAGE ──────────────────────────────────────────── */
.img-container {
  position: relative;
  margin: 48px 0;
  text-align: center;
}
.img-container::before {
  content: "";
  position: absolute;
  top: 10%; left: -10%;
  width: 120%; height: 80%;
  background: radial-gradient(circle, rgba(0,115,230,0.08) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
}
.out-of-bounds-img {
  width: 110%; margin-left: -5%;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}
.out-of-bounds-img:hover { transform: scale(1.01); }

/* ── MAP ─────────────────────────────────────────────────────── */
.map-frame {
  width: 100%;
  height: 380px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--bg-subtle);
  padding: 36px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
footer p { font-size: 0.83rem; color: var(--text-light); margin: 4px 0; text-align: center; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 850px) {
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
  .profile-text p { text-align: center; }
  .btn-wrap { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .cert-container { grid-template-columns: 1fr; }
  .content-card { padding: 28px 20px; }
  .pub-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  .page-hero h1 { font-size: 1.5rem; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    z-index: 999;
  }
  .hamburger { display: flex; }
}
