/*
Theme Name: ChienPM - Senior QA Engineer & Engineering Portfolio
Theme URI: https://chienpm.space
Author: Pham Minh Chien
Author URI: https://chienpm.space
Description: High-performance, pure light mode multi-page engineering portfolio for Senior QA Engineer & Web Architect.
Version: 2.0.0
*/

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

/* ==============================================================================
   PURE LIGHT MODE DESIGN SYSTEM (CRISP, CONTRAST-RICH, APPLE/STRIPE QUALITY)
   ============================================================================== */
:root {
  --bg: #f8fafc;
  --bg-subtle: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-strong: #94a3b8;

  --text: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-border: rgba(37, 99, 235, 0.22);
  
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.08);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.08);
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.08);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1160px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.09);
  --shadow-hover: 0 20px 40px -6px rgba(37, 99, 235, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.65;
  color: var(--text-muted);
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Ambient Gradient Depth */
body::before {
  content: '';
  position: fixed;
  top: -160px;
  left: 15%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.01) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 200px;
  right: 8%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.04) 0%, rgba(5, 150, 105, 0.01) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==============================================================================
   HEADER & NAVIGATION (PERFECT HORIZONTAL ALIGNMENT • ZERO WRAPPING)
   ============================================================================== */
.site-header {
  border-bottom: 1px solid var(--border);
  height: 70px;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-avatar-box {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  display: block;
}

.brand-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--emerald);
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.6);
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-item {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.5rem 0.2rem;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-item:hover {
  color: var(--accent);
}

.nav-item.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--accent);
  border-radius: 2px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.header-cta-cv:hover {
  background: #dbeafe;
  color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.header-cta-web {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.header-cta-web:hover {
  background: #d1fae5;
  color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  line-height: 1;
  font-family: var(--font-mono);
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-pill:hover {
  border-color: var(--border-hover);
  background: #f8fafc;
}

.lang-opt {
  color: var(--text-dim);
}

.lang-opt.active {
  color: var(--accent);
  font-weight: 700;
}

.lang-sep {
  color: var(--border-strong);
}

.lang-opt {
  color: var(--text-dim);
}

.lang-opt.active {
  color: var(--accent);
  font-weight: 700;
}

.lang-sep {
  color: var(--border-strong);
}

/* ==============================================================================
   PAGE HEADER FOR SUBPAGES (/experience, /projects, /about)
   ============================================================================== */
.page-hero {
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  margin-bottom: 2.5rem;
}

.page-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* ==============================================================================
   HERO SECTION (HOME / INDEX)
   ============================================================================== */
.hero-v2 {
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-badge-wrap {
  margin-bottom: 1.15rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.badge-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.7);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 700;
}

/* 3 Highlight Metric Cards */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

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

.metric-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: #ffffff;
  color: var(--text) !important;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.meta-sep {
  color: var(--border-strong);
}

/* ==============================================================================
   PROFILE SHOWCASE CARD (HERO RIGHT - PROPORTIONAL & PROMINENT AVATAR)
   ============================================================================== */
.profile-showcase-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.profile-showcase-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.3);
}

.avatar-glow-ambient {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(5, 150, 105, 0.05) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.profile-avatar-wrap {
  position: relative;
  width: 175px;
  height: 175px;
  margin: 0 auto 1.35rem auto;
  z-index: 1;
}

.profile-avatar-img {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  display: block;
}

.avatar-ring-animated {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.35);
  animation: rotateRing 30s linear infinite;
  pointer-events: none;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-card-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.profile-card-title {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.profile-skills-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.skill-pill {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.profile-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
  padding: 0.4rem 1rem;
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 9999px;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 8px #059669;
  animation: pulseDot 2s infinite ease-in-out;
}

/* Infinite Marquee */
.tech-ticker-wrap {
  margin: 1.5rem 0 2.5rem;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.tech-ticker-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: techTickerScroll 30s linear infinite;
}

.tech-ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==============================================================================
   SECTIONS & SECTION HEADERS
   ============================================================================== */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-top: 0.4rem;
}

/* ==============================================================================
   3-PILLAR SKILLS / COMPETENCIES GRID
   ============================================================================== */
.skills-3pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .skills-3pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.pillar-card:nth-child(1):hover::before { background: var(--accent); }
.pillar-card:nth-child(2):hover::before { background: var(--emerald); }
.pillar-card:nth-child(3):hover::before { background: var(--purple); }

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

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.pillar-icon {
  font-size: 1.6rem;
}

.pillar-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
  text-transform: uppercase;
}

.pillar-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pillar-checklist {
  list-style: none;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pillar-checklist li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pillar-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.82rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==============================================================================
   CASE STUDIES & PROJECTS (4-STEP FRAMEWORK)
   ============================================================================== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-entry {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.project-entry:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.project-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.project-mini-logo {
  height: 30px;
  max-width: 110px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.project-client-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.project-client-type {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: block;
}

.project-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.project-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
}

.project-body {
  padding: 1.5rem;
}

.project-meta {
  margin-bottom: 0.4rem;
}

.project-client {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.15rem;
  line-height: 1.35;
}

.case-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (max-width: 768px) {
  .case-steps-grid {
    grid-template-columns: 1fr;
  }
}

.case-step-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s ease;
}

.case-step-box:hover {
  border-color: var(--border-hover);
}

.case-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.case-step-num.num-challenge { color: var(--amber); }
.case-step-num.num-approach { color: var(--accent); }
.case-step-num.num-outcome { color: var(--emerald); }
.case-step-num.num-stack { color: var(--purple); }

.case-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.case-step-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 1.25rem 0;
}

.metric-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.metric-pill .metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: block;
}

