/* ============================================
   Minimalistic portfolio — elegant grey & white
   ============================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e8e8e8;
  --border-hover: #d0d0d0;
  --accent: #333333;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --experience-card-width: 320px;
  --gh-0: #ebedf0;
  --gh-1: #9be9a8;
  --gh-2: #40c463;
  --gh-3: #30a14e;
  --gh-4: #216e39;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Navigation
   ============================================ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition),
              border-color var(--transition),
              box-shadow var(--transition);
}

.nav-bar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.nav-brand:hover {
  opacity: 0.7;
}

.nav-dp {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-links a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-datadecode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-datadecode:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow);
}

.nav-datadecode::after {
  display: none !important;
}

.datadecode-logo-nav {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .nav-links a {
    font-size: 1.25rem;
    color: var(--text);
  }

  .nav-bar > .nav-datadecode {
    display: none;
  }
}

/* ============================================
   Main content
   ============================================ */
main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 1.5rem;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin: 0 auto;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.hero-dp-wrap {
  position: relative;
}

.hero-dp {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  background: var(--border);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--transition);
}

.hero-dp:hover {
  transform: scale(1.03);
  border-color: var(--border-hover);
}

.hero-dp-wrap.hero-dp-fallback .hero-dp {
  display: none;
}

.hero-dp-wrap.hero-dp-fallback::after {
  content: 'DP';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  border: 3px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
}

.hero-right {
  flex: 0 1 520px;
  min-width: 0;
}

.hero-greeting {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.625rem;
}

.hero-job-title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.hero-job-title .separator {
  color: var(--border-hover);
  margin: 0 0.25em;
  font-weight: 300;
}

.hero-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 0.25rem;
}

.hero-author-badge svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.datadecode-logo-sm {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.datadecode-logo-btn {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-author-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--border);
  transition: border-color var(--transition);
}

.hero-author-link:hover {
  border-bottom-color: var(--text);
}

.hero-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 1rem 0 1.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.hero-btn svg {
  flex-shrink: 0;
}

.hero-btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.hero-btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* hero-socials is defined in .hero-left above */

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ============================================
   Section headers
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-number {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 300px;
}

section {
  padding: 2rem 0;
  scroll-margin-top: 80px;
}

/* ============================================
   Experience section
   ============================================ */
.section-experience {
  max-width: none;
}

/* ---- Interactive timeline bar ---- */
.experience-timeline-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 80px;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.experience-timeline-bar::-webkit-scrollbar {
  display: none;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-width: 500px;
  height: 100%;
}

.timeline-axis {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.timeline-year-mark {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.timeline-year-mark span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.timeline-year-tick {
  width: 1px;
  height: 8px;
  background: var(--border-hover);
  margin-bottom: 4px;
}

.timeline-span {
  position: absolute;
  bottom: 26px;
  height: 24px;
  border-radius: 4px;
  background: var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.timeline-span:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--border-hover);
}

.timeline-span--current {
  background: var(--text);
}

.timeline-span-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 0 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-span--current .timeline-span-label {
  color: var(--bg);
}

.timeline-span.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.15);
}

.timeline-span--current.active {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.2);
}

.experience-scroll-container {
  position: relative;
  display: flex;
  align-items: center;
}

.experience-scroll-btn {
  position: absolute;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.experience-scroll-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text);
  box-shadow: var(--card-shadow-hover);
}

.experience-scroll-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.experience-scroll-btn--left {
  left: -20px;
}

.experience-scroll-btn--right {
  right: -20px;
}

.experience-timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 0 1.5rem;
  width: 100%;
}

.experience-timeline-scroll::-webkit-scrollbar {
  display: none;
}

.experience-list {
  display: flex;
  gap: 1.25rem;
  padding: 0 0.5rem;
}

.experience-card {
  flex: 0 0 var(--experience-card-width);
  min-width: var(--experience-card-width);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background var(--transition);
}

.experience-card--current::before {
  background: var(--text);
}

