/*
  Salman Haider GIS Portfolio
  Template B: Cartographic Storytelling Portfolio
  Refined for laptop-first viewing
*/

:root {
  --paper: #f7f4ec;
  --paper-soft: #efe8db;
  --paper-card: #fffdf7;
  --ink: #10212a;
  --ink-soft: #33464d;
  --muted: #6e7a78;
  --line: #d8d0c2;
  --green: #0f766e;
  --green-dark: #0b5f59;
  --blue: #2f80a6;
  --sand: #d8b56d;
  --dark: #0d1b2a;
  --shadow: 0 14px 34px rgba(16, 33, 42, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(15, 118, 110, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  line-height: 1.55;
}

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

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

button {
  font-family: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 208, 194, 0.9);
}

.navbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.logo-text {
  color: var(--ink);
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-menu a {
  color: var(--muted);
  transition: 0.2s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--green);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.nav-button {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  color: var(--ink) !important;
}

.nav-button.active::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--ink);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  margin: 5px auto;
}

/* GENERAL */
.section {
  padding: 68px 0;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.wide-heading {
  max-width: 860px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.052em;
  color: var(--ink);
  margin-bottom: 13px;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.98rem;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading-row > div {
  max-width: 760px;
}

.section-link,
.text-link {
  color: var(--green);
  font-weight: 800;
  transition: 0.2s ease;
}

.section-link:hover,
.text-link:hover {
  color: var(--green-dark);
}

.section-bottom-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.94rem;
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.20);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--paper-card);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

/* HERO */
.hero {
  min-height: calc(100vh - 68px);
  padding: 52px 0 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(47, 128, 166, 0.12), transparent 26%),
    radial-gradient(circle at 86% 66%, rgba(15, 118, 110, 0.11), transparent 30%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.78fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 7vw, 5.7rem);
  line-height: 0.91;
  letter-spacing: -0.08em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-copy h2 {
  max-width: 760px;
  font-size: clamp(1.12rem, 2.1vw, 1.5rem);
  line-height: 1.25;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-profile-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  max-width: 390px;
  justify-self: center;
}

.hero-profile-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(15, 118, 110, 0.11);
  pointer-events: none;
}

.profile-image-frame {
  overflow: hidden;
  border-radius: 22px;
  height: 300px;
  background: var(--dark);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  pointer-events: none;
}

.profile-card-content {
  position: relative;
  z-index: 2;
  padding: 14px 8px 3px;
}

.profile-card-content span {
  display: inline-block;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-card-content h3 {
  line-height: 1.14;
  margin-bottom: 6px;
  font-size: 1rem;
}

.profile-card-content p {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-strip {
  position: relative;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.78);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-strip div {
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.hero-strip div:last-child {
  border-right: none;
}

.hero-strip strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
}

.hero-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* PROJECTS */
.project-grid-b {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-project-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: 0.2s ease;
}

.portfolio-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.42);
}

.project-card-media {
  height: 145px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f9fbfa;
}

.project-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-type {
  width: fit-content;
  display: inline-block;
  margin-bottom: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.11);
  color: var(--green-dark);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-project-card h3 {
  font-size: 1.08rem;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 9px;
}

.portfolio-project-card p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.48;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  margin-bottom: 14px;
}

.tool-list span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: 0.70rem;
  font-weight: 800;
}

.text-link {
  font-size: 0.9rem;
}

.extra-project {
  display: none;
}

.project-grid-b.expanded .extra-project {
  display: flex;
}

/* MAP STORY SHOWCASE */
.map-section {
  background:
    linear-gradient(rgba(13, 27, 42, 0.88), rgba(13, 27, 42, 0.88)),
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  color: white;
}

.map-section .section-heading {
  margin-bottom: 20px;
}

.map-section .section-heading h2 {
  color: white;
}

.map-section .section-heading p {
  color: #c9d7d8;
}

/* top map selector */
.map-thumb-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 22px 0 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.map-thumb-strip::-webkit-scrollbar {
  height: 8px;
}

.map-thumb-strip::-webkit-scrollbar-track {
  background: transparent;
}

.map-thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.map-thumb-button {
  flex: 0 0 auto;
  min-width: 138px;
  text-align: left;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c9d7d8;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  transition: 0.2s ease;
}

.map-thumb-button span {
  display: block;
  color: var(--sand);
  font-size: 0.68rem;
  margin-bottom: 3px;
}

.map-thumb-button:hover,
.map-thumb-button.active {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.map-story-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.55fr;
  gap: 22px;
  align-items: stretch;
  padding-inline: 48px;
}

