/* ----------------------------------------------------
   Samafi CyberHub - Shared Component Styles
   ------------------------------------------------------- */

/* Mobile Hamburger Menu Drawer */
#mobile-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0058bf; /* sama-blue */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 88, 191, 0.3);
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

#scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top:hover {
  background-color: #bc001f; /* sama-red */
  box-shadow: 0 4px 12px rgba(188, 0, 31, 0.3);
  transform: translateY(-2px);
}

#scroll-to-top:active {
  transform: translateY(0);
}

/* Active Nav State overrides */
.nav-active {
  color: #0058bf !important; /* sama-blue */
  border-bottom: 2px solid #0058bf !important;
  font-weight: 700 !important;
}

/* Mobile active state (under mobile drawer) */
.mobile-nav-active {
  color: #0058bf !important;
  font-weight: 700 !important;
  border-left: 4px solid #0058bf !important;
  padding-left: 12px !important;
}

/* Micro-interaction details */
.transition-transform-ease {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section entrance reveal classes */
.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}
