/* =========================
   Empirical Evidence - Site CSS
   ========================= */

/* Skip to Content (WCAG 2.4.1) */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: #1e40af;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 0.5rem 0;
  text-decoration: none;
  white-space: nowrap;
}
.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* Base Setup */
body {
  font-family: 'Inter', sans-serif;
  background-color: #02040a;
  color: #e2e8f0;
}

/* Scroll: always reserve scrollbar space */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* Grayscale animation for images */
@keyframes colorCycle {
  0%, 80% { filter: grayscale(0%); }
  84%, 96% { filter: grayscale(100%); }
  100% { filter: grayscale(0%); }
}
.animate-grayscale-cycle {
  animation: colorCycle 15s infinite linear;
}

/* =========
   Navigation — Inline Desktop + Hamburger Mobile
   ========= */

/* Desktop nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
  position: relative;
}

.nav-link:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.nav-link-active {
  color: #1e40af;
  background-color: #eff6ff;
  font-weight: 600;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.25rem;
  height: 2px;
  background: #3b82f6;
  border-radius: 999px;
}

/* Language switcher */
.lang-link {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  letter-spacing: 0.025em;
  transition: color 0.15s, background-color 0.15s;
}
.lang-link:hover { color: #0f172a; }

.lang-active {
  color: #0f172a;
  background: #f1f5f9;
  font-weight: 600;
}

/* Mobile menu panel — slide transition */
.mobile-menu {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.mobile-nav-link:hover {
  color: #0f172a;
  background-color: #f8fafc;
}
.mobile-nav-link-active {
  color: #1e40af;
  background-color: #eff6ff;
  font-weight: 600;
}

/* Scroll-lock (mobile menu open) */
body.nav-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  padding-right: var(--sbw, 0px);
}

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none !important; }
}

/* Abstract Background Animation */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  animation: float 20s infinite ease-in-out;
}
.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  animation-delay: 0s;
}
.orb-2 {
  bottom: 10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  animation-delay: -5s;
}
.orb-3 {
  top: 40%;
  left: 40%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Grid Pattern */
.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Custom UI Elements */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0));
  border: 1px solid rgba(255,255,255,0.1);
}

/* Image Blending Masks */
.image-fade-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, #02040a 0%, transparent 20%, transparent 80%, #02040a 100%),
    linear-gradient(to bottom, transparent 0%, transparent 70%, #02040a 100%),
    linear-gradient(to top, transparent 0%, transparent 80%, #02040a 100%);
}

/* Contact form select styling */
select option {
  background: #0f172a;
  color: #e2e8f0;
}
