/* ==========================================================
   ALi Habbache — Portfolio v6.0
   Ground-up design: dark, analytical, ambitious
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --bg:          #f8fafc;
  --bg-2:        #f1f5f9;
  --bg-3:        #e8edf4;
  --bg-card:     #ffffff;
  --border:      #e2e8f0;
  --border-2:    #cbd5e1;
  --accent:      #2563eb;
  --accent-dim:  rgba(37,99,235,0.08);
  --accent-glow: rgba(37,99,235,0.20);
  --indigo:      #4f46e5;
  --mint:        #059669;
  --amber:       #d97706;
  --white:       #ffffff;
  --muted:       #94a3b8;
  --text:        #475569;
  --text-bright: #0f172a;
  --mono:        'JetBrains Mono', monospace;
  --sans:        'Inter', system-ui, sans-serif;
  --radius:      16px;
  --radius-sm:   8px;
  --radius-xs:   5px;
  --nav-w:       80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ── Canvas particles ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Layout ── */
.pf-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Sidebar Nav ── */
.pf-nav {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--nav-w);
  background: #0f172a;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0;
  z-index: 100;
  gap: 6px;
}

.pf-nav-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.pf-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0 10px;
  flex: 1;
}

.pf-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: var(--muted);
}

.pf-nav-link i {
  font-size: 17px;
  transition: color 0.2s ease;
}

.pf-nav-link span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.pf-nav-link:hover,
.pf-nav-link.active {
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.3);
  color: #93c5fd;
}

.pf-nav-link.active i,
.pf-nav-link.active span { color: #93c5fd; }

.pf-nav-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  align-items: center;
}

.pf-nav-socials a {
  color: #64748b;
  font-size: 15px;
  transition: color 0.2s ease;
}
.pf-nav-socials a:hover { color: #93c5fd; }

/* ── Main ── */
.pf-main {
  margin-left: var(--nav-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  padding: 24px 32px 48px 32px;
}

/* ── Ambient Dynamic Backdrop Glow ── */
.card-ambient-glow {
  position: fixed;
  top: 15%;
  left: calc(var(--nav-w) + 10%);
  right: 10%;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.22;
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  background: radial-gradient(circle, #3b82f6 0%, #6366f1 50%, transparent 70%);
}

.card-ambient-glow[data-theme="indigo"] {
  background: radial-gradient(circle, #6366f1 0%, #8b5cf6 50%, transparent 70%);
  opacity: 0.25;
}
.card-ambient-glow[data-theme="purple"] {
  background: radial-gradient(circle, #a855f7 0%, #ec4899 50%, transparent 70%);
  opacity: 0.22;
}
.card-ambient-glow[data-theme="emerald"] {
  background: radial-gradient(circle, #10b981 0%, #06b6d4 50%, transparent 70%);
  opacity: 0.22;
}

/* ═══════════════════════════════════
   CARD DECK STAGE (Modern 3D Switching)
═══════════════════════════════════ */
.card-deck-stage {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  perspective: 1800px;
  transform-style: preserve-3d;
}

/* Top Deck Bar */
.deck-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 0 1px 1px rgba(255, 255, 255, 0.8) inset;
}

.deck-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.deck-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 100px;
  padding: 4px 12px;
}

.deck-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite ease-in-out;
}

.deck-badge-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-bright);
}

.deck-badge-label strong {
  color: var(--accent);
  font-weight: 800;
}

.deck-category-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
}

/* Switcher Navigation Pill Bar */
.deck-switcher-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(241, 245, 249, 0.85);
  padding: 4px;
  border-radius: 100px;
  position: relative;
  border: 1px solid rgba(203, 213, 225, 0.6);
}

.deck-nav-slider {
  position: absolute;
  top: 4px;
  left: 0;
  bottom: 4px;
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.deck-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
  user-select: none;
}

.deck-nav-pill .pill-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.7;
}

.deck-nav-pill:hover {
  color: var(--text-bright);
}

.deck-nav-pill.active {
  color: var(--accent);
}

.deck-nav-pill.active .pill-num {
  opacity: 1;
  color: var(--accent);
}

/* Stepper Buttons (Prev / Next) */
.deck-stepper-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-step-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: #ffffff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.deck-step-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.deck-step-btn:active {
  transform: translateY(0);
}

