/* ============================================================
   Edward Suarez — Portfolio Redesign 2026
   "Signal Integrity" design system
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap");
@import url("./fonts/fontawesome-free-5.12.1-web/css/all.min.css");

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Color system */
  --bg:        #0B1120;
  --surface:   #142035;
  --surface-2: #1B2D47;
  --text:      #EBF2FA;
  --muted:     #7A9AB5;
  --jade:      #00D9A6;
  --jade-dim:  rgba(0, 217, 166, 0.12);
  --flare:     #FF6B35;
  --flare-dim: rgba(255, 107, 53, 0.12);
  --steel:     #4E7FA0;
  --border:    rgba(78, 127, 160, 0.18);
  --border-2:  rgba(78, 127, 160, 0.08);

  /* Typography */
  --f-display: 'Syne', sans-serif;
  --f-body:    'DM Sans', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s12: 6rem;
  --s16: 8rem;

  /* Layout */
  --max-w:  1160px;
  --nav-h:  70px;
  --radius: 10px;
  --radius-lg: 20px;

  /* Motion */
  --tr: 0.25s ease;
  --tr-slow: 0.6s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--muted); }

em, .accent { color: var(--jade); font-style: normal; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--s4); }
.section { padding-block: var(--s12); }
.section + .section { border-top: 1px solid var(--border-2); }

.section-header { margin-bottom: var(--s8); }
.section-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--jade);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: var(--s2);
}
.section-title { margin-bottom: var(--s2); }
.section-subtitle { color: var(--muted); max-width: 52ch; }
.section-rule {
  width: 48px;
  height: 2px;
  background: var(--jade);
  margin-top: var(--s3);
  border-radius: 2px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--tr);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--jade);
  color: var(--bg);
  border-color: var(--jade);
}
.btn-primary:hover { background: transparent; color: var(--jade); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--jade); color: var(--jade); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }

/* ── Preloader ────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ring {
  width: 40px; height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--jade);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-2);
  transition: border-color var(--tr);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.nav-logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--jade);
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.85; }
.nav-links {
  display: none;
  gap: var(--s4);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--jade);
  transition: width var(--tr);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: var(--s2); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--s1);
  margin-left: auto;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--muted);
  transition: all var(--tr);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--bg);
  padding: var(--s6) var(--s4);
  flex-direction: column;
  gap: var(--s3);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.4rem;
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--muted);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--tr);
}
.mobile-nav a:hover { color: var(--jade); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--s8));
  padding-bottom: var(--s12);
  background:
    radial-gradient(ellipse at 78% 20%, rgba(0,217,166,0.12) 0%, transparent 52%),
    radial-gradient(ellipse at 8%  85%, rgba(78,127,160,0.10) 0%, transparent 46%),
    radial-gradient(ellipse at 50% 110%, rgba(255,107,53,0.05) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  align-items: center;
}
.hero-greeting {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--jade);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--s2);
}
.hero-name {
  color: var(--text);
  margin-bottom: var(--s2);
  letter-spacing: -0.02em;
}
.hero-role-wrap {
  height: 2.2rem;
  overflow: hidden;
  margin-bottom: var(--s1);
}
.hero-role {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--jade);
  display: block;
  transition: opacity 0.3s, transform 0.3s;
}
.hero-tagline {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: var(--s6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}
.hero-social {
  display: flex;
  gap: var(--s3);
}
.hero-social a {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color var(--tr), transform var(--tr);
}
.hero-social a:hover { color: var(--jade); transform: translateY(-2px); }
.hero-social a:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 4px; }

/* Hero photo */
.hero-photo { display: flex; justify-content: center; }
.hero-photo-wrap {
  position: relative;
  width: 200px; height: 200px;
}
.hero-photo-ring {
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(0,217,166,0.2);
  animation: pulse-ring 3s ease-in-out infinite;
}
.hero-photo-ring-2 {
  position: absolute; inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(0,217,166,0.08);
  animation: pulse-ring 3s ease-in-out 1.5s infinite;
}
@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.02); }
}
.hero-photo-img {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--jade);
  position: relative; z-index: 1;
}