.metric-pill .metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

/* ==============================================================================
   TIMELINE / EXPERIENCE SECTION
   ============================================================================== */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exp-item {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border);
  transition: all 0.25s ease;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
  transition: transform 0.25s ease;
}

.exp-item:hover::before {
  transform: scale(1.3);
  background: var(--accent);
}

.exp-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.exp-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.exp-company {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}

.exp-company-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--text);
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.exp-fpt-mini {
  width: 20px;
  height: auto;
}

.exp-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.exp-desc ul {
  list-style: none;
  margin-top: 0.5rem;
}

.exp-desc li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
}

.exp-desc li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-weight: 700;
}

.exp-desc strong {
  color: var(--text);
  font-weight: 700;
}

/* ==============================================================================
   ABOUT STORY & 5-YEAR PHOTO SHOWCASE (ABOUT.HTML)
   ============================================================================== */
.about-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .about-story-grid {
    grid-template-columns: 1fr;
  }
}

.about-story-text p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-story-text strong {
  color: var(--text);
  font-weight: 700;
}

.about-photo-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-photo-caption {
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.about-photo-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.about-photo-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Principles Cards */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.principle-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.principle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.principle-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-shield { background: #eff6ff; color: #1d4ed8; }
.icon-code { background: #ecfdf5; color: #047857; }
.icon-analytics { background: #fffbeb; color: #b45309; }

.principle-num-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
}

.principle-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.principle-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.principle-card-footer {
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.principle-chip {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid var(--border);
}

/* ==============================================================================
   VERIFIED CERTIFICATIONS STRIP
   ============================================================================== */
.certs-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

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

.cert-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cert-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.cert-info p {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==============================================================================
   CONTACT & FOOTER (FULL RESPONSIVE 2-COLUMN CARDS & MODERN LIGHT CONTRAST)
   ============================================================================== */
.contact-grid,
.contact-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .contact-grid,
  .contact-grid-2col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.contact-info-card,
.contact-col-info {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.contact-form-card,
.contact-col-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.15rem;
  width: fit-content;
}

.contact-headline {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.contact-desc strong {
  color: var(--text);
  font-weight: 700;
}

.direct-methods,
.direct-channels-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
}

.direct-item,
.direct-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.direct-item:hover,
.direct-card:hover {
  border-color: var(--accent);
  background: #eff6ff;
  transform: translateX(4px);
}

.direct-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.direct-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.direct-lbl,
.direct-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.direct-val,
.direct-value {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
}

a.direct-val:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Contact Form Elements */
.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1.35rem;
}

.quick-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-feedback-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.form-feedback-box.success {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.form-feedback-box.error {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Site Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-copy {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-sep {
  color: var(--border-strong);
}

/* ==============================================================================
   POLISHED MICRO-INTERACTIONS & MOTION (LIGHTWEIGHT & HARDWARE ACCELERATED)
   ============================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Metric Pulse & Subtle Ambient Light Sweep */
.metric-val.pulse-highlight,
.metric-pill .metric-val.pulse-highlight {
  animation: metricShine 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes metricShine {
  0% {
    color: var(--text);
    transform: scale(0.96);
  }
  40% {
    color: var(--accent);
    transform: scale(1.04);
  }
  100% {
    color: var(--text);
    transform: scale(1);
  }
}

/* Copy Email Floating Toast Notification */
.toast-copy-notify {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-copy-notify.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-icon-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

/* Email Copyable Trigger Styles */
.email-copy-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease;
}

.email-copy-trigger:hover {
  color: var(--accent);
}

.email-copy-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}

.email-copy-trigger:hover .email-copy-badge {
  background: var(--accent);
  color: #ffffff;
}
