body {
  background: #111216;
  color: #e0e0e0;
  font-family: 'VT323', monospace;
  margin: 0;
  min-height: 100vh;
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 40px 0;
  padding-left: 12px;
  padding-right: 12px;
}

main {
  width: 100%;
  max-width: 900px;
  padding: 0 32px;
}

header {
  text-align: center;
  margin: 48px 0 32px 0;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.1s;
}

h1 {
  font-size: 3.5rem;
  margin: 0 0 8px 0;
  letter-spacing: 2px;
}

h2 {
  font-size: 2.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}

p,
li {
  font-size: 1.25rem;
}

ul {
  padding-left: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.5s;
}

a {
  color: #7ecfff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

header,
main section,
main ul,
main p {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

header {
  animation-delay: 0.1s;
}

main section {
  animation-delay: 0.3s;
}

main ul,
main p {
  animation-delay: 0.5s;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid #7ecfff;
  white-space: nowrap;
  animation: typing 2.2s steps(30, end) 0.3s 1 normal both, blink-caret 0.7s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #7ecfff;
  }
}

.projects-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.project-card {
  width: 140px;
  height: 140px;
  background: #232323;
  border: 2px dashed #444;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.1rem;
  font-family: 'VT323', monospace;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0004;
  margin-bottom: 16px;
}

.project-card.empty:hover {
  border-color: #7ecfff;
  color: #7ecfff;
  box-shadow: 0 4px 16px #7ecfff33;
  cursor: pointer;
}

.contacts {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #7ecfff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.contact-link svg {
  margin-bottom: 2px;
  transition: stroke 0.2s;
}

.contact-link:hover,
.contact-link:focus {
  color: #fff;
}

.contact-link:hover svg,
.contact-link:focus svg {
  stroke: #fff;
}

@media (max-width: 600px) {
  body {
    font-size: 1.05rem;
    padding-left: 4px;
    padding-right: 4px;
  }

  main {
    max-width: 100%;
    padding: 0 6px;
  }

  .projects-grid {
    gap: 12px;
  }

  .project-card {
    width: 44vw;
    min-width: 120px;
    max-width: 160px;
    height: 44vw;
    min-height: 120px;
    max-height: 160px;
    font-size: 1rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  p,
  li {
    font-size: 1rem;
  }

  .contacts {
    gap: 12px;
  }

  .contact-link {
    font-size: 0.95rem;
  }

  .contact-link svg {
    width: 20px;
    height: 20px;
  }
}

.about-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto 64px auto;
  max-width: 600px;
  min-height: 55vh;
}

.projects-section {
  margin-top: 8vh;
}
