@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/PPNeueMontreal-Thin.otf') format('otf');
  font-weight: 200;
  font-style: thin;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/NeueMontreal-Light.otf') format('otf');
  font-weight: 300;
  font-style: light;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/NeueMontreal-LightItalic.otf') format('otf');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/PPNeueMontreal-Book.otf') format('otf');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/PPNeueMontreal-Italic.otf') format('otf');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/PPNeueMontreal-Medium.otf') format('otf');
  font-weight: 500;
  font-style: medium;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/NeueMontreal-Bold.otf') format('otf');
  font-weight: 700;
  font-style: bold;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/NeueMontreal-BoldItalic.otf') format('otf');
  font-weight: 700;
  font-style: italic;
}

:root {
  --color-bg: #f3f2ee;
  --color-accent: #322c26;
  --color-text: #322c26;
  --color-text-work: #726e6a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  font-family: "PP Neue Montreal", sans-serif;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

p {
  font-size: 14px;
  line-height: 1;
  color: var(--color-text);
}

a {
  text-decoration: none;
  color: var(--color-text);
}

/* These are the loader styles  */

.loader {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  z-index: 10000;
}

.counter {
  font-family: "IBM Plex Mono";
  position: absolute;
  top: 30%;
  left: 42%;
  font-size: 40px;
  padding: 2em;
}

/* NAVIGATION STYLES  */

nav {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  /* border-bottom: #cacac7 1px solid; */
}
nav p {
  font-size: 14px;
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.logo h1 {
  font-family: "IBM Plex Mono";
  font-size: 16px;
  font-weight: 400;
  color: var(--color-accent);
}

.logo a {
  text-decoration: none;
}

.overlay-toggle {
  font-size: 18px;
  font-family: "IBM Plex Mono";
  height: 24px;
  border-radius: 0.5em;
  color: #000;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.overlay-toggle p:hover::before {
  content: "• ";
  color: black;
}

.overlay-toggle p:hover {
  transform: scale(1.1) 2s;
}
.overlay-toggle p {
  padding: 0 0 0 1em;
}

.sidebar {
  z-index: 20000;
  position: fixed;
  top: 0;
  right: 0;
  width: 30vw;
  height: 100vh;
  padding: 0.75em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  overflow: hidden;
  pointer-events: none;
}

.card {
  position: relative;
  right: -110%;
  padding: 1em;
  flex: 1;
  background: #fff;
  color: #000;
  border-radius: 0.2em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
}

.card:nth-child(1) .card-title {
  display: flex;
  justify-content: space-between;
}

.close-btn {
  position: relative;
  top: 0;
  right: 0;
  font-size: 40px;
  transform: scale(0);
  transition: transform 0.3s;
  transform-origin: center;
}

.card:nth-child(1):hover .close-btn {
  transform: scale(1);
}

.card-title {
  font-size: 32px;
  letter-spacing: -0.035em;
}

.card-copy {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  font-size: 15px;
  transition: transform 0.3s, opacity 0.3s;
}
.card-copy > p {
  color: var(--color-bg);
}

.card:hover {
  background: #000;
  color: #fff;
}

.card:hover .card-copy {
  opacity: 1;
  transform: translateY(0px);
}

/* -------------------------------- */

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  max-width: 1140px;
  margin: auto;
  flex: 1;
  max-height: fit-content;
}
.ittsame {
  display: flex;
  width: 50%;
  justify-content: space-between;
  color: var(--color-text);
}

.intro {
  font-size: 32px;
  font-weight: 400;
}

.skillset {
  position: relative;
  left: 18em;
  display: flex;
  flex-direction: column;
}
.skill {
  display: flex;
  font-size: 14px;
  padding-top: 24px;
}

.skill p {
  font-size: 14px;
}

.skill:nth-child(1) {
  padding-top: 80px;
}
.skill:nth-child(2) {
  padding-top: 40px;
}
.skill:nth-child(3) {
  padding-top: 190px;
}

.skill span {
  font-family: "IBM Plex Mono";
  font-size: 10px;
}

p.primary {
  font-size: 16px;
  text-align: right;
}

/* These are the Bento grid styles  */

.bento {
  display: flex;
  /* position: relative; */
  width: 50%;
  flex-direction: column;
}

.callout-tiles {
  display: flex;
  gap: 1em;
  padding-bottom: 1em;
}

.item-main {
  position: relative;
  width: max-content;
  height: max-content;
}

.portfolio {
  height: 172px;
  width: 277px;
  background: url(../images/Tile-Canvas.gif) no-repeat;
  background-size: cover;
  background-position: center;
}

.about-me {
  height: 180px;
  width: 277px;
  background: url(../images/creative-works-coming-soon.gif);
  background-size: cover;
  background-position: center;
}

/* These are the footer styles  */

footer {
  width: 100%;
  margin: 0 auto;
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  background: var(--color-bg);
  flex-shrink: 0;
  max-width: 1440px;
}

footer p {
  font-size: 14px;
}

/* footer > div {
  flex: 1;
} */

.slide-info {
  display: flex;
  align-items: flex-start;
  gap: 2.4em;
}

.slide-info > div {
  flex: 1;
  align-content: flex-end;
}

.slide-name {
  font-size: 42px;
  padding: 0.5em 0 0.5em 0;
}

.year p:nth-child(1),
.experience p:nth-child(1),
.socials p:nth-child(1) {
  margin-bottom: 1em;
}

.socials,
.experience {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4em;
}

.socials a {
  gap: 0.4em;
}

.abstract-logo {
  width: 140px;
}
/* footer end */

.card-container {
  position: relative;
  transition: all 0.3s ease-out;
  overflow: hidden;
  /* transform: scale(0.98); */
}

.card {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-container:hover {
  transform: scale(0.97);
  cursor: pointer;
}

.text-wrapper {
  position: absolute;
  top: 50%;
  left: -20%;
  transform: translate(0, -20%);
  font-size: 40px;
  font-weight: 400;
  white-space: nowrap;
  transition: 0.2s ease-out;
  animation: float-text 30s linear infinite;
  animation-delay: 0s;
  opacity: 0;
  padding: 20px 0;
}

.card-container:hover .text-wrapper {
  color: #fff;
}

@keyframes float-text {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.card-container:hover .text-wrapper {
  opacity: 1;
}

#nav-placeholder,
#app,
#footer-placeholder {
  opacity: 0; /* Start fully transparent */
}

#app {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

footer {
  /* border-top: #cacac7 1px solid; */
  flex-shrink: 0; /* This will prevent the footer from shrinking if there's not enough space */
}

/* mask image - about me call to action */

.item-img {
  position: relative;
  width: 570px;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
}

.hero-img {
  width: 100%;
  height: 100%;
}

.mask {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url(../images/Kris-gorp.jpg) no-repeat;
  object-fit: cover;
  filter: grayscale(0) sepia(0) brightness(1);
  transition: all 1.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.item-copy .shape {
  clip-path: polygon(
    0% 0px,
    0px 0%,
    calc(100% - 50px) 0px,
    100% 50px,
    100% 100%,
    calc(100% - 0px) 100%,
    50px 100%,
    0px calc(100% - 50px)
  );
}

.item-copy {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  padding: 15px 20px;
}

.item-copy > div {
  flex: 1;
  display: flex;
  align-items: center;
}

.item-copy .item-copy-2 {
  justify-content: flex-end;
}

.shape {
  width: 172px;
  height: 172px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  color: #fff;
  font-size: 14px;
  padding: 10px;
  opacity: 0;
  transform: scale(0.75);
  transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.shape {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.shape #number {
  font-family: "IBM Plex Mono";
  font-size: 12px;
  font-weight: 300;
  opacity: 70%;
}

.text-right {
  text-align: right;
}

.item-img:hover .mask {
  transform: scale(1.06);
  filter: grayscale(0.72) brightness(0.75);
}

.item-img:hover .shape {
  opacity: 1;
  transform: scale(1);
}

.mask:nth-child(1) {
  clip-path: polygon(0% 0, 0% 0, 0% 100%, 0% 100%);
}

.mask:nth-child(2) {
  clip-path: polygon(10% 0, 10% 0, 10% 100%, 10% 100%);
}

.mask:nth-child(3) {
  clip-path: polygon(20% 0, 20% 0, 20% 100%, 20% 100%);
}

.mask:nth-child(4) {
  clip-path: polygon(30% 0, 30% 0, 30% 100%, 30% 100%);
}

.mask:nth-child(5) {
  clip-path: polygon(40% 0, 40% 0, 40% 100%, 40% 100%);
}

.mask:nth-child(6) {
  clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
}

.mask:nth-child(7) {
  clip-path: polygon(60% 0, 60% 0, 60% 100%, 60% 100%);
}

.mask:nth-child(8) {
  clip-path: polygon(70% 0, 70% 0, 70% 100%, 70% 100%);
}

.mask:nth-child(9) {
  clip-path: polygon(80% 0, 80% 0, 80% 100%, 80% 100%);
}

.mask:nth-child(10) {
  clip-path: polygon(90% 0, 90% 0, 90% 100%, 90% 100%);
}

@media (max-width: 1140px) {
  /* .container {
    width: 100%;
  } */
  .ittsame {
    width: 100%;
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .container {
    flex-direction: column;
    justify-content: center;
  }
  .intro {
    width: 100%;
  }
  .bento {
    width: 100%;
  }
  .ittsame {
    padding-bottom: 2em;
    align-self: center;
    width: 570px;
  }
  .callout-tiles {
    justify-content: center;
    gap: 1em;
  }
  .maskImage-wrapper {
    align-self: center;
  }
  .skillset {
    position: relative;
    left: 0;
  }
  .skill:nth-child(1) {
    padding-top: 24px;
  }
  .skill:nth-child(2) {
    padding-top: 8px;
  }
  .skill:nth-child(3) {
    padding-top: 8px;
  }
}

@media (max-width: 672px) {
  .intro {
    font-size: 26px;
  }
  .ittsame {
    width: 90vw;
  }
  .callout-tiles {
    flex-direction: column;
    align-self: center;
  }
  .card-container {
    height: 200px;
    width: 90vw;
  }
  .portfolio {
    height: 100%;
    width: 100%;
  }
  .about-me {
    height: 100%;
    width: 100%;
  }
  .text-wrapper {
    font-size: 40px;
    top: 30%;
  }
  .item-img {
    width: 90vw;
  }
  .footer {
    flex-direction: column;
  }
}

@media (max-width: 375px) {
  .intro {
    font-size: 24px;
  }
  .skillset {
    font-size: 12px;
  }
}