/* Pulse line */
.pulse-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  opacity: 0.5;
}
.pulse-line svg { width: 100%; height: 100%; }
.pulse-path {
  fill: none;
  stroke: var(--jade);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Stats ────────────────────────────────────────────────── */
.stats { background: var(--surface); padding-block: var(--s8); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.stat-card {
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr);
}
.stat-card:hover { border-color: rgba(255,107,53,0.3); }
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--flare), transparent);
}
.stat-number {
  font-family: var(--f-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--flare);
  display: block;
  line-height: 1;
  margin-bottom: var(--s1);
}
.stat-label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
  display: block;
}
.stat-sub {
  font-family: var(--f-mono);
  font-size: 0.67rem;
  color: var(--muted);
  display: block;
  margin-top: var(--s1);
}

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
}
.about-bio { color: var(--muted); font-size: 1.05rem; margin-bottom: var(--s4); }
.about-bio strong { color: var(--text); font-weight: 500; }

.info-list { display: grid; gap: var(--s2); }
.info-item { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; }
.info-key {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  min-width: 80px;
}
.info-val { color: var(--text); font-size: 0.95rem; }
.info-val a { color: var(--jade); }
.info-val a:hover { text-decoration: underline; }

.about-actions { margin-top: var(--s4); display: flex; gap: var(--s2); flex-wrap: wrap; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin-top: var(--s4);
}
.service-card {
  display: flex;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--tr), background var(--tr);
}
.service-card:hover { border-color: rgba(0,217,166,0.25); background: var(--surface-2); }
.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--jade-dim);
  color: var(--jade);
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.service-card h4 { color: var(--text); margin-bottom: 0.3rem; }
.service-card p { font-size: 0.88rem; margin: 0; }

/* ── Resume ───────────────────────────────────────────────── */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
}

/* Timeline */
.timeline { position: relative; padding-left: var(--s6); }
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--border);
}
.tl-item { position: relative; padding-bottom: var(--s6); }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: calc(-1 * var(--s6) + 4px);
  top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--jade);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--jade);
}
.tl-item:first-child .tl-dot { background: var(--flare); box-shadow: 0 0 0 2px var(--flare); }
.tl-meta {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s1);
  flex-wrap: wrap;
}
.tl-period {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--jade);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tl-item:first-child .tl-period { color: var(--flare); }
.tl-company {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.tl-role { font-size: 1rem; margin-bottom: 0.4rem; }
.tl-desc { font-size: 0.88rem; }

/* Skills */
.skills-group { margin-bottom: var(--s4); }
.skills-group-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: var(--s2);
  display: block;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: var(--s1); }
.skill-tag {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  transition: border-color var(--tr), color var(--tr);
}
.skill-tag:hover { border-color: var(--jade); color: var(--jade); }

/* Certificates */
.certs-grid { display: grid; gap: var(--s3); margin-top: var(--s4); }
.cert-card {
  display: flex;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--tr);
  text-decoration: none;
}
.cert-card:hover { border-color: rgba(0,217,166,0.3); }
.cert-card.pending { opacity: 0.55; }
.cert-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.cert-info h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.cert-date {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--jade);
  display: block;
}
.cert-issuer { font-size: 0.8rem; color: var(--muted); }

/* ── Projects ─────────────────────────────────────────────── */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s6);
}
.filter-btn {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
  transition: all var(--tr);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--jade);
  border-color: var(--jade);
  background: var(--jade-dim);
}
.filter-btn:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr), transform var(--tr);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--jade);
  opacity: 0;
  transition: opacity var(--tr);
}
.project-card:hover { border-color: rgba(0,217,166,0.25); background: var(--surface-2); transform: translateY(-2px); }
.project-card:hover::before { opacity: 1; }
.project-card:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.project-card.hidden { display: none; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--s3);
}
.project-cat {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jade);
  background: var(--jade-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.project-arrow {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--tr), transform var(--tr);
}
.project-card:hover .project-arrow { color: var(--jade); transform: translate(2px, -2px); }
.project-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.project-tech {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--steel);
  margin-bottom: var(--s2);
}
.project-desc { font-size: 0.88rem; }

