/* ==========================================================================
   MONOCHROME DATA & AI PORTFOLIO — STYLESHEET
   Matches the 5-Page Dark Monochrome UI Mockups + Light Mode Toggle Support
   ========================================================================== */

:root {
  --bg-primary: #070709;
  --bg-secondary: #0c0c10;
  --bg-card: #111116;
  --bg-card-hover: #16161d;
  --bg-elevated: #1b1b23;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-primary: #ffffff;
  --accent-inverse: #070709;
  --shadow-card: 0 18px 40px -15px rgba(0, 0, 0, 0.7);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-hand: 'Caveat', cursive;
}

html[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #f1f3f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fa;
  --bg-elevated: #e9ecef;
  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-hover: rgba(0, 0, 0, 0.25);
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --accent-primary: #09090b;
  --accent-inverse: #ffffff;
  --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== TOP NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  background: rgba(7, 7, 9, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

html[data-theme="light"] .navbar {
  background: rgba(248, 249, 250, 0.88);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-logo span {
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.mobile-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
  border-color: var(--border-hover);
}

.mobile-menu-btn {
  display: none;
}

/* ==================== BUTTONS & ICONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--accent-inverse);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--text-primary);
}

.icon-xs {
  width: 16px;
  height: 16px;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

/* ==================== PAGE VIEW SWITCHING ==================== */
.page-view {
  display: none;
  animation: fadeIn 0.32s ease forwards;
}

.page-view.active {
  display: block;
}

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

/* ==================== SITE-WIDE MOTION: FLOAT, PULSE, SCROLL-REVEAL ==================== */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .corner-photo-badge,
  .hero-photo-card,
  .journey-photo,
  .pulse-dot {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children reveal within a grid/row that has .reveal-group */
.reveal-group.in-view > .reveal:nth-child(1) { transition-delay: 0.02s; }
.reveal-group.in-view > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group.in-view > .reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal-group.in-view > .reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal-group.in-view > .reveal:nth-child(5) { transition-delay: 0.26s; }
.reveal-group.in-view > .reveal:nth-child(6) { transition-delay: 0.32s; }

/* ==================== HERO SECTIONS ==================== */
.hero-section {
  padding: 72px 0 64px;
  background: radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.055), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.muted-gradient {
  background: linear-gradient(90deg, #a1a1aa 0%, #e4e4e7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .muted-gradient {
  background: linear-gradient(90deg, #52525b 0%, #18181b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  border-right: 1px solid var(--border-subtle);
  padding-right: 12px;
}

.metric-item:last-child {
  border-right: none;
}

.metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ==================== HERO RIGHT VISUAL & HANDWRITTEN NOTES ==================== */
.hero-visual {
  position: relative;
}

/* Photo + handwritten note sit side by side, both in normal flow, so this
   row always reserves its own space above the card below it instead of
   floating/overlapping it. */
.hero-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.handwritten-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: fit-content;
  margin-left: auto;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.05;
  color: var(--text-primary);
  transform: rotate(-5deg);
  pointer-events: none;
}

.handwritten-underline {
  width: 95px;
  height: 16px;
  margin-top: 2px;
}

.laptop-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-card);
}

.laptop-screen {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.mock-topbar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.mock-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-left: 6px;
}

.mock-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mock-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
}

.mock-panel-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mock-svg {
  width: 100%;
  height: 54px;
}

.mock-kpi-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mock-kpi-row strong {
  display: block;
  font-size: 1.05rem;
}

.mock-kpi-row span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mock-bars {
  height: 54px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.mock-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--text-primary), rgba(255,255,255,0.2));
  border-radius: 3px 3px 0 0;
}

