:root {
  --title-width: 45%;
  --chart-width: 30%;

  --title-top: 10%;
  --title-left: 10%;

  --about-title-top: 28%;
  --about-title-left: 10%;

  --text-top: 36%;
  --text-left: 10%;
  --text-width: 38%;

  --chart-top: 18%;
  --chart-right: 5%;

  --float-speed: 4s;
  --fade-speed: 1.2s;

  --links-right: 5%;
  --links-bottom: 5%;

  --font: "K2D", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: var(--font);
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float var(--float-speed) ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade {
  opacity: 0;
  animation: fadeIn var(--fade-speed) ease-out forwards;
}

.title-img {
  position: absolute;
  top: var(--title-top);
  left: var(--title-left);
  width: var(--title-width);
}


.about-title {
  position: absolute;
  font-size: 48px;
  font-weight: 700;
  top: 1%;
  top: var(--about-title-top);
  left: var(--about-title-left);
}

.about-text {
  position: absolute;
  top: var(--text-top);
  left: var(--text-left);
  width: var(--text-width);
  font-size: 28px;
  line-height: 1.45;
}

.chart {
  position: absolute;
  top: var(--chart-top);
  right: var(--chart-right);
  width: var(--chart-width);
}

.links {
  position: absolute;
  right: var(--links-right);
  bottom: var(--links-bottom);
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.link {
  font-size: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.link:hover {
  transform: scale(1.12);
  text-shadow: 0 0 8px rgba(0,255,120,0.7);
  color: #0aaf55;
}

@media (max-width: 768px) {
  :root {
    --title-width: 75%;
    --text-width: 85%;
    --chart-width: 55%;

    --title-left: 5%;
    --about-title-left: 5%;
    --text-left: 5%;
    --chart-right: 5%;
  }

  .about-title { font-size: 40px; }
  .about-text { font-size: 18px; }
  .link { font-size: 24px; }
}
