/* =====================================================
   Joe Mort — Visual CV — NEXT-GEN RESPONSIVE EDITION
   • No media queries
   • Auto-fluid layout (320px–4K)
   • Stronger intro + systems section
   • Luxury bullets + icon highlights
===================================================== */

:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --soft: #f0f5fa;
  --border: #e3e7ee;
  --text: #1c1c1c;
  --muted: #616b79;
  --blue: #0a66ff;
  --accent: #00b4d8;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(0,0,0,.08);

  /* Intro + Systems pop */
  --highlight: linear-gradient(135deg,#0a66ff,#00b4d8);
  --bullet-dot: radial-gradient(circle,#0a66ff 0%,#00b4d8 70%);
}

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

html, body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg,#f7f9ff,#e8f0ff 40%,#f6f8fb 100%);
  background-size: 300% 300%;
  animation: hueShift 20s ease-in-out infinite;
  line-height: 1.65;
  padding: clamp(20px,4vw,68px);
  min-height: 100vh;
}
@keyframes hueShift { 
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }

/* ------------ TOP CONTROLS ------------ */
.top-controls {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 9999;
  max-width: 100%;
}
.top-controls a,
.top-controls button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: clamp(.75rem,.9vw,.9rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  transition: transform .2s, background .25s;
}
.top-controls a:hover,
.top-controls button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ------------ PANELS ------------ */
.intro,
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px,2vw,38px);
  margin-bottom: clamp(32px,3vw,44px);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.intro:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10,102,255,.16);
}

/* ------------ INTRO (FULL REDESIGN) ------------ */
.intro {
  display: grid;
  grid-template-columns: minmax(120px,170px) 1fr;
  gap: clamp(20px,3vw,34px);
  align-items: center;
}

.intro-img {
  width: clamp(120px,18vw,170px);
  height: clamp(120px,18vw,170px);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  border: 3px solid transparent;
  background-image: var(--highlight);
  background-origin: border-box;
  padding: 3px;
}

.intro-info h1 {
  font-size: clamp(1.8rem,4vw,2.8rem);
  background: var(--highlight);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.role {
  font-size: clamp(1rem,1.4vw,1.2rem);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.intro-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px,1.6vw,22px);
  margin-top: 18px;
}
.intro-metrics li {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(10px,1.2vw,16px) clamp(18px,2vw,30px);
  min-width: clamp(90px,16vw,140px);
  text-align: center;
  font-weight: 700;
  transition: transform .25s, background .25s;
}
.intro-metrics li:hover {
  transform: translateY(-3px);
  background: #eaf3ff;
}

/* ------------ MAIN GRID (fluid) ------------ */
.grid {
  display: grid;
  grid-template-columns: minmax(260px,380px) 1fr;
  gap: clamp(30px,4vw,60px);
  align-items: start;
  width: 100%;
}

/* ------------ HEADERS ------------ */
.card h2 {
  font-size: clamp(1.1rem,1.6vw,1.35rem);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  background: linear-gradient(90deg,#0a66ff11,#00b4d811);
  padding: 10px 14px;
  border-radius: 12px;
  border-left: 4px solid var(--blue);
}

/* ------------ BULLETS (premium) ------------ */
.bullets {
  list-style: none;
  display: grid;
  gap: 14px;
  padding-left: 6px;
}

.bullets li {
  position: relative;
  padding-left: 32px;
  font-size: clamp(.9rem,1.1vw,1rem);
  line-height: 1.55;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bullet-dot);
  box-shadow: 0 0 8px rgba(10,102,255,.4);
}

/* ------------ SYSTEMS ENGINEERING CARD BOOST ------------ */
.card.systems {
  border-left: 6px solid var(--blue);
  background: linear-gradient(135deg,#ffffff,#f5f9ff);
  box-shadow: 0 14px 38px rgba(0,0,0,.08);
}
.card.systems h2 i {
  color: var(--accent);
}
.card.systems .bullets li strong {
  color: var(--blue);
}

/* ------------ PROJECTS ------------ */
.project {
  display: grid;
  grid-template-columns: minmax(180px,280px) 1fr;
  gap: clamp(20px,2vw,34px);
  padding-bottom: 32px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--border);
}
.project img {
  height: clamp(160px,22vw,210px);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: transform .25s;
}
.project img:hover {
  transform: scale(1.04);
}

/* ------------ OVERVIEW ------------ */
.overview-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}
.overview-box {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px,1.3vw,28px);
}

/* ------------ TIMELINE ------------ */
.timeline {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
}
.timeline:last-child {
  border-bottom: 0;
}

/* ------------ CHIPS ------------ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips span {
  padding: 8px 16px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
}

/* ------------ SCROLL BAR ------------ */
#scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg,#0a66ff,#00b4d8,#00ffd0);
  z-index: 9999;
  transition: width .15s;
  box-shadow: 0 0 14px rgba(10,102,255,.7);
}

/* 🔥 ABSOLUTE FIX — FULL RESET FOR DEVIOUS PROJECT */
.project.devious {
  all: unset;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: clamp(24px, 3vw, 48px);
  width: 100% !important;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 38px;
  box-sizing: border-box;
}
.project.devious .devious-img {
  flex: 0 0 clamp(220px, 25vw, 300px);
}
.project.devious .devious-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* BOXED LINK GRID — CLEAN, COMPACT, PREMIUM */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: 20px;
}

.link-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;

  padding: 16px 18px;
  box-shadow: 0 8px 16px rgba(0,0,0,.05);

  transition: background .25s, transform .2s, box-shadow .25s;
  text-decoration: none;
  color: var(--text);
}

.link-grid a:hover {
  background: #eaf3ff;
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
}

.link-grid a i:first-child {
  font-size: 1.2rem;
  color: var(--blue);
  flex-shrink: 0;
}
.link-grid a i:last-child {
  font-size: 1rem;
  color: var(--muted);
  opacity: .7;
  flex-shrink: 0;
}

.link-grid a div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.link-grid strong {
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
link-grid span {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* INTRO — CONTACT LIST, ROLE TAGS */
.role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  color: var(--muted);
}
.role i {
  color: var(--blue);
  font-size: 1rem;
}

.contact-list {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--muted);
}
.contact-list i {
  color: var(--accent);
  font-size: .95rem;
}

.summary {
  font-size: clamp(.92rem, 1.1vw, 1rem);
  color: var(--text);
  margin: 14px 0 18px;
  line-height: 1.6;
}

.intro-metrics li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;

  padding: clamp(12px,1.3vw,18px) clamp(16px,1.6vw,24px);
  min-width: clamp(100px,18vw,150px);

  text-align: center;
  font-weight: 700;

  transition: transform .25s, background .25s;
}

.intro-metrics li i {
  font-size: 1.3rem;
  color: var(--blue);
  margin-bottom: 8px;
}
.intro-metrics li strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 2px;
}
.intro-metrics li span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.pdf-banner {
  display: none;
}