/* Visual 3D Deck Stack Underlays */
.deck-stack-underlay {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.deck-stack-underlay.stack-layer-1 {
  top: 8px;
  z-index: 1;
  transform: translate3d(0, 10px, -40px) scale(0.985);
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.85);
}

.deck-stack-underlay.stack-layer-2 {
  top: 16px;
  z-index: 0;
  transform: translate3d(0, 20px, -80px) scale(0.97);
  opacity: 0.55;
  background: rgba(248, 250, 252, 0.85);
}

.deck-switching .deck-stack-underlay.stack-layer-1 {
  transform: translate3d(0, 14px, -30px) scale(0.988);
}
.deck-switching .deck-stack-underlay.stack-layer-2 {
  transform: translate3d(0, 26px, -70px) scale(0.975);
}

/* Cards Wrapper */
.deck-cards-wrapper {
  position: relative;
  z-index: 5;
  min-height: 520px;
  transform-style: preserve-3d;
}

/* ═══════════════════════════════════
   THE ARTISTIC CARDS (.pf-card)
═══════════════════════════════════ */
.pf-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 30px, -80px) scale(0.93) rotateX(2deg);
  filter: blur(8px);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, filter 0.45s ease, visibility 0.55s;
  will-change: transform, opacity, filter;
}

.pf-card.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
  filter: blur(0px);
  z-index: 10;
}

/* Direction-aware Card Switching States */
.pf-card.exit-left {
  transform: translate3d(-100px, -10px, -120px) rotateY(8deg) scale(0.91);
  opacity: 0;
  filter: blur(10px);
}

.pf-card.exit-right {
  transform: translate3d(100px, -10px, -120px) rotateY(-8deg) scale(0.91);
  opacity: 0;
  filter: blur(10px);
}

.pf-card.enter-right {
  transform: translate3d(120px, 15px, -80px) rotateY(-8deg) scale(0.93);
  opacity: 0;
  filter: blur(10px);
}

.pf-card.enter-left {
  transform: translate3d(-120px, 15px, -80px) rotateY(8deg) scale(0.93);
  opacity: 0;
  filter: blur(10px);
}

/* Glass Frame on Card */
.card-glass-frame {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9) inset, 0 12px 30px -8px rgba(37, 99, 235, 0.05);
  position: relative;
}

/* Card Artistic Header Bar */
.card-artistic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.8));
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-folio-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.card-folio-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-folio-tag i {
  color: var(--accent);
  font-size: 10px;
}

.card-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-folio-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Card Body Content */
.card-body-content {
  padding: 40px 48px 48px 48px;
}

/* Card Footer & Progress */
.deck-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.04);
}

.deck-progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
}

.deck-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-footer-hints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.keyboard-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-bright);
  font-weight: 600;
}

.swipe-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ── Legacy fallback sections for compatibility ── */
.pf-section {
  display: none;
}

/* ── Section header ── */
.pf-section-header {
  margin-bottom: 40px;
}

.pf-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pf-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.pf-section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: -2px;
  line-height: 1.1;
}

.pf-section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════
   HERO / ABOUT
═══════════════════════════════════ */
#section-about {
  padding-top: 0;
}

/* Hero Wrap filling full width */
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin-bottom: 32px;
}

.hero-left {
  min-width: 0;
}

.hero-right {
  width: 100%;
  max-width: 320px;
  flex-shrink: 0;
}

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-name {
  font-size: 38px;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  min-height: 20px;
}

.hero-title .typed-cursor { color: var(--accent); }

.hero-bio {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
}

.hero-bio strong { color: var(--text-bright); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: rgba(59,130,246,0.3);
  color: var(--accent);
}

/* KPI strip */
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.kpi {
  background: var(--bg-card);
  padding: 20px 16px;
  text-align: center;
  transition: background 0.2s ease;
  position: relative;
}

.kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kpi:hover::before { opacity: 1; }
.kpi:hover { background: var(--bg-3); }

.kpi-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: -1.5px;
  line-height: 1;
  font-family: var(--sans);
}

.kpi-value span { color: var(--accent); }

.kpi-label {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Right — profile card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  width: 100%;
  box-shadow: 0 10px 25px -8px rgba(15, 23, 42, 0.05);
}

.hero-card-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-card-body {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.hero-card-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.5px;
  margin-bottom: 3px;
}

