/* ===================================================================
   Resolution Institute — Liquid Gradient UI Stylesheet
   Layer Architecture:
     z-index 1  → WebGL canvas (fixed, full-screen)
     z-index 10 → Content overlay (scrollable HTML)
     z-index 1000 → Custom cursor
   =================================================================== */

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Body ---------- */
body {
  font-family: 'Inter', sans-serif;
  background: #0a0e27;
  color: #ffffff;
  overflow-x: hidden;
  /* Allow vertical scrolling for content overlay */
}

/* ---------- WebGL Canvas (fixed background) ---------- */
#webGLApp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ---------- Content Overlay (scrollable) ---------- */
#contentOverlay {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* ---------- Custom Cursor ---------- */
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-width 0.2s ease;
  background: transparent;
  will-change: transform;
  mix-blend-mode: difference;
}
.custom-cursor::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
}

/* ---------- Glassmorphism Utility ---------- */
.glass {
  background: rgba(10, 14, 39, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-strong {
  background: rgba(10, 14, 39, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Navigation Override (glassmorphism) ---------- */
.nav-glass {
  background: rgba(10, 14, 39, 0.45) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ---------- Background gradient overlay (hide original) ---------- */
#bg-wrapper,
#bg-gradient {
  display: none !important;
}

/* ---------- Scroll Lines (hide original) ---------- */
.scroll-lines-container {
  display: none !important;
}

/* ---------- Section Glassmorphism Styling ---------- */
/* Apply glass effect to ALL content sections and footer so text is
   legible over the animated WebGL gradient background.              */

#contentOverlay section {
  background: rgba(10, 14, 39, 0.50);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  margin: 3rem auto;
  padding: 4rem 2rem;
  max-width: calc(100% - 2rem);
}

/* Footer — full width, no border-radius, no side margin */
#contentOverlay footer {
  background: rgba(5, 8, 22, 0.70);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

/* Slightly stronger glass on the hero so the heading pops */
#contentOverlay section#home {
  background: rgba(10, 14, 39, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Cards, stat blocks, and other inner containers get a subtler glass */
#contentOverlay .bg-white\/5,
#contentOverlay .bg-white\/10,
#contentOverlay [class*="bg-opacity"],
#contentOverlay [class*="bg-green"],
#contentOverlay [class*="bg-emerald"],
#contentOverlay [class*="bg-gray"],
#contentOverlay [class*="bg-slate"] {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}




/* Generic .glass-section utility (for manual use) */
.glass-section {
  background: rgba(10, 14, 39, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 auto;
  padding: 2rem;
}

/* ---------- Mobile Hamburger Menu Styles ---------- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.active {
  transform: translateX(0);
}
.mobile-menu-overlay a {
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 2rem;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay a:hover {
  opacity: 0.7;
}
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Smooth scroll behavior ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Links inside content inherit white color ---------- */
#contentOverlay a {
  transition: opacity 0.3s ease;
}
#contentOverlay a:hover {
  opacity: 0.85;
}




/* Hide original background components to allow the canvas to show through */
#bg-wrapper, #bg-gradient, .scroll-lines-container {
    display: none !important;
}
