/* top to button */

/* Contact tooltip container */
.contact-tooltip-container {
  position: fixed;
  bottom: 90px;
  /* just above scrollTopBtn (52px height + margin) */
  right: 24px;
  display: none;
  /* hidden until scrolled */
  z-index: 999;
  display: flex;
  justify-content: center;
}

/* Contact button */
.contact-btn {
  background: #ffd700;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.contact-btn:hover {
  transform: scale(1.1);
}

/* Tooltip */
.tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(50, 50, 50, 0.9);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease, right 0.2s ease;
}

/* Show tooltip on hover */
.contact-tooltip-container:hover .tooltip {
  opacity: 1;
  right: 70px;
}

/* Scroll to Top button */
#scrollTopBtn {
  display: none;
  /* hidden by default */
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  font-size: 22px;
  border: none;
  outline: none;
  background: #ffea06;
  /* Bastani yellow theme */
  color: #111;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* perfectly round */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
}

/* Hover effect */
#scrollTopBtn:hover {
  background: red;
  color: #fff;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

/* Responsive sizes */
@media (max-width: 768px) {
  #scrollTopBtn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 18px;
    right: 18px;
  }
}

@media (max-width: 480px) {
  #scrollTopBtn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 14px;
    right: 14px;
  }
}

.scroll-arrow {
  stroke: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

#scrollTopBtn:hover .scroll-arrow {
  transform: translateY(-2px) scale(1.1);
  color: #ffea06;
  /* accent color on hover */
}

/* Tooltip */
.tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%) scale(0.95); /* subtle pop-in */
  background: #008080; /* Teal background */
  color: #fff;
  padding: 10px 16px; /* slightly more spacious */
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); /* more depth */
  transition: opacity 0.3s ease, right 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

/* Tooltip arrow */
.tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #008080;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Show tooltip on hover with subtle pop */
.contact-tooltip-container:hover .tooltip {
  opacity: 1;
  right: 80px;
  transform: translateY(-50%) scale(1);
}

/* Optional: add a slight gradient for depth */
.tooltip {
  background: linear-gradient(145deg, #009999, #006666);
}

/* Optional: add smooth fade-in shadow highlight */
.contact-tooltip-container:hover .tooltip {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 8px rgba(0, 255, 255, 0.2);
}