.experience-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.experience-header {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.experience-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.experience-meta {
  min-width: 0;
}

.experience-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.experience-company {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.125rem;
}

.experience-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.experience-role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 0.25rem;
}

.experience-period,
.experience-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.experience-body {
  margin-top: 0.75rem;
}

.experience-description {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.experience-view-btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}

.experience-view-btn:hover {
  color: var(--text);
}

.experience-view-btn svg {
  transition: transform var(--transition);
}

.experience-view-btn:hover svg {
  transform: translateX(2px);
}

.experience-empty {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ============================================
   Experience modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overscroll-behavior: contain;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 1;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--text);
}

.modal-body {
  padding: 2rem 2.5rem 2.5rem;
}

.modal-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-company {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.modal-role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 0.375rem;
}

.modal-period,
.modal-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.modal-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-details-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.modal-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-details li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.modal-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-hover);
}

/* ============================================
   Recommendations (auto-scroll marquee + modal)
   ============================================ */
.section-recommendations {
  position: relative;
}

.recs-subtitle {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

/* ---- Marquee wrapper ---- */
.recs-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

/* ---- Scrolling track ---- */
.recs-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.5rem 0;
}

.recs-marquee--ready .recs-marquee-track {
  animation: marquee-scroll 50s linear infinite;
}

.recs-marquee:hover .recs-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---- Marquee card ---- */
.rec-marquee-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all var(--transition);
  position: relative;
}