.map-story-preview {
  min-height: 410px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.map-story-preview::before {
  content: "Map preview will appear here";
  display: none;
  color: #c9d7d8;
  font-weight: 800;
}

.map-story-preview.image-missing::before {
  display: block;
}

.map-story-preview img {
  width: 100%;
  height: 100%;
  max-height: 370px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.map-story-panel {
  padding: 24px;
  border-radius: 28px;
  background: var(--paper-card);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
}

.map-category {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--green-dark);
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.map-story-panel h3 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.map-story-panel p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.96rem;
}

.map-story-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.map-story-meta div {
  padding: 13px;
  border-radius: 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.map-story-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.map-story-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.map-story-panel .btn {
  margin-top: auto;
}

.map-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
  display: grid;
  place-items: center;
}

.map-arrow:hover {
  background: var(--green);
  border-color: var(--green);
}

.map-arrow-left {
  left: 0;
}

.map-arrow-right {
  right: 0;
}

/* SKILLS */
.skills-grid-b {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card-b,
.certificate-card-b {
  padding: 22px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.skill-card-b span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.skill-card-b h3 {
  margin: 9px 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
}

.skill-card-b p {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.skill-card-b strong {
  color: var(--green-dark);
  font-size: 0.86rem;
}

/* EXPERIENCE */
.experience-section {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-b {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.timeline-b {
  display: grid;
  gap: 14px;
}

.timeline-item-b {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.timeline-item-b span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.timeline-item-b h3 {
  margin: 7px 0;
}

.timeline-item-b p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* CERTIFICATES */
.certificate-preview-grid-b {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.certificate-card-b span {
  display: inline-block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 10px;
}

.certificate-card-b h3 {
  line-height: 1.2;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.certificate-card-b p {
  color: var(--muted);
}

/* CONTACT */
.contact-section-b {
  background:
    radial-gradient(circle at 22% 20%, rgba(47, 128, 166, 0.14), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(15, 118, 110, 0.12), transparent 32%),
    var(--paper);
}

.contact-card-b {
  max-width: 860px;
  text-align: center;
  padding: 40px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.contact-card-b h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}

.contact-card-b p {
  color: var(--muted);
}

.contact-card-b .contact-links {
  justify-content: center;
}

/* FOOTER */
.site-footer {
  padding: 24px 0;
  background: var(--paper-card);
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-layout,
  .experience-b,
  .map-story-showcase {
    grid-template-columns: 1fr;
  }

  .hero-profile-card {
    max-width: 420px;
  }

  .hero-strip,
  .project-grid-b,
  .skills-grid-b,
  .certificate-preview-grid-b {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-story-showcase {
    padding-inline: 0;
  }

  .map-story-preview {
    min-height: 420px;
  }

  .map-story-preview img {
    max-height: 380px;
  }

  .map-arrow {
    display: none;
  }

  .map-thumb-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading-row {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 12px;
  }

  .nav-menu a.active::after {
    display: none;
  }

  .hero {
    padding: 48px 0 34px;
  }

  .hero-actions,
  .contact-links {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .profile-image-frame {
    height: 310px;
  }

  .hero-strip,
  .project-grid-b,
  .skills-grid-b,
  .certificate-preview-grid-b,
  .map-thumb-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .hero-strip div:last-child {
    border-bottom: none;
  }

  .section {
    padding: 58px 0;
  }

  .project-card-media {
    height: 170px;
  }

  .map-story-preview {
    min-height: 330px;
    padding: 14px;
    border-radius: 22px;
  }

  .map-story-preview img {
    max-height: 290px;
    border-radius: 14px;
  }

  .map-story-panel,
  .contact-card-b {
    padding: 22px;
    border-radius: 22px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .logo-text {
    display: none;
  }

  .project-card-media {
    height: 150px;
  }
}

/* =========================================================
   UPDATED SKILLS + EXPERIENCE SECTIONS
   ========================================================= */

/* Skills section */
.skills-section {
  background:
    radial-gradient(circle at 12% 16%, rgba(47, 128, 166, 0.09), transparent 26%),
    radial-gradient(circle at 88% 82%, rgba(15, 118, 110, 0.08), transparent 28%);
}

.skills-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-workflow-card {
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  transition: 0.2s ease;
}

.skill-workflow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.42);
}

.skill-card-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.skill-workflow-card h3 {
  font-size: 1.18rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.skill-workflow-card > p {
  color: var(--muted);
  font-size: 0.94rem;
}

.skill-mini-group {
  display: grid;
  gap: 9px;
}

.skill-mini-group h4 {
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.09);
  color: var(--green-dark);
  border: 1px solid rgba(15, 118, 110, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.supporting-tools-panel {
  margin-top: 20px;
  padding: 24px;
  border-radius: 24px;
  background: var(--dark);
  color: var(--paper-card);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.supporting-tools-panel .eyebrow {
  color: #55d6c8;
  margin-bottom: 8px;
}

.supporting-tools-panel h3 {
  font-size: 1.25rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.supporting-chip-list span {
  background: rgba(255, 253, 247, 0.11);
  border-color: rgba(255, 253, 247, 0.16);
  color: var(--paper-card);
}

/* Experience section */
.experience-section {
  background:
    linear-gradient(rgba(16, 33, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 42, 0.02) 1px, transparent 1px),
    var(--paper-soft);
  background-size: 44px 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 46px;
  align-items: start;
}

.experience-intro {
  position: sticky;
  top: 96px;
}

.experience-intro h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin-bottom: 18px;
}

.experience-intro p {
  max-width: 570px;
  color: var(--muted);
  font-size: 1rem;
}

.experience-timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(15, 118, 110, 0.0),
    rgba(15, 118, 110, 0.28),
    rgba(15, 118, 110, 0.0)
  );
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.experience-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.42);
}

.timeline-logo {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(16, 33, 42, 0.08);
}

.timeline-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.timeline-logo span {
  display: none;
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
}

.timeline-logo.logo-missing {
  background:
    radial-gradient(circle at 25% 25%, rgba(47, 128, 166, 0.16), transparent 32%),
    rgba(15, 118, 110, 0.08);
}

.timeline-logo.logo-missing span {
  display: block;
}

.experience-card-content {
  min-width: 0;
}

.experience-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.experience-date {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
}

.experience-location {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.experience-card h3 {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.experience-card h4 {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.experience-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(216, 181, 109, 0.16);
  color: var(--ink-soft);
  border: 1px solid rgba(216, 181, 109, 0.18);
  font-size: 0.74rem;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1020px) {
  .skills-workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-layout {
    grid-template-columns: 1fr;
  }

  .experience-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  .skills-workflow-grid {
    grid-template-columns: 1fr;
  }

  .skill-workflow-card {
    padding: 20px;
  }

  .supporting-tools-panel {
    grid-template-columns: 1fr;
  }

  .experience-card {
    grid-template-columns: 1fr;
  }

  .experience-timeline::before {
    display: none;
  }

  .timeline-logo {
    width: 60px;
    height: 60px;
  }

  .experience-meta-row {
    display: grid;
    gap: 4px;
  }
}

/* =========================================================
   UPDATED CERTIFICATES SECTION
   ========================================================= */

.certificates-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 128, 166, 0.08), transparent 28%),
    radial-gradient(circle at 86% 80%, rgba(15, 118, 110, 0.08), transparent 30%),
    var(--paper);
  border-top: 1px solid var(--line);
}

.certificates-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 46px;
  align-items: start;
}

.certificates-intro {
  position: sticky;
  top: 96px;
}

.certificates-intro h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin-bottom: 18px;
}

.certificates-intro > p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 570px;
}

.certificate-summary-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: var(--dark);
  color: var(--paper-card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.certificate-summary-box span {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  color: #55d6c8;
}

.certificate-summary-box p {
  color: rgba(255, 253, 247, 0.82);
  font-size: 0.95rem;
}

.certificates-list-wrap {
  display: grid;
  gap: 18px;
}

.certificates-list {
  display: grid;
  gap: 14px;
}

.certificate-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.certificate-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.38);
}

.certificate-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(16, 33, 42, 0.08);
}

.certificate-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.certificate-logo span {
  display: none;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.certificate-logo.logo-missing {
  background:
    radial-gradient(circle at 25% 25%, rgba(47, 128, 166, 0.16), transparent 32%),
    rgba(15, 118, 110, 0.08);
}

.certificate-logo.logo-missing span {
  display: block;
}

.certificate-content {
  min-width: 0;
}

.certificate-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.certificate-meta span:first-child {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.certificate-meta span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.certificate-content h3 {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.certificate-content a {
  display: inline-flex;
  color: var(--green);
  font-weight: 900;
  font-size: 0.9rem;
}

.certificate-extra {
  display: none;
}

.certificates-list.show-all .certificate-extra {
  display: grid;
}

.show-more-certificates {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: var(--green);
  color: white;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.show-more-certificates:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
}

.show-more-arrow {
  display: inline-flex;
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.show-more-certificates.is-open .show-more-arrow {
  transform: rotate(180deg);
}

@media (max-width: 1020px) {
  .certificates-layout {
    grid-template-columns: 1fr;
  }

  .certificates-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  .certificate-card {
    grid-template-columns: 1fr;
  }

  .certificate-logo {
    width: 58px;
    height: 58px;
  }

  .certificate-meta {
    display: grid;
    gap: 4px;
  }

  .certificate-summary-box {
    max-width: none;
  }

  .show-more-certificates {
    width: 100%;
  }
}

/* =========================================================
   HERO CREDIBILITY STATS
   ========================================================= */

.hero-stats-strip {
  background: rgba(255, 253, 247, 0.88);
}

.hero-stats-strip div {
  padding: 18px 20px;
}

.hero-stats-strip strong {
  color: var(--green-dark);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-stats-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats-strip div:nth-child(2) {
    border-right: none;
  }

  .hero-stats-strip div:nth-child(1),
  .hero-stats-strip div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero-stats-strip {
    grid-template-columns: 1fr;
  }

  .hero-stats-strip div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats-strip div:last-child {
    border-bottom: none;
  }
}