/* =========================================================
   V7 — new portrait, personal facts, hobbies and footer trim
   ========================================================= */

/* Header is now a generic portfolio title; keep it on one line. */
.brand {
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Resume header facts
   --------------------------------------------------------- */
.resume-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 0;
  text-align: right;
}

.resume-facts {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5d5e63;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.resume-facts i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9a9da1;
}

.resume-role {
  color: #5f6065;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .resume-meta {
    align-items: flex-start;
    text-align: left;
  }

  .resume-facts {
    font-size: 11px;
  }
}

/* ---------------------------------------------------------
   Three-part segmented profile control
   --------------------------------------------------------- */
.resume-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resume-tab-glider {
  width: calc((100% - 8px) / 3);
}

.resume-tab {
  padding-left: 3px;
  padding-right: 3px;
  font-size: 11.5px;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------
   Personal hobbies: four image slots, no stock photos
   --------------------------------------------------------- */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hobby-card {
  min-width: 0;
  padding: 7px;
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 249, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 20px rgba(25, 49, 46, 0.045);
}

.hobby-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hobby-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(255, 255, 255, 0.8), transparent 45%),
    linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.35));
}

.hobby-photo--fitness {
  background:
    radial-gradient(circle at 25% 20%, rgba(178, 214, 195, 0.72), transparent 55%),
    linear-gradient(140deg, #f1f8f4, #e5f0eb);
}

.hobby-photo--cycling {
  background:
    radial-gradient(circle at 78% 16%, rgba(177, 205, 226, 0.7), transparent 55%),
    linear-gradient(140deg, #f2f7fb, #e6eff6);
}

.hobby-photo--cars {
  background:
    radial-gradient(circle at 25% 16%, rgba(205, 213, 219, 0.75), transparent 55%),
    linear-gradient(140deg, #f7f8f9, #ebeff1);
}

.hobby-photo--tech {
  background:
    radial-gradient(circle at 76% 16%, rgba(192, 222, 213, 0.7), transparent 55%),
    linear-gradient(140deg, #f1f9f6, #e6f1ee);
}

.hobby-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #3f5f58;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 4px 12px rgba(35, 69, 61, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hobby-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hobby-slot {
  position: absolute;
  left: 10px;
  bottom: 9px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(47, 60, 57, 0.66);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hobby-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 3px;
}

.hobby-caption strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hobby-caption span {
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--serif-en);
  font-size: 9px;
  font-style: italic;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 1080px) {
  .hobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .hobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .hobby-card {
    padding: 6px;
    border-radius: 19px;
  }

  .hobby-photo {
    border-radius: 14px;
  }

  .hobby-icon {
    width: 38px;
    height: 38px;
  }

  .hobby-icon svg {
    width: 19px;
    height: 19px;
  }

  .hobby-caption strong {
    font-size: 13px;
  }

  .hobby-caption span {
    font-size: 8px;
  }
}

@media (max-width: 430px) {
  .resume-tab {
    font-size: 10.5px;
  }

  .hobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hobby-caption {
    padding-top: 7px;
  }

  .hobby-caption strong {
    font-size: 12.5px;
  }

  .hobby-caption span {
    display: none;
  }

  .hobby-slot {
    left: 8px;
    bottom: 7px;
    font-size: 6.5px;
  }
}

/* ---------------------------------------------------------
   Footer: no bottom Contact CTA, no personal names
   --------------------------------------------------------- */
.footer-main {
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav {
  order: 0;
  width: auto;
  margin-left: 0;
  padding-top: 0;
  border-top: 0;
}

.back-top {
  margin-left: auto;
}

.footer-bottom {
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .footer-main {
    gap: 15px;
  }

  .footer-nav {
    order: 0;
    width: auto;
    margin-left: 0;
    padding-top: 0;
    border-top: 0;
    gap: 17px;
  }

  .back-top {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 12px;
  }

  .nav-link,
  .nav-trigger {
    padding-left: 3px;
    padding-right: 3px;
    font-size: 9px;
  }

  .nav-cta {
    font-size: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Keep the email on one line on the narrowest phones. */
@media (max-width: 380px) {
  .contact-line {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 9px;
    padding: 14px 13px;
  }

  .contact-value,
  .phone-link {
    font-size: 12px;
    letter-spacing: -0.01em;
  }

  .contact-value i {
    font-size: 12px;
  }

  .contact-label {
    font-size: 8px;
  }

  .phone-reveal {
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .contact-line {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px;
  }

  .contact-value {
    justify-content: flex-start;
  }
}