/* ── Project Modal ────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-box {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal-close {
  position: sticky; top: var(--s3);
  float: right;
  margin: var(--s3) var(--s3) 0 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
  display: grid; place-items: center;
  transition: all var(--tr);
  z-index: 2;
}
.modal-close:hover { color: var(--flare); border-color: var(--flare); }
.modal-close:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.modal-content { padding: var(--s6); clear: both; }

/* Modal content styles (from portfolio-N.html fragments) */
.modal-content h1 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  margin-bottom: var(--s4);
  color: var(--text);
}
.modal-content h3 { font-size: 1rem; margin-bottom: var(--s2); color: var(--text); }
.modal-content p { font-size: 0.9rem; margin-bottom: var(--s3); }
.modal-content .project-images {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  border-radius: var(--radius);
  margin-bottom: var(--s4);
}
.modal-content .project-images img {
  scroll-snap-align: start;
  min-width: min(420px, 85vw);
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.modal-content .project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4) var(--s6);
  margin-top: var(--s4);
}
.modal-content .meta-group label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  display: block;
  margin-bottom: 0.4rem;
}
.modal-content .tech-tags { display: flex; flex-wrap: wrap; gap: var(--s1); }
.modal-content .tech-tag {
  font-family: var(--f-mono);
  font-size: 0.73rem;
  color: var(--jade);
  background: var(--jade-dim);
  border: 1px solid rgba(0,217,166,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.modal-content .share-links {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}
.modal-content .share-link {
  color: var(--muted);
  font-size: 1rem;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid; place-items: center;
  transition: all var(--tr);
}
.modal-content .share-link:hover { color: var(--jade); border-color: var(--jade); }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-wrap {
  position: relative;
}
.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 460px);
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--s4);
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  scroll-snap-align: start;
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.testimonial-quote {
  font-size: 1.5rem;
  color: var(--jade);
  margin-bottom: var(--s3);
  opacity: 0.6;
}
.testimonial-text {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
  flex: 1;
  margin-bottom: var(--s4);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.testimonial-photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
}
.testimonial-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 0.78rem; color: var(--muted); }

.testimonials-nav {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
  justify-content: flex-end;
}
.testimonials-nav button {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  display: grid; place-items: center;
  font-size: 0.85rem;
  transition: all var(--tr);
}
.testimonials-nav button:hover { border-color: var(--jade); color: var(--jade); }
.testimonials-nav button:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

/* ── Companies ────────────────────────────────────────────── */
.companies { background: var(--surface); padding-block: var(--s8); }
.companies-label {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: var(--s6);
}
.companies-marquee {
  overflow: hidden;
  position: relative;
  height: 100px;
  /* fade only left edge so logos clearly enter from the right */
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 6%, #000 100%);
  mask: linear-gradient(90deg, transparent 0%, #000 6%, #000 100%);
}
.companies-track {
  position: relative;
  height: 100%;
}
.company-logo {
  position: absolute;
  top: 50%;
  height: 70px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.25s, filter 0.25s;
  will-change: transform;
}
.company-logo:hover {
  opacity: 1;
  filter: none;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
.pricing-card {
  padding: var(--s6) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transition: border-color var(--tr);
  position: relative;
}
.pricing-card:hover { border-color: rgba(0,217,166,0.2); }
.pricing-card.featured {
  border-color: rgba(0,217,166,0.4);
  background: var(--surface-2);
}
.pricing-badge {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--jade);
  color: var(--bg);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
}
.pricing-tier {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.pricing-model {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--jade);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  flex: 1;
}
.pricing-features li {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.pricing-features li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--jade);
  flex-shrink: 0;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
}
.contact-info { display: grid; gap: var(--s3); }
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--tr);
}
.contact-item:hover { border-color: rgba(0,217,166,0.25); }
.contact-item-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--jade-dim);
  color: var(--jade);
  display: grid; place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.1rem; }
.contact-item-value { font-size: 0.92rem; color: var(--text); font-weight: 500; }
.contact-item-value a { color: var(--jade); }

/* Map */
.contact-map {
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: var(--s3);
}
.contact-map iframe {
  width: 100%; height: 100%;
  border: none;
  filter: invert(1) hue-rotate(200deg) saturate(0.8);
}

