@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* Common */
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Light Theme - Warm Editorial */
  --primary-color: #1c1917;
  --primary-soft: rgba(28, 25, 23, 0.04);
  --secondary-color: #b45309;
  --accent-color: #b45309;
  --bg-color: #f8f6f3;
  --surface-color: #ffffff;
  --surface-hover: #f3f0ec;
  --text-main: #1c1917;
  --text-dim: #57534e;
  --text-inverse: #f8f6f3;
  --border-color: rgba(28, 25, 23, 0.1);
  --grid-color: rgba(28, 25, 23, 0.02);
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.07);
  --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.1);
  --shadow-premium: 0 4px 20px rgba(28, 25, 23, 0.06);
  --surface-lighter: #f3f0ec;
  --nav-bg: #f8f6f3;
}

[data-theme="dark"] {
  --primary-color: #e7e5e4;
  --primary-soft: rgba(231, 229, 228, 0.06);
  --secondary-color: #d97706;
  --accent-color: #d97706;
  --bg-color: #0c0a09;
  --surface-color: #1c1917;
  --surface-hover: #292524;
  --text-main: #e7e5e4;
  --text-dim: #a8a29e;
  --text-inverse: #0c0a09;
  --border-color: rgba(231, 229, 228, 0.08);
  --grid-color: rgba(231, 229, 228, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-premium: 0 4px 20px rgba(0, 0, 0, 0.4);
  --surface-lighter: #292524;
  --nav-bg: #0c0a09;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 1.05rem;
  position: relative;
  min-width: 320px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 998;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  opacity: 1;
  pointer-events: auto;
}

[data-theme="dark"] body::before {
  background: rgba(0, 0, 0, 0.5);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

h2::after {
  display: none;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-name {
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: -0.01em;
}

.nav-links a {
  font-family: var(--font-heading);
  text-transform: lowercase;
  letter-spacing: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-lighter);
  border: 2px solid var(--bg-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  padding: 0.8rem 4rem;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 4px;
}

.theme-toggle:hover {
  background: var(--primary-soft);
  border-color: var(--primary-color);
}

.theme-toggle i {
  width: 18px;
  height: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.brand:hover {
  opacity: 0.8;
}

.brand .logo {
  height: 56px;
  width: auto;
  color: var(--text-main);
  display: block;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: lowercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--secondary-color);
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.linkedin-logo {
  height: 24px;
  opacity: 0.7;
  transition: var(--transition);
}

.linkedin-logo:hover {
  opacity: 1;
}

/* Main Layout */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Section Containers */
section,
.content-section,
.certifications-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10rem 10% 8rem;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 5rem;
}

/* Hero Section */
.hero {
  min-height: 100svh;
  padding-top: 8rem;
  padding-bottom: 8rem;
  text-align: center;
  background: var(--bg-color);
}

.hero-overlay {
  max-width: 720px;
  width: 90%;
  position: relative;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero h1 span {
  color: var(--secondary-color);
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 3.5rem auto;
  line-height: 1.8;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 3.5rem auto;
  line-height: 1.9;
  font-weight: 300;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--text-main);
  color: var(--bg-color);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--text-main);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--secondary-color);
  color: var(--text-inverse);
  border-color: var(--secondary-color);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--text-main);
  transition: var(--transition);
  cursor: pointer;
}

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

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.about-hero {
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border-color);
}

.about-hero h1,
.services-hero h1,
#thoughts h1,
#contact h1 {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

.about-overlay {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  text-align: center;
}

.about-hero h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

.sub-text {
  font-size: 1.35rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-family: var(--font-body);
  line-height: 1.6;
}

.about-prose-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
  margin-top: 1rem;
  text-align: left;
}

.about-prose-container>* {
  min-width: 0;
}

.about-prose {
  max-width: 600px;
}

.about-lead {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.about-prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  margin-top: 2rem;
}

.about-prose h3:first-of-type {
  margin-top: 0;
}

.about-prose p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 0;
}

.about-prose p.about-lead {
  margin-bottom: 3.5rem;
}

.about-flex-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 4rem;
}

.about-maturity-map {
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 550px;
  width: 100%;
}

.maturity-map-header {
  text-align: center;
  margin-bottom: 2rem;
}

.maturity-map-header h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.maturity-map-header p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

#maturity-map {
  width: 100%;
  max-width: 350px;
  height: 350px;
}

