:root {
  --accent: #0063ff;
  --header-color: #333;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.bounce {
  animation: bounce 3s ease-in-out infinite;
}

.vh-80 {
  height: 80vh;
}

.hover-accent:hover {
  color: var(--accent) !important;
}

.header-color {
  color: var(--header-color);
}

/* Speech bubble styles */
.title-with-bubble {
  position: relative;
  display: inline-block;
}

.bubble-stem {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
  background: var(--header-color);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease 0.3s, visibility 0.8s ease 0.3s;
  z-index: 999;
}

.speech-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: white;
  border: 2px solid var(--header-color);
  border-radius: 12px;
  padding: 15px 21px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease 0.3s, visibility 0.8s ease 0.3s, transform 0s 1.1s, background 0.3s ease;
  pointer-events: auto;
  z-index: 1000;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  background: transparent;
  border-radius: 20px;
  z-index: -1;
}

.title-with-bubble:hover .bubble-stem {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.title-with-bubble:hover .speech-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-80px);
  transition: opacity 0.5s ease 0s, visibility 0.5s ease 0s, transform 0.5s ease 0s, background 0.3s ease;
}

.speech-bubble:hover {
  background: black;
}

.speech-bubble:hover .x-logo {
  fill: white;
}

.x-logo {
  width: 30px;
  height: 30px;
  fill: var(--header-color);
  display: block;
  transition: fill 0.3s ease;
}
