:root {
  --logo-width: 60%;
  --logo-max-width: 650px;
  --character-width: 260px;
  --about-max-width: 550px;
  --float-distance: 14px;
  --float-speed: 4s;
  --fade-duration: 1.2s;
  --icon-size: 50px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: "Patrick Hand", sans-serif;
  background: #000;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
}

.top-buttons {
  position: absolute;
  top: 20px;
  right: 25px;
  display: flex;
  gap: 20px;
  z-index: 20;
}

.icon-btn {
  width: var(--icon-size);
  height: var(--icon-size);
  cursor: pointer;
  transition: 0.3s ease;
}

.icon-btn:hover {
  transform: scale(1.14) rotate(4deg);
  filter: brightness(1.2);
}

.logo {
  position: absolute;
  top: 10%;
  left: 35%;
  width: var(--logo-width);
  max-width: var(--logo-max-width);
  transform: translateX(-50%);
}

.about-block {
  position: absolute;
  top: 46%;
  left: 8%;
  max-width: var(--about-max-width);
}

.about-title {
  font-size: 55px;
  margin-bottom: 15px;
}

.about-text {
  font-size: 28px;
  line-height: 1.4;
}

.character {
  position: absolute;
  bottom: 5%;
  right: 15%;
  width: var(--character-width);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(calc(var(--float-distance) * -1)); }
  100% { transform: translateY(0); }
}

.floating {
  animation: float var(--float-speed) ease-in-out infinite;
}

.fade {
  opacity: 0;
  animation: fadeIn var(--fade-duration) ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  :root {
    --about-max-width: 80%;
    --character-width: 200px;
    --logo-width: 80%;
    --icon-size: 44px;
  }

  .character {
    right: 2%;
  }

  .about-block {
    top: 58%;
    left: 6%;
  }
}

@media (max-width: 600px) {
  :root {
    --character-width: 170px;
    --logo-width: 90%;
  }

  .about-text {
    font-size: 20px;
  }

  .about-title {
    font-size: 34px;
  }

  .top-buttons {
    right: 10px;
    top: 10px;
    gap: 14px;
  }
}
