html {
  box-sizing: border-box;
  overflow-x: hidden !important;
  scroll-behavior: smooth !important;
}

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

body {
  scroll-behavior: smooth !important;
  overflow-x: hidden !important;
}

.hidden {
  display: none;
}

main {
  margin: 0 auto;
}

h1 {
  display: flex;
  flex-direction: column;
}

button {
  background-color: var(--black);
  color: var(--white);
  border: none;
  padding: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  opacity: 90%;
  transition: all cubic-bezier(0, 0, 0, 1) 0.5s;
  font-style: normal !important;
  text-decoration: none !important;
  filter: drop-shadow(0px 0px 5px rgba(13, 13, 13, 0.2));
}

button:hover {
  transform: scale(1.1);
  opacity: 100%;
}

button:active {
  opacity: 70;
  transform: scale(0.9);
}

.title-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.opener {
  min-height: 100vh;
  padding: 5rem 0rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.8rem;
  text-align: center;
}

.opener-top {
  font-size: var(--fs-sm);
}

.opener-name {
  position: relative;
}

h1 {
  position: absolute;
}

.opener-name__title {
  margin-bottom: -5rem;
}

.opener-name__animation {
  max-height: 6.25rem;
}

.opener-name__image {
  position: relative;
  margin-top: 10rem;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  pointer-events: none;
}

.opener-image__image {
  position: relative;
  z-index: 2;
}

.opener-image__shadowcatcher {
  position: absolute;
  bottom: 0;
  margin-bottom: -2rem;
}

.opener-click__animation {
  height: 2rem;
  margin-left: -0.2rem;
  max-width: 1.5rem;
  display: inline-block;
}

.about {
  background-color: var(--white);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.about-text {
  max-width: 45rem;
  line-height: 2;
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
  justify-items: center;
  gap: 2.81rem;
  padding-top: 5.625rem;
  padding-bottom: 5.625rem;
  width: fit-content;
  margin: 0 auto;
}

.projects-title {
  grid-row: 1;
  grid-column: 1;
}

.projects-filter {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.filter-button {
  font-size: var(--fs-button);
  font-family: "Playfair Display", serif;
  font-style: italic;
  border-radius: 2rem;
  padding: 0.3rem 1rem 0.5rem 1rem;
  background-color: var(--white);
  color: var(--black);
  max-width: fit-content;
}

.filter-button__active {
  border: 0.1rem var(--white) solid;
  background-color: var(--black);
  color: var(--white);
}

.project {
  display: grid;
  align-items: end;
  font-size: var(--fs-project);
  line-height: 1.5;
  overflow: hidden;
  text-decoration: none !important;
  opacity: 80%;
  transition: all cubic-bezier(0, 0, 0, 1) 0.8s;
  border: solid 0.05rem var(--white);
}

.project:hover {
  opacity: 100%;
}

.project-image,
.project-info {
  grid-row: 1;
  grid-column: 1;
}

.project-info {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgb(31, 31, 31);
  background: linear-gradient(
    0deg,
    rgba(31, 31, 31, 0.8) 25%,
    rgba(31, 31, 31, 0.5) 50%,
    rgba(31, 31, 31, 0) 100%
  );
  overflow-y: hidden;
  opacity: 1;
}

.project-info__text {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 15rem;
}

.project-type {
  border-radius: 1rem;
  padding: 0.3rem 1rem 0.5rem 1rem;
  background-color: var(--white);
  color: var(--black);
  max-width: fit-content;
}

.project-client {
  margin-left: 0.8rem;
  font-style: normal;
}

.project-info__link > img {
  transition: all cubic-bezier(0, 0, 0, 1) 0.8s;
}

.project-info__link {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.project-info__link:hover > img {
  transform: scale(1.5);
}

.project-image {
  max-width: 100%;
}

.fun-fact {
  background-color: var(--white);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
  padding: 1rem;
}

.fact {
  background-color: var(--black);
  padding: 1.5rem 1.25rem 2.5rem 1.25rem;
  min-height: 18.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  color: var(--white);
  max-width: 30rem;
  min-width: 15rem;
  width: 20rem;
}

.contact {
  padding-top: 5.625rem;
  padding-bottom: 11.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  min-height: 100vh;
}

.footer-music__play {
  background-repeat: no-repeat;
  background-size: cover;
  height: 5.625rem;
  width: 5.625rem;
  padding: 1rem !important;
  transition: all cubic-bezier(0, 0, 0, 1) 0.8s;
  opacity: 100%;
}

.footer-music__play:hover,
.footer-music__play:active {
  opacity: 90%;
  transform: scale(1.1);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 100 !important;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.contact-link:hover {
  text-decoration: underline !important;
}

@media screen and (min-width: 420px) {
  .fact { width: 25rem; }
}

@media screen and (orientation: landscape) {
  .opener, .fun-fact { padding: 5rem; }
  .fun-fact { height: unset; }
}

@media screen and (min-width: 700px) {
  .opener { gap: 3.5rem; padding: unset; }
  #dotlottie-scroll { height: 6rem; }
  .footer-socials { gap: 2rem; }
  .footer-socials img { height: 3rem; }
}

@media screen and (min-width: 950px) and (orientation: landscape) {
  .fact { width: 30rem; }
  .opener-click__animation { margin-left: -0.4rem; }
}

@media screen and (min-width: 950px) {
  .opener { padding: unset; min-height: 95vh; }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects-title { grid-column: 1/3; }
  .projects-filter { grid-column: 1/3; }
  .project-image { max-width: 20rem; }
  .project-info {
    padding: 1.25rem;
    overflow-y: hidden;
    translate: 0rem 10rem;
    opacity: 0;
    transition: all cubic-bezier(0, 0, 0, 1) 0.8s;
  }
  .project:hover .project-info,
  .project:active .project-info,
  .project:focus .project-info {
    opacity: 1;
    translate: 0rem 0rem;
  }
}

@media screen and (min-width: 1300px) {
  .projects {
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 100vh;
    align-content: start;
  }
  .projects-title { grid-column: 1/4; }
  .projects-filter { grid-column: 1/4; }
  .project-image { max-width: 25rem; }
  .fun-fact { min-height: 100vh; }
}

@media screen and (min-width: 1950px) {
  .project-image { max-width: 35rem; }
}