.mock-donut-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-donut {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 5px solid var(--text-primary);
  border-right-color: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.mock-legend {
  display: flex;
  flex-direction: column;
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.laptop-base {
  height: 8px;
  width: 40%;
  margin: 10px auto 0;
  background: var(--border-hover);
  border-radius: 99px;
}

/* ==================== DESK SHOWCASES (ABOUT & CONTACT) ==================== */
.about-desk-showcase,
.contact-desk-showcase {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.notepad-card {
  background: #e4e4e7;
  color: #09090b;
  padding: 22px 28px;
  border-radius: 10px;
  font-family: var(--font-hand);
  font-size: 1.65rem;
  line-height: 1.25;
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.mug-card {
  width: 130px;
  height: 145px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-hover);
  border-radius: 12px 12px 26px 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

.book-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 210px;
}

.book-spine {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==================== PORTRAIT PHOTO COMPOSITIONS (ABOUT / CONTACT) ==================== */
.visual-photo-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.visual-photo-row .about-desk-showcase,
.visual-photo-row .contact-desk-showcase {
  padding: 26px;
}

.visual-photo-row .book-stack {
  width: 170px;
}

.hero-photo-card {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  animation: floatY 5.5s ease-in-out infinite;
}

.hero-photo-card img {
  display: block;
  width: 130%;
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.45));
}

.hero-photo-card::before {
  content: "";
  position: absolute;
  inset: 10% -14% -6% -14%;
  background: radial-gradient(ellipse at 50% 60%, var(--border-hover), transparent 70%);
  opacity: 0.5;
  z-index: -1;
  border-radius: 50%;
  filter: blur(6px);
}

/* ==================== CORNER PHOTOS (HOME / PROJECTS / SKILLS) ====================
   In normal flow, inside .hero-top-row alongside the handwritten note, so
   they reserve their own space and never sit on top of the card below. */
.corner-photo-badge {
  width: 86px;
  flex-shrink: 0;
  animation: floatY 6s ease-in-out infinite;
}

.corner-photo-badge img {
  display: block;
  width: 200%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.4));
}

/* ==================== JOURNEY / EXPERIENCE INTRO PHOTO ====================
   In normal flow at the end of the intro column, so it never overlaps the
   timeline list in the grid's other column. */
.journey-grid {
  position: relative;
}

.journey-photo {
  width: 130px;
  margin-top: 28px;
  animation: floatY 6.5s ease-in-out infinite;
  pointer-events: none;
}

.journey-photo img {
  display: block;
  width: 300%;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.4));
}

/* ==================== SECTION BLOCKS & HEADERS ==================== */
.section-block {
  padding: 64px 0;
}

.border-top {
  border-top: 1px solid var(--border-subtle);
}

.border-bottom {
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.max-w-md {
  max-width: 460px;
}

.section-header-row,
.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* ==================== 10-ICON TECH STRIP ==================== */
.tech-strip-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.tech-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.tech-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.tech-box svg {
  width: 24px;
  height: 24px;
}

.tech-box span {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== WHAT I DO / BEYOND WORK ==================== */
.what-i-do-grid {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 40px;
  align-items: start;
}

.what-i-do-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.skill-pillar-card,
.skill-bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover,
.skill-pillar-card:hover,
.skill-bar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-badge svg {
  width: 20px;
  height: 20px;
}

.service-card h3,
.skill-pillar-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p,
.skill-pillar-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==================== PROJECT CARDS & FILTER BAR ==================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--accent-primary);
  color: var(--accent-inverse);
  border-color: var(--accent-primary);
}

.projects-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

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

