:root {
  --ink: #1a1f26;
  --ink-soft: #3c444d;
  --gray: #5b6572;
  --gray-light: #8992a0;
  --accent: #2f4858;
  --brand-1: #1d6fe0;
  --brand-2: #21d4c9;
  --line: #e7e9ec;
  --page-bg: #ffffff;
  --card-bg: #ffffff;
  --panel-bg: #f7f8f9;
  --shadow: 0 8px 24px rgba(20, 24, 30, 0.06);
  --radius: 14px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .hero-name, .hero-role {
  font-family: 'Playfair Display', serif;
}

/* Reusable "gradient badge" heading style — matches the active nav tab look */
.badge-heading {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 12px;
}

/* ===== TOP NAV ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { flex: 0 0 auto; }
.brand-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
}
.tabs::-webkit-scrollbar { display: none; }

.nav-item-wrap { position: relative; flex: 0 0 auto; }

.tab-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tab-btn:hover { color: var(--ink); background: var(--panel-bg); }

.tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 4px 12px rgba(29, 111, 224, 0.3);
}

.caret { font-size: 10px; }

.nav-external { color: var(--ink-soft); }

/* Dropdown
   NOTE: position:fixed (not absolute) is used deliberately. The .tabs bar
   has overflow-x:auto for horizontal scrolling on smaller screens, and per
   the CSS spec that forces overflow-y to compute as "auto" too — which
   would silently CLIP an absolutely-positioned dropdown living inside it.
   Fixed positioning escapes that clipping. Its exact top/left coordinates
   are calculated in JS (see site-script-v4.js) from the trigger button's
   bounding rect right before it's shown. */
.dropdown-panel {
  position: fixed;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20,24,30,0.14);
  padding: 6px;
  min-width: 190px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
}
.dropdown-panel.open { display: flex; }