.hero-card-role {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.tag-blue   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-indigo { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.tag-mint   { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag-amber  { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

.hero-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* About cards grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.06);
}

.about-card-icon {
  font-size: 24px;
  margin-bottom: 14px;
}

.about-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.75;
}

/* ═══════════════════════════════════
   RESUME
═══════════════════════════════════ */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

/* Timeline */
.timeline { position: relative; }

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border-2);
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 3px;
}

.timeline-item.current .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
  min-height: 20px;
}

.timeline-item:last-child .timeline-line { display: none; }

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline-content:hover {
  border-color: var(--border-2);
  transform: translateX(3px);
}

.timeline-item.current .timeline-content {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-item.current .timeline-date { color: var(--accent); }

.now-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-role {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}

.timeline-company {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-company::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-desc {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.75;
}

.timeline-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* Right column — skills & education */
.resume-sidebar {}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Skill bars */
.skill-row {
  margin-bottom: 14px;
}

.skill-row:last-child { margin-bottom: 0; }

.skill-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.skill-pct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.skill-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  transform-origin: left;
  animation: bar-grow 1s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: var(--delay, 0s);
}

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Edu items */
.edu-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child { border-bottom: none; padding-bottom: 0; }
.edu-item:first-child { padding-top: 0; }

.edu-degree {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 2px;
}

.edu-school {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2px;
}

.edu-year {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

/* Cert badges */
.cert-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

.cert::before {
  content: '✓';
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
}

.cert:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ═══════════════════════════════════
   RECOMMENDATIONS
═══════════════════════════════════ */
.recs-grid {
  columns: 2;
  gap: 20px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  break-inside: avoid;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.rec-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--border-2);
  line-height: 1;
  pointer-events: none;
}

.rec-card:hover {
  border-color: #bfdbfe;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.08);
}

.rec-quote {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.rec-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.rec-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
}

.rec-role {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════
   CONTACT
═══════════════════════════════════ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.contact-intro {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-intro strong { color: var(--text-bright); }

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: var(--bg-3); }

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 13.5px;
  color: var(--text-bright);
  font-weight: 500;
}

.contact-value a {
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.contact-value a:hover { opacity: 0.8; }

/* Contact right — availability card */
.avail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.avail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.avail-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-bright);
}

.avail-body {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 22px;
}

.avail-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.avail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.avail-link:hover {
  background: var(--accent-dim);
  border-color: rgba(59,130,246,0.3);
}

.avail-link i { color: var(--accent); font-size: 15px; flex-shrink: 0; }

.avail-link-text { font-size: 12.5px; font-weight: 600; color: var(--text-bright); }
.avail-link-sub  { font-size: 11px; color: var(--muted); margin-top: 1px; }


/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-card { max-width: 380px; }
  .resume-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .deck-topbar { padding: 10px 16px; }
  .deck-nav-pill { padding: 6px 14px; font-size: 12px; }
}

@media (max-width: 900px) {
  .pf-main { padding: 16px 18px 48px 18px; }
  .card-body-content { padding: 32px 24px 36px 24px; }
  .card-artistic-header { padding: 12px 20px; }
  .recs-grid { columns: 1; }
  .about-grid { grid-template-columns: 1fr; }
  .deck-category-badge { display: none; }
}

@media (max-width: 720px) {
  .deck-topbar {
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 16px;
    padding: 10px 14px;
  }
  .deck-meta { order: 1; }
  .deck-stepper-btns { order: 2; }
  .deck-switcher-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  .deck-nav-pill {
    flex: 1;
    justify-content: center;
    padding: 6px 8px;
    font-size: 11.5px;
  }
  .deck-nav-pill .pill-num { display: none; }
  .card-header-right { display: none; }
  .keyboard-hint { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-w: 0px; }
  .pf-nav { display: none; }
  .pf-main {
    margin-left: 0;
    padding: 12px 12px 84px 12px;
  }
  .card-ambient-glow {
    left: 5%;
    right: 5%;
    top: 10%;
    height: 380px;
  }
  .deck-stack-underlay {
    left: 4px;
    right: 4px;
  }
  .card-glass-frame {
    border-radius: 18px;
  }
  .card-body-content {
    padding: 24px 16px 28px 16px;
  }
  .hero-name { letter-spacing: -1.5px; font-size: 30px; }
  .mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    justify-content: space-around;
    padding: 8px 0 12px;
  }
}

.mobile-nav { display: none; }

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  transition: color 0.2s ease;
}

.mobile-nav-btn i { font-size: 18px; }
.mobile-nav-btn.active, .mobile-nav-btn:hover { color: var(--accent); }
