/*
Theme Name: Pankaj Kumar Sharma Portfolio
Theme URI: https://example.com/pankaj-portfolio
Author: Pankaj Kumar Sharma
Author URI: https://example.com
Description: Custom WordPress portfolio theme for Pankaj Kumar Sharma — Performance Marketing Specialist (4+ Years) & AutoCAD Expert (10+ Years in Job Sector & Teaching). Includes WordPress Customizer settings, AJAX wp_mail() contact form, interactive AutoCAD layer viewer, and ROI calculator.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pankaj-portfolio
Tags: portfolio, one-column, custom-menu, custom-logo, featured-images, theme-options
*/

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-blueprint: #0b1324;
  --bg-blueprint-2: #111d36;
  --ink-primary: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --accent-blue: #1d4ed8;
  --accent-blue-hover: #1e40af;
  --accent-orange: #ea580c;
  --accent-orange-hover: #c2410c;
  --accent-green: #059669;
  --border-subtle: #e2e8f0;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -12px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 22px 44px -16px rgba(15, 23, 42, 0.18);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

header h1, header h2, header h3, header h4,
main h1, main h2, main h3, main h4,
footer h1, footer h2, footer h3, footer h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
header p, main p, footer p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
header ul, main ul, footer ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* WordPress Core Classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.wp-caption { max-width: 100%; font-size: 0.875rem; color: var(--ink-muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.sticky, .bypostauthor { position: relative; }

.pks-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.25s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.scrolled { box-shadow: 0 8px 28px -12px rgba(15, 23, 42, 0.14); }

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-blueprint) 0%, var(--accent-blue) 65%, var(--accent-orange) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink-primary); }
.brand-sub { font-size: 0.74rem; color: var(--ink-muted); font-weight: 500; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; }
.primary-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.25s ease;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--ink-primary); }
.primary-nav a:hover::after, .primary-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(29, 78, 216, 0.5);
}
.btn-primary:hover { background: var(--accent-blue-hover); transform: translateY(-1px); }
.btn-orange {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(234, 88, 12, 0.45);
}
.btn-orange:hover { background: var(--accent-orange-hover); transform: translateY(-1px); }
.btn-outline {
  background: #fff;
  color: var(--ink-primary);
  border-color: #cbd5e1;
}
.btn-outline:hover { border-color: var(--ink-primary); background: #f1f5f9; }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-sm { padding: 9px 16px; font-size: 0.84rem; }

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #fff;
  color: var(--ink-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: #fff;
  padding: 16px 24px 22px;
}
.mobile-drawer.open { display: block; }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a {
  display: block;
  padding: 10px 4px;
  font-weight: 600;
  color: var(--ink-primary);
  border-bottom: 1px solid #f1f5f9;
}

/* Hero Section with Blueprint Grid */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image:
    linear-gradient(to right, rgba(29, 78, 216, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 78, 216, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 64px 0 76px;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(29, 78, 216, 0.08), transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(234, 88, 12, 0.07), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.12);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.55);
  animation: pks-pulse 1.8s infinite;
}
@keyframes pks-pulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.2rem, 4.8vw, 3.65rem);
  font-weight: 700;
  color: var(--ink-primary);
}
.hero-title .accent-blue { color: var(--accent-blue); }
.hero-title .accent-orange { color: var(--accent-orange); }
.hero-role {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hero-role span.sep { color: var(--accent-orange); }
.hero-lead {
  margin-top: 18px;
  font-size: 1.03rem;
  color: var(--ink-secondary);
  max-width: 560px;
}
.hero-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-stack-strip {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  font-weight: 500;
}

/* Interactive Dual Showcase Card */
.showcase-card {
  background: var(--bg-blueprint);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 60px -20px rgba(11, 19, 36, 0.55);
  overflow: hidden;
}
.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-wrap: wrap;
}
.showcase-tabs { display: flex; gap: 6px; }
.showcase-tab {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.showcase-tab.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.showcase-tab[data-tab="cad"].active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}
.showcase-coords {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}
.showcase-body { padding: 22px; }
.showcase-pane { display: none; }
.showcase-pane.active { display: block; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.kpi-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
}
.kpi-label { font-family: var(--font-mono); font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; }
.kpi-val { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; margin-top: 4px; }
.kpi-blue { color: #60a5fa; }
.kpi-orange { color: #fb923c; }
.kpi-green { color: #34d399; }

.bar-chart-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 16px;
}
.bar-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.76rem;
  color: #cbd5e1;
}
.bar-chart {
  height: 132px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.bar-fill {
  width: 100%;
  height: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-fill.peak { background: linear-gradient(180deg, #fb923c, #ea580c); }
.chart-lbl { font-family: var(--font-mono); font-size: 0.66rem; color: #94a3b8; }

.channel-split {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.channel-pill {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.channel-pill strong { font-family: var(--font-mono); color: #34d399; }

/* Interactive CAD Blueprint Pane */
.cad-stage {
  background: #07142b;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 10px;
}
.cad-svg { width: 100%; height: 224px; display: block; }
.cad-layer.hidden-layer { opacity: 0.06; transition: opacity 0.25s ease; }
.cad-layer { transition: opacity 0.25s ease; }
.cad-layers-bar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cad-layer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.2);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}
.cad-layer-toggle input { accent-color: #38bdf8; cursor: pointer; }

/* Metrics Strip */
.metrics-strip {
  background: var(--bg-blueprint);
  color: #fff;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.metric-cell {
  padding: 26px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}
.metric-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.metric-num.blue { color: #60a5fa; }
.metric-num.orange { color: #fb923c; }
.metric-label { font-size: 0.85rem; color: #cbd5e1; margin-top: 4px; font-weight: 500; }
.metric-sub { font-family: var(--font-mono); font-size: 0.7rem; color: #64748b; margin-top: 2px; }

/* Section Layout Helpers */
.pks-section { padding: 84px 0; }
.pks-section.alt { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.pks-section.dark {
  background: var(--bg-blueprint);
  color: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow { color: var(--accent-orange); display: inline-block; margin-bottom: 10px; }
.dark .section-eyebrow { color: #fb923c; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.55rem); font-weight: 700; }
.section-desc { margin-top: 14px; color: var(--ink-secondary); font-size: 0.98rem; }
.dark .section-desc { color: #94a3b8; }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.profile-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #0b1324 0%, #172a52 65%, #1e3a8a 100%);
  padding: 28px;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.profile-frame::before {
  content: 'DWG-REF // PKS-14Y';
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.65);
}
.profile-avatar-wrap {
  width: 150px;
  height: 150px;
  margin: 18px auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(251, 146, 60, 0.7);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
}
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-card-name { text-align: center; font-size: 1.45rem; font-weight: 700; }
.profile-card-role { text-align: center; font-size: 0.86rem; color: #cbd5e1; margin-top: 6px; }
.profile-meta-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.profile-meta-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px;
}
.profile-meta-item span { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: #94a3b8; }
.profile-meta-item strong { display: block; font-size: 0.92rem; margin-top: 3px; color: #fff; }

.about-copy p { color: var(--ink-secondary); margin-bottom: 16px; }
.about-highlights {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.highlight-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.9rem;
}
.highlight-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--accent-blue);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.78rem;
}
.skills-list { margin-top: 28px; display: grid; gap: 16px; }
.skill-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.skill-row-head span:last-child { font-family: var(--font-mono); color: var(--ink-muted); }
.skill-track { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; border-radius: 999px; transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.skill-fill.blue { background: linear-gradient(90deg, #1d4ed8, #38bdf8); }
.skill-fill.orange { background: linear-gradient(90deg, #ea580c, #fb923c); }

/* Services Grid */
.cards-grid-3 { display: grid; grid-template-columns: 1fr; gap: 22px; }
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #cbd5e1; }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-icon.blue { background: #eff6ff; color: var(--accent-blue); }
.service-icon.orange { background: #fff7ed; color: var(--accent-orange); }
.service-icon.green { background: #ecfdf5; color: var(--accent-green); }
.service-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--ink-secondary); }
.service-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-page);
  color: var(--ink-muted);
  border: 1px solid var(--border-subtle);
}

/* Interactive ROAS & Lead Estimator */
.roi-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.roi-control { margin-bottom: 20px; }
.roi-control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.roi-control label strong { font-family: var(--font-mono); color: #fb923c; }
.roi-range { width: 100%; accent-color: #ea580c; cursor: pointer; }
.roi-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: #111d36;
  color: #fff;
  border: 1px solid rgba(148,163,184,0.28);
  font-size: 0.9rem;
}
.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.roi-metric {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 14px;
  padding: 18px;
}
.roi-metric span { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; }
.roi-metric strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-top: 6px; }
.roi-metric.highlight strong { color: #34d399; }

/* Experience Timeline */
.timeline-wrap { position: relative; max-width: 860px; margin: 0 auto; padding-left: 34px; }
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-orange), var(--accent-blue), #475569);
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 4px solid var(--bg-surface);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
}
.timeline-dot.orange { background: var(--accent-orange); box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25); }
.timeline-dot.slate { background: #334155; box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.25); }
.timeline-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
}
.timeline-period { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--accent-orange); }
.timeline-card h3 { font-size: 1.24rem; margin-top: 6px; }
.timeline-org { font-size: 0.86rem; color: var(--ink-muted); margin-top: 4px; margin-bottom: 14px; font-weight: 500; }
.timeline-bullets { display: grid; gap: 8px; }
.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.91rem;
  color: var(--ink-secondary);
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

/* Portfolio Filters & Cards */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.filter-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

.project-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.project-visual {
  height: 175px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.project-visual.mkt-blue { background: linear-gradient(135deg, #0b1324, #1d4ed8); }
.project-visual.mkt-orange { background: linear-gradient(135deg, #431407, #ea580c); }
.project-visual.cad-teal {
  background-color: #07142b;
  background-image: linear-gradient(to right, rgba(56,189,248,0.12) 1px, transparent 1px), linear-gradient(to bottom, rgba(56,189,248,0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}
.project-visual.teach-slate { background: linear-gradient(135deg, #0f172a, #065f46); }
.project-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}
.project-visual h3 { font-size: 1.2rem; color: #fff; }
.project-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-body p { font-size: 0.89rem; color: var(--ink-secondary); flex: 1; }
.project-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-metric { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--accent-green); }
.project-open-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0;
}
.project-open-btn:hover { text-decoration: underline; }

/* Teaching Courses */
.course-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, transform 0.25s ease;
}
.course-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.course-num { font-family: var(--font-mono); font-size: 0.74rem; color: #60a5fa; font-weight: 600; }
.course-card h3 { font-size: 1.25rem; margin-top: 8px; color: #fff; }
.course-card p { font-size: 0.9rem; color: #cbd5e1; margin-top: 10px; }
.course-list { margin: 20px 0 24px; display: grid; gap: 8px; font-size: 0.86rem; color: #e2e8f0; flex: 1; }
.course-list li::before { content: '✓ '; color: #34d399; font-weight: 700; }

/* Blog / Insights */
.post-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-accent { height: 5px; background: var(--accent-blue); }
.post-accent.orange { background: var(--accent-orange); }
.post-accent.green { background: var(--accent-green); }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-family: var(--font-mono); font-size: 0.73rem; color: var(--ink-muted); }
.post-card h3 { font-size: 1.12rem; margin-top: 10px; }
.post-card p { font-size: 0.89rem; color: var(--ink-secondary); margin-top: 10px; flex: 1; }
.post-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.post-link:hover { text-decoration: underline; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-info-list { margin-top: 26px; display: grid; gap: 14px; }
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--accent-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-icon.orange { background: #fff7ed; color: var(--accent-orange); }
.contact-icon.green { background: #ecfdf5; color: var(--accent-green); }
.contact-info-card span { display: block; font-size: 0.76rem; color: var(--ink-muted); }
.contact-info-card strong { display: block; font-size: 0.95rem; color: var(--ink-primary); }

.contact-form-box {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-primary); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink-primary);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-status.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Footer */
.site-footer { background: var(--bg-blueprint); color: #cbd5e1; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 9px; font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 20px 0;
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

/* WordPress Single Post / Page / 404 */
.wp-singular-wrap { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.wp-singular-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card); }
.wp-entry-content p { margin-bottom: 1.15rem; color: var(--ink-secondary); }
.wp-entry-content h2, .wp-entry-content h3 { margin: 1.6rem 0 0.75rem; }

/* Reveal Animation & Portfolio Modals */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

.pks-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(11, 19, 36, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pks-modal-backdrop.open { display: flex; }
.pks-modal-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 60px -15px rgba(11, 19, 36, 0.5);
}
.pks-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.pks-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .about-highlights, .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; align-items: center; }
}
@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 52px; }
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .metric-cell { border-bottom: none; }
  .about-grid { grid-template-columns: 0.42fr 0.58fr; }
  .cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .roi-panel { grid-template-columns: 1fr 1fr; align-items: center; }
  .contact-grid { grid-template-columns: 0.44fr 0.56fr; }
  .footer-grid { grid-template-columns: 1.35fr 0.85fr 0.9fr 1fr; }
}
