/* =========================================
   Base / Typography / Colors
========================================= */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #222;
  background: #f5f5f5;
}

h1, h2, h3 {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  text-decoration: none;
  color: #0b63f3;
}

a:hover {
  color: #0848b0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
  font: inherit;
}

.btn-primary {
  background: #0b63f3;
  color: white;
}

.btn-primary:hover {
  background: #0848b0;
  transform: translateY(-1px);
}

/* Utility text */
.small {
  font-size: 0.85rem;
}

.muted {
  color: #666;
}

.lead {
  font-size: 1rem;
  font-weight: 400;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* =========================================
   Layout / Sidebar / Content
========================================= */
.container {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  flex: 0 0 140px;
  min-width: 140px;
  max-width: 140px;
  background: #f0f0f0;
  padding: 1rem;
  border-right: 1px solid #ddd;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  font-weight: 600;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar a:hover {
  background: #0b63f3;
  color: #fff;
}

/* Highlight active page */
.sidebar a.active {
  background: #0848b0;
  color: #fff;
}

/* Main content */
.content {
  flex: 3 1 700px;
  padding: 2rem;
}

/* Generic page title (for non-resume pages) */
.page-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* =========================================
   Responsive Layout
========================================= */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    order: 2;
    width: 100%;
    border-right: none;
    border-top: 1px solid #ddd;
  }
  .content {
    order: 1;
    padding: 1.25rem;
  }
}

/* =========================================
   Resume Page Styling (Hybrid Layout)
========================================= */

.resume-page {
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

/* Top header (name, title, contact, print button) */
.resume-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.resume-header-main .name {
  font-size: 1.9rem;
  margin: 0;
}

.resume-header-main .title {
  font-weight: 600;
  margin-top: 0.15rem;
}

.resume-header-main .location {
  margin-top: 0.25rem;
}

.resume-header-contact {
  font-size: 0.9rem;
  text-align: right;
}

.resume-header-contact a {
  color: #0b63f3;
}

.resume-header-contact a:hover {
  color: #0848b0;
}

/* Body grid: two columns on desktop, one on mobile */
.resume-body {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 1rem;
  margin-top: 1rem;
}

.resume-main-column,
.resume-side-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Section headings */
.resume-section h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: #444;
}

/* Jobs */
.job {
  margin-bottom: 1rem;
}

.job-title {
  font-weight: 600;
}

.job-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.job-desc {
  font-size: 0.95rem;
}

/* Skills as tags */
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #edf2ff;
  color: #2643a0;
  font-size: 0.85rem;
}

/* Lists with no bullets */
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  margin-bottom: 0.25rem;
}

/* =========================================
   Projects / Blog (simple clean styling)
========================================= */

.project,
.blog-post {
  margin-bottom: 1rem;
}

.project h2,
.blog-post h2 {
  margin-bottom: 0.25rem;
}

/* =========================================
   Mobile tweaks for resume
========================================= */
@media (max-width: 900px) {
  .resume-body {
    grid-template-columns: 1fr;
  }

  .resume-header-contact {
    text-align: left;
  }
}
