/* =====================================================
   BALZHIMA PORTFOLIO — style.css
   ===================================================== */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg-light:    #ffffff;
  --bg-dark:     #151515;
  --text:        #222222;
  --muted:       #939393;
  --text-body:   #2f2f2f;
  --font-nav:    'Codystar', sans-serif;
  --font-body:   'Inter', sans-serif;
  --pad:         20px;
  --gap:         20px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  background: var(--bg-light);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  cursor: none;
  width: auto;
}

button, a, input, textarea, select {
  cursor: none;
}

@media (hover: none) {
  #harmonic-cursor-root {
    display: none;
  }
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }

.link-list a:hover,
.skills-list a:hover,
.freelance-list a:hover,
.exp-org:hover {
  color: #939393;
  opacity: 1;
}
img { display: block; max-width: 100%; }

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  box-shadow: none;
}

main {
  padding-top: 20px;
}

.nav-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 1);
}

.nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.nav-item {
  position: relative;
  z-index: 2;
  font-family: var(--font-nav);
  font-size: 20px;
  letter-spacing: 0em;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: none;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s;
}

/* ── 5-COLUMN GRID ───────────────────────────────────── */
.grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
  padding: var(--pad);
  align-items: center;
  min-height: calc(100vh - 80px);
  align-content: center;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* ── SECTION LABELS ──────────────────────────────────── */
.label {
  font-family: var(--font-nav);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0em;
  color: #222222;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.block {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 280px;
}

/* ── BODY TEXT ───────────────────────────────────────── */
.body-text {
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: 0em;
  line-height: 1.3;
  font-weight: 400;
  color: #939393;
  text-shadow: 0 1px 2px rgba(217, 217, 217, 0.08);
}

/* ── LINK LIST ───────────────────────────────────────── */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.link-list a {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: #939393;
  text-shadow: 0 1px 2px rgba(217, 217, 217, 0.08);
}

