@charset "UTF-8";

/* -------------------- FONTS -------------------- */
@font-face {
  font-family: 'NoirEtBlank';
  src: url('Assets/Fonts/noiretblanc_med_bold_italic-webfont.woff2') format('woff2'),
       url('Assets/Fonts/noiretblanc_med_bold_italic-webfont.woff') format('woff');
  font-style: normal;
}
@font-face {
  font-family: 'FranklinGothic';
  src: url('Assets/Fonts/franklingothic_cond-webfont.woff2') format('woff2'),
       url('Assets/Fonts/franklingothic_cond-webfont.woff') format('woff');
  font-style: normal;
}
@font-face {
  font-family: 'FranklinGothicBold';
  src: url('Assets/Fonts/franklingothic_bold-webfont.woff2') format('woff2'),
       url('Assets/Fonts/franklingothic_bold-webfont.woff') format('woff');
  font-style: normal;
}

/* -------------------- GLOBAL -------------------- */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

img {
  display: block;
}

/* -------------------- LOGO -------------------- */
.logo-box {
  max-width: 2000px;
  margin: 0 auto;
  padding: 30px 20px 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.site-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
}
.logo-link img {
  transition: transform 0.2s ease;
}
.logo-link:hover img {
  animation: logo-bounce 0.4s ease forwards;
}
@keyframes logo-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.05); }
  60%  { transform: scale(1.03); }
  100% { transform: scale(1.04); }
}

/* -------------------- HEADER BUTTONS -------------------- */
.header-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'NoirEtBlank', 'Arial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: normal;
  padding: 10px 22px;
  color: #222222;
  text-decoration: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.header-btn:hover {
  background-color: #222222;
  color: #ffffff;
}
.left-btn { left: 20px; }
.right-btn { right: 20px; }
.left-btn:hover {
  animation: bounce-left 0.3s ease-in-out;
}
.right-btn:hover {
  animation: bounce-right 0.3s ease-in-out;
}
@keyframes bounce-left {
  0%   { transform: translateY(-50%) translateX(0); }
  50%  { transform: translateY(-50%) translateX(-4px); }
  100% { transform: translateY(-50%) translateX(0); }
}
@keyframes bounce-right {
  0%   { transform: translateY(-50%) translateX(0); }
  50%  { transform: translateY(-50%) translateX(4px); }
  100% { transform: translateY(-50%) translateX(0); }
}

/* -------------------- WRAPPER -------------------- */
.center-screen {
  display: flex;
  justify-content: center;
  align-items: top;
  height: calc(100vh - 150px);
  width: 100%;
  overflow: hidden;
}
.main-box-wrapper {
  width: 1250px;
  height: 750px;
  position: relative;
  transform-origin: top center;
  transform: scale(calc(
    min(
      100% / 1000,
      (100vh - 100px) / 750
    )
  ));
}
.main-box {
  position: relative;
  width: 1250px;
  height: 750px;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1250 / 750;
  transform-origin: top center;
}

/* -------------------- ELEMENTS -------------------- */
.art {
  position: absolute;
  width: 330px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.5s;
  z-index: 2;
}
.shirt {
  position: absolute;
  top: 360px;
  left: 240px;
  width: 375px;
  aspect-ratio: 926 / 1042;
  z-index: 3;
}
.a1 { top: 20px; left: 100px; }
.a2 { top: 20px; left: 460px; }
.a3 { top: 20px; left: 815px; }

.a1:hover { content: url("Assets/Projects/project-erikamerch-art1B.jpg"); }
.a2:hover { content: url("Assets/Projects/project-erikamerch-art2B.jpg"); }
.a3:hover { content: url("Assets/Projects/project-erikamerch-art3B.jpg"); }

/* -------------------- TEXT -------------------- */
.text-box {
  position: absolute;
  top: 490px;
  left: 655px;
  width: 360px;
  text-align: left;
  color: #222222;
  z-index: 3;
}
.text-box h1 {
  font-family: 'NoirEtBlank', 'Arial', sans-serif;
  font-size: 1.2rem;
  font-weight: normal;
  margin: 0 0 10px 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.text-box p {
  font-family: 'FranklinGothic', 'Arial', sans-serif;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.2;
}
.credit-list-a {
  position: absolute;
  top: 555px;
  left: 655px;
  width: 150px;
  text-align: left;
  color: #222222;
  z-index: 3;
}
.credit-list-a p {
  font-family: 'FranklinGothic', 'Arial', sans-serif;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}
.credit-list-b {
  position: absolute;
  top: 555px;
  left: 800px;
  width: 200px;
  text-align: left;
  color: #222222;
  z-index: 3;
}
.credit-list-b p {
  font-family: 'FranklinGothicBold', 'Arial', sans-serif;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* -------------------- FADE ANIMATION -------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeUp 0.8s ease-out forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.art { animation-delay: 0s; }
.text-box { animation-delay: 0.3s; }
.credit-list-a { animation-delay: 0.3s; }
.credit-list-b { animation-delay: 0.3s; }
.shirt { animation-delay: 0.7s; }

/* -------------------- MOBILE -------------------- */
@media (max-width: 768px) {
  .header-btn {
    font-size: 0.7rem;
    padding: 8px 16px;
  }
  .left-btn {
    left: 10px;
  }
  .right-btn {
    right: 10px;
  }
  .center-screen {
    height: auto;
    overflow: visible;
    padding-bottom: 40px;
  }
  .main-box-wrapper {
    width: 100%;
    height: auto;
    transform: none;
  }
   .main-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
  }
  .hide-on-mobile {
    display: none;
  }
  .a2,
  .a3,
  .a1,
  .shirt,
  .text-box,
  .credit-list-a,
  .credit-list-b {
    position: relative;
    top: auto;
    left: auto;
  }
  .a1 {
    width: 100%;
    max-width: 345px;
    aspect-ratio: 499 / 644;
    object-fit: cover;
    display: block;
    margin: 40px auto 0;
    z-index: 2;
  }
  .a2 {
    width: 100%;
    max-width: 345px;
    aspect-ratio: 499 / 644;
    object-fit: cover;
    display: block;
    margin: -10px auto 0;
    z-index: 2;
  }
  .a3 {
    width: 100%;
    max-width: 345px;
    aspect-ratio: 499 / 644;
    object-fit: cover;
    display: block;
    margin: 40px auto 0;
    z-index: 3;
  }
  .shirt {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 463 / 521;
    object-fit: contain;
    display: block;
    margin: 40px auto 0;
    z-index: 2;
  }
  .text-box {
    position: relative;
    width: 90%;
    margin: 10px auto;
    text-align: center;
  }
  .credits-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 80px auto 40px;
  }
  .credit-list-a,
  .credit-list-b {
    position: relative;
    width: auto;
    text-align: left;
    margin: 0;
  }
}