
/* Theme Variables */
:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #222;
  --muted: #666;
  --accent: #0ea5e9;
  --accent-dark: #0369a1;
  --border: #e5eaf0;
  --shadow: 0 10px 25px rgba(15,23,42,0.08);
}

/* Global */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.03);
}
.nav__brand { font-weight: 700; }
.nav__links a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
}
.nav__links a:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
  color: #fff;
  padding: 48px 20px;
  box-shadow: var(--shadow);
}
.hero__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-gap: 24px;
  align-items: center;
}
.hero__photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 3px solid rgba(255,255,255,0.6);
}
.hero__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__title { font-size: 32px; font-weight: 700; margin: 0; }
.hero__subtitle { margin: 4px 0 8px; font-size: 16px; opacity: 0.95; }
.hero__tagline { margin: 6px 0 12px; font-weight: 600; opacity: 0.95; }
.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__contacts .contact {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  padding: 8px 12px;
  border-radius: 8px;
}
.hero__contacts .contact:hover {
  background: rgba(255,255,255,0.25);
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px;
}
.section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent-dark);
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.meta { color: var(--muted); margin-top: 10px; }

/* ✨ Updated Experience Section Styling */
.card h3 {
  font-weight: 600;       
  color: var(--accent-dark);
  font-size: 1.1rem;      
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card h3 .tenure {
  font-weight: 400;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 18px;
}
.grid .card h3 {
  margin-top: 0;
  color: var(--accent-dark);
}

/* Skills / Lists */
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exp,
.awards,
.edu {
  list-style: disc;
  padding-left: 20px;
}

.skills li {
  margin: 10px 0;
}

/* FIX: Restore bullets for .exp */
.exp {
  list-style: disc;
  padding-left: 20px;
}
.exp li {
  margin: 8px 0;
}

/* Footer */
.footer {
  margin-top: 32px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .hero__wrap {
    grid-template-columns: 120px 1fr;
  }
  .hero__photo-wrap {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .hero__wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__contacts { justify-content: center; }
  .hero__photo-wrap { margin: 0 auto; }
}

/* Mobile: keep brand, hide nav links */
@media (max-width: 600px) {
  .nav {
    padding: 10px 16px;
  }
  .nav__brand {
    font-size: 18px;
    font-weight: 700;
  }
  .nav__links {
    display: none;
  }
  .hero {
    margin-top: 8px;
  }
}

/* --------------------------------------------------
   PRINT (Preserve Web Layout, Improve Spacing)
-------------------------------------------------- */

@media print {

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-size: 11pt !important;
    line-height: 1.45 !important;
  }

  .nav,
  .footer {
    display: none !important;
  }

  .hero {
    padding: 20px !important;
    box-shadow: none !important;
  }

  .hero__wrap {
    grid-template-columns: 120px 1fr !important;
    grid-gap: 16px !important;
  }

  .section,
  .card {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .card {
    margin-bottom: 10px !important;
    padding: 14px 16px !important;
    box-shadow: none !important;
  }

  .skills li,
  .exp li,
  .awards li,
  .edu li {
    margin: 4px 0 !important;
    line-height: 1.4 !important;
  }

  .grid {
    grid-template-columns: 1fr 1fr !important;
    grid-gap: 10px !important;
  }

  i.fa, i.fas, i.far, i.fab {
    width: 14px !important;
    margin-right: 6px !important;
  }

  h2, h3 {
    page-break-after: avoid !important;
  }

  /* ✨ Print overrides for experience headings */
  .card h3 {
    font-size: 1rem !important;
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.35 !important;
  }

  .card h3 .tenure {
    color: var(--accent-dark) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
  }
}