/* ============================================
   FLOATING ISLAND HEADER v2
   Wider island · Bracket logo · Premium CTA
   Google/Netflix-grade theme toggle
   ============================================ */

/* --- Floating Header Base --- */
.floating-header {
  all: unset;
  display: block;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  padding: 14px 24px;
  pointer-events: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.floating-header.hidden {
  transform: translateY(-120%);
}

/* --- The Island Container --- */
.header-island {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 28px;
  border-radius: 100px;

  /* Initial: visible presence — reads immediately on load */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, background, box-shadow;
}

[data-theme='dark'] .header-island {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* --- Scrolled State: Stronger glass morphism --- */
.floating-header.scrolled .header-island {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme='dark'] .floating-header.scrolled .header-island {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ============================================
   LOGO: Bracket Mark + Wordmark
   ============================================ */
.island-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.bracket {
  font-family: var(--brand-font-mono, 'JetBrains Mono', monospace);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-primary, #0058a3);
  line-height: 1;
  opacity: 0.85;
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.island-logo:hover .bracket {
  opacity: 1;
}

[data-theme='dark'] .bracket {
  color: var(--brand-primary-light, #4da3cf);
}

.note-icon {
  color: var(--brand-secondary, #00c7b1);
  flex-shrink: 0;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.island-logo:hover .note-icon {
  transform: scale(1.08) rotate(-4deg) translateY(-0.5px);
}

[data-theme='dark'] .note-icon {
  color: var(--brand-secondary-light, #00e5cc);
}

.logo-wordmark {
  font-family: var(--brand-font-body, 'Inter', sans-serif);
  font-size: 1.175rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-text-primary, #16202a);
  line-height: 1;
  transition: color 0.25s ease;
}

[data-theme='dark'] .logo-wordmark {
  color: var(--brand-text-primary, #f1f5f9);
}

/* ============================================
   MAGIC DUST PARTICLES
   Emanate from the note heads on hover.
   8 particles: 4 from left note, 4 from right note.
   ============================================ */
.logo-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.island-logo:hover .logo-dust {
  opacity: 1;
}

.dust {
  position: absolute;
  border-radius: 50%;
  background: var(--brand-secondary, #00c7b1);
  animation: none;
}

/* Left note head origin (≈30%, 78%) */
.dust-L1 { left: 28%; top: 78%; width: 2.5px; height: 2.5px; box-shadow: 0 0 5px 1.5px rgba(0, 199, 177, 0.35); }
.dust-L2 { left: 32%; top: 76%; width: 2px;   height: 2px;   box-shadow: 0 0 4px 1.2px rgba(0, 199, 177, 0.3); }
.dust-L3 { left: 26%; top: 80%; width: 1.8px; height: 1.8px; background: var(--brand-primary, #0058a3); box-shadow: 0 0 4px 1px rgba(0, 88, 163, 0.3); }
.dust-L4 { left: 33%; top: 74%; width: 2.2px; height: 2.2px; box-shadow: 0 0 5px 1.3px rgba(0, 199, 177, 0.3); }

/* Right note head origin (≈66%, 68%) */
.dust-R1 { left: 66%; top: 68%; width: 2.5px; height: 2.5px; box-shadow: 0 0 5px 1.5px rgba(0, 199, 177, 0.35); }
.dust-R2 { left: 70%; top: 66%; width: 2px;   height: 2px;   box-shadow: 0 0 4px 1.2px rgba(0, 199, 177, 0.3); }
.dust-R3 { left: 64%; top: 70%; width: 1.8px; height: 1.8px; background: var(--brand-primary, #0058a3); box-shadow: 0 0 4px 1px rgba(0, 88, 163, 0.3); }
.dust-R4 { left: 68%; top: 64%; width: 2.2px; height: 2.2px; box-shadow: 0 0 5px 1.3px rgba(0, 199, 177, 0.3); }

/* Dark mode dust colors */
[data-theme='dark'] .dust         { background: var(--brand-secondary-light, #00e5cc); }
[data-theme='dark'] .dust-L3,
[data-theme='dark'] .dust-R3      { background: var(--brand-primary-light, #4da3cf); }
[data-theme='dark'] .dust-L1,
[data-theme='dark'] .dust-L4,
[data-theme='dark'] .dust-R1,
[data-theme='dark'] .dust-R4      { box-shadow: 0 0 5px 1.5px rgba(0, 229, 204, 0.3); }
[data-theme='dark'] .dust-L2,
[data-theme='dark'] .dust-R2      { box-shadow: 0 0 4px 1.2px rgba(0, 229, 204, 0.25); }
[data-theme='dark'] .dust-L3,
[data-theme='dark'] .dust-R3      { box-shadow: 0 0 4px 1px rgba(77, 163, 207, 0.25); }

/* Activate animations on hover */
.island-logo:hover .dust-L1 { animation: dust-L1 1.4s 0s    ease-in-out infinite; }
.island-logo:hover .dust-L2 { animation: dust-L2 1.6s 0.2s  ease-in-out infinite; }
.island-logo:hover .dust-L3 { animation: dust-L3 1.3s 0.5s  ease-in-out infinite; }
.island-logo:hover .dust-L4 { animation: dust-L4 1.8s 0.35s ease-in-out infinite; }
.island-logo:hover .dust-R1 { animation: dust-R1 1.5s 0.1s  ease-in-out infinite; }
.island-logo:hover .dust-R2 { animation: dust-R2 1.7s 0.3s  ease-in-out infinite; }
.island-logo:hover .dust-R3 { animation: dust-R3 1.2s 0.6s  ease-in-out infinite; }
.island-logo:hover .dust-R4 { animation: dust-R4 1.9s 0.45s ease-in-out infinite; }

/* Left note head particle trajectories */
@keyframes dust-L1 {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.3); }
  12%  { opacity: 0.7; transform: translate(-3px, -4px) scale(0.9); }
  50%  { opacity: 0.5; transform: translate(-8px, -14px) scale(0.7); }
  100% { opacity: 0; transform: translate(-12px, -22px) scale(0.2); }
}
@keyframes dust-L2 {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.2); }
  15%  { opacity: 0.6; transform: translate(2px, -5px) scale(0.85); }
  55%  { opacity: 0.4; transform: translate(0px, -16px) scale(0.6); }
  100% { opacity: 0; transform: translate(-3px, -26px) scale(0.15); }
}
@keyframes dust-L3 {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.25); }
  18%  { opacity: 0.55; transform: translate(-5px, -3px) scale(0.8); }
  60%  { opacity: 0.3; transform: translate(-10px, -12px) scale(0.5); }
  100% { opacity: 0; transform: translate(-16px, -18px) scale(0.1); }
}
@keyframes dust-L4 {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.2); }
  14%  { opacity: 0.5; transform: translate(4px, -6px) scale(0.75); }
  50%  { opacity: 0.35; transform: translate(6px, -18px) scale(0.5); }
  100% { opacity: 0; transform: translate(5px, -28px) scale(0.1); }
}

/* Right note head particle trajectories */
@keyframes dust-R1 {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.3); }
  13%  { opacity: 0.65; transform: translate(4px, -5px) scale(0.9); }
  55%  { opacity: 0.4; transform: translate(10px, -16px) scale(0.6); }
  100% { opacity: 0; transform: translate(14px, -24px) scale(0.15); }
}
@keyframes dust-R2 {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.2); }
  16%  { opacity: 0.6; transform: translate(-2px, -6px) scale(0.85); }
  50%  { opacity: 0.4; transform: translate(0px, -18px) scale(0.55); }
  100% { opacity: 0; transform: translate(2px, -28px) scale(0.1); }
}
@keyframes dust-R3 {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.25); }
  14%  { opacity: 0.5; transform: translate(6px, -3px) scale(0.8); }
  55%  { opacity: 0.3; transform: translate(12px, -10px) scale(0.45); }
  100% { opacity: 0; transform: translate(16px, -16px) scale(0.1); }
}
@keyframes dust-R4 {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.2); }
  17%  { opacity: 0.55; transform: translate(-3px, -4px) scale(0.7); }
  60%  { opacity: 0.3; transform: translate(-5px, -14px) scale(0.45); }
  100% { opacity: 0; transform: translate(-4px, -22px) scale(0.1); }
}

/* ============================================
   CENTER NAV
   ============================================ */
.island-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.island-link {
  position: relative;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--brand-text-secondary, #515f6b);
  padding: 10px 16px;
  border-radius: 100px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.island-link:hover {
  color: var(--brand-text-primary, #16202a);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme='dark'] .island-link {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme='dark'] .island-link:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

/* Link indicator dot */
.link-indicator {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-primary, #0058a3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.island-link:hover .link-indicator {
  transform: translateX(-50%) scale(1);
}

[data-theme='dark'] .link-indicator {
  background: var(--brand-primary-light, #4da3cf);
}

/* Active page link highlighting */
.island-link[aria-current='page'],
.island-link.active {
  color: var(--brand-text-primary, #16202a);
}

.island-link[aria-current='page'] .link-indicator,
.island-link.active .link-indicator {
  transform: translateX(-50%) scale(1);
}

[data-theme='dark'] .island-link[aria-current='page'],
[data-theme='dark'] .island-link.active {
  color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   RIGHT ACTIONS
   ============================================ */
.island-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================
   PREMIUM CTA BUTTON
   Vivid gradient + glow + arrow slide
   ============================================ */
.island-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 26px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--brand-secondary, #00c7b1) 0%,
    var(--brand-primary-light, #4da3cf) 50%,
    var(--brand-primary, #0058a3) 100%
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow:
    0 2px 10px rgba(0, 199, 177, 0.25),
    0 1px 3px rgba(0, 88, 163, 0.15);
  transition:
    all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-position 0.4s ease,
    box-shadow 0.3s ease;
}

.island-cta:hover {
  background-position: 100% 50%;
  box-shadow:
    0 4px 20px rgba(0, 199, 177, 0.3),
    0 2px 8px rgba(0, 88, 163, 0.2),
    0 0 24px rgba(0, 199, 177, 0.12);
  transform: translateY(-1px) scale(1.03);
}

.island-cta:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 1px 4px rgba(0, 88, 163, 0.2);
}

.cta-arrow {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.island-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* CTA dark mode — brighter, more electric */
[data-theme='dark'] .island-cta {
  background: linear-gradient(
    135deg,
    var(--brand-secondary-light, #00e5cc) 0%,
    var(--brand-accent-light, #5db8e3) 50%,
    var(--brand-primary-light, #4da3cf) 100%
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #0f172a;
  font-weight: 700;
  box-shadow:
    0 2px 10px rgba(0, 229, 204, 0.3),
    0 1px 3px rgba(93, 184, 227, 0.2);
}

[data-theme='dark'] .island-cta:hover {
  background-position: 100% 50%;
  box-shadow:
    0 4px 20px rgba(0, 229, 204, 0.35),
    0 2px 8px rgba(93, 184, 227, 0.25),
    0 0 28px rgba(0, 229, 204, 0.15);
}

/* ============================================
   THEME TOGGLE — Icon Button (NOT slider)
   Google/Netflix-grade sun/moon toggle
   ============================================ */
.theme-toggle-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Invisible overlay button — main.js listens on #darkModeToggleOverlay */
.dark-mode-toggle-overlay {
  position: absolute;
  inset: 0;
  background: transparent !important;
  border: none;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  margin: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
}

/* Visible theme button */
.theme-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  cursor: pointer;
  color: var(--brand-text-secondary, #515f6b);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  outline: none;
  z-index: 1;
}

.theme-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--brand-text-primary, #16202a);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 12px rgba(0, 88, 163, 0.08);
  transform: scale(1.08);
}

.theme-btn:active {
  transform: scale(0.95);
}

/* Dark mode theme button */
[data-theme='dark'] .theme-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

[data-theme='dark'] .theme-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 14px rgba(77, 163, 207, 0.15);
}

/* Theme icons — sun/moon swap */
.theme-icon {
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

/* Light mode: show sun, hide moon */
.theme-icon.sun {
  display: block;
}

.theme-icon.moon {
  display: none;
}

/* Dark mode: show moon, hide sun */
[data-theme='dark'] .theme-icon.sun {
  display: none;
}

[data-theme='dark'] .theme-icon.moon {
  display: block;
}

/* Icon hover glow */
.theme-btn:hover .theme-icon {
  transform: scale(1.1);
}

.theme-btn:hover .theme-icon.sun {
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

[data-theme='dark'] .theme-btn:hover .theme-icon.moon {
  filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.5));
}

/* ============================================
   MOBILE BURGER
   ============================================ */
.island-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.island-burger:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] .island-burger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.island-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand-text-primary, #16202a);
  border-radius: 2px;
  transition: all 0.3s ease;
}

[data-theme='dark'] .island-burger span {
  background: rgba(255, 255, 255, 0.85);
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  pointer-events: none;
  transition: background 0.3s ease;
}

.mobile-overlay.open {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

[data-theme='dark'] .mobile-overlay.open {
  background: rgba(0, 0, 0, 0.6);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100dvh;
  background: var(--brand-bg-primary, #fff);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

[data-theme='dark'] .mobile-drawer {
  background: var(--brand-bg-primary, #0f172a);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] .drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Drawer logo inherits .island-logo / .logo-mark / .logo-wordmark styles */

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--brand-text-secondary, #515f6b);
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--brand-text-primary, #16202a);
}

[data-theme='dark'] .drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.drawer-nav {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-text-primary, #16202a);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.drawer-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme='dark'] .drawer-link {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme='dark'] .drawer-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] .drawer-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.drawer-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--brand-secondary, #00c7b1) 0%,
    var(--brand-primary-light, #4da3cf) 50%,
    var(--brand-primary, #0058a3) 100%
  );
  transition: all 0.25s ease;
}

.drawer-cta:hover {
  box-shadow: 0 4px 16px rgba(0, 199, 177, 0.25);
}

[data-theme='dark'] .drawer-cta {
  background: linear-gradient(
    135deg,
    var(--brand-secondary-light, #00e5cc) 0%,
    var(--brand-accent-light, #5db8e3) 50%,
    var(--brand-primary-light, #4da3cf) 100%
  );
  color: #0f172a;
  font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .floating-header {
    padding: 10px 14px;
  }

  .header-island {
    padding: 8px 10px 8px 18px;
  }

  .island-nav {
    display: none;
  }

  .island-cta {
    display: none;
  }

  .island-burger {
    display: flex;
  }

  /* On mobile, keep theme toggle visible */
  .theme-toggle-wrap {
    order: 0;
  }

  .island-burger {
    order: 1;
  }
}

@media (min-width: 769px) {
  .mobile-overlay,
  .mobile-drawer {
    display: none !important;
  }

  .island-burger {
    display: none !important;
  }
}

/* Wide screens */
@media (min-width: 1200px) {
  .header-island {
    max-width: 1280px;
  }

  .island-link {
    padding: 10px 22px;
    font-size: 1rem;
  }
}

/* ============================================
   ENTRANCE ANIMATION
   ============================================ */
.floating-header {
  animation: headerSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes headerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scale transition when entering scrolled state */
.header-island {
  transform: scale(1);
}

.floating-header.scrolled .header-island {
  transform: scale(0.98);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .floating-header {
    animation: none;
    opacity: 1;
  }

  .floating-header,
  .header-island,
  .island-link,
  .island-cta,
  .cta-arrow,
  .link-indicator,
  .theme-btn,
  .theme-icon,
  .note-icon,
  .bracket,
  .mobile-drawer,
  .mobile-overlay {
    transition: none !important;
  }
}
