*, ::after, ::before {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: rgb(233, 233, 162);
  margin: 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.header {
  background: rgb(182, 233, 162);
  padding: 0 30px;
}

.header-upper-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo__img {
  height: 30px;
  cursor: pointer;
  animation-name: blinking;
  animation-timing-function: ease;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.logo__img:hover, .logo__img[data-logo-reversed=true] {
  animation-name: goofy;
  animation-timing-function: ease;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.logo__img[data-logo-reversed=true] {
  animation-duration: .4s;
}

.logo__title {
  margin: 0;
  font-size: 20px;
}

.links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.links__link {
  color: red;
  font-size: 16px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 15px 0;
}

.intro__title {
  font-size: 40px;
  text-align: center;
  margin-bottom: 45px;
  margin-top: 20px;
}

.intro__description {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.main {
  padding: 30px 0;
}

.box-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.box {
  min-height: 100px;
  width: 100%;
  background-image: url(../img/coding.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 10px;
}

.box__title {
  font-size: 18px;
  color: rgb(182, 233, 162);
  text-shadow: 0 0 5px brown, 1px 0 5px brown, 0 1px 5px brown;
}

.box__button {
  font-size: 20px;
  color: black;
  background-color: rgb(182, 233, 162);
}

.box__button:hover {
  background-color: brown;
}

.box__button:active {
  background-color: rgb(233, 233, 162);
}

.box[data-logo-reversed=true] {
  animation-name: spinWithoutY;
  animation-timing-function: linear;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.box[data-logo-reversed=true][data-reverse-spin] {
  animation-name: spinWithoutX;
}

.feed {
  background-color: brown;
  padding: 10px;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  height: 47px;
  position: relative;
  background-image: url(../img/104783303.jpg);
  background-size: contain;
  background-blend-mode: overlay;
  animation-name: feedLine;
  animation-duration: .8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.feed[data-logo-reversed=true] {
  animation-duration: .15s;
}

.footer {
  background-color: rgb(182, 233, 162);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.project-intro {
  position: relative;
  height: 330px;
  width: 590px;
  flex-shrink: 0;
  background-image: url(/img/inline_image_preview.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.project-intro::before {
  content: '';
  background-image: url(/img/68747470733a2f2f692e696d6775722e636f6d2f48586c747251432e706e67.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  position: absolute;
  width: 50%;
  height: 50%;
  animation-name: bouncingScreensaver;
  animation-timing-function: linear;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.project-intro[data-logo-reversed=true] {
  background-image: url(/img/uploads_1683574517_starkowfangmailcom.jpg);
  animation-name: heartbeat;
  animation-timing-function: linear;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.project-intro[data-logo-reversed=true]::before {
  mix-blend-mode: difference;
  animation-name: bouncingScreensaver, goofy;
  animation-duration: 1s;
  animation-timing-function: ease;
}

@keyframes blinking {
  from {
    opacity: 1;
  }

  to {
    opacity: .3;
  }
}

@keyframes goofy {
  0% {
    transform: scale3d(1, 1, .5);
  }

  50% {
    transform: scale3d(1.1, 1.8, 1);
  }

  100% {
    transform: scale3d(2, 1, .5);
  }
}

@keyframes feedLine {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: 47px;
  }
}

@keyframes bouncingScreensaver {
  from {
    top: 0%;
    left: 0%;
  }

  to {
    top: 60%;
    left: 50%;
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  44% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  55% {
    transform: scale(.9);
  }

  60% {
    transform: scale(1.2);
  }

  66% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes spinWithoutY {
  from {
    transform: rotate3d(1, 0, 1, 0deg);
  }

  to {
    transform: rotate3d(1, 0, 1, 360deg);
  }
}

@keyframes spinWithoutX {
  from {
    transform: rotate3d(0, 1, 1, 0deg);
  }

  to {
    transform: rotate3d(0, 1, 1, 360deg);
  }
}