.rec-marquee-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.rec-marquee-quote {
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.rec-marquee-text {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-marquee-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.rec-marquee-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.rec-marquee-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rec-marquee-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.rec-marquee-role {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recs-empty {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 2rem;
}

/* ---- Recommendation modal content ---- */
.rec-modal-quote {
  position: relative;
  margin-bottom: 2rem;
}

.rec-modal-quote-icon {
  position: absolute;
  top: -0.25rem;
  left: -0.25rem;
  color: var(--text);
}

.rec-modal-text {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  padding-left: 2.5rem;
}

.rec-modal-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.rec-modal-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.rec-modal-info {
  flex: 1;
  min-width: 0;
}

.rec-modal-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.125rem;
}

.rec-modal-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.rec-modal-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.875rem;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.rec-modal-linkedin:hover {
  color: var(--text);
  border-color: var(--text);
}

@media (max-width: 768px) {
  .rec-marquee-card {
    flex: 0 0 280px;
    padding: 1.25rem;
  }

  .rec-modal-author {
    flex-wrap: wrap;
  }

  .rec-modal-linkedin {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Articles section
   ============================================ */
.section-articles {
  position: relative;
}

.articles-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.articles-note a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.articles-note a:hover {
  color: var(--text);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all var(--transition);
}

.article-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.article-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.04);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
}

.article-card-date {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.article-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  flex: 1;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.article-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  transition: all var(--transition);
}

.article-card:hover .article-tag {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  margin-top: auto;
}

.article-card-link svg {
  transition: transform var(--transition);
}

.article-card:hover .article-card-link {
  color: var(--text);
}

.article-card:hover .article-card-link svg {
  transform: translate(2px, -2px);
}

.articles-empty {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Books section – 3D hardcover with page flip
   ============================================ */
.section-books {
  position: relative;
}

.books-shelf ul,
.books-shelf li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.books-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.books-note a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.books-note a:hover {
  color: var(--text);
}

.books-align {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.books-align > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

/* Book container */
.books-shelf .book {
  position: relative;
  width: 160px;
  height: 220px;
  perspective: 1000px;
  transform-style: preserve-3d;
  margin: 0;
}

/* Hardcover colors */
.books-shelf .hardcover_front li:first-child {
  background-color: #eee;
  backface-visibility: hidden;
}

.books-shelf .hardcover_front li:last-child {
  background: #fffbec;
}

.books-shelf .hardcover_back li:first-child {
  background: #fffbec;
}

.books-shelf .hardcover_back li:last-child {
  background: #fffbec;
}

.books-shelf .book_spine li:first-child {
  background: #eee;
}

.books-shelf .book_spine li:last-child {
  background: #333;
}

/* Thickness pseudo-elements */
.books-shelf .hardcover_front li:first-child::after,
.books-shelf .hardcover_front li:first-child::before,
.books-shelf .hardcover_front li:last-child::after,
.books-shelf .hardcover_front li:last-child::before,
.books-shelf .hardcover_back li:first-child::after,
.books-shelf .hardcover_back li:first-child::before,
.books-shelf .hardcover_back li:last-child::after,
.books-shelf .hardcover_back li:last-child::before,
.books-shelf .book_spine li:first-child::after,
.books-shelf .book_spine li:first-child::before,
.books-shelf .book_spine li:last-child::after,
.books-shelf .book_spine li:last-child::before {
  background: #999;
}

/* Pages */
.books-shelf .page > li {
  background: linear-gradient(to right, #e1ddd8 0%, #fffbf6 100%);
  box-shadow: inset 0px -1px 2px rgba(50, 50, 50, 0.1), inset -1px 0px 1px rgba(150, 150, 150, 0.2);
  border-radius: 0px 5px 5px 0px;
}

/* Opening transforms */
.books-shelf .hardcover_front {
  transform: rotateY(-34deg) translateZ(8px);
  z-index: 100;
}

.books-shelf .hardcover_back {
  transform: rotateY(-15deg) translateZ(-8px);
}

.books-shelf .page li:nth-child(1) { transform: rotateY(-28deg); }
.books-shelf .page li:nth-child(2) { transform: rotateY(-30deg); }
.books-shelf .page li:nth-child(3) { transform: rotateY(-32deg); }
.books-shelf .page li:nth-child(4) { transform: rotateY(-34deg); }
.books-shelf .page li:nth-child(5) { transform: rotateY(-36deg); }

/* Position & transform-style */
.books-shelf .hardcover_front,
.books-shelf .hardcover_back,
.books-shelf .book_spine,
.books-shelf .hardcover_front li,
.books-shelf .hardcover_back li,
.books-shelf .book_spine li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.books-shelf .hardcover_front,
.books-shelf .hardcover_back {
  transform-origin: 0% 100%;
}

.books-shelf .hardcover_front {
  transition: all 0.8s ease, z-index 0.6s;
}

/* Front cover layers */
.books-shelf .hardcover_front li:first-child {
  cursor: default;
  user-select: none;
  transform: translateZ(2px);
}

.books-shelf .hardcover_front li:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 3px 3px 0;
}

.books-shelf .hardcover_front li:last-child {
  transform: rotateY(180deg) translateZ(2px);
}

/* Back cover layers */
.books-shelf .hardcover_back li:first-child {
  transform: translateZ(2px);
}

.books-shelf .hardcover_back li:last-child {
  transform: translateZ(-2px);
}

/* Cover thickness edges */
.books-shelf .hardcover_front li:first-child::after,
.books-shelf .hardcover_front li:first-child::before,
.books-shelf .hardcover_front li:last-child::after,
.books-shelf .hardcover_front li:last-child::before,
.books-shelf .hardcover_back li:first-child::after,
.books-shelf .hardcover_back li:first-child::before,
.books-shelf .hardcover_back li:last-child::after,
.books-shelf .hardcover_back li:last-child::before,
.books-shelf .book_spine li:first-child::after,
.books-shelf .book_spine li:first-child::before,
.books-shelf .book_spine li:last-child::after,
.books-shelf .book_spine li:last-child::before {
  position: absolute;
  top: 0;
  left: 0;
}

/* Front cover edge dimensions */
.books-shelf .hardcover_front li:first-child::after,
.books-shelf .hardcover_front li:first-child::before {
  width: 4px;
  height: 100%;
}

.books-shelf .hardcover_front li:first-child::after {
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}

.books-shelf .hardcover_front li:first-child::before {
  transform: rotateY(90deg) translateZ(158px) translateX(2px);
}

.books-shelf .hardcover_front li:last-child::after,
.books-shelf .hardcover_front li:last-child::before {
  width: 4px;
  height: 160px;
}

.books-shelf .hardcover_front li:last-child::after {
  transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px);
}

.books-shelf .hardcover_front li:last-child::before {
  box-shadow: 0px 0px 30px 5px #333;
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(-2px) translateY(-78px);
}

/* Back cover edge dimensions */
.books-shelf .hardcover_back li:first-child::after,
.books-shelf .hardcover_back li:first-child::before {
  width: 4px;
  height: 100%;
}

.books-shelf .hardcover_back li:first-child::after {
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}

.books-shelf .hardcover_back li:first-child::before {
  transform: rotateY(90deg) translateZ(158px) translateX(2px);
}

.books-shelf .hardcover_back li:last-child::after,
.books-shelf .hardcover_back li:last-child::before {
  width: 4px;
  height: 160px;
}

.books-shelf .hardcover_back li:last-child::after {
  transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px);
}

.books-shelf .hardcover_back li:last-child::before {
  box-shadow: 10px -1px 80px 20px #666;
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(2px) translateY(-78px);
}

/* Book spine */
.books-shelf .book_spine {
  transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
  width: 16px;
  z-index: 0;
}

.books-shelf .book_spine li:first-child {
  transform: translateZ(2px);
}

.books-shelf .book_spine li:last-child {
  transform: translateZ(-2px);
}

.books-shelf .book_spine li:first-child::after,
.books-shelf .book_spine li:first-child::before {
  width: 4px;
  height: 100%;
}

.books-shelf .book_spine li:first-child::after {
  transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}

.books-shelf .book_spine li:first-child::before {
  transform: rotateY(-90deg) translateZ(-12px);
}

.books-shelf .book_spine li:last-child::after,
.books-shelf .book_spine li:last-child::before {
  width: 4px;
  height: 16px;
}

.books-shelf .book_spine li:last-child::after {
  transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px);
}

.books-shelf .book_spine li:last-child::before {
  box-shadow: 5px -1px 100px 40px rgba(0, 0, 0, 0.2);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(-210px) translateX(2px) translateY(-6px);
}

/* Pages positioning */
.books-shelf .page,
.books-shelf .page > li {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}

.books-shelf .page {
  width: 100%;
  height: 98%;
  top: 1%;
  left: 3%;
  z-index: 10;
}

.books-shelf .page > li {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transition-property: transform;
  transition-timing-function: ease;
}

.books-shelf .page > li:nth-child(1) { transition-duration: 0.6s; }
.books-shelf .page > li:nth-child(2) { transition-duration: 0.6s; }
.books-shelf .page > li:nth-child(3) { transition-duration: 0.4s; }
.books-shelf .page > li:nth-child(4) { transition-duration: 0.5s; }
.books-shelf .page > li:nth-child(5) { transition-duration: 0.6s; }

/* Hover: open the book */
.books-shelf .book:hover > .hardcover_front {
  transform: rotateY(-145deg) translateZ(0);
  z-index: 0;
}

.books-shelf .book:hover > .page li:nth-child(1) {
  transform: rotateY(-30deg);
  transition-duration: 1.5s;
}

.books-shelf .book:hover > .page li:nth-child(2) {
  transform: rotateY(-35deg);
  transition-duration: 1.8s;
}

.books-shelf .book:hover > .page li:nth-child(3) {
  transform: rotateY(-118deg);
  transition-duration: 1.6s;
}

.books-shelf .book:hover > .page li:nth-child(4) {
  transform: rotateY(-130deg);
  transition-duration: 1.4s;
}

.books-shelf .book:hover > .page li:nth-child(5) {
  transform: rotateY(-140deg);
  transition-duration: 1.2s;
}

/* "Read Now" button inside pages */
.book-read-btn {
  display: inline-block;
  text-transform: uppercase;
  border: 2px solid var(--text);
  margin-top: 100px;
  font-size: 0.7em;
  font-weight: 700;
  padding: 0.25em 0.6em;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.book-read-btn:hover {
  border-color: var(--accent, #0a66c2);
  color: var(--accent, #0a66c2);
}

/* Figcaption – below the book */
.books-shelf figcaption {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  padding: 0;
  margin-top: 1.25rem;
  text-align: center;
}

.books-shelf figcaption h1 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.books-shelf figcaption span {
  color: var(--text-muted);
  padding: 0.25em 0 0;
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
}

.books-empty {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .books-align {
    gap: 2rem;
  }

  .books-align > li {
    width: 140px;
  }

  .books-shelf .book {
    width: 130px;
    height: 180px;
  }
}

/* ============================================
   Certifications section – marquee (left-to-right)
   ============================================ */
.section-certifications {
  position: relative;
}

.certs-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.certs-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.5rem 0;
}

.certs-marquee--ready .certs-marquee-track {
  animation: certs-scroll 50s linear infinite;
}

.certs-marquee:hover .certs-marquee-track {
  animation-play-state: paused;
}

@keyframes certs-scroll {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.cert-marquee-card {
  flex: 0 0 320px;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.cert-marquee-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.cert-marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-marquee-card:hover img {
  transform: scale(1.03);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-marquee-card:hover .cert-overlay {
  opacity: 1;
}

.cert-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.certs-empty {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .cert-marquee-card {
    flex: 0 0 280px;
  }
}

/* ============================================
   Projects section
   ============================================ */
.section-projects {
  position: relative;
}

.gh-overview {
  margin-bottom: 2.5rem;
}

.gh-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.gh-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gh-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.gh-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gh-graph {
  width: 100%;
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.gh-chart {
  width: 100%;
  min-width: 700px;
  height: auto;
  display: block;
}

.gh-months text,
.gh-days text {
  font-size: 10px;
  fill: var(--text-muted);
  font-family: inherit;
}

.gh-legend-label {
  font-size: 9px;
  fill: var(--text-muted);
  font-family: inherit;
}

.projects-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.projects-note a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.projects-note a:hover {
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.project-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-thumb img {
  transform: scale(1.04);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

.project-card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.project-card-desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  transition: all var(--transition);
}

.project-card:hover .project-tag {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  margin-top: auto;
}

.project-card-link svg {
  transition: transform var(--transition);
}

.project-card:hover .project-card-link {
  color: var(--text);
}

.project-card:hover .project-card-link svg {
  transform: translate(2px, -2px);
}

.projects-empty {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ============================================
   Contact section
   ============================================ */
.section-contact {
  text-align: center;
}

.contact-content {
  max-width: 480px;
  margin: 0 auto;
}

.contact-heading {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: #0a66c2;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact-linkedin-btn:hover {
  background: #004182;
  box-shadow: 0 4px 20px rgba(10, 102, 194, 0.35);
  transform: translateY(-1px);
}

.contact-linkedin-btn svg {
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 2rem;
  margin-top: 1rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.375rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --experience-card-width: 280px;
  }

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

  .hero {
    padding: 6rem 0 1rem;
  }

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

  .hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-description {
    text-align: center;
  }

  .hero-dp {
    width: 120px;
    height: 120px;
  }

  .hero-dp-wrap.hero-dp-fallback::after {
    width: 120px;
    height: 120px;
    font-size: 1.5rem;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .hero-author-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .experience-scroll-btn {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 3rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gh-stats {
    gap: 1.25rem;
  }

  .gh-stat-value {
    font-size: 1.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 2rem;
  }
}

/* ============================================
   Scrollbar (global)
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: rgba(17, 17, 17, 0.08);
}

/* ============================================
   Body scroll lock for modal
   ============================================ */
body.modal-open {
  overflow: hidden;
}
