/* === Шрифты === */

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

/* === Body === */

body {
  display: flex;
  flex-direction: column;
  font-family: "Luneis", monospace;
  margin: 0;
  background-color: #2c2c2c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  height: 100%;
}

body::before {
  content: "";
  background-image: url("../images/noise.png");
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.03;
  z-index: -1;
}

/* === Hero === */

.hero {
  text-align: center;
  width: 100%;
  height: 100vh;
}

.hero,
.hero__salute {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.hero__name,
.hero__surname {
  width: 100%;
  font-weight: 400;
  border-right: solid 3px #e1643d;
  overflow: hidden;
  font-size: clamp(2.5em, 7.03125vw, 11.25em);
  color: #d6d6d6;
  margin: 0;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 120%;
}

.hero__name {
  animation: animated-text 0.5s steps(8, end) 1s 1 normal both,
    animated-cursor 500ms steps(8, end) 3 forwards;
}

.hero__surname {
  animation: animated-text 0.7s steps(10, end) 1s 1 normal both,
    animated-cursor 1200ms steps(10, end) infinite;
  animation-delay: 1.4s;
  border-right-color: transparent;
}

.hero__position {
  width: 100%;
  font-size: clamp(12px, 1.875vw, 48px);
  color: #e1643d;
  letter-spacing: 0.05em;
  margin: 0;
}

.hero__position {
  opacity: 0;
  transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}

.hero__studio {
  opacity: 0;
}

.hero--loaded .hero__position,
.hero--loaded .hero__studio {
  opacity: 1;
  transition: opacity 2s ease-in-out 2s;
  animation: shine 64s infinite linear;
}

.hero__studio {
  width: 100%;
  color: #e1643d;
  font-size: clamp(12px, 1.25vw, 24px);
  letter-spacing: 0.05em;
  text-align: center;

  margin-top: auto;
  margin-bottom: 2vh;

  background: linear-gradient(to right, #4d4d4d 0, white 10%, #4d4d4d 20%);
  background-position: 0;
  background-size: 30%;

  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;

  transition: opacity 4s ease-in-out 2s;
  animation: shine 64s infinite linear 2s;
}

/* === Info === */

.info {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.info__aboutme{
width: 100%;
box-sizing: border-box;
padding: 0em clamp(56.75em, 10vw, 2em);
}

.info__aboutme-card{
  min-width: 16em;
  max-width: ;
}

.info__aboutme-text {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(1em, 0.9375vw, 1.5em);
  font-style: normal;
  line-height: 150%;
  letter-spacing: 0.05em;
  text-align: left;

  color: #d6d6d6;

  word-wrap: break-word; /* Для переноса длинных слов */
  overflow-wrap: break-word; /* Альтернатива */
}

/* === Ключевые точки анимации === */

@keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 200%;
  }
  100% {
    background-position: 400%;
  }
}

@keyframes animated-text {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes animated-cursor {
  from {
    border-right-color: #e1643d;
  }
  to {
    border-right-color: transparent;
  }
}

/* === Breakpoints === */

@media (max-width: 700px) {
  .info__aboutme {
    padding: 0em 2em; /* Уменьшенный padding для маленьких экранов */
  }
}
