/* ============================================
   shivangiambardar.com — main stylesheet
   ============================================ */

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

:root {
  --navy: #13294B;
  --navy-dark: #0C447C;
  --orange: #E84A27;
  --orange-light: #FAEEDA;
  --orange-text: #633806;
  --navy-light: #E6F1FB;
  --navy-text: #0C447C;
  --text: #050505;
  --text-secondary: #222;
  --text-muted: #555;
  --border: rgba(0,0,0,0.1);
  --bg: #fff;
  --bg-secondary: #f7f7f5;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- NAV ---- */
.nav {
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.nav-name span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links .nav-cv {
  font-size: 12px;
  padding: 5px 14px;
  border: 0.5px solid var(--navy);
  border-radius: 4px;
  color: var(--navy);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-links .nav-cv:hover {
  background: var(--navy);
  color: #fff;
}

/* ---- PAGE WRAPPER ---- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px 80px;
}

/* ---- SECTION ---- */
.section {
  padding: 36px 0;
  border-bottom: 0.5px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
  display: block;
}

/* ---- HERO ---- */
.hero {
  display: flex;
  gap: 36px;
  align-items: stretch;
  padding: 40px 0 36px;
  border-bottom: 0.5px solid var(--border);
}

.hero-photo {
  width: 260px;
  height: 100%;
  min-height: 320px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 10%;
  flex-shrink: 0;
  border: 0.5px solid var(--border);
  align-self: stretch;
  display: block;
}

.hero-photo-placeholder {
  width: 260px;
  border-radius: 8px;
  background: var(--navy);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  align-self: stretch;
}

.hero-text h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 5px;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-role {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.hero-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 4px;
  border: 0.5px solid var(--border);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
  font-weight: 500;
}

.btn:hover {
  background: var(--bg-secondary);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn svg, .btn img {
  width: 14px;
  height: 14px;
}

/* ---- PAPERS ---- */
.paper {
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
}

.paper:first-child {
  padding-top: 0;
}

.paper:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.paper-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--orange-light);
  color: var(--orange-text);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.paper h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 5px;
}

.paper p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.paper-links {
  display: flex;
  gap: 12px;
}

.paper-link {
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s;
}

.paper-link:hover {
  opacity: 0.7;
}

/* ---- TEACHING ---- */
.teaching-phi {
  border-left: 3px solid var(--orange);
  padding: 10px 16px;
  background: var(--bg-secondary);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.course-card {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  border-top: 2px solid var(--navy);
}

.course-term {
  font-size: 10px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.course-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.course-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-card {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.contact-card:hover {
  background: var(--bg-secondary);
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
  font-size: 16px;
}

.contact-card h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-card p {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ---- HOBBIES ---- */
.glider-banner {
  background: var(--navy);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 0;
}

.glider-banner-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.glider-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(232,74,39,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: var(--orange);
}

.glider-banner h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.glider-banner .glider-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.glider-banner .glider-blurb {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 20px;
}

.glider-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 0.5px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  gap: 0;
}

.glider-stat {
  padding-right: 16px;
  border-right: 0.5px solid rgba(255,255,255,0.12);
}

.glider-stat:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 16px;
}

.glider-stat:nth-child(2) {
  padding: 0 16px;
}

.glider-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.glider-stat-value {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.glider-body {
  padding: 24px 0 0;
}

.glider-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.glider-pull {
  border-left: 3px solid var(--navy);
  padding: 10px 16px;
  background: var(--navy-light);
  margin-top: 20px;
}

.glider-pull p {
  font-size: 14px;
  color: var(--navy-text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 0;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 24px 64px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .nav {
    padding: 0 20px;
  }

  .nav-links {
    gap: 14px;
  }

  .page {
    padding: 0 20px 60px;
  }

  .hero {
    flex-direction: column;
    gap: 20px;
  }

  .hero-photo, .hero-photo-placeholder {
    width: 100%;
    min-height: 200px;
    height: auto;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .course-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .glider-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .glider-stat {
    border-right: none;
    padding: 0 !important;
    border-bottom: 0.5px solid rgba(255,255,255,0.12);
    padding-bottom: 12px !important;
  }

  .glider-stat:last-child {
    border-bottom: none;
  }
}