.about-bullets {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.about-bullets li {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  position: relative;
  padding: 2.5rem 2.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.about-bullets li h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.about-bullets li p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.about-bullets li:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-bullets li::before {
  content: '';
  display: none;
  opacity: 0.3;
}

/* Journey Section */
.journey-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.journey-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.journey-card:hover {
  border-color: var(--text-dim);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.journey-card h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.journey-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.badge {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 0.2rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
  border-radius: 2px;
}

/* Skills Section */
.skills-section {
  background: var(--bg-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-box {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.skill-box:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.skill-box p {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Certifications */
.certifications-section {
  text-align: center;
  background: var(--bg-color);
}

.certifications {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cert-badge {
  width: 100px;
  transition: var(--transition);
  opacity: 0.85;
}

.cert-badge:hover {
  opacity: 1;
  transform: scale(1.05);
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  max-width: 600px;
}

.credential-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  border-radius: 100px;
  transition: var(--transition);
}

.credential-tag:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.career-section {
  background: var(--surface-color);
  scroll-margin-top: 5rem;
}

.career-shell {
  width: min(100%, 960px);
}

.career-shell .section-subtitle {
  margin-bottom: 2rem;
}

.career-timeline {
  display: grid;
  gap: 1.9rem;
}

.career-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.career-track::before {
  content: '';
  position: absolute;
  top: 1.4rem;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--border-color);
  pointer-events: none;
}

.career-stop {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  font-family: var(--font-body);
  transition: var(--transition);
}

.career-stop-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 8px var(--surface-color);
  transition: var(--transition);
}

.career-stop-label {
  font-size: 0.86rem;
  line-height: 1.35;
  max-width: 7rem;
}

.career-stop:hover,
.career-stop:focus-visible,
.career-stop.active {
  color: var(--text-main);
}

.career-stop:hover .career-stop-mark,
.career-stop:focus-visible .career-stop-mark,
.career-stop.active .career-stop-mark {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.career-stop:focus-visible {
  outline: none;
}

.career-detail-panel {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 1.35rem 1.5rem;
  min-height: 176px;
  box-shadow: var(--shadow-sm);
}

.career-detail-company {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-color);
  margin-bottom: 0.7rem;
}

.career-detail-title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.career-detail-summary {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  width: 100%;
  max-width: none;
}

/* Services Section */
.services-hero {
  background: var(--bg-color);
}

.services-overlay {
  background: none;
  padding: 0;
  width: 100%;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.services-overlay p {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 2.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  background: var(--surface-hover);
  border-color: var(--text-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-card p {
  text-align: center;
}

/* Axis Project Section */
.axis-section {
  padding: 10rem 10% 8rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-color);
  scroll-margin-top: 5rem;
}

.axis-container {
  max-width: 640px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.tool-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-card:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  text-align: center;
  width: auto;
  display: block;
}

.tool-card-title::after {
  display: none;
}

.tool-card-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.tool-card-desc {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: 440px;
}

.tool-card .axis-stats {
  width: 100%;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
}

.tool-card .btn-primary {
  margin-top: auto;
}

.axis-badge {
  display: none;
}

.axis-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 600;
}

.axis-title::after {
  display: none;
}

.axis-tagline {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.axis-description {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.axis-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.axis-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 100px;
}

.axis-stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1;
}

.axis-stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-dim);
  max-width: 500px;
  margin: -1rem auto 2.5rem;
  text-align: center;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

#connect {
  text-align: center;
}

.cta-subtext {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  max-width: 520px;
  margin: -1rem auto 3.5rem auto;
  color: var(--text-dim);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.contact-form textarea {
  grid-column: span 2;
  min-height: 160px;
  resize: vertical;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition);
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.08);
}

.contact-form .btn-primary {
  grid-column: span 2;
  justify-self: center;
}

.contact-email {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.contact-email a {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.contact-email a:hover {
  border-bottom-color: var(--secondary-color);
}

/* Footer */
footer {
  padding: 4rem 10%;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}


/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  z-index: 1000;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 8rem 2rem;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Top Navigation Container */
.top-nav-container {
  max-width: 980px;
  margin: 8rem auto 0;
  padding: 0 2rem;
}

.back-link {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link::before {
  content: '\2190';
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary-color);
}

.back-link:hover::before {
  transform: translateX(-4px);
}



/* Blog & Article Styles */
.blog-header {
  text-align: center;
  padding: 8rem 10% 3rem;
  background: var(--bg-color);
  margin-bottom: 0;
  position: relative;
}

.blog-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.4rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  text-transform: none;
  letter-spacing: 0;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
  border-radius: 100px;
}

.blog-container {
  max-width: 1300px;
  margin: 3rem auto 8rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
  padding: 0 4rem;
}

/* Inside homepage section, reduce bottom margin since the section itself has padding */
.content-section .blog-container {
  margin-bottom: 0;
  padding: 0;
}

.blog-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 2.8rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-dim);
  box-shadow: var(--shadow-md);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-badge {
  background: var(--primary-soft);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  border-radius: 2px;
}

.reading-time {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.blog-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  transition: var(--transition);
  text-align: left;
  width: auto;
  display: block;
}

.blog-card h2::after {
  display: none;
}

.blog-card:hover h2 {
  color: var(--primary-color);
}

.blog-card p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--primary-color);
  opacity: 0.8;
  transition: var(--transition);
}

.blog-card-tags .tag:hover {
  opacity: 1;
  text-decoration: underline;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.blog-card-footer .date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.blog-card a.read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
}

.blog-card a.read-more::after {
  content: '';
  position: absolute;
  inset: 0;
}

.blog-card a.read-more .arrow {
  display: inline-block;
  opacity: 0;
  transition: var(--transition);
  transform: translateX(-4px);
}

.blog-card:hover a.read-more .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Article Page Enhancements */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--secondary-color);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease;
}

