/*
 * === ELEGANT & PROFESSIONAL SCROLL BUTTON ===
 */

.scroll-btn-professional {
  position: fixed;
  bottom: 40px; /* Adjusted position for a modern look */
  right: 40px;
  z-index: 100;

  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  justify-content: center;

  /* --- Professional & Authoritative Styling --- */
  background-color: rgba(153, 27, 27, 0.85); /* Solid, deep red */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle highlight border */
  
  /* Modern frosted glass effect for when it overlaps text/UI */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* For Safari */

  /* A soft, professional shadow */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  
  /* Smooth transitions for a high-end feel */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- SVG Icon Styling --- */
.scroll-btn-professional svg {
  transition: transform 0.3s ease-out;
}

.scroll-btn-professional svg path {
  transition: transform 0.4s ease-out;
  transform-origin: center;
}

/* --- THE INTERACTIVE HOVER STATE --- */
.scroll-btn-professional:hover {
  background-color: rgb(123, 27, 27); /* Darkens slightly on hover */
  transform: translateY(-4px); /* A subtle lift */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Shadow enhances the lift */
}

/* --- The Cascading Chevron Animation --- */
/* On hover, we move the top chevron down */
.scroll-btn-professional:hover svg path:nth-child(1) {
  transform: translateY(4px);
}

/* The bottom chevron moves down with a slight delay, creating the cascade */
.scroll-btn-professional:hover svg path:nth-child(2) {
  transition-delay: 0.1s;
  transform: translateY(4px);
}

/* --- Active state for click feedback --- */
.scroll-btn-professional:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  .scroll-btn-professional {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}
