:root {
  --color1: #6366f1;
}

html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      width: 100%;
}



/* Scroll Top Button violet:6366f1    grey:6c6c6c */
.scroll-top {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 50%;
  position: fixed;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  transition: all 0.15s;
  visibility: hidden;
  opacity: 0;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

.scroll-top i {
  font-size: 50px;
  color: #fff;
  line-height: 0.1;
}

.scroll-top:hover {
  background-color: #6366f1;
  width: 70px;
  height: 70px;
  transition: background-color 0.15s, box-shadow 0.15s, width 0.15s, height 0.15s;
}

/* Tooltip styling for custom tooltiptext span (left of button) */
.scroll-top .tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: 120px;
  background-color: #000;
  color: #fff;
  text-align: center;
  justify-content: center;
  justify-items: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 100;
  left: -130px;
  /* Position to the left of the button */
  top: 50%;
  /* Center vertically */
  transform: translateY(-50%);
  transition: opacity 0.15s;
  pointer-events: none;
 font-size: 1rem;
  font-weight: bold;
  white-space: nowrap;
}

/* Show tooltip on hover with a short delay */
.scroll-top:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transition-delay: 0.1s;
}

/* Download CV Floating Action Button */
.download-cv {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 50%;
  position: fixed;
  right: 15px;
  bottom: 90px;
  /* adjust so it doesn't overlap scroll-top */
  z-index: 99999;
  transition: all 0.15s;
  visibility: visible;
  opacity: 1;
}

.download-cv i {
  font-size: 32px;
  color: #fff;
  line-height: 0.1;
}

.download-cv:hover {
  background-color: #6366f1;
  width: 70px;
  height: 70px;
  transition: background-color 0.15s, box-shadow 0.15s, width 0.15s, height 0.15s;
}

/* Tooltip styling for custom tooltiptext span (left of button) */
.download-cv .tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: 120px;
  background-color: #000;
  color: #fff;
  text-align: center;
    justify-content: center;
  justify-items: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 100;
  left: -130px;
  /* Position to the left of the button */
  top: 50%;
  /* Center vertically */
  transform: translateY(-50%);
  transition: opacity 0.15s;
  pointer-events: none;
 font-size: 1rem;
  font-weight: bold;
  white-space: nowrap;
}

/* Show tooltip on hover with a short delay */
.download-cv:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transition-delay: 0.1s;
}


/* -------------- SOCIAL LINKS ------------ */
.social-links {
  width: 60px;
  height: auto;
  display: flex;
  flex-direction: column;
  /* Stack items vertically */
  align-items: center;
  /* Center items horizontally */
  position: fixed;
  /* Keep the links fixed on the page */
  right: 15px;
  /* Position them on the left */
  top: 35%;
  /* Start at 50% of the viewport height */
  gap: 15px;
  /* Add spacing between the links */
  z-index: 99999;
}


.social-links a {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s;
}

.social-links a:hover {
  background-color: #6366f1;
  width: 70px;
  height: 70px;
  transition: background-color 0.15s, box-shadow 0.15s, width 0.15s, height 0.15s;
}

.social-links a i {
  font-size: 32px;
  color: #fff;
  line-height: 0.1;
}


.tooltip-container {
  position: relative;
  /* Makes positioning of tooltip relative to the icon */
  display: inline-block;
}

.tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: 120px;
  position: absolute;
  left: -150px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #000;
  color: #fff;
  padding: 5px 0;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  transition: opacity 0.15s;
  font-size: 1rem;
  font-weight: bold;
  pointer-events: none;
  text-align: center;
    justify-content: center;
  justify-items: center;
  white-space: nowrap;
  /* Prevent the tooltip from wrapping to the next line */
}

.tooltip-container:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transition-delay: 0.1s;
}