:root {
  --background: #121212;
  --button-bg: #1f1f1f;
  --button-hover: #4b6cb7;
  --button-color: #ffffff;
  --tooltip-bg: rgba(0,0,0,0.8);
  --tooltip-color: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--background);
  color: #fff;
  text-align: center;
  overflow: hidden;
  padding: 3rem 1rem 2rem;
}

/* Floating background circles */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s linear infinite;
}

.bg-circle:nth-child(1){ width: 200px; height: 200px; background: #4b6cb7; top: 10%; left: 15%; animation-duration: 25s;}
.bg-circle:nth-child(2){ width: 300px; height: 300px; background: #182848; top: 70%; left: 70%; animation-duration: 30s;}
.bg-circle:nth-child(3){ width: 150px; height: 150px; background: #4b6cb7; top: 40%; left: 50%; animation-duration: 20s;}

@keyframes float {
  0% { transform: translateY(0) translateX(0);}
  50% { transform: translateY(-20px) translateX(10px);}
  100% { transform: translateY(0) translateX(0);}
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

p.intro {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.tool-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.tool-button {
  background-color: var(--button-bg);
  color: var(--button-color);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-align: center;
  padding: 1rem;
  animation: floatButton 4s ease-in-out infinite alternate;
}

.tool-button:hover {
  transform: scale(1.15) rotate(-2deg);
  background-color: var(--button-hover);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

@keyframes floatButton {
  0% { transform: translateY(0);}
  100% { transform: translateY(-10px);}
}

/* Tooltip */
.tool-button::after {
  content: attr(data-description);
  position: absolute;
  bottom: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tooltip-bg);
  color: var(--tooltip-color);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  width: max-content;
  max-width: 240px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.tool-button:hover::after {
  opacity: 1;
  bottom: -4.2rem;
}

footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

@media (max-width: 400px) {
  .tool-button {
    width: 100px;
    height: 100px;
    font-size: 0.9rem;
  }
}