.link-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── SPOTIFY WIDGET ──────────────────────────────────── */
.spotify-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  width: fit-content;
  border: none;
  cursor: none;
  font-family: var(--font-body);
  transition: background 0.15s;
  max-width: 100%;
  text-align: left;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
}
.spotify-widget:hover { background: #e3e3e3; }

.sw-art {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.12);
}
.sw-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sw-label {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.sw-row {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.sw-title, .sw-artist {
  font-size: 12px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.sw-dot { font-size: 12px; color: #aaa; }
.sw-time { font-size: 10px; color: #aaa; flex-shrink: 0; }

/* ── PROFICIENCY ─────────────────────────────────────── */
.prof-group { margin-bottom: 16px; }
.prof-group:last-child { margin-bottom: 0; }
.prof-cat {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0em;
  color: var(--muted);
  margin-bottom: 4px;
}
.prof-items li {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #939393;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ── PORTRAIT ────────────────────────────────────────── */
.portrait-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 280px;
}
.portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.portrait-caption {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0em;
}

/* ── FREELANCE LIST ───────────────────────────────────── */
.freelance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.freelance-list li {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(217, 217, 217, 0.08);
}
.freelance-list a {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(217, 217, 217, 0.08);
}
.freelance-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── SKILLS LIST ─────────────────────────────────────── */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skills-list li,
.skills-list a,
.skills-list a:hover {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(217, 217, 217, 0.08);
}

.skills-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── EXPERIENCE ──────────────────────────────────────── */
.exp-list { display: flex; flex-direction: column; gap: 14px; }
.exp-item { display: flex; flex-direction: column; gap: 2px; }
.exp-year { font-size: 12px; color: var(--muted); letter-spacing: 0em; }
.exp-detail { display: flex; flex-direction: column; gap: 1px; }
.exp-org {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(217, 217, 217, 0.08);
}
.exp-org:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.exp-role { font-family: var(--font-body); font-size: 20px; color: var(--muted); font-weight: 400; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  padding: 10px;
  padding-top: 120px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0em;
  position: relative;
}

/* ── WORKS PAGE ──────────────────────────────────────── */
.works-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 100px;
  width: 100% !important;
}

.work-card {
  padding-right: 20px;
  padding-left: 20px;
  display: block;
  width: 100% !important;
}

.work-card.under-construction,
.work-card.under-construction * {
  cursor: not-allowed !important;
}

.swiper-wrapper {
  box-sizing: initial;
  display: flex;
  height: 100%;
  position: relative;
  transition-property: transform;
  width: 100%;
  z-index: 1;
  gap: 5px;
  overflow: auto !important;
  scrollbar-width: none;
  border: 0px;
  height: 40vh;
}

.wc-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: visible;
}

.wc-meta {
  display: flex;
  flex-direction: row;
  padding-top: 10px;
  place-content: center space-between;
  align-content: center;
  gap: 20px;
  width: 100% !important;
}
.wc-title { 
  display: flex;
  grid-column: span 1;
  font-size: 20px; 
  font-weight: 400; 
  font-family: var(--font-nav);
}

.wc-description {
  grid-column: span 4;
  font-size: 16px;
  color: var(--muted);
}

.wc-info {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  width: 100% !important;
}

.wc-tags {     
  place-content: center;
  align-items: center;
  width: fit-content;
  height: min-content;
  padding: 3px 10px;
  background-color: rgb(247, 247, 247);
  border-radius: 30px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  
}

.wc-tags-uc {
  place-content: center;
  align-items: center;
  width: fit-content;
  height: min-content;
  padding: 3px 5px;
  background-color: rgb(247, 209, 23);
  border: 0.5px solid var(--text);
  box-shadow: 0 0 0 3px rgb(247, 209, 23);
  border-radius: 30px;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
}

.tag-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  height: min-content;
  flex-flow: row;
  width: min-content;
}

.footer.works {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 20px;
  padding-top: 120px;
  justify-content: center;
  place-content: center space-between;
}

.footer.works .footer-right {
  display: flex;
  gap: 20px;
}

/* ── ARCHIVE PAGE ────────────────────────────────────── */
body.archive {
  background: var(--bg-dark);
}

.nav-track.archive {
  background: rgb(55, 55, 55);
}

.nav-pill.archive {
  background: rgb(93, 93, 93);
}

a.nav-item.archive {
  color: rgb(255, 255, 255);
}

.archive-main {
  flex: 1;
  padding: var(--pad);
  padding-top: 100px;
}


.archive-grid {
  width: 100%;
  counter-reset: grid;
  columns: 4;
  column-gap: calc(100vw / 20 + 30px);
  grid-row-gap: 16px;
  height: auto;
}

/*.archive-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, minmax(50px, 1fr));
  gap: 40px 10px;
  justify-content: center;
  grid-auto-rows: minmax(0, 1fr);
}
*/

.archive-item {
  display: flex;
  flex-direction: column;
  place-self: start;
  margin-bottom: 120px;
  width: 100%;
}

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

.archive-item video {
  display: block;
  width: 100%;
  height: auto;
  cursor: none !important;
}

/*.archive-img:hover {
  filter: brightness(0.8);
  transition: filter 0.15s;
}*/

.archive-title {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 5px;
  height: fit-content;
  order: 1;
}

.footer.archive {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 20px;
  padding-top: 120px;
  justify-content: center;
  place-content: center space-between;
}

.footer.archive .footer-right {
  display: flex;
  gap: 20px;
}

/* ── CLARA CASE PAGE ─────────────────────────────────── */
.case {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  gap: 60px;
  width: 100%;
}

.case-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 600px;
  padding: 0 20px;
}

.case-client {
  font-family: var(--font-nav);
  font-size: 60px;
  color: var(--text);
  text-transform: uppercase;
}

.title-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  text-align: center;
}

.case-title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-body);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.case-image-full {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
}