.dropdown-link {
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-link:hover { background: var(--panel-bg); color: var(--ink); }
.dropdown-link.active { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #ffffff; }

/* ===== MAIN CONTENT WRAPPER ===== */
.content {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 60px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb for sub-pages */
.breadcrumb {
  margin: 32px 0 0;
  font-size: 13px;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}
.crumb-link {
  border: none;
  background: none;
  color: var(--brand-1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
.crumb-link:hover { text-decoration: underline; }

/* ===== HERO (Home tab only) ===== */
.hero {
  background: var(--panel-bg);
  margin: 0 -32px;
  padding: 56px 32px;
  display: flex;
  align-items: center;
}
.hero-content { width: 100%; margin: 0 auto; }
.hero-content--split { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-text { order: 1; flex: 1 1 540px; max-width: 580px; }
.hero-photo { order: 2; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.hero-name { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: 0.02em; margin: 0 0 10px; }
.hero-role { font-size: clamp(16px, 1.9vw, 19px); font-weight: 600; color: var(--gray); margin: 0 0 16px; }
.hero-sub { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; max-width: 520px; margin: 0 0 16px; }
.hero-stack { color: var(--accent); font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; margin: 0 0 20px; }
.hero-cta { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.resume-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #ffffff; text-decoration: none; font-weight: 700; font-size: 13.5px;
  padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(29,111,224,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resume-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29,111,224,0.4); }
.resume-btn-icon { font-size: 13px; }

.contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-chip {
  color: var(--ink-soft); text-decoration: none; background: #ffffff;
  border: 1px solid var(--line); font-size: 12.5px; padding: 7px 12px; border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-chip:hover { border-color: var(--accent); transform: translateY(-2px); }

.photo-halo {
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eef0f2 100%);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* ===== SHARED SECTION HEADERS ===== */
.section-head { margin: 56px 0 28px; }
.section-head--top { margin-top: 48px; }
.section-head h2 { font-size: 30px; font-weight: 700; margin: 0 0 10px; }
.section-sub { color: var(--gray); margin: 0; font-size: 15px; font-family: 'Inter', sans-serif; }

/* ===== SHARED CARD STYLE ===== */
.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 28px;
}
.card h3 { margin-top: 0; color: var(--ink); font-size: 19px; font-weight: 600; }

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin-bottom: 22px; }
.about-summary p { line-height: 1.8; color: var(--ink-soft); font-size: 15px; font-family: 'Inter', sans-serif; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--gray); font-weight: 500; }

.timeline-card { margin: 22px 0; }
.timeline { margin-top: 18px; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid #e4e9ec; }
.tl-title { font-weight: 700; color: var(--ink); font-size: 15.5px; font-family: 'Playfair Display', serif; }
.tl-company { font-weight: 500; color: var(--accent); font-size: 14px; font-family: 'Inter', sans-serif; }
.tl-date { font-size: 12.5px; color: var(--gray-light); margin: 3px 0 8px; font-weight: 600; letter-spacing: 0.02em; }
.tl-item p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plain-list { margin: 10px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.9; font-family: 'Inter', sans-serif; }

/* ===== SKILLS-STYLE GRIDS (reused for Cloud/Automation/AI subpages) ===== */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.skill-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.skill-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,24,30,0.10); }
.skill-icon { font-size: 24px; width: 50px; height: 50px; border-radius: 12px; background: var(--panel-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.skill-card ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.85; font-family: 'Inter', sans-serif; }

.platforms-card { margin-bottom: 10px; }
.platform-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill { background: var(--ink); color: #ffffff; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; }

/* ===== PROJECTS / HIGHLIGHTS GRID ===== */
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.highlight-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.highlight-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,24,30,0.10); }
.hl-icon { font-size: 22px; width: 46px; height: 46px; border-radius: 12px; background: var(--panel-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.highlight-card h3 { font-size: 16px; margin: 0 0 8px; }
.highlight-card p { font-size: 13.8px; line-height: 1.65; color: var(--ink-soft); margin: 0; font-family: 'Inter', sans-serif; }

.impact-card { margin-top: 4px; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 16px; }
.impact-item { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--panel-bg); border: 1px solid var(--line); }
.impact-num { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--accent); }
.impact-label { font-size: 12.5px; color: var(--gray); font-weight: 500; line-height: 1.4; }

/* ===== CASE STUDIES / CLOUD OVERVIEW — clickable cards ===== */
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 22px; }
.cs-card {
  text-align: left; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cs-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,24,30,0.10); }
.cs-card h3 { font-family: 'Playfair Display', serif; }
.cs-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 12px; }
.cs-link { font-size: 13.5px; font-weight: 700; color: var(--brand-1); }

/* ===== CASE STUDY / DETAIL PAGE 3-column grid ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.case-grid .card p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); font-family: 'Inter', sans-serif; }

.site-footer { text-align: center; padding: 22px 16px 34px; color: var(--gray-light); font-size: 13px; border-top: 1px solid var(--line); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .tab-btn { font-size: 12.5px; padding: 7px 10px; }
}

@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; }
  .tabs { width: 100%; justify-content: flex-start; }

  .hero { padding: 40px 20px; }
  .hero-content--split { flex-direction: column; text-align: center; gap: 30px; }
  .hero-text { order: 1; max-width: 100%; }
  .hero-photo { order: 2; }
  .hero-cta, .contact-row { justify-content: center; }
  .hero-name { font-size: clamp(24px, 6vw, 32px); }

  .content { padding: 0 20px 60px; }
  .about-grid, .two-col { grid-template-columns: 1fr; }
  .skills-grid, .highlights-grid, .cs-grid, .case-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .photo-halo { width: 190px; height: 190px; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .about-grid, .two-col { grid-template-columns: 1fr; }
  .skills-grid, .highlights-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .cs-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
}


/* =====================================================================
   BLOG POST STYLES — appended block, does not touch existing rules.
   Reuses your existing --brand-1 / --panel-bg variables automatically.
   ===================================================================== */

.blog-meta {
  font-size: 0.85rem;
  color: #8a8f98;
  margin-bottom: 20px;
}

.blog-date {
  display: inline-block;
  font-size: 0.78rem;
  color: #8a8f98;
  margin-top: 10px;
  margin-bottom: 4px;
  font-family: "Consolas", monospace;
}

.blog-post h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--brand-1, #1d6fe0);
}

.blog-post p {
  line-height: 1.7;
  margin-bottom: 14px;
}

.code-block {
  background: var(--panel-bg, #f7f8f9);
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  padding: 14px 18px;
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.88rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 14px 0 20px;
}

.blog-figure {
  margin: 20px 0;
  text-align: center;
}

.blog-figure img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #e2e5e9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.blog-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  font-style: italic;
  color: #8a8f98;
}