/* Form */
.contact-form-wrap h3 { margin-bottom: var(--s4); }
.form-row { display: grid; gap: var(--s3); }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-field input, .form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem var(--s3);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color var(--tr), box-shadow var(--tr);
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(0,217,166,0.1);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 0.5; }
.form-footer { display: flex; justify-content: flex-end; margin-top: var(--s3); }
.form-footer .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* reCAPTCHA wrap */
.recaptcha-wrap { margin-top: var(--s3); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-2);
}

/* Footer grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  padding-top: var(--s12);
  padding-bottom: var(--s8);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 0.8fr 0.9fr 1.3fr; gap: var(--s6); }
}

.footer-brand { display: flex; flex-direction: column; gap: var(--s3); }
.footer-logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--jade);
  display: inline-block;
  line-height: 1;
}
.footer-brand-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 28ch;
}

.footer-social { display: flex; gap: var(--s3); margin-top: var(--s1); }
.footer-social a {
  color: var(--muted);
  font-size: 1.05rem;
  transition: color var(--tr), transform var(--tr);
}
.footer-social a:hover { color: var(--jade); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 3px; }

.footer-nav-title {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jade);
  margin-bottom: var(--s3);
  display: block;
}
.footer-nav ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.footer-nav a {
  font-size: 0.84rem;
  color: var(--muted);
  transition: color var(--tr), padding-left var(--tr);
}
.footer-nav a:hover { color: var(--text); padding-left: 4px; }
.footer-services li { font-size: 0.82rem; color: var(--muted); }

.footer-avail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--jade);
  margin-bottom: var(--s3);
}
.footer-book-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--s3);
  font-size: 0.88rem;
}
.footer-email { font-size: 0.8rem; }
.footer-email a { color: var(--muted); transition: color var(--tr); }
.footer-email a:hover { color: var(--jade); }

.footer-bottom {
  border-top: 1px solid var(--border-2);
  padding-block: var(--s3);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
}
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-bottom-links { display: flex; gap: var(--s4); }
.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--muted);
  transition: color var(--tr);
}
.footer-bottom-links a:hover { color: var(--jade); }

/* ═══════════════════════════════════════════════════════════
   UI POLISH — Phase 4/5 Overrides & Enhancements
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: stronger photo ring + subtle grid texture ──────── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78,127,160,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,127,160,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero .pulse-line { z-index: 0; }

.hero-photo-ring {
  border-color: rgba(0,217,166,0.3);
}
.hero-photo-ring-2 {
  border-color: rgba(0,217,166,0.12);
}

/* ── Section header: wider rule accent ────────────────────── */
.section-rule {
  width: 56px;
  background: linear-gradient(90deg, var(--jade), rgba(0,217,166,0.2));
}

/* ── Stats: glow scan line on hover ──────────────────────── */
.stat-card {
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.stat-card:hover {
  border-color: rgba(255,107,53,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,107,53,0.15);
  transform: translateY(-2px);
}
.stat-number { letter-spacing: -0.02em; }

/* ── About: services 1-col inside 2-col grid (desktop) ────── */
@media (min-width: 900px) {
  .about-grid .services-grid { grid-template-columns: 1fr; }
  .about-grid .services-grid { margin-top: 0; }
}

/* ── Service cards: stronger accent icon ──────────────────── */
.service-card {
  gap: var(--s3);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--jade);
  opacity: 0;
  transition: opacity var(--tr);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  border-radius: 8px;
  transition: background var(--tr), transform var(--tr);
}
.service-card:hover .service-icon {
  background: rgba(0,217,166,0.2);
  transform: scale(1.08);
}

/* ── Project cards: glow on hover ────────────────────────── */
.project-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,217,166,0.08);
}
.project-card { transition: border-color var(--tr), background var(--tr), transform var(--tr), box-shadow var(--tr); }

/* ── Insight cards: match project card quality ────────────── */
.insight-card {
  transition: border-color var(--tr), background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.insight-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,217,166,0.08);
}

/* ── Testimonials: gradient border + smooth transition ─────── */
.testimonial-card {
  transition: border-color var(--tr), box-shadow var(--tr);
  position: relative;
}
.testimonial-card:hover {
  border-color: rgba(0,217,166,0.3);
  box-shadow: 0 0 0 1px rgba(0,217,166,0.1), 0 8px 32px rgba(0,0,0,0.2);
}

