/* Back to Top Button Component */
.ws-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(156, 28, 52, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.ws-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ws-back-to-top:hover,
.ws-back-to-top:focus {
  background: var(--accent-color);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(191, 161, 74, 0.4);
}

.ws-back-to-top:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.ws-back-to-top i {
  transition: transform 0.3s ease;
}

.ws-back-to-top:hover i {
  transform: translateY(-2px);
}

/* Section Navigation with Back to Top */
.ws-section-nav {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.ws-section-nav-btn {
  width: 48px;
  height: 48px;
  background: var(--surface);
  color: var(--charcoal);
  border: 2px solid var(--taupe);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
}

.ws-section-nav-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.ws-section-nav-btn:hover,
.ws-section-nav-btn:focus {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateX(0) scale(1.1);
  box-shadow: 0 8px 25px rgba(156, 28, 52, 0.3);
}

.ws-section-nav-btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.ws-section-nav-btn i {
  transition: transform 0.3s ease;
}

.ws-section-nav-btn:hover i {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ws-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .ws-section-nav {
    bottom: 20px;
    left: 20px;
    gap: 8px;
  }
  
  .ws-section-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ws-back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .ws-section-nav {
    bottom: 16px;
    left: 16px;
  }
  
  .ws-section-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}
