/* Basic responsive styling for the NZGL portfolio homepage */

:root {
  --text: #0b0b0b;
  --muted: #555;
  --line: rgba(0, 0, 0, 0.25);
  --bg: #ffffff;
  --preview-max-w: 360px;
  --preview-max-h: 240px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 24px 56px 10px;
}

.topbar__nav {
  display: flex;
  justify-content: center;
  gap: 64px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.topbar__link {
  color: var(--text);
  text-decoration: none;
}

.topbar__link:hover {
  text-decoration: underline;
}

.layout {
  padding: 20px 56px 40px;
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 48px;
  flex: 1;
}

.hero {
  display: flex;
  align-items: flex-start;
  min-height: 120px;
}

.hero__title {
  margin: 0;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 500;
}

.projects {
  margin-top: 0;
}

.projects__list {
  width: 100%;
  max-width: 980px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1.8fr 90px;
  align-items: baseline;
  padding: 16px 0;
  gap: 20px;
  border-top: 1px dotted var(--line);
  text-decoration: none;
  color: inherit;
  outline: none;
}

.project-row:last-child {
  border-bottom: 1px dotted var(--line);
}

.project-row:hover {
  cursor: pointer;
}

.project-row:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.project-name {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-category {
  font-size: 13px;
  color: var(--muted);
}

.project-code {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: var(--preview-max-w);
  max-width: var(--preview-max-w);
  max-height: var(--preview-max-h);
  transform: translateY(-50%);
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: none;
  pointer-events: none;
}

.preview__img {
  width: 100%;
  max-height: var(--preview-max-h);
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.footer {
  padding: 30px 56px 40px;
  width: 100%;
  margin-top: auto;
}

.footer__top {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer__copy {
  flex: 1;
  max-width: 640px;
  font-size: 11px;
  line-height: 1.55;
}

.footer__copyright {
  margin-top: 10px;
  color: var(--muted);
}

.footer__connections {
  width: 280px;
  text-align: right;
}

.footer__connectionsTitle {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer__links {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__sep {
  margin: 0 10px;
  color: var(--muted);
}

.footer__bottom {
  max-width: 980px;
  margin: 18px auto 0;
}

.footer__structure {
  font-size: 11px;
  color: var(--muted);
}

.footer__structure a {
  color: var(--muted);
  text-decoration: none;
}

.footer__structure a:hover {
  text-decoration: underline;
}

.projectDetail {
  max-width: 980px;
  margin: 0 auto;
  grid-column: 1 / -1;
}

.projectDetail__head {
  display: block;
  margin-bottom: 18px;
}

.projectDetail__code {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.projectDetail__title {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 500;
}

.projectDetail__category {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.projectDetail__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.projectDetail__previewWrap {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.projectDetail__preview {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.projectDetail__explain h2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.projectDetail__textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.projectDetail__button {
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.projectDetail__button:hover {
  background: rgba(0, 0, 0, 0.03);
}

.projectDetail__status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Profile page */
.profileHeader {
  padding: 24px 56px 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}

.profileHeader__logo {
  justify-self: start;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}

.profileHeader__logo:visited {
  color: var(--text);
}

.profileHeader__logo:hover {
  text-decoration: none;
}

.profileHeader__logo:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 4px;
  border-radius: 4px;
}

.profileHeader__reg {
  font-size: 12px;
  vertical-align: top;
  margin-left: 2px;
}

.profileHeader__center {
  justify-self: center;
}

.profileHeader__right {
  justify-self: end;
}

.profileHeader__link {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.profileHeader__link:hover {
  text-decoration: underline;
}

.profileMain {
  padding: 28px 56px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.55fr;
  gap: 64px;
}

.profileTitle {
  margin: 0;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 500;
}

.profileLeft__mid {
  margin-top: 110px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profileBlock__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.profileBlock__spacer {
  height: 0;
}

.profileTrustedLogos {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
}

.profileTrustedLogo {
  width: 86px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.85);
}

.profileTrustedLogo--dark {
  background: rgba(0, 0, 0, 0.08);
}

.profileRight {
  min-width: 0;
}

.profileHeroRow {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 38px;
  align-items: start;
}

.profilePortrait {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

.profileCopy__text {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  max-width: 420px;
}

.profileCopy__hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.profileServicesThumbs {
  display: flex;
  gap: 34px;
  margin-top: 46px;
}

.profileThumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.profileThumb__img {
  width: 90px;
  height: 56px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.profileThumb__img--video {
  background: rgba(0, 0, 0, 0.18);
}

.profileThumb__img--photo {
  background: rgba(0, 0, 0, 0.14);
}

.profileThumb__img--web {
  background: rgba(0, 0, 0, 0.1);
}

.profileThumb__label {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.profileSoftware {
  margin-top: 50px;
}

.profileSoftware__heading {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.profileSoftRow {
  border-top: 1px dotted var(--line);
  padding: 16px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  align-items: center;
}

.profileSoftRow__cell {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .layout {
    padding-left: 18px;
    padding-right: 18px;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero__title {
    font-size: 34px;
  }
  .project-row {
    grid-template-columns: 1fr 1.2fr 76px;
    gap: 10px;
  }
  .preview {
    width: 280px;
    transform: translateY(-50%);
  }
  .projectDetail__title {
    font-size: 34px;
  }
  .projectDetail__body {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer__top {
    flex-direction: column;
    gap: 18px;
  }

  .footer__connections {
    width: 100%;
    text-align: left;
  }

  .footer__links {
    white-space: normal;
  }

  .profileHeader {
    padding-left: 18px;
    padding-right: 18px;
  }

  .profileMain {
    padding-left: 18px;
    padding-right: 18px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profileLeft__mid {
    margin-top: 28px;
  }

  .profileTitle {
    font-size: 34px;
  }

  .profileHeroRow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profileServicesThumbs {
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
  }

  .profileThumb {
    align-items: flex-start;
  }

  .profileSoftware {
    margin-top: 22px;
  }

  .profileSoftRow {
    grid-template-columns: 1fr;
  }

  .profileSoftRow__cell {
    white-space: normal;
  }
}