/* ── Timeline: first dot pulse ────────────────────────────── */
.tl-item:first-child .tl-dot {
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--flare), 0 0 0 4px rgba(255,107,53,0); }
  50%       { box-shadow: 0 0 0 2px var(--flare), 0 0 0 8px rgba(255,107,53,0); }
}

/* ── Pricing: featured card stronger glow ─────────────────── */
.pricing-card.featured {
  box-shadow: 0 0 40px rgba(0,217,166,0.1), 0 0 0 1px rgba(0,217,166,0.3);
}
.pricing-card.featured:hover {
  box-shadow: 0 0 60px rgba(0,217,166,0.18), 0 0 0 1px rgba(0,217,166,0.5);
}
.pricing-card { transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr); }
.pricing-card:hover { transform: translateY(-3px); }

/* ── Booking CTA block: animated gradient border ─────────── */
.booking-cta-block {
  background: linear-gradient(135deg, var(--surface-2) 0%, rgba(0,217,166,0.04) 100%);
}

/* ── Contact items: smoother hover ───────────────────────── */
.contact-item { transition: border-color var(--tr), background var(--tr), transform var(--tr); }
.contact-item:hover { transform: translateX(3px); background: var(--surface-2); }

/* ── Cert card: active one with glow ─────────────────────── */
.cert-card:not(.pending):hover {
  box-shadow: 0 0 24px rgba(0,217,166,0.12);
}

/* ── GitHub stats: subtle bg match ───────────────────────── */
.github-stats-wrap {
  background: var(--surface);
}

/* ── Back-to-top: adjust for mobile so it clears the FAB ─── */
@media (max-width: 640px) {
  .back-to-top {
    right: 76px;
    bottom: 20px;
  }
}

/* ── Skill tags: stronger hover ──────────────────────────── */
.skill-tag:hover {
  background: var(--jade-dim);
  transform: translateY(-1px);
}
.skill-tag { transition: border-color var(--tr), color var(--tr), background var(--tr), transform var(--tr); }

/* ── Nav: tighter gap on Insights addition ────────────────── */
@media (min-width: 900px) and (max-width: 1100px) {
  .nav-links { gap: var(--s3); }
}

/* ── Section rhythm: subtle tinted alternation ────────────── */
#resume        { background: var(--surface); }
#projects      { background: var(--bg); }
#insights      { background: var(--surface); }
#testimonials  { background: var(--bg); }
#pricing       { background: var(--surface); }
#contact       { background: var(--bg); }

/* Remove double border when adjacent sections share a color */
#resume + #projects,
#insights + #testimonials,
#pricing + #contact { border-top-color: var(--border-2); }

/* ── Hero photo: tablet sizing ────────────────────────────── */
@media (min-width: 640px) {
  .hero-photo-wrap { width: 260px; height: 260px; }
  .hero-photo-img  { width: 260px; height: 260px; }
}

/* ── Scroll Animations ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive — Tablet (640px) ─────────────────────────── */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid  { grid-template-columns: 1fr 1fr 1fr; }
  .stats-grid    { gap: var(--s6); }
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
  .certs-grid    { grid-template-columns: 1fr 1fr; }
  .hero-photo-wrap { width: 240px; height: 240px; }
  .hero-photo-img  { width: 240px; height: 240px; }
}

/* ── Responsive — Desktop (900px) ────────────────────────── */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }

  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: var(--s12);
  }
  .hero-photo { justify-content: flex-end; }
  .hero-photo-wrap { width: 340px; height: 340px; }
  .hero-photo-img  { width: 340px; height: 340px; }

  .about-grid     { grid-template-columns: 1fr 1fr; }
  .resume-grid    { grid-template-columns: 1.1fr 0.9fr; }
  .contact-grid   { grid-template-columns: 1fr 1.4fr; }
  .pricing-grid   { grid-template-columns: repeat(3, 1fr); }
  .modal-content .project-meta { grid-template-columns: 1fr 1fr; }
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pulse-path { stroke-dashoffset: 0 !important; }
  .companies-track { animation: none; }
}