.case-image-two {
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.case-image-full,
.case-image-two,
.case-section {
  margin: 0 auto;
}

.case-section {
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
}

.case-text-block {
  max-width: 560px;
  margin: 0 auto;
}

.case-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

.case-label-inline {
  font-weight: 500;
  color: var(--text);
}


/* ── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 1199px) {

  .archive-grid {
    columns: 3;
    grid-row-gap: 16px;
  }


  .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
    padding: 20px !important;
    align-items: start;
    justify-items: stretch;
    max-width: 100% !important;
    margin: 0 auto;
  }
  .exp-item,
  .prof-group{
flex-direction: row;
display: flex;
  }

  .freelance-list,
  .skills-list,
  .link-list{
    padding-left: 10vw;
  }
  .exp-year,
  .prof-cat
{
    width: 10vw;
    text-align: right;
    padding-right: 10px;
  }

  .col {
    align-items: flex-start;
    width: 100% !important;
  }

  .col-center {
    grid-column: span 2;
    justify-self: stretch;
  }

  .block {
    width: 100% !important;
    max-width: 100% !important;
  }

  .label {
    text-align: left;
    padding-left: 10vw;
    margin-bottom: 10px;
  }

  .body-text,
  .link-list a,
  .prof-items li,
  .skills-list li,
  .freelance-list li,
  .exp-org {
    font-size: 18px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .portrait-wrap {
    margin: 0 auto;
  }

  /* Tablet font sizes */
  .body-text {
    font-size: 18px;
  }
}

@media (max-width: 809px) {

  /* ── CLARA RESPONSIVE ───────────────────────────── */
  .case-title {
    font-size: 18px;
  }

  .case-image-two {
    grid-template-columns: 1fr;
  }

  .case-text-block {
    max-width: 100%;
  }


  /* ── ARCHIVE PAGE - RESPONSIVE ──────────────────────────────────────── */

  .archive-grid {
    columns: 2;
    grid-row-gap: 16px;
  }

  .archive-item {
  display: flex;
  flex-direction: column;
  place-self: start;
  margin-bottom: 60px;
}

  /* ── WORKS PAGE - RESPONSIVE ──────────────────────────────────────── */

  .works-main {
  grid-template-columns: 1fr !important;
  flex: 1;
  display: grid;
  gap: 60px;
  width: 100% !important;
}

  .work-card {
  padding-right: 20px;
  padding-left: 20px;
  width: 100% !important;
}

  .wc-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

  .wc-info {
  display:  flex;
  flex-direction: column;
  gap: 5px;
  order: 1;
}

.tag-stack {
  order: 0;
}

/* ── MAIN - RESPONSIVE ──────────────────────────────────────── */

   .grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
    padding: 16px !important;
    align-items: start;
    width: 100% !important;
    max-width: 100% !important;
  }

  .link-list,
  .skills-list,
  .freelance-list,
  .label {
padding-left: 25vw;
  }

  .exp-item{
flex-direction: row;
  }

  .prof-group {
    display: flex;
    flex-direction: row;
  }

  .prof-cat,
  .exp-year {
    width: 25vw;
    text-align: right;
    padding-right: 10px;
  }

  .nav {
    position: fixed;
    top: 10px;
  }

  .col-center {
    order: -1;
    grid-column: span 1;
  }

  .portrait-wrap {
    max-width: 100% !important;
  }

  .col {
    align-items: flex-start;
    width: 100% !important;
  }

  .block {
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
  }

  .label {
    text-align: left;
    font-size: 22px;
    margin-bottom: 10px;
  }

  .portrait-wrap {
    margin: 0 auto;
  }

  .body-text,
  .link-list a,
  .prof-items li,
  .skills-list li,
  .freelance-list a,
  .exp-org,
  .exp-role{
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }

  .skills-list,
  .freelance-list {
    width: 100%;
    text-align: center;
  }

  .exp-item {
    width: 100%;
  }

  .work-card:nth-child(odd) {
    border-right: none;
  }

  .footer {
    text-align: center;
    width: 100%;
  }

  .spotify-widget {
    position: fixed;
    bottom: 40px;
  }
}

