@font-face {
  font-family: "NeuePowerTrial";
  src: url("./assets/fonts/NeuePowerTrial-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NeuePowerTrial";
  src: url("./assets/fonts/NeuePowerTrial-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NeuePowerTrial";
  src: url("./assets/fonts/NeuePowerTrial-Bold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NeuePowerTrial";
  src: url("./assets/fonts/NeuePowerTrial-Heavy.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #fff;
  --btn-text: #1c1c1c;
  --btn-bg: #fff;
  --btn-hover: #ffffff;
  --accent: #fff705;
  --vh: 1vh;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "NeuePowerTrial", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 800px;
  height: calc(var(--vh) * 100);
  overflow: hidden;
  cursor: none;
  --spot-x: 50%;
  --spot-y: 50%;
  --cursor-tx: 0;
  --cursor-ty: 0;
}

.hero a,
.hero a:visited {
  cursor: none;
}

.hero__underlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle clamp(320px, 58vmin, 780px) at var(--spot-x) var(--spot-y),
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.hero__ui {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: inherit;
}

.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: radial-gradient(
    circle clamp(260px, 48vmin, 640px) at var(--spot-x) var(--spot-y),
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.06) 38%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: transform;
}

.cursor-dot.is-visible {
  opacity: 1;
}

@media (max-width: 1199px) {
  .hero {
    min-height: 1000px;
  }
}

.hero__bg {
  position: absolute;
  width: 1500px;
  max-width: none;
  height: 1500px;
  left: 0;
  top: 0;
  opacity: 0.7;
  transform: translate3d(
    calc(var(--cursor-tx) * 1px - 50%),
    calc(var(--cursor-ty) * 1px - 50%),
    0
  );
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.hero__avatar {
  position: absolute;
  top: 65px;
  left: 70px;
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background-color: var(--accent);
  background-image: url("./assets/avatar.jpg");
  background-size: cover;
  background-position: center;
}

.hero__title {
  position: absolute;
  top: 64px;
  left: 210px;
  width: 73%;
  margin: 0;
  font-size: 100px;
  line-height: 1;
  font-weight: 700;
}

.hero__subtitle {
  position: absolute;
  top: 402px;
  left: 70px;
  width: 60%;
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}

.hero__contacts-label {
  width: fit-content;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}

.hero__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
}

.hero__cta {
  position: absolute;
  top: 581px;
  left: 70px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

@media (min-width: 700px) {
  .hero__cta {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "buttons portfolios"
      "label label"
      "contacts contacts";
    align-items: center;
    column-gap: 24px;
    row-gap: 28px;
  }

  .hero__buttons {
    grid-area: buttons;
  }

  .hero__portfolios {
    grid-area: portfolios;
    justify-self: start;
  }

  .hero__contacts-label {
    grid-area: label;
  }

  .hero__contacts {
    grid-area: contacts;
  }
}

.hero__buttons {
  display: flex;
  gap: 30px;
  align-items: center;
}

.hero__portfolios {
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
}

.hero__contacts .icon-btn,
.hero__portfolios .icon-btn {
  pointer-events: auto;
}

.hero__contacts .icon-btn--telegram,
.hero__contacts .icon-btn--linkedin {
  left: auto;
  bottom: auto;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 67px;
  border-radius: 50px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 27px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 3px;
  transform-origin: center;
  transition:
    transform 0.2s ease,
    background-color 0.6s ease-in-out,
    color 0.6s ease-in-out,
    border-color 0.6s ease-in-out;
}

.pill-btn:hover {
  background: var(--btn-hover);
  transform: scale(1.06);
}

.icon-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 40px;
  height: 40px;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.hero__portfolios .icon-btn {
  position: relative;
}

.hero__contacts .icon-btn {
  position: relative;
}

.icon-btn:hover {
  transform: scale(1.12);
}

.icon-btn--telegram {
  left: 70px;
  bottom: 50px;
}

.icon-btn--linkedin {
  left: 130px;
  bottom: 50px;
}

.icon-btn--behance {
  width: 39px;
  height: 39px;
}

.icon-btn--artstation {
  width: 39px;
  height: 39px;
}

.icon-btn img {
  width: 100%;
  height: 100%;
}

@media (max-width: 1199px) {
  .hero__avatar {
    left: 56px;
  }

  .hero__title {
    top: 193px;
    left: 55px;
    width: 80%;
    font-size: 86px;
  }

  .hero__subtitle {
    top: 491px;
    left: 55px;
  }

  .hero__cta {
    top: 701px;
    left: 55px;
    gap: 36px;
  }

  .pill-btn {
    width: 200px;
    height: 68px;
  }

  .hero__contacts-label {
    width: fit-content;
  }

  .icon-btn {
    width: 45px;
    height: 45px;
  }

  .icon-btn--telegram {
    left: 55px;
    bottom: 50px;
  }

  .icon-btn--linkedin {
    left: 122px;
    bottom: 50px;
  }

}

@media (max-width: 959px) {
  .hero {
    min-height: 800px;
  }

  .hero__ui {
    height: 900px;
  }

  .hero__avatar {
    top: 28px;
    left: 25px;
  }

  .hero__title {
    top: 161px;
    left: 26px;
    width: 66%;
    font-size: 71px;
  }

  .hero__subtitle {
    top: 376px;
    left: 26px;
    width: 79%;
  }

  .hero__cta {
    top: 560px;
    left: 26px;
    gap: 26px;
  }

  .hero__contacts-label {
    width: fit-content;
  }

  .icon-btn--telegram {
    left: 22px;
    bottom: 25px;
  }

  .icon-btn--linkedin {
    left: 84px;
    bottom: 25px;
  }

}

@media (max-width: 639px) {
  .hero__title {
    left: 26px;
    width: 77%;
  }

  .hero__cta {
    top: 614px;
    left: 24px;
    gap: 20px;
  }

  .hero__contacts-label {
    width: fit-content;
  }

  .icon-btn--telegram {
    left: 22px;
    bottom: 25px;
  }

  .icon-btn--linkedin {
    left: 84px;
    bottom: 25px;
  }

}

@media (max-width: 600px) {
  .hero__title {
    top: 147px;
    left: 27px;
    width: 86%;
    font-size: 58px;
  }

  .hero__subtitle {
    top: 296px;
    left: 27px;
    width: 86%;
    font-size: 17px;
  }

  .hero__contacts-label {
    width: fit-content;
  }

  .hero__cta {
    top: 521px;
    left: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .icon-btn--telegram {
    left: 28px;
    bottom: 25px;
  }

  .icon-btn--linkedin {
    left: 90px;
    bottom: 25px;
  }

}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

.animate {
  opacity: 0;
  transform: translate3d(200px, 0, 0);
}

.is-ready .animate {
  animation: fadeInRight 2s ease forwards;
}

.is-ready .hero__title.animate {
  animation-duration: 2.2s;
  animation-delay: 0.1s;
}

.is-ready .hero__subtitle.animate {
  animation-delay: 0.2s;
}

.is-ready .hero__contacts-label.animate {
  animation-delay: 0.2s;
}

.is-ready .hero__buttons.animate {
  animation-delay: 0.3s;
}

.is-ready .hero__contacts.animate {
  animation-delay: 0.3s;
}

.is-ready .hero__portfolios.animate {
  animation-delay: 0.4s;
}

.is-ready .hero__avatar.animate {
  animation-duration: 1.5s;
  animation-delay: 0s;
  transform: translate3d(250px, 0, 0);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(200px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
  }
  .is-ready .animate {
    animation: none;
  }
  .hero {
    cursor: auto;
  }
  .hero__bg {
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
  }
  .hero__spotlight {
    background: radial-gradient(
      circle clamp(280px, 55vmin, 720px) at 50% 45%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.14) 42%,
      rgba(0, 0, 0, 0.36) 100%
    );
  }
  .hero__dim {
    background: radial-gradient(
      circle clamp(260px, 48vmin, 640px) at 50% 45%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.06) 38%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }
  .cursor-dot {
    display: none;
  }
}