/* ── Focus Visible Global ─────────────────────────────────── */
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Availability Dot & Badge ─────────────────────────────── */
.avail-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--jade);
  flex-shrink: 0;
  animation: avail-pulse 2s ease-in-out infinite;
}
@keyframes avail-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 217, 166, 0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(0, 217, 166, 0); }
}

.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 217, 166, 0.08);
  border: 1px solid rgba(0, 217, 166, 0.25);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--jade);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s3);
}

.nav-availability {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--jade);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .nav-availability { display: flex; }
}

/* ── Nav CTA — primary variant ───────────────────────────── */
.nav-cta.btn-primary { font-size: 0.8rem; }

/* ── Hero Book Button ─────────────────────────────────────── */
.btn-book {
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  box-shadow: 0 0 24px rgba(0, 217, 166, 0.25);
}
.btn-book:hover {
  box-shadow: 0 0 44px rgba(0, 217, 166, 0.5);
}

/* ── Mobile Nav CTA ──────────────────────────────────────── */
.mobile-nav-cta {
  background: var(--jade) !important;
  color: var(--bg) !important;
  border-radius: var(--radius) !important;
  border-bottom: none !important;
  text-align: center;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  padding: var(--s2) var(--s3) !important;
}
.mobile-nav-cta:hover { opacity: 0.9; color: var(--bg) !important; }

/* ── Floating Action Button ──────────────────────────────── */
.fab-booking {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--jade);
  color: var(--bg);
  border-radius: 50px;
  padding: 0.8rem 1.4rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 28px rgba(0, 217, 166, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow var(--tr);
  pointer-events: none;
  text-decoration: none;
}
.fab-booking.fab-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-booking:hover {
  color: var(--bg);
  box-shadow: 0 8px 44px rgba(0, 217, 166, 0.6);
  transform: translateY(-3px) scale(1.03);
}
.fab-booking:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; border-radius: 50px; }

@media (max-width: 640px) {
  .fab-booking {
    bottom: 20px;
    right: 16px;
    width: 52px; height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .fab-label { display: none; }
}

/* ── Booking CTA Block (Contact section) ─────────────────── */
.booking-cta-block {
  background: var(--surface-2);
  border: 1px solid rgba(0, 217, 166, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--s6) var(--s4);
  text-align: center;
  margin-bottom: var(--s4);
}
.booking-cta-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jade);
  margin-bottom: var(--s2);
}
.booking-main-btn {
  font-size: 1rem;
  padding: 0.85rem 2rem;
  box-shadow: 0 0 24px rgba(0, 217, 166, 0.25);
  margin-bottom: var(--s4);
  display: inline-flex;
}
.booking-main-btn:hover { box-shadow: 0 0 48px rgba(0, 217, 166, 0.5); }

.booking-alt-links {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  flex-wrap: wrap;
}
.booking-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  transition: all var(--tr);
}
.booking-alt-link:hover { color: var(--text); border-color: var(--muted); }
.booking-alt-link.whatsapp-alt:hover { color: #25D366; border-color: rgba(37,211,102,0.5); }
.booking-alt-link.linkedin-alt:hover { color: #60a8fb; border-color: rgba(96,168,251,0.4); }

/* ── Contact OR divider ───────────────────────────────────── */
.contact-or-divider {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: var(--s4) 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-or-divider::before,
.contact-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Modal Booking CTA ────────────────────────────────────── */
.modal-book-cta {
  text-align: center;
  padding: var(--s4) var(--s4) var(--s2);
  margin-top: var(--s4);
  border-top: 1px solid var(--border);
  background: var(--jade-dim);
  border-radius: var(--radius);
}
.modal-book-cta p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--s3);
}

/* ── Insights / Case Studies ──────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
@media (min-width: 640px) {
  .insights-grid { grid-template-columns: repeat(3, 1fr); }
}

.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr), background var(--tr), transform var(--tr);
}
.insight-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--jade), transparent);
  opacity: 0;
  transition: opacity var(--tr);
}
.insight-card:hover {
  border-color: rgba(0, 217, 166, 0.25);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.insight-card:hover::after { opacity: 1; }

.insight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.insight-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jade);
  background: var(--jade-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.insight-read {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.insight-card h3 {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  flex: 1;
}
.insight-card p { font-size: 0.85rem; }

.insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--border-2);
  flex-wrap: wrap;
}
.insight-date {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--steel);
}
.insight-cta {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jade);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity var(--tr);
  white-space: nowrap;
}
.insight-cta:hover { opacity: 0.7; }
.insight-cta .fas { font-size: 0.58rem; }

/* ── GitHub Stats ─────────────────────────────────────────── */
.github-stats-wrap {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--tr);
  margin-top: var(--s2);
}
.github-stats-wrap:hover { border-color: rgba(0, 217, 166, 0.3); }
.github-stats-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Testimonial LinkedIn badge ───────────────────────────── */
.testimonial-linkedin {
  color: #0A66C2;
  font-size: 1.15rem;
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity var(--tr);
  line-height: 1;
}
.testimonial-linkedin:hover { opacity: 1; }
.testimonial-linkedin:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; border-radius: 3px; }

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding: 0.85rem 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.trust-icon { color: var(--jade); font-size: 0.72rem; }
.trust-sep {
  width: 1px; height: 14px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .trust-sep { display: none; }
  .trust-inner { gap: var(--s3); }
  .trust-item { font-size: 0.72rem; }
}

