/* вращающийся фон */
.background-rotator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.5s ease-in;
}
.background-rotator::before {
  content: '';
  position: absolute;
  top: -35%;
  left: -35%;
  right: -35%;
  bottom: -35%;
  background-image: url('/background.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  animation: slowSpin 300s linear infinite;
  transform-origin: center center;
}
[data-theme="dark"] .background-rotator::before {
  filter: invert(1);
}
.background-rotator.loaded {
  opacity: 0.9;
}
.menu-overlay.active ~ .background-rotator {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .background-rotator::before { top: -40%; left: -40%; right: -40%; bottom: -40%; }
}
@media (max-width: 480px) {
  .background-rotator::before { top: -50%; left: -50%; right: -50%; bottom: -50%; }
}

/* контент главной */
.content {
  text-align: center;
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.greeting {
  font-size: 28px;
  font-weight: 700;
}
.description {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-secondary);
}
.contacts {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--button-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 16px;
  background-color: var(--button-bg);
  border-radius: 16px;
  transition: all 0.3s;
}
.contact-link:hover {
  background-color: var(--button-hover);
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 25px 0 30px;
}
.tech-tag {
  font-size: 15px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 30px;
  border: 2px solid var(--tag-color);
  background: transparent;
  color: var(--text-color);
}
@media (max-width: 480px) {
  .greeting, .description { font-size: 20px; }
  .contacts { flex-direction: column; align-items: center; }
  .tech-stack { gap: 8px; }
  .tech-tag { font-size: 13px; padding: 5px 12px; }
}