/* ==========================================================================
   Cyber-Minimalism theme layer
   Tailwind (CDN) covers utility classes; this file covers the things
   Tailwind's CDN build can't express: RTL font-swap, masonry columns,
   glass surfaces, glow-on-hover, custom scrollbar, log-ticker mask.
   ========================================================================== */

html {
  scroll-behavior: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.12), transparent 30%);
  z-index: -1;
}

#site-header {
  box-shadow: 0 10px 30px -24px rgba(52, 211, 153, 0.42);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(52,211,153,0), rgba(52,211,153,0.75), rgba(34,211,238,0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #a7f3d0;
}

#theme-toggle,
#lang-toggle {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#theme-toggle:hover,
#lang-toggle:hover,
#mobile-menu-btn:hover {
  transform: translateY(-1px);
}

.footer-shell {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 30px -26px rgba(34,211,238,0.35);
}

.ambient-orb {
  position: absolute;
  filter: blur(62px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 18rem;
  height: 18rem;
  top: 6%;
  right: 10%;
  background: rgba(34, 211, 238, 0.22);
}

.orb-2 {
  width: 20rem;
  height: 20rem;
  bottom: 4%;
  left: 6%;
  background: rgba(52, 211, 153, 0.18);
}

.hero-panel-shadow {
  box-shadow: 0 28px 70px -40px rgba(34, 211, 238, 0.6), 0 18px 36px -24px rgba(52, 211, 153, 0.4);
}

.hero-mini-panel {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: transform;
  transform: translateZ(0);
}

.hero-mini-panel.animated {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

html.light {
  color-scheme: light;
  background: #f8fafc;
}

html.light body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  color: #0f172a;
}

html.light #site-header {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

html.light #mobile-menu {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.08);
}

html.light #theme-toggle,
html.light #lang-toggle {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,245,249,0.9));
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.28);
}

html.light #theme-toggle:hover,
html.light #lang-toggle:hover {
  border-color: rgba(16, 185, 129, 0.38);
  color: #065f46;
  box-shadow: 0 12px 26px -16px rgba(16, 185, 129, 0.34);
}

html.light .glass,
html.light .glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82));
  border-color: rgba(14, 165, 233, 0.14);
  box-shadow: 0 22px 48px -30px rgba(14, 116, 144, 0.28), 0 12px 24px -18px rgba(16, 185, 129, 0.2);
}

html.light .btn-primary {
  box-shadow: 0 16px 30px -18px rgba(16, 185, 129, 0.45), 0 0 14px rgba(34, 211, 238, 0.12);
}

html.light .btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

html.light .glass-card:hover {
  box-shadow: 0 0 40px -12px rgba(34, 197, 94, 0.24), 0 0 70px -30px rgba(14, 165, 233, 0.2);
}

html.light .grid-backdrop {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

html.light .contact-shell,
html.light .admin-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240,249,255,0.72));
  border-color: rgba(14, 116, 144, 0.12);
  box-shadow: 0 30px 80px -42px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255,255,255,0.7) inset;
}

html.light .admin-tabs .tab-btn {
  color: #475569;
}

html.light .admin-tabs .tab-btn.text-emerald-glow {
  color: #047857;
}

html.light .contact-shell input,
html.light .contact-shell textarea,
html.light .contact-shell select,
html.light .admin-shell input,
html.light .admin-shell textarea,
html.light .admin-shell select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(14, 165, 233, 0.14);
  color: #0f172a;
}

html.light body,
html.light .text-slate-50,
html.light .text-slate-100,
html.light .text-slate-200,
html.light .text-slate-300,
html.light .text-slate-400,
html.light .text-slate-500 {
  color: #0f172a;
}

html.light .text-slate-400,
html.light .text-slate-500 {
  opacity: 0.8;
}

html.light input,
html.light textarea,
html.light select,
html.light button {
  color: #0f172a;
}

html.light input,
html.light textarea,
html.light select {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.12);
}

html.light #mobile-menu {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
}

html.light .skeleton {
  background: rgba(15, 23, 42, 0.06);
}

html.light .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
}

/* ---- RTL / Arabic typography swap -------------------------------------- */
html[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
}
html[dir="rtl"] .font-display {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}
html[dir="rtl"] .font-mono {
  /* Keep tech-tags / code in Latin mono even in RTL — reads better for stack names */
  direction: ltr;
  display: inline-block;
}

#theme-toggle,
#lang-toggle {
  min-width: 2.5rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15,23,42,0.72), rgba(15,23,42,0.88));
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 20px -16px rgba(15, 23, 42, 0.8);
}

#theme-toggle svg,
#lang-toggle svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

#theme-toggle:hover,
#lang-toggle:hover {
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

#back-to-top {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(14, 165, 233, 0.45));
  color: #ecfeff;
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 14px 30px -12px rgba(34, 211, 238, 0.42);
}

html.light #back-to-top {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.14), rgba(14, 165, 233, 0.18));
  color: #0f172a;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 14px 30px -16px rgba(16, 185, 129, 0.3);
}

html.light .log-ticker {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240,249,255,0.8));
  border-color: rgba(59, 130, 246, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 18px 36px -30px rgba(14, 165, 233, 0.28);
}

html.light .log-ticker-track {
  color: #334155;
}

html.light .log-ticker .absolute {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(240,249,255,0.9) 100%);
}

html.light .glass-card,
html.light .glass {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
}

html.light .text-slate-50,
html.light .text-slate-100,
html.light .text-slate-200,
html.light .text-slate-300,
html.light .text-slate-400,
html.light .text-slate-500,
html.light h1,
html.light h2,
html.light h3,
html.light p {
  color: #0f172a;
}

html.light .text-slate-400,
html.light .text-slate-500 {
  opacity: 0.75;
}

html.light .rounded-xl.border-white\/5,
html.light .glass-card .border-white\/10,
html.light .border-white\/15,
html.light .border-white\/10 {
  border-color: rgba(15, 23, 42, 0.08);
}

/* ---- Glass surface, reused across cards/panels -------------------------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}

.glass-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52,211,153,0.06), rgba(34,211,238,0.04), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(52,211,153,0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 40px -12px rgba(52,211,153,0.35), 0 0 70px -30px rgba(34,211,238,0.3);
}

.glass-card:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(52,211,153,0.98), rgba(34,211,238,0.82));
  color: #020617;
  box-shadow: 0 20px 30px -18px rgba(52,211,153,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px -18px rgba(52,211,153,0.68);
  filter: brightness(1.02);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(15, 23, 42, 0.38);
  color: #e2e8f0;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(52,211,153,0.5);
  color: #a7f3d0;
  transform: translateY(-1px);
}

.capability-pill {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 24px -20px rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html.light .capability-pill {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  box-shadow: 0 12px 24px -20px rgba(14, 165, 233, 0.2);
}

.metric-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(34, 211, 238, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 12px 24px -18px rgba(52, 211, 153, 0.3);
}

.metric-card:hover::before {
  opacity: 1;
}

.section-eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

html.light .footer-shell {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.08);
}

.contact-shell,
.admin-shell {
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 70px -42px rgba(34, 211, 238, 0.28);
}

.admin-shell {
  position: relative;
  overflow: hidden;
}

.admin-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52,211,153,0.04), transparent 44%, rgba(34,211,238,0.03));
  pointer-events: none;
  will-change: initial;
}

.admin-panel {
  background: linear-gradient(180deg, rgba(15,23,42,0.72), rgba(15,23,42,0.52));
  border: 1px solid rgba(255,255,255,0.08);
}

html.light .admin-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(239,246,255,0.8));
  border-color: rgba(14, 165, 233, 0.12);
  box-shadow: 0 20px 40px -30px rgba(32, 92, 140, 0.24), inset 0 1px 0 rgba(255,255,255,0.7);
}

.admin-form-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,23,42,0.58);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  color: #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-form-input:focus {
  border-color: rgba(52,211,153,0.58);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.12);
  outline: none;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-stat-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(15,23,42,0.66), rgba(15,23,42,0.48));
  box-shadow: 0 8px 12px -12px rgba(15, 23, 42, 0.6);
  transition: transform 0.2s ease;
  will-change: transform;
}

html.light .dashboard-stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(239,246,255,0.82));
  border-color: rgba(14,165,233,0.12);
  box-shadow: 0 24px 34px -28px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(255,255,255,0.8) inset;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
}

.dashboard-stat-card::before {
  display: none;
}

.dashboard-stat-label {
  display: block;
  position: relative;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  font-family: "IBM Plex Mono", monospace;
}

.dashboard-stat-value {
  position: relative;
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1;
  color: #f8fafc;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-actions .btn-primary,
.admin-actions .btn-secondary {
  box-shadow: 0 16px 28px -22px rgba(52,211,153,0.45);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-tab-btn {
  position: relative;
  border: 1px solid transparent;
  border-radius: 0.8rem 0.8rem 0 0;
  padding: 0.7rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  background: transparent;
  transition: color 0.15s ease;
}

.admin-tab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(52,211,153,0.05), transparent 68%);
  opacity: 0;
  display: none;
}

.admin-tab-btn:hover {
  color: #d1fae5;
}

.admin-tab-btn:hover::before,
.admin-tab-btn--active::before {
  opacity: 1;
}

.admin-tab-btn--active {
  color: #a7f3d0;
  border-color: rgba(52,211,153,0.33);
  background: rgba(52,211,153,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.08);
  padding: 0.45rem 0.8rem;
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a7f3d0;
  font-family: "IBM Plex Mono", monospace;
}

.admin-row {
  position: relative;
}

.admin-row:hover {
  border-color: rgba(52,211,153,0.32);
}

.message-card {
  background: linear-gradient(180deg, rgba(15,23,42,0.75), rgba(15,23,42,0.55));
  border-left: 2px solid rgba(34,211,238,0.4);
}

.admin-modal {
  background: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(15,23,42,0.78));
  border-color: rgba(148, 163, 184, 0.15);
  box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.6);
}

.admin-modal input,
.admin-modal textarea,
.admin-modal select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,23,42,0.58);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  color: #e2e8f0;
}

.admin-modal textarea {
  resize: vertical;
}

.message-card-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.75rem;
}

.admin-empty-state {
  border: 1px dashed rgba(148,163,184,0.35);
  border-radius: 1rem;
  background: rgba(15,23,42,0.18);
  padding: 2rem 1rem;
  text-align: center;
}

html.light .admin-panel,
html.light .message-card,
html.light .admin-empty-state,
html.light .dashboard-stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(239,246,255,0.74));
  border-color: rgba(14,165,233,0.12);
}

html.light .dashboard-stat-value {
  color: #0f172a;
}

html.light .admin-modal,
html.light .admin-modal input,
html.light .admin-modal textarea,
html.light .admin-modal select {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,246,255,0.8));
  border-color: rgba(14,165,233,0.14);
  color: #0f172a;
  box-shadow: 0 28px 60px -40px rgba(30, 64, 175, 0.22);
}

html.light .admin-form-input {
  background: rgba(255,255,255,0.9);
  border-color: rgba(14,165,233,0.14);
  color: #0f172a;
}

html.light .admin-toolbar {
  border-color: rgba(15,23,42,0.08);
}

html.light .admin-tab-btn {
  color: #475569;
}

html.light .admin-tab-btn--active {
  color: #047857;
  border-color: rgba(16,185,129,0.25);
  background: linear-gradient(180deg, rgba(16,185,129,0.08), rgba(34,211,238,0.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 16px 28px -24px rgba(16,185,129,0.35);
}

/* ---- Neon gradient text used for headline emphasis ---------------------- */
.text-gradient {
  background: linear-gradient(100deg, #34d399 0%, #22d3ee 60%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Grid backdrop (subtle engineering-blueprint feel) ------------------ */
.grid-backdrop {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 100%);
}

/* ---- Signature hero element: scrolling "deployment log" ----------------- */
.log-ticker {
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.log-ticker-track {
  will-change: transform;
  transform: translateZ(0);
}

.log-ticker-track.animated {
  animation: tickerScroll 26s linear infinite;
}
@keyframes tickerScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ---- Masonry gallery grid (single-project view) -------------------------- */
.masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) {
  .masonry { column-count: 2; }
}
@media (min-width: 1024px) {
  .masonry { column-count: 3; }
}
.masonry > * {
  break-inside: avoid;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  #site-header {
    box-shadow: 0 12px 28px -24px rgba(52, 211, 153, 0.6);
  }

  .ambient-orb {
    filter: blur(42px);
    opacity: 0.28;
  }

  .orb-1 {
    width: 11rem;
    height: 11rem;
    right: 6%;
  }

  .orb-2 {
    width: 12rem;
    height: 12rem;
    left: 4%;
  }

  .hero-mini-panel {
    position: static !important;
    width: 100%;
    margin-top: 1rem;
    animation: none;
  }

  .glass-card,
  .glass {
    box-shadow: 0 18px 34px -26px rgba(15, 23, 42, 0.75);
  }
}

@media (max-width: 640px) {
  .nav-link::after {
    display: none;
  }

  #app > section,
  #app > div {
    scroll-margin-top: 5rem;
  }

  .glass-card {
    border-radius: 1.25rem;
  }

  .metric-card,
  .glass-card {
    box-shadow: 0 16px 28px -24px rgba(15, 23, 42, 0.8);
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Skeleton loading shimmer (used while Firestore data streams in) ---- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  will-change: transform;
}

.skeleton.animated::after {
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* ---- Custom scrollbar ----------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ---- Route transition wrapper (used by router.js) ------------------------ */
.view-enter {
  animation: fadeUp 0.55s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---- Focus visibility (accessibility floor) ------------------------------ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Reduced motion respect ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Clap button burst ----------------------------------------------------- */
@keyframes clapBurst {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.clap-burst { animation: clapBurst 0.4s ease; }