/* ── Scroll Progress Bar ──────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--jade);
  z-index: 1000;
  box-shadow: 0 0 8px rgba(0, 217, 166, 0.6);
  transition: width 80ms linear;
  pointer-events: none;
}

/* ── Back to Top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 100px;
  z-index: 200;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, color var(--tr), border-color var(--tr);
  pointer-events: none;
  cursor: pointer;
}
.back-to-top.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { color: var(--jade); border-color: var(--jade); }
.back-to-top:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
@media (max-width: 640px) {
  .back-to-top { bottom: 20px; right: 80px; }
}

/* ── Print / CV Styles ────────────────────────────────────── */
@media print {
  .site-header, .mobile-nav, .fab-booking, .back-to-top,
  .scroll-progress, .trust-bar, .pulse-line, .companies,
  .contact-map, .recaptcha-wrap, .booking-cta-block,
  .contact-or-divider, .testimonials-nav, .project-filters,
  .hero-photo, .hero-social, .section-label, .section-rule,
  .insights-grid, #testimonials { display: none !important; }

  * { animation: none !important; transition: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; line-height: 1.5; }
  .container { max-width: 100%; padding-inline: 1cm; }
  .section { padding-block: 0.6cm; border-top: 1px solid #ddd; }
  h1, h2, h3, h4 { color: #111; font-family: sans-serif; }
  h1 { font-size: 22pt; }
  h2 { font-size: 15pt; }
  h3 { font-size: 12pt; }
  p, .tl-desc, .about-bio { color: #444; }
  .hero { min-height: auto; padding-top: 0.5cm; padding-bottom: 0; background: none; }
  .hero-name { font-size: 22pt; color: #111; }
  .hero-greeting { color: #555; font-size: 9pt; }
  .hero-role { color: #007a5e; font-size: 12pt; }
  .hero-tagline { color: #555; font-size: 10pt; }
  .hero-actions .btn { display: none; }
  .stat-card, .service-card, .cert-card { border: 1px solid #ddd; background: #f9f9f9; }
  .stat-number { color: #c0392b; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .resume-grid { grid-template-columns: 1.1fr 0.9fr; }
  .tl-company { background: #eee; border: 1px solid #ccc; }
  .skill-tag { background: #f0f0f0; border: 1px solid #ccc; color: #333; }
  a { color: #007a5e; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 7pt; color: #777; word-break: break-all; }
  .btn::after, .nav-cta::after, .about-actions a::after { content: none !important; }
}

/* ============================================================
   UI FIXES v2 — June 2026
   ============================================================ */

/* 1 — Section title em: no italic, use jade accent color */
.section-title em {
  font-style: normal;
  color: var(--jade);
  font-weight: inherit;
}

/* 2 — Global font size bumps */
.testimonial-text  { font-size: 1rem; }
.stat-label        { font-size: 1rem; }
.stat-sub          { font-size: 0.78rem; }
.skill-tag         { font-size: 0.82rem; padding: 0.32rem 0.78rem; }
.cert-info h4      { font-size: 1rem; }
.tl-desc           { font-size: 0.94rem; }
.service-card p    { font-size: 0.94rem; }
.booking-cta-eyebrow { font-size: 0.85rem; }

/* 3 — Skills: on mobile show Skills column ABOVE Experience */
@media (max-width: 899px) {
  .resume-grid { display: flex; flex-direction: column; }
  .resume-grid > div:nth-child(2) { order: -1; }
}

/* 4 — Cert cards: more breathing room */
.cert-card  { padding: var(--s3) var(--s3); gap: var(--s3); }
.cert-logo  { width: 56px; height: 56px; }

/* 5 — Testimonials nav: bigger, centered, more prominent */
.testimonials-nav {
  justify-content: center;
  gap: var(--s3);
  margin-top: 2.5rem;
}
.testimonials-nav button {
  width: 52px; height: 52px;
  font-size: 1rem;
  border-width: 1.5px;
  background: var(--surface-2);
}
.testimonials-nav button:hover {
  background: var(--jade-dim);
  transform: scale(1.08);
}

/* 6 — Companies: styles in base block; animation via initCompaniesMarquee() */

/* 7 — Pulse-line: animated ECG stroke */
.pulse-path {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: ecg-draw 4s ease-in-out infinite;
}
@keyframes ecg-draw {
  0%   { stroke-dashoffset: 1500; opacity: 0; }
  8%   { opacity: 1; }
  65%  { stroke-dashoffset: 0;    opacity: 1; }
  80%  { stroke-dashoffset: 0;    opacity: 0; }
  100% { stroke-dashoffset: 1500; opacity: 0; }
}

/* 8 — Stats: gradient number, icon, progress bar, richer card */
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--jade-dim), var(--flare-dim));
  color: var(--jade);
  display: grid; place-items: center;
  font-size: 1.25rem;
  margin: 0 auto var(--s2);
  transition: transform 0.35s ease;
}
.stat-card:hover .stat-icon { transform: scale(1.12) rotate(-4deg); }

.stat-number {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  background: linear-gradient(135deg, var(--jade) 30%, var(--flare));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}

.stat-card {
  padding: 2.5rem var(--s4) var(--s4);
  background: linear-gradient(160deg, var(--surface-2) 0%, rgba(0,217,166,0.04) 100%);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,217,166,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 30px rgba(0,217,166,0.1);
}

.stat-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: var(--s3);
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--jade), var(--flare));
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-card.visible .stat-bar-fill { width: var(--fill); }

/* 9 — Contact: quick info row + full-width action buttons */
.contact-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  margin-bottom: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border-2);
}
.contact-quick-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-quick-item.avail-item { color: var(--jade); font-weight: 500; }
.contact-quick-item i { font-size: 0.85rem; }

.contact-action-btns {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.contact-action-btn {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-decoration: none;
  transition: transform var(--tr), border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.contact-action-btn:hover {
  transform: translateX(5px);
  border-color: rgba(0,217,166,0.35);
  background: rgba(0,217,166,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cab-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform var(--tr);
}
.contact-action-btn:hover .cab-icon { transform: scale(1.08); }
.wa-btn    .cab-icon { background: rgba(37,211,102,0.12); color: #25D366; }
.email-btn .cab-icon { background: var(--jade-dim);        color: var(--jade); }
.phone-btn .cab-icon { background: rgba(78,127,160,0.15); color: var(--steel); }
.cab-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cab-body strong { font-size: 0.98rem; color: var(--text);  font-weight: 600; }
.cab-body span   { font-size: 0.82rem; color: var(--muted); }
.cab-arrow { color: var(--muted); font-size: 0.85rem; transition: transform var(--tr), color var(--tr); }
.contact-action-btn:hover .cab-arrow { transform: translateX(3px); color: var(--jade); }

/* Hide old contact-info and contact-item if they remain */
.contact-info { display: none; }

/* 10 — Stat-bar fill animation trigger fix for print */
@media print {
  .stat-icon, .stat-bar { display: none; }
}
