/* === Navigo Global Styles === */

/* Glass effects */
.glass {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-strong {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.glass-card:hover {
  background: #161616;
  border-color: rgba(34, 211, 238, 0.18);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 45%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1.3;
  padding-bottom: 0.15em;
}

/* Ambient overlays */
.noise-overlay,
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* Section eyebrow */
.section-eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}
.section-eyebrow span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.55);
  border-left: 1.5px solid rgba(34, 211, 238, 0.3);
  padding-left: 10px;
  animation: eyebrowTick 5s ease-in-out infinite;
}
@keyframes eyebrowTick {
  0%, 100% { border-left-color: rgba(34, 211, 238, 0.2); }
  50% { border-left-color: rgba(34, 211, 238, 0.65); }
}

/* Buttons */
.btn-primary {
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(34, 211, 238, 0.15);
  transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 20px rgba(34, 211, 238, 0.18);
  transform: translateY(-1px);
}
.btn-secondary {
  border-radius: 3px;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

/* Section rule */
.section-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.06) 80%, transparent);
}

/* Spotlight card */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(34, 211, 238, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* Mobile menu */
.mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.mobile-menu.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Skip link for accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: #22d3ee; color: #000;
  padding: 8px 16px; text-decoration: none; font-weight: 600; z-index: 100;
}
.skip-link:focus { top: 0; outline: 3px solid #22d3ee; outline-offset: 2px; }

/* ===== Mobile-only overrides (max-width: 640px) ===== */
@media (max-width: 640px) {
  /* #4 — Slanted SVG dividers: reduce height on phones */
  .section-separator-top svg,
  .section-separator-bottom svg {
    height: 80px;
  }

  /* #8 — Floor eyebrow labels so they're readable on small screens */
  .section-eyebrow span {
    font-size: 0.7rem;
  }

  /* #9 — Table cell padding: reduce horizontal padding on mobile */
  .ba-erp-cell, .ba-head-erp,
  .ba-nav-cell, .ba-head-nav {
    padding: 1rem 0.75rem;
  }
  .ba-topic-cell {
    padding: 1rem 0;
  }

  /* #10 — Hide mini UI widget in architecture section on mobile */
  .mini-ui-wrapper {
    display: none;
  }
}

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

/* Scroll progress */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, #22d3ee, #0891b2);
  z-index: 60; transition: width 0.08s linear; pointer-events: none;
}

/* Modal entrance */
.modal-enter {
  animation: modalEnter 0.3s ease-out;
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