.article-header-zone {
  max-width: 980px;
  margin: 2rem auto 3.5rem;
  padding: 0 2rem;
  text-align: center;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  color: var(--text-main);
  margin: 1.5rem 0 1.8rem;
}

.article-lede {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 58ch;
  margin: 0 auto;
  font-style: italic;
}

.article-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
}

#article-header-meta {
  margin: 0 0 1.2rem 0;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.article-meta .category-badge {
  background: var(--primary-soft);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.meta-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
}

#article-container {
  padding: 4rem 3.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

/* Markdown Content Styling */
#article-container h1 {
  display: none;
}

#article-container h2 {
  color: var(--text-main);
  text-align: left;
  margin: 3.5rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  display: block;
  font-size: 1.6rem;
}

#article-container h2::after {
  display: none;
}

#article-container h3 {
  margin: 2.5rem 0 1rem 0;
  font-size: 1.2rem;
  color: var(--text-main);
  text-align: left;
}

#article-container p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
  color: var(--text-main);
}

#article-container ul,
#article-container ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

#article-container li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

#article-container blockquote {
  border-left: 3px solid var(--secondary-color);
  padding: 1.5rem 2rem;
  background: var(--surface-lighter);
  margin: 3rem 0;
  font-style: italic;
  border-radius: 0 2px 2px 0;
}

#article-container code {
  font-family: var(--font-mono);
  background: var(--surface-lighter);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.95em;
}

#article-container pre {
  background: #1c1917;
  color: #e7e5e4;
  padding: 2rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 2.5rem;
}

#article-container pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article-tags-bottom {
  margin-top: 5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Author Card Polished */
