:root {
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Cinzel', serif;
}

/* Global resets and body styling */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  color: #f8fafc;
  font-family: var(--font-sans);
  user-select: none;
}

/* Smooth fade transitions for switching views */
.view-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  pointer-events: none;
}

.view-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.view-container.inactive {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Glassmorphism utility classes */
.glass-panel {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-rect {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.nav-rect:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}


.glass-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  outline: none;
}

/* Custom interactive button styles */
.nav-btn {
  position: relative;
  transition: color 0.4s ease;
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #f8fafc;
  transition: width 0.4s ease, left 0.4s ease;
}

.nav-btn.active {
  color: #ffffff;
}

.nav-btn.active::after {
  width: 100%;
  left: 0;
}

.nav-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.8);
}

.nav-btn:hover:not(.active)::after {
  width: 40%;
  left: 30%;
}

/* Glow effects */
.glow-text {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
}

/* River text overlay styles (if rendered in HTML layered for quality) */
.river-thought {
  position: absolute;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-weight: 300;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

/* Spotlight animation container */
#spotlight-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 40;
}

.spotlight-active {
  animation: spotlightGlow 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes spotlightGlow {
  0% {
    transform: scale(0.65) translate3d(0, 50px, 0);
    opacity: 0;
    filter: blur(10px);
  }
  15% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
    filter: blur(0px);
  }
  80% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    transform: scale(0.15) translate3d(0, -200px, -500px);
    opacity: 0.1;
    filter: blur(4px);
  }
}

/* Explicit pointer-events overrides to guarantee inputs are clickable */
#space-form, #web-form, #space-input, #web-input, #space-form button, #web-form button {
  pointer-events: auto !important;
  z-index: 99999 !important;
}

#space-input, #web-input {
  cursor: text !important;
}

#space-form button, #web-form button {
  cursor: pointer !important;
}

.view-container .pointer-events-auto {
  pointer-events: auto !important;
  z-index: 9999 !important;
}
