/* =========================================================
   JP FIORENZA — EDITABLE THEME
   Change colors, fonts, and spacing here.
   ========================================================= */

:root {
  /* Brand */
  --blue: #1f6feb;
  --blue-deep: #1554c4;
  --blue-soft: #e8f0ff;
  --ink: #111827;
  --ink-2: #1f2937;
  --muted: #5b6577;
  --faint: #8b93a4;
  --line: #e6eaf1;
  --bg: #f6f7fb;
  --paper: #ffffff;
  --wash: #eef2fb;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1180px;
  --radius: 20px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo img {
    height: 60px;
    width: auto;
}
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 11px;
  border-radius: 999px;
  position: relative;
}
.nav-links a:hover,
.nav-links a.is-active { color: #359fc1; }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  background: #359fc1;
  border-radius: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s transform, .2s background, .2s border-color;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #359fc1;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31,111,235,.25);
}
.btn-primary:hover {
    background: #128cb3;
}
.btn-ghost {
  background: #fff;
  border-color: #d7deea;
  color: var(--ink);
}
#nav-toggle { display: none; }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

/* ----- Hero ----- */
.hero { padding: 42px 0 18px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
}
.kicker {
  color: #359fc1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 800;
}
.role {
  margin-top: 14px;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 700;
  color: #4b5568;
}
.lede {
    margin-top: 16px;
    max-width: 48ch;
    color: var(--muted);
    font-size: 14.5px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: #3d4a63;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.portrait-wrap { position: relative; min-height: 440px; }

.portrait-dots {
  position: absolute;
  right: 7%;
  top: 16%;
  width: 86px;
  height: 140px;
  background-image: radial-gradient(#8aa4d6 1.25px, transparent 1.35px);
  background-size: 11px 11px;
  opacity: .5;
}
.portrait {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  margin-left: auto;
  border-radius: 999px 999px 40% 46%;
  overflow: hidden;
  
}
.portrait img { width: 100%; height: auto; }
.signature {
  position: absolute;
  right: 8%;
  bottom: 12%;
  z-index: 3;
  color: #359fc1;
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  transform: rotate(-8deg);
}

/* ----- Tech ----- */
.tech { padding: 10px 0 36px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 800;
  color: #359fc1;
  text-transform: uppercase;
}
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 14px;
}
.tech-item { text-align: center; min-width: 58px; }
.tech-item span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.mark {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* ----- Sections ----- */
.section { padding: 18px 0 10px; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
h2 {
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -.03em;
    font-size: clamp ↳ clamp(20px, 44.16px, 27px) ↳ 27px (20px, 2.3vw, 27px);
    font-weight: 700;
    color: #4b5568;
    line-height: normal;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--paper);
  border: 1px solid #edf1f6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17,24,39,.04);
  transition: .25s transform, .25s box-shadow;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17,24,39,.08); }
.thumb { height: 146px; overflow: hidden; background: #dbe3ef; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .thumb img { transform: scale(1.06); }
.card-body { padding: 16px; }
.card-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 13.5px; min-height: 58px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  color: #3557a6;
  /* background: var(--blue-soft); */
    /* padding: 3px 8px; */
    /* border-radius: 915px; */
    /* border-radius: 915px; */
}
.tag {
    font-size: 11px;
    font-weight: 700;
    color: #4aa0c3;
    
}
.split {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr;
    gap: 16px;
    margin-top: 22px;
}
.values {
  background: linear-gradient(180deg, #f3f6ff, #eef2fb);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.value { padding: 22px 18px; }
.value:nth-child(odd) { border-right: 1px solid #e1e7f3; }
.value:nth-child(n+3) { border-top: 1px solid #e1e7f3; }
.icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  /* background: #fff; */
  color: #359fc1;
  border-radius: 10px;
  margin-bottom: 10px;
  font-weight: 800;
}
.value h3 { font-size: 15px; margin-bottom: 6px; }
.value p { font-size: 13px; color: var(--muted); }

.photo-cta {
  position: relative;
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.photo-cta img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.photo-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,16,32,.72), rgba(8,16,32,.16) 72%);
}
.photo-cta .copy { position: relative; z-index: 1; padding: 28px; max-width: 38ch; }
.photo-cta h3 { font-size: 28px; margin: 6px 0 8px; }
.photo-cta p { color: #d7deea; margin-bottom: 14px; }
.photo-cta .btn { background: #fff; color: var(--ink); }

/* About / Experience */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
  padding: 42px 0 12px;
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.stat b { display: block; font-size: 26px; letter-spacing: -.03em; }
.stat span {
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 700;
}
.timeline { display: grid; gap: 12px; }
.job {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.job em { font-style: normal; color: #359fc1; font-size: 13px; font-weight: 700; }
.job p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 12px;
}
.mosaic a { border-radius: 16px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic a:first-child { grid-row: 1 / span 2; }
.mosaic a:hover img { transform: scale(1.05); }

.contact {
  margin: 44px 0 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 46px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.contact h2 { font-size: 34px; }
.contact p { color: #b7c0d2; margin-top: 8px; max-width: 46ch; }
.contact .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 40px;
  color: var(--faint);
  font-size: 13px;
}
a.text-link {
    font-size: .7rem;
    color: #1790c3;
    font-weight: bold;
    text-transform: uppercase;
}
[class^=devicon-], [class*=" devicon-"] {
    
    font-size: 4rem;
}
@media (min-width:981px) {
	.tech {
    padding: 10px 0 36px;
    margin-top: -6rem;
}
	
}
@media (max-width: 980px) {
  .hero-grid, .grid-4, .split, .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  #nav-toggle:checked ~ .nav .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px;
    z-index: 60;
  }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px; }
  .mosaic a:first-child { grid-column: 1 / span 2; grid-row: auto; }
  .contact { flex-direction: column; align-items: flex-start; }
	
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .values { grid-template-columns: 1fr; }
  .value:nth-child(odd), .value:nth-child(n+3) { border: 0; border-top: 1px solid #e1e7f3; }
  .stat-row { grid-template-columns: 1fr; }
}


/* ----- Projects dropdown ----- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary:hover,
.nav-dropdown[open] summary,
.nav-dropdown.is-active summary {
  color: #359fc1;
}

.nav-dropdown.is-active summary::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: #359fc1;
  border-radius: 2px;
}

.nav-chevron {
  display: inline-block;
  margin-left: 3px;
  font-size: 12px;
  transition: transform .18s ease;
}

.nav-dropdown[open] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 285px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(31,41,55,.14);
  z-index: 100;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #e6eaf1;
  border-top: 1px solid #e6eaf1;
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 11px;
  border-radius: 9px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover {
  color: #359fc1;
  background: #f3f8fa;
}

.nav-dropdown-menu .nav-dropdown-all {
  margin-bottom: 5px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e6eaf1;
  border-radius: 9px 9px 4px 4px;
  font-weight: 750;
}


@media (max-width: 900px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    display: block;
    width: 100%;
    padding: 9px 11px;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    margin: 4px 0 2px;
    padding: 6px 0 4px 12px;
    border: 0;
    border-left: 2px solid #dce5eb;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu a {
    padding: 9px 11px;
  }

  .nav-dropdown-menu .nav-dropdown-all {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 9px;
  }
}
