/* Work page — matched to Wix centered layout */

:root {
  --site-w: 980px;
  --site-inset: 125px;
  --card-w: 730px;
  --card-h: 360px;
  --card-gap: 20px;
  /* Wix palette */
  --bg: #f9f9fb;
  --text: #303030;
  --body: #787878;
  --muted: #848484;
  --nav-inactive: #858585;
  --border: #bfbfbf;
  --surface: #efefef;
  --card-shadow: 0 1px 2px rgba(48, 48, 48, 0.16), 0 4px 14px rgba(48, 48, 48, 0.13);
  --card-shadow-hover: 0 2px 4px rgba(48, 48, 48, 0.18), 0 6px 18px rgba(48, 48, 48, 0.15);
  /* Typography & spacing — tuned values */
  --hero-name-size: 78px;
  --hero-name-weight: 500;
  --hero-location-size: 20px;
  --hero-location-weight: 400;
  --hero-line-size: 18px;
  --hero-line-weight: 400;
  --hero-gradient-start: #f26453;
  --hero-gradient-mid: #ba6e89;
  --hero-gradient-end: #797eba;
  --space-hero-top: 80px;
  --space-name-location: 36px;
  --space-location-subtitle: 24px;
  --space-subtitle-lines: 4px;
  --space-hero-cards: 60px;
  --nav-size: 18px;
  --nav-weight: 400;
  --nav-weight-active: 400;
  --card-title-size: 40px;
  --card-title-weight: 400;
  --card-desc-size: 18px;
  --card-desc-weight: 300;
  --tag-size: 14px;
  --tag-weight: 300;
  --contact-title-size: 36px;
  --space-cards-contact: 80px;
  --space-contact-footer: 80px;
  --space-footer-top: 40px;
  --footer-size: 14px;
  --icon-size: 20px;
  --icon-opacity: 0.85;
  --footer-linkedin-color: #949494;
  --footer-linkedin-opacity: 0.85;
  /* Contact section */
  --contact-title-btn-gap: 18px;
  /* Contact button */
  --contact-btn-icon-size: 32px;
  --contact-btn-icon-gap: 12px;
  --contact-btn-pad-left: 6px;
  --contact-btn-pad-right: 20px;
  --contact-btn-shadow-y-1: 0px;
  --contact-btn-shadow-blur-1: 2px;
  --contact-btn-shadow-spread-1: -2px;
  --contact-btn-shadow-opacity-1: 0.16;
  --contact-btn-shadow-y-2: 4px;
  --contact-btn-shadow-blur-2: 12px;
  --contact-btn-shadow-spread-2: 0px;
  --contact-btn-shadow-opacity-2: 0.13;
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.4em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site {
  width: var(--site-w);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--site-inset) 40px;
}

/* ── Header ── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 0;
  min-height: 62px;
  background: transparent;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    background-color 0.45s ease;
}

.header.header--solid {
  background: var(--bg);
}

.header.header--fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-wrap {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 1px 3px rgba(48, 48, 48, 0.14),
    0 3px 10px rgba(48, 48, 48, 0.12);
}

.header__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__nav a {
  padding: 0 10px;
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  line-height: 1.4em;
  color: var(--nav-inactive);
  transition: color 0.4s ease;
}

.header__nav a:first-child {
  padding-left: 0;
}

.header__nav a:last-child {
  padding-right: 0;
}

.header__nav a[aria-current="page"] {
  color: var(--text);
  font-weight: var(--nav-weight-active);
}

.header__nav a:hover {
  color: var(--text);
}

/* ── Hero (all centered) ── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-hero-top) 0 var(--space-hero-cards);
}

.hero__name {
  display: inline-block;
  margin: 0 0 var(--space-name-location);
  padding: 0 0 0.12em;
  font-size: var(--hero-name-size);
  font-weight: var(--hero-name-weight);
  line-height: 1.25;
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    var(--hero-gradient-start) 0%,
    var(--hero-gradient-mid) 50%,
    var(--hero-gradient-end) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  overflow: visible;
}

.hero__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 var(--space-location-subtitle);
  font-size: var(--hero-location-size);
  font-weight: var(--hero-location-weight);
  line-height: 1.4em;
  color: var(--body);
}

.hero__location img {
  width: 22px;
  height: 22px;
}

.hero__line {
  display: block;
  width: 100%;
  margin: 0;
  font-size: var(--hero-line-size);
  font-weight: var(--hero-line-weight);
  line-height: 1.4em;
  color: var(--muted);
}

.hero__line + .hero__line {
  margin-top: var(--space-subtitle-lines);
}

/* ── Cards: bg image + real HTML text on the left ── */

.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--card-gap);
  width: 100%;
}

.card {
  position: relative;
  display: block;
  width: var(--card-w);
  max-width: 100%;
  height: var(--card-h);
  border-radius: 20px;
  background: transparent;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

.card__clip {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}

/* Background image — zooms on hover */
.card__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  will-change: transform;
}

