:root {
  /* Colors */
  --color-black: #050505; /* Deep black for camera body */
  --color-lens: #000;
  --color-blade: #111;
  --color-blade-border: #1a1a1a;
  --color-text: #eaeaea;
  --color-accent: #e2b36e; /* Metallic gold marking */
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  
  /* Dimensions */
  --lens-size: min(80vw, 80vh);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-mono);
  background-color: var(--color-black);
  /* Subtle grain texture for camera body */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  color: var(--color-text);
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* No scrolling, immersive experience */
  display: flex;
  align-items: center;
  justify-content: center;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* UI Layout around the lens */
.ui-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; /* Let clicks pass through to lens if needed */
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.top-bar, .bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto; /* Re-enable clicks for UI */
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav button {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}

.nav button:hover, .nav button.active {
  opacity: 1;
  color: var(--color-accent);
}

.lens-specs {
  font-size: 0.75rem;
  opacity: 0.4;
  letter-spacing: 0.2em;
}

.controls {
  display: flex;
  gap: 1rem;
}

.btn-shutter {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: rgba(226, 179, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-shutter:hover {
  background: rgba(226, 179, 110, 0.3);
}

.btn-shutter:active {
  transform: scale(0.9);
}

.btn-shutter .icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
}

.brand, .logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand img, .logo img {
  height: 40px;
  width: auto;
  mix-blend-mode: screen;
}

/* Dynamic Blurred City Background */
.city-bg {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-color: #050505;
}

.city-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.6);
  transform: scale(1.15); /* Hide blurred edges */
  animation: slowPan 60s infinite alternate ease-in-out;
  z-index: 1;
}

/* Canvas traffic overlay */
#traffic-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 5;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Noise overlay for moody effect */
.city-bg::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 10;
}

@keyframes slowPan {
  0% { transform: scale(1.15) translate(0, 0); }
  50% { transform: scale(1.2) translate(-1%, 1%); }
  100% { transform: scale(1.15) translate(1%, -1%); }
}
