/* ---- Brand tweaks ---- */
:root {
  --brand-accent: #2ecc71; /* Emerald tint */
  --brand-deep: #0b0f19;   /* Dark surface */
}
[data-bs-theme="dark"] body {
  background-color: var(--brand-deep);
}
.gradient-hero {
  background: radial-gradient(1200px 600px at 10% -20%, rgba(46, 204, 113, 0.25), transparent 60%),
              radial-gradient(1000px 500px at 90% -10%, rgba(46, 204, 113, 0.15), transparent 60%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 60%);
}
.brand-underline {
  position: relative;
  display: inline-block;
}
.brand-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), rgba(46, 204, 113, 0));
  border-radius: 2px;
}
.frosted {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}
.card-hover:hover {
  transform: translateY(-4px);
  transition: transform .2s ease;
}
.shadow-soft {
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.text-accent { color: var(--brand-accent) !important; }
#contactFeedback .alert {
  transition: opacity 0.5s ease-in-out;
}
/* ---- Back to Top Button ---- */
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1030; /* Sits above most content */
  
  /* Visibility (hidden by default) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

  /* Styling */
  background-color: var(--brand-accent);
  color: var(--brand-deep);
  border: none;
  border-radius: 0.375rem;
  width: 30px;
  height: 30px;
  
  /* Center the icon inside */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem; /* Makes the arrow larger */
  text-decoration: none;
}

/* Class added by JavaScript to show the button */
#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#backToTopBtn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  transition: filter .2s, transform .2s;
}