.card:hover .card__bg img {
  transform: scale(1.04);
}

/* Text layer — tags top-left, title/desc vertically centered in left half */
.card__text {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 50%;
  pointer-events: none;
}

.card__tags {
  position: absolute;
  top: 36px;
  left: 40px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  max-width: calc(100% - 40px);
}

.card__main {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 48px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border: 0.5px solid var(--border);
  border-radius: 5px;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: var(--tag-size);
  font-weight: var(--tag-weight);
  line-height: 1.4em;
  color: var(--muted);
  white-space: nowrap;
}

.card__title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: var(--card-title-size);
  font-weight: var(--card-title-weight);
  line-height: 1.4em;
  color: var(--text);
}

.card__desc {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: var(--card-desc-size);
  font-weight: var(--card-desc-weight);
  line-height: 1.4em;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Contact (centered) ── */

.contact {
  text-align: center;
  padding: var(--space-cards-contact) 0 var(--space-contact-footer);
}

.contact__title {
  margin: 0 0 var(--contact-title-btn-gap);
  font-size: var(--contact-title-size);
  font-weight: 400;
  line-height: 1.4em;
  color: var(--text);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--contact-btn-icon-gap);
  min-height: 43px;
  padding: 4px var(--contact-btn-pad-right) 4px var(--contact-btn-pad-left);
  border: 0;
  border-radius: 70px;
  background: #ffffff;
  box-shadow:
    0 var(--contact-btn-shadow-y-1) var(--contact-btn-shadow-blur-1) var(--contact-btn-shadow-spread-1)
      rgba(48, 48, 48, var(--contact-btn-shadow-opacity-1)),
    0 var(--contact-btn-shadow-y-2) var(--contact-btn-shadow-blur-2) var(--contact-btn-shadow-spread-2)
      rgba(48, 48, 48, var(--contact-btn-shadow-opacity-2));
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #303030;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
  background: #f9f9fb;
  box-shadow:
    0 var(--contact-btn-shadow-y-1) var(--contact-btn-shadow-blur-1) var(--contact-btn-shadow-spread-1)
      rgba(48, 48, 48, calc(var(--contact-btn-shadow-opacity-1) + 0.02)),
    0 calc(var(--contact-btn-shadow-y-2) + 1px) calc(var(--contact-btn-shadow-blur-2) + 2px)
      var(--contact-btn-shadow-spread-2)
      rgba(48, 48, 48, calc(var(--contact-btn-shadow-opacity-2) + 0.02));
}

.contact-btn__icon {
  width: var(--contact-btn-icon-size);
  height: var(--contact-btn-icon-size);
  flex-shrink: 0;
  display: block;
}

.contact-btn__label {
  white-space: nowrap;
}

/* ── Footer ── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-footer-top);
}

.footer__copy {
  margin: 0;
  font-size: var(--footer-size);
  font-weight: 400;
  line-height: 1.4em;
  color: var(--muted);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__social a {
  opacity: var(--icon-opacity);
  transition: opacity 0.2s ease;
}

.footer__social a[aria-label="LinkedIn"] {
  opacity: var(--footer-linkedin-opacity);
}

.footer__social-icon {
  display: block;
  width: var(--icon-size);
  height: var(--icon-size);
}

.footer__social-icon--linkedin {
  color: var(--footer-linkedin-color);
}

.footer__social img {
  width: var(--icon-size);
  height: var(--icon-size);
}

.footer__social a:hover {
  opacity: 0.85;
}

/* ── Responsive (mobile) ── */

@media (max-width: 780px) {
  .site {
    padding-left: calc(var(--site-inset) * 0.5);
    padding-right: calc(var(--site-inset) * 0.5);
  }

  .hero__name {
    font-size: clamp(36px, 10vw, 78px);
    white-space: nowrap;
  }

  .hero__line {
    font-size: clamp(14px, 3.8vw, 18px);
    white-space: nowrap;
  }

  .card {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 730 / 360;
  }

  .card__text {
    width: 52%;
  }

  .card__tags,
  .card__desc {
    display: none;
  }

  .card__main {
    left: 32px;
    right: auto;
    width: calc(100% - 40px);
    padding: 0;
    text-align: left;
  }

  .card__title {
    font-size: clamp(18px, 5vw, 28px);
    white-space: nowrap;
  }

  .contact__title {
    font-size: clamp(18px, 4.8vw, 28px);
    white-space: nowrap;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    isolation: isolate;
  }

  .header.header--solid {
    background: transparent;
    padding-bottom: 12px;
  }

  .header.header--solid::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(-1 * env(safe-area-inset-top, 0px));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: var(--bg);
  }

  .hero {
    padding-top: var(--space-hero-top);
    padding-bottom: var(--space-hero-cards);
  }

  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
