/* ============================================================
   BUTTON
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);

  padding-block: clamp(0.75rem, 1.2vw, 1rem);
  padding-inline: clamp(2rem, 4vw, 3rem);

  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1;

  border-radius: var(--r-pill);
  white-space: nowrap;
  transition:
    transform  var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    opacity    var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

/* ------------------------------------------------------------
   CTA — the gradient pill.
   The white ring sits *outside* the pill via outline-offset,
   which is what gives it the floating look on a dark ground.
   ------------------------------------------------------------ */

.btn--cta {
  color: #fff;
  background-image: var(--grad-cta);
  box-shadow: var(--shadow-cta);
  outline: 2px solid rgb(var(--rgb-shine) / 0.9);
  outline-offset: -3px;
}

.btn--cta:hover {
  opacity: 0.92;
}

/* ------------------------------------------------------------
   GHOST — outlined pill, used on project cards
   ------------------------------------------------------------ */

.btn--ghost {
  color: var(--c-text);
  border: 2px solid var(--c-border-strong);
}

.btn--ghost:hover {
  background-color: rgb(var(--rgb-ink) / 0.1);
}

.section--light .btn--ghost {
  color: var(--c-text-invert);
  border-color: var(--c-text-invert);
}

.section--light .btn--ghost:hover {
  background-color: rgb(var(--rgb-surface) / 0.06);
}

/* ------------------------------------------------------------
   TOP ABOUT BUTTON — Minimal Glassmorphic Portal Pill
   ------------------------------------------------------------ */

.top-about-btn {
  position: fixed;
  inset-block-start: clamp(1rem, 2.5vh, 1.75rem);
  inset-inline-start: clamp(1rem, 2.5vw, 2rem);
  z-index: var(--z-menu-btn, 500);

  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: clamp(38px, 4vw, 44px);
  padding-inline: 1.05rem;

  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(12, 14, 20, 0.55);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(10, 12, 18, 0.65) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);

  box-shadow:
    0 10px 28px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);

  color: var(--c-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow   var(--dur-fast) var(--ease),
    transform    var(--dur-fast) var(--ease),
    color        var(--dur-fast) var(--ease);
}

.top-about-btn:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow:
    0 12px 30px -4px rgba(0, 0, 0, 0.6),
    0 0 20px -4px rgba(139, 92, 246, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  color: #00D2FF;
}

:root[data-theme='light'] .top-about-btn {
  background-color: rgba(255, 255, 255, 0.75);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 243, 248, 0.8) 100%);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  color: #0C0C0C;
}

:root[data-theme='light'] .top-about-btn:hover {
  border-color: rgba(124, 58, 237, 0.4);
  color: #7C3AED;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.15);
}

.top-about-btn__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #8B5CF6;
  box-shadow: 0 0 6px #8B5CF6;
  flex-shrink: 0;
}

.top-about-btn__label {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.top-about-btn__icon {
  width: 0.9rem;
  height: 0.9rem;
  color: #00D2FF;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}

.top-about-btn:hover .top-about-btn__icon {
  transform: translate(-2px, -2px);
}

/* ------------------------------------------------------------
   PORTAL BUTTON — used in About section action row
   ------------------------------------------------------------ */

.btn--portal {
  color: var(--c-text);
  background: rgb(var(--rgb-ink) / 0.05);
  border: 1px solid rgba(139, 92, 246, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.btn--portal:hover {
  background-color: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 20px -4px rgba(139, 92, 246, 0.3);
  color: #00D2FF;
  transform: translateY(-1px);
}

.btn--portal svg {
  width: 1.05rem;
  height: 1.05rem;
  color: #8B5CF6;
  transition: transform var(--dur-fast) var(--ease);
}

.btn--portal:hover svg {
  transform: translate(-2px, -2px);
  color: #00D2FF;
}