.author-card {
  margin-top: 5rem;
  padding: 2.5rem 3rem;
  background: var(--surface-lighter);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.written-by {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.3rem;
}

.author-avatar-placeholder {
  width: 72px;
  height: 72px;
  background: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
  border-radius: 50%;
}

.author-info {
  flex-grow: 1;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1.4rem !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
}

.author-bio {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* Article Navigation */
#article-nav {
  max-width: 980px;
  margin: 0 auto 4rem auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.nav-prev,
.nav-next {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.nav-next {
  text-align: right;
  align-items: flex-end;
}

.nav-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: none;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  letter-spacing: 0;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
  line-height: 1.4;
}

.nav-prev:hover .nav-title,
.nav-next:hover .nav-title {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .blog-header {
    padding: 6rem 1.5rem 2.5rem;
  }

  .blog-filters {
    gap: 0.6rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .blog-container {
    padding: 0 1.5rem;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .blog-card {
    padding: 2rem;
  }

  .blog-card-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .top-nav-container {
    margin: 6rem auto 0;
  }

  .article-header-zone {
    margin-bottom: 2.5rem;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-lede {
    font-size: 1.05rem;
  }

  #article-container {
    padding: 2.5rem 1.5rem;
  }

  #article-container p,
  #article-container li {
    font-size: 1.05rem;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  #article-nav {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .career-timeline {
    gap: 1rem;
  }

  .career-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: visible;
  }

  .career-track::before {
    display: none;
  }

  .career-stop {
    width: 100%;
    min-width: 0;
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 0.7rem;
    padding: 1rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-color);
  }

  .career-stop-label {
    max-width: none;
    font-size: 0.88rem;
  }

  .career-stop-mark {
    width: 2.3rem;
    height: 2.3rem;
    box-shadow: none;
  }

  .career-stop.active {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
  }

  .career-detail-panel {
    padding: 1.25rem 1.2rem;
    min-height: 0;
  }

  .career-detail-company {
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
  }

  .career-detail-title {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }

  .career-detail-summary {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

/* --- RESPONSIVE DESIGN FIXES --- */
@media (max-width: 968px) {

  /* Global Resets */
  html {
    font-size: 14px;
    /* Slight scaling down */
  }

  section,
  .content-section,
  .certifications-section {
    min-height: auto;
    padding: 8rem 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero {
    min-height: 100svh;
    padding: 6rem 1.5rem 5rem;
  }

  /* Navbar */
  .navbar {
    padding: 1rem 1.5rem;
  }

  .navbar.scrolled {
    padding: 0.8rem 1.5rem;
  }

  .brand .logo {
    height: 48px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .nav-actions {
    gap: 0.75rem;
  }

  .linkedin-logo {
    height: 22px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: min(24rem, 100%);
    height: 100svh;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.25rem;
    padding: 6.5rem 1.75rem 2rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(12, 10, 9, 0.98);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a {
    font-size: 1.2rem;
    display: block;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero Section */
  .hero-overlay {
    width: 100%;
    padding: 2rem 0.5rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-label {
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
  }

  /* About */
  .about-overlay {
    width: 100%;
  }

  .about-prose-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-prose {
    max-width: 100%;
  }

  .about-maturity-map {
    min-height: 480px;
    padding: 2rem;
  }

  .about-flex-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-bullets {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-bullets li {
    padding: 2rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .axis-section {
    padding: 8rem 1.5rem 6rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tool-card {
    padding: 2.5rem 1.5rem;
  }

  .axis-container {
    max-width: 100%;
  }

  .axis-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.75rem 0;
  }

  .axis-stat {
    min-width: 0;
    padding: 0 0.5rem;
  }

  .certifications {
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .cert-badge {
    width: 88px;
  }

  .credentials-list {
    max-width: 100%;
  }

  .career-track {
    padding-inline: 0;
  }

  /* Contact Form */
  .contact-form {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .contact-form textarea,
  .contact-form .btn-primary {
    grid-column: span 1;
    width: 100%;
  }

  .section-subtitle,
  .cta-subtext {
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
    padding: 0 0.5rem;
  }

  /* Footer */
  footer {
    padding: 3rem 1.5rem;
  }

  /* Tech Cursor Hide on Mobile */
  .tech-cursor {
    display: none;
  }

  * {
    cursor: auto !important;
    /* Restore default cursor */
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .navbar,
  .navbar.scrolled {
    padding: 0.9rem 1rem;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand .logo {
    height: 44px;
  }

  .nav-links {
    width: 100%;
    padding: 6rem 1.25rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .btn-primary,
  .btn-secondary {
    padding: 1rem 1.5rem;
    width: min(100%, 18rem);
    text-align: center;
    margin-inline: auto;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  .section-subtitle,
  .cta-subtext {
    font-size: 1rem;
  }

  .axis-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .certifications {
    gap: 1rem;
  }

  .cert-badge {
    width: 72px;
  }

  .career-stop {
    min-height: 0;
    gap: 0.7rem;
    padding: 0.85rem 0.8rem;
  }

  .career-track {
    gap: 0.6rem;
  }

  .career-stop-mark {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.62rem;
  }

  .career-stop-label {
    font-size: 0.8rem;
  }

  .career-detail-panel {
    padding: 1rem;
  }

  .career-detail-title {
    font-size: 1rem;
  }

  .career-detail-summary {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.95rem 1rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
  }

  .about-maturity-map {
    min-height: 400px;
    padding: 1.5rem;
  }

  #maturity-map {
    max-width: 280px;
    height: 280px;
  }
}
