/* =============================================
   NIKHIL VENKAT — RESUME WEBSITE
   ============================================= */

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

:root {
  --navy:    #0f1f3d;
  --navy-2:  #162845;
  --teal:    #1a6b72;
  --teal-lt: #e8f4f5;
  --gold:    #2e6da4;
  --gold-lt: #e8f1fb;
  --green:   #1e6e47;
  --green-lt:#e8f5ee;
  --gray-1:  #f7f8fa;
  --gray-2:  #eef0f3;
  --gray-3:  #c8cdd6;
  --gray-4:  #8a92a0;
  --gray-5:  #4a5568;
  --ink:     #1a202c;
  --white:   #ffffff;
  --radius:  10px;
  --shadow:  0 2px 12px rgba(15,31,61,0.08);
  --shadow-lg: 0 6px 28px rgba(15,31,61,0.12);
  --font: 'Inter', system-ui, sans-serif;
  --serif: 'Lora', Georgia, serif;
  --max-w: 1060px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ---- NAV ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,31,61,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-name { color: #fff; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.nav-links { list-style: none; display: flex; gap: 0.25rem; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.85rem; padding: 0.4rem 0.75rem;
  border-radius: 6px; transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1a3a5c 100%);
  padding: 110px 2rem 72px;
  color: #fff;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 4rem;
}
.hero-left { flex-shrink: 0; }
.hero-photo {
  width: 280px; height: 280px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.hero-right { flex: 1; min-width: 0; }
.hero-name { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1.15; margin-bottom: 0.4rem; }
.hero-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.6rem; white-space: nowrap; }
.hero-subhead { font-size: 0.95rem; color: rgba(255,255,255,0.75); margin-bottom: 0.75rem; font-style: italic; }
.hero-school { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 1.2rem; }
.hero-bio { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 620px; line-height: 1.7; margin-bottom: 1.4rem; }
.hero-highlights { display: flex; flex-wrap: nowrap; gap: 0.4rem; margin-bottom: 1.4rem; overflow-x: auto; }
.hl-chip {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 0.75rem; padding: 0.3rem 0.65rem; border-radius: 20px; white-space: nowrap;
  font-weight: 500;
}
.hero-contact { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.hero-contact a { color: rgba(255,255,255,0.9); }
.sep { margin: 0 0.5rem; }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section--alt { background: var(--gray-1); }

.section-title {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.5rem;
  position: relative; padding-bottom: 0.75rem;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 48px; height: 3px; background: var(--teal); border-radius: 2px;
}
.section-sub { color: var(--gray-4); margin-bottom: 2.5rem; margin-top: 0.6rem; font-size: 0.95rem; }

.sub-heading {
  font-size: 1.05rem; font-weight: 600; color: var(--navy);
  margin: 2.5rem 0 1rem; border-left: 3px solid var(--teal); padding-left: 0.75rem;
}

/* ---- TIMELINE ---- */
.timeline { margin-top: 2rem; display: flex; flex-direction: column; gap: 0; }

.tl-item {
  display: flex; gap: 0; position: relative; padding-bottom: 2.5rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-line {
  flex-shrink: 0; width: 32px; display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.tl-line::before {
  content: ''; position: absolute; top: 10px; bottom: -2.5rem;
  left: 50%; transform: translateX(-50%);
  width: 2px; background: var(--gray-2);
}
.tl-item:last-child .tl-line::before { display: none; }

.tl-dot {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 4px;
  background: var(--gray-3); border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-3); flex-shrink: 0; z-index: 1;
}
.tl-dot--active { background: var(--teal); box-shadow: 0 0 0 3px rgba(26,107,114,0.2); }
.tl-dot--gold { background: var(--gold); box-shadow: 0 0 0 3px rgba(184,135,42,0.2); }

.tl-body {
  flex: 1; margin-left: 1.25rem;
  background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.tl-body:hover { box-shadow: var(--shadow-lg); }

.tl-item.featured .tl-body { border-color: var(--teal); border-left-width: 3px; }
.tl-item.featured:nth-child(2) .tl-body { border-color: var(--gold); }

.tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.tl-title-block h3 { font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.tl-org { font-size: 0.8rem; color: var(--gray-5); margin-top: 0.2rem; font-weight: 500; }
.tl-org a { color: var(--teal); }
.tl-date { font-size: 0.78rem; color: var(--gray-4); white-space: nowrap; font-weight: 500; padding-top: 3px; }

.tl-desc { font-size: 0.9rem; color: var(--gray-5); line-height: 1.7; margin-bottom: 0.85rem; }

.tl-milestones { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.milestone {
  font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 4px;
  background: var(--teal-lt); color: var(--teal); font-weight: 500;
}
.milestone--gold { background: var(--gold-lt); color: var(--gold); }
.milestone--accepted { background: var(--green-lt); color: var(--green); }
.milestone--published { background: var(--navy); color: #fff; }

.tl-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-size: 0.72rem; padding: 0.2rem 0.55rem; border-radius: 4px;
  background: var(--gray-2); color: var(--gray-5);
}

/* ---- PUBLICATIONS ---- */
.pub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.pub-card {
  background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); position: relative;
  transition: box-shadow var(--transition);
}
.pub-card:hover { box-shadow: var(--shadow-lg); }
.pub-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin: 0.6rem 0 0.4rem; line-height: 1.4; }
.pub-venue { font-size: 0.82rem; color: var(--teal); font-weight: 500; margin-bottom: 0.5rem; }
.pub-detail { font-size: 0.83rem; color: var(--gray-4); line-height: 1.5; }
.pub-link { font-size: 0.82rem; color: #2563eb; font-weight: 500; display: inline-block; margin-top: 0.5rem; }

.pub-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 4px;
}
.pub-badge--accepted { background: var(--green-lt); color: var(--green); }
.pub-badge--published { background: var(--navy); color: #fff; }
.pub-badge--talk { background: var(--teal-lt); color: var(--teal); }
.pub-badge--poster { background: #e8eaf6; color: #3949ab; }
.pub-badge--policy { background: #fff3e0; color: #e65100; }
.pub-badge--review { background: var(--gray-2); color: var(--gray-5); }

/* ---- EDUCATION ---- */
.edu-row { display: flex; gap: 1.25rem; margin-top: 2rem; flex-wrap: wrap; }
.edu-card {
  flex: 1; min-width: 260px; display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.edu-abbr {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.edu-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.edu-card p { font-size: 0.85rem; color: var(--gray-4); }
.edu-note { margin-top: 0.4rem; font-size: 0.82rem !important; color: var(--gray-4); }
.edu-gpa { font-size: 0.82rem; color: var(--gray-4); margin-top: 0.5rem; font-weight: 400; }
.dual-badge {
  font-size: 0.7rem; background: var(--teal-lt); color: var(--teal);
  padding: 0.1rem 0.5rem; border-radius: 4px; font-weight: 600; margin-left: 0.4rem;
}

/* ---- COURSE TABLE ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.course-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); font-size: 0.9rem;
}
.course-table thead { background: var(--navy); color: #fff; }
.course-table th {
  padding: 0.85rem 1.25rem; text-align: left;
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.course-table td { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--gray-2); color: var(--gray-5); }
.course-table tr:last-child td { border-bottom: none; }
.course-table tr:hover td { background: var(--gray-1); }
.table-note { font-size: 0.8rem; color: var(--gray-4); margin-top: 0.75rem; }

.grade {
  font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 4px;
  display: inline-block;
}
.g-distinction { background: var(--gold-lt); color: var(--gold); }
.g-mastery { background: var(--teal-lt); color: var(--teal); }
.g-a { background: var(--green-lt); color: var(--green); }
.g-progress { background: var(--gray-2); color: var(--gray-4); }

/* ---- SUPPLEMENTAL ---- */
.supp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem;
}
.supp-card {
  background: var(--white); border: 1px solid var(--gray-2); border-radius: 8px;
  padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.2rem;
  box-shadow: 0 1px 4px rgba(15,31,61,0.05);
}
.supp-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.supp-when { font-size: 0.78rem; color: var(--gray-4); }

/* ---- HONORS ---- */
.honors-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; margin-top: 2rem;
}
.honor {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.honor:hover { box-shadow: var(--shadow-lg); }
.featured-honor { grid-column: span 1; border-color: var(--gold); border-left-width: 3px; }
.honor-num { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; line-height: 1; }
.honor-text h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.honor-text p { font-size: 0.85rem; color: var(--gray-5); line-height: 1.55; }
.honor-link { font-size: 0.82rem; color: var(--teal); font-weight: 500; display: inline-block; margin-top: 0.4rem; }

/* ---- ACTIVITIES ---- */
.act-cols { display: flex; gap: 2.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.act-col { flex: 1; min-width: 280px; }
.act-heading {
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gray-4); margin-bottom: 1rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gray-2);
}
.act-list { display: flex; flex-direction: column; gap: 1rem; }
.act-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.act-bullet {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  margin-top: 6px; flex-shrink: 0;
}
.act-item strong { font-size: 0.92rem; color: var(--navy); display: block; margin-bottom: 0.1rem; }
.act-item p { font-size: 0.84rem; color: var(--gray-5); line-height: 1.55; }

/* ---- CREATIVE ---- */
.creative-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.creative-card {
  background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.creative-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cc-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.creative-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.creative-card p { font-size: 0.85rem; color: var(--gray-5); line-height: 1.55; }

/* ---- FUN FACTS ---- */
.fun-facts {
  margin-top: 2.5rem; background: var(--navy); border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
.fun-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45); margin-bottom: 1.1rem;
}
.fun-list { display: flex; flex-direction: column; gap: 0.85rem; }
.fun-item { display: flex; gap: 1rem; align-items: flex-start; }
.fun-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.fun-item span:last-child { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.fun-item strong { color: #fff; }

/* ---- FOOTER ---- */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 2rem 0; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer a { color: rgba(255,255,255,0.8); }
.footer-updated { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 1.5rem; }
  .hero-photo { width: 160px; height: 160px; }
  .hero-name { font-size: 2rem; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: 0.25rem; }
  .nav-toggle { display: block; }
  .act-cols { flex-direction: column; }
  .section { padding: 56px 0; }
  .tl-top { flex-direction: column; gap: 0.3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .honors-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
}