.project-thumb {
  height: 190px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.project-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.pill {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

/* ==================== IMPACT STRIP ==================== */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 16px;
}

.impact-item:last-child {
  border-right: none;
}

.impact-icon {
  width: 34px;
  height: 34px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.impact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
}

.impact-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==================== TIMELINE & JOURNEY ==================== */
.journey-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 48px;
  align-items: start;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding-left: 22px;
  border-left: 2px solid var(--border-subtle);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-primary);
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-body {
  flex: 1;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.timeline-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.role-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.timeline-sub {
  font-size: 0.84rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.timeline-bullets {
  list-style: disc;
  padding-left: 18px;
  margin-top: 8px;
}

.timeline-bullets li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ==================== SKILLS CARDS & PROGRESS BARS ==================== */
.skills-card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-bar-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-bar-card-head .icon-badge {
  margin-bottom: 0;
}

.skill-bar-card-head h3 {
  font-size: 0.98rem;
  font-weight: 700;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.bar-track {
  width: 100%;
  height: 7px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 99px;
}

/* ==================== 3-COLUMN CREDENTIALS ==================== */
.three-col-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cred-col {
  border-right: 1px solid var(--border-subtle);
  padding-right: 24px;
}

.cred-col:last-child {
  border-right: none;
  padding-right: 0;
}

.cred-col-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.cred-col-head .icon-badge {
  margin-bottom: 0;
}

.cred-col-head .section-eyebrow {
  margin-bottom: 2px;
}

.cred-timeline {
  border-left: 2px solid var(--border-subtle);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cred-item {
  position: relative;
}

.cred-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-primary);
}

.cred-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cred-item p {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.cred-item span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==================== CASE STUDY SHOWCASE CARD ==================== */
.case-study-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.cs-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 32px;
}

.cs-mini-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cs-mini-item .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.cs-mini-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cs-mini-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==================== CONTACT PAGE ==================== */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.connect-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.connect-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.connect-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.connect-handle {
  font-size: 0.83rem;
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 6px;
}

.connect-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.textarea-group .input-icon {
  top: 14px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 42px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--text-primary);
}

.form-feedback {
  font-size: 0.84rem;
  color: #4ade80;
  margin-top: 4px;
}

/* Availability & World Map */
.availability-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 40px;
  align-items: center;
}

.availability-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.avail-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 500;
}

.avail-pill svg {
  width: 17px;
  height: 17px;
  color: var(--text-secondary);
}

.location-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: center;
}

.location-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.location-info h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.location-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  animation: pulseRing 2s ease-out infinite;
}

.world-map-graphic {
  position: relative;
}

.remote-badge {
  position: absolute;
  top: -8px;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.remote-badge svg {
  width: 14px;
  height: 14px;
}

.dotted-map-svg {
  width: 100%;
  height: auto;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.65fr;
  gap: 36px;
  align-items: start;
}

.faq-accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 16px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}

.faq-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==================== CTA FOOTER BANNER ==================== */
.cta-banner {
  background: radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.07), var(--bg-card) 65%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner-text {
  max-width: 620px;
}

.cta-banner-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 10px;
}

.cta-banner-text p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.social-icons-row {
  display: flex;
  gap: 14px;
}

.social-icons-row a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}

.social-icons-row a:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.social-icons-row svg {
  width: 18px;
  height: 18px;
}

/* ==================== CASE STUDY MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.22s ease;
}

.modal-header {
  padding: 26px 30px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-section h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-section p,
.modal-section li {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.65;
}

.modal-section ul {
  list-style: disc;
  padding-left: 20px;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.modal-metric-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.modal-metric-box strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--font-display);
}

.modal-metric-box span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1080px) {
  .hero-grid,
  .what-i-do-grid,
  .journey-grid,
  .case-study-showcase,
  .contact-main-grid,
  .availability-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .what-i-do-cards,
  .skills-card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tech-strip-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .cs-right {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-metrics,
  .impact-strip,
  .what-i-do-cards,
  .skills-card-grid-4,
  .projects-grid-3,
  .three-col-credentials,
  .connect-cards-grid,
  .form-row-2,
  .availability-pills,
  .location-map-card,
  .faq-accordion-grid,
  .modal-metrics-grid {
    grid-template-columns: 1fr;
  }

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

  /* Keep floating photo decorations from crowding content on small screens */
  .corner-photo-badge {
    width: 68px;
  }

  .hero-top-row {
    gap: 10px;
  }

  .visual-photo-row {
    gap: 14px;
  }

  .hero-photo-card {
    width: 150px;
  }

  .journey-photo {
    width: 100px;
    margin-top: 20px;
  }

  .metric-item,
  .impact-item,
  .cred-col {
    border-right: none;
    padding-right: 0;
  }
}