/* ============================================
   VIMICX â€” Design System & Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Vimicx Brand Kit */
  --bg-primary: #1E1E1E;
  --bg-secondary: #181818;
  --bg-card: rgba(12, 154, 161, 0.06);
  --bg-glass: rgba(30, 30, 30, 0.78);

  --cyan: #0C9AA1;       /* Outlines */
  --layer-blend: #7DFDFE; /* Layer Blend / bright aqua */
  --highlight: #E4FFFF;   /* Highlights / icy white */
  --magenta: #0C9AA1;     /* mapped to outline teal for gradient compat */
  --purple: #7DFDFE;      /* mapped to layer-blend for gradient compat */
  --green: #7DFDFE;       /* mapped to layer-blend */

  --text-primary: #E4FFFF;
  --text-secondary: #8cc8ca;
  --text-muted: #4d8a8c;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --glass-border: rgba(12, 154, 161, 0.18);
  --glow-cyan: 0 0 30px rgba(12, 154, 161, 0.4);
  --glow-magenta: 0 0 30px rgba(125, 253, 254, 0.25);
  --glow-purple: 0 0 30px rgba(125, 253, 254, 0.25);

  --section-padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px);
  --border-radius: 16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

::selection { background: var(--layer-blend); color: var(--bg-primary); }

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; text-shadow: var(--glow-cyan); }

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }

h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; letter-spacing: -2px; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -1px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--layer-blend) 50%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 16px;
  display: inline-block;
}

/* ---------- Background Grid ---------- */
/* Dot grid is now rendered inside the Three.js scene for proper 3D occlusion.
   A separate CSS dot grid is kept only for the content sections below the 3D canvas. */
.content-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, #5B6668 1px, transparent 0);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}
.content-section {
  position: relative;
}

/* ---------- Navigation ---------- */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}

#main-nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px clamp(20px, 5vw, 60px);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}
.nav-logo span { color: var(--cyan); }

.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; text-shadow: none; }
.nav-links a:hover::after { width: 100%; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--cyan);
  border-radius: 100px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  background: var(--cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
  text-shadow: none;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ---------- 3D Canvas ---------- */
#three-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Hero Section ---------- */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-content {
  text-align: center;
  z-index: 3;
  pointer-events: auto;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  margin-bottom: 24px;
  text-shadow: 0 0 80px rgba(12, 154, 161, 0.3);
}

.hero-content p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse-down 2s ease-in-out infinite;
}

.scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  opacity: 0.6;
}

@keyframes pulse-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ---------- Transformation Section ---------- */
#transformation {
  position: relative;
  z-index: 2;
  height: 100vh;
}

.transform-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.transform-text {
  position: absolute;
  text-align: center;
  opacity: 0;
  max-width: 600px;
  padding: 0 20px;
}

.transform-text h2 { margin-bottom: 16px; }
.transform-text p { color: var(--text-secondary); font-size: 1.1rem; }

/* ---------- Content Sections ---------- */
.content-section {
  position: relative;
  z-index: 5;
  background: var(--bg-primary);
}

/* ---------- About Section ---------- */
#about {
  padding: var(--section-padding);
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-visual {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(12, 154, 161, 0.08), rgba(125, 253, 254, 0.04));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-visual .mesh-graphic {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.about-text { flex: 1; min-width: 300px; }
.about-text p { color: var(--text-secondary); margin-bottom: 20px; font-size: 1.05rem; }

/* ---------- Features Section ---------- */
#features {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header p { color: var(--text-secondary); max-width: 560px; margin: 16px auto 0; font-size: 1.05rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--layer-blend));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 154, 161, 0.25);
  background: rgba(12, 154, 161, 0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12, 154, 161, 0.15), rgba(125, 253, 254, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 { margin-bottom: 12px; color: #fff; }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* ---------- How It Works Section ---------- */
#how-it-works {
  padding: var(--section-padding);
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--highlight), var(--layer-blend), var(--cyan));
  opacity: 0.4;
}

.step {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--glow-cyan);
}

.step-content h3 { margin-bottom: 8px; color: #fff; }
.step-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Stats Section ---------- */
#stats {
  padding: 80px clamp(20px, 5vw, 80px);
  background: linear-gradient(180deg, transparent, rgba(12, 154, 161, 0.05), transparent);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Use Cases Section ---------- */
#use-cases {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
}

.use-case-card:hover {
  border-color: rgba(12, 154, 161, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.use-case-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.use-case-card h3 { margin-bottom: 10px; color: #fff; }
.use-case-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* ---------- Team Section ---------- */
#team {
  padding: var(--section-padding);
  max-width: 1000px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--layer-blend));
  opacity: 0;
  transition: opacity 0.3s;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(12, 154, 161, 0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.team-card:hover::after { opacity: 1; }

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  transition: var(--transition);
  background: linear-gradient(135deg, rgba(12, 154, 161, 0.12), rgba(125, 253, 254, 0.06));
}

.team-card:hover .team-photo {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 { margin-bottom: 4px; font-size: 1.15rem; color: #fff; }
.team-card .role { color: var(--cyan); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.team-card .bio { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; margin-top: auto; }

/* ---------- CTA Section ---------- */
#cta {
  padding: var(--section-padding);
  text-align: center;
  position: relative;
}

#cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(12, 154, 161, 0.1), transparent 70%);
  pointer-events: none;
}

#cta h2 { margin-bottom: 20px; }
#cta p { color: var(--text-secondary); max-width: 500px; margin: 0 auto 40px; font-size: 1.05rem; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Mailing List Form ---------- */
.cta-form {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
}

.form-row input {
  flex: 1;
  min-width: 180px;
  padding: 14px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: rgba(12, 154, 161, 0.06);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-row input::placeholder {
  color: var(--text-muted);
}

.form-row input:focus {
  border-color: var(--cyan);
  background: rgba(12, 154, 161, 0.1);
  box-shadow: 0 0 20px rgba(12, 154, 161, 0.15);
}

.form-row input#mailing-name {
  max-width: 180px;
}

.form-row button[type="submit"] {
  white-space: nowrap;
  flex-shrink: 0;
}

.form-row button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.form-row button[type="submit"].loading {
  position: relative;
  color: transparent;
}

.form-row button[type="submit"].loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--bg-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}

.form-status.success {
  color: var(--layer-blend);
  text-shadow: 0 0 12px rgba(125, 253, 254, 0.3);
}

.form-status.error {
  color: #ff6b6b;
  text-shadow: 0 0 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border: 1px solid var(--text-muted);
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: #fff;
  color: #fff;
  text-shadow: none;
}

/* ---------- Footer ---------- */
#main-footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px clamp(20px, 5vw, 80px) 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 300px; margin-top: 12px; }

.footer-links { display: flex; gap: 60px; }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--cyan); text-shadow: none; }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- Reveal Animation Utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  #about { flex-direction: column; text-align: center; }
  .about-visual { min-height: 250px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  
  /* Center feature cards on mobile */
  .feature-card { text-align: center; }
  .feature-icon { margin-left: auto; margin-right: auto; }

  /* Adjust steps for centered look or keep left-aligned? We'll leave steps left-aligned since they have a line, but center the CTA */
  .steps::before { left: 20px; }
  .step-number { width: 40px; height: 40px; font-size: 1rem; }
  .cta-buttons { flex-direction: column; align-items: center; }

  /* Mailing list form: stack vertically on mobile */
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row input#mailing-name { max-width: none; }
  .form-row button[type="submit"] { width: 100%; justify-content: center; }
}

/* ============================================
   DEV EDITOR STYLES (shared + per-editor)
   ============================================ */

/* Enable pointer events on canvas when in editor mode */
body.editor-active #three-canvas {
  pointer-events: auto;
  z-index: 9000;
}

/* --- Shared editor panel base --- */
#screen-editor,
#camera-editor,
#bass-editor,
#tree-editor,
#boat-editor,
#scene-editor,
#water-editor {
  position: fixed;
  top: 0;
  width: 300px;
  height: 100vh;
  z-index: 10001;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--glass-border);
  flex-direction: column;
  overflow-y: auto;
  padding: 0;
  font-family: var(--font-body);
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.6);
  right: 0;
}

/* Screen editor overrides (left side, wider, different bg) */
#screen-editor {
  left: 0;
  right: auto;
  width: 320px;
  background: rgba(6, 6, 18, 0.92);
  border-left: none;
  border-right: 1px solid var(--glass-border);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
}

/* Wider panels */
#scene-editor,
#bass-editor,
#water-editor { width: 320px; }

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: rgba(6, 6, 18, 0.95);
  z-index: 2;
}

.editor-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.editor-header button {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.editor-header button:hover {
  color: var(--highlight);
  border-color: var(--cyan);
  background: rgba(12, 154, 161, 0.12);
}

/* Screen list */
.editor-screens-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.editor-screen-btn {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.editor-screen-btn:hover {
  background: rgba(12, 154, 161, 0.12);
  color: var(--highlight);
}
.editor-screen-btn.active {
  background: rgba(12, 154, 161, 0.2);
  border-color: var(--cyan);
  color: var(--highlight);
  box-shadow: 0 0 12px rgba(12, 154, 161, 0.25);
}

/* Action buttons row */
.editor-actions-row {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.editor-actions-row button {
  flex: 1;
  padding: 7px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.editor-actions-row button:hover {
  background: rgba(12, 154, 161, 0.12);
  color: var(--highlight);
  border-color: var(--cyan);
}

/* Controls */
.editor-controls {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.editor-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.editor-val {
  color: var(--cyan);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
}

.editor-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 4px 0;
}

/* Preset angle buttons */
.editor-presets {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.editor-presets button {
  padding: 3px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.editor-presets button:hover {
  background: rgba(12, 154, 161, 0.15);
  color: var(--layer-blend);
  border-color: var(--cyan);
}

/* Slider styling */
.editor-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.editor-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: grab;
  box-shadow: 0 0 8px rgba(12, 154, 161, 0.5);
  border: 2px solid rgba(12, 154, 161, 0.8);
  transition: transform 0.15s;
}
.editor-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.editor-group input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.3);
}

.editor-group input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: grab;
  box-shadow: 0 0 8px rgba(12, 154, 161, 0.5);
  border: 2px solid rgba(12, 154, 161, 0.8);
}

/* Color input */
.editor-group input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  padding: 2px;
}
.editor-group input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.editor-group input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

/* Export row */
.editor-export-row {
  padding: 6px 20px;
}

.editor-export-row button {
  width: 100%;
  padding: 10px 16px;
  background: rgba(12, 154, 161, 0.1);
  border: 1px solid rgba(12, 154, 161, 0.3);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.editor-export-row button:hover {
  background: rgba(12, 154, 161, 0.22);
  box-shadow: 0 0 16px rgba(12, 154, 161, 0.2);
}

/* Log output */
#editor-log-output {
  margin: 8px 20px 20px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.7rem;
  line-height: 1.5;
  max-height: 250px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

/* ============================================
   CAMERA-SPECIFIC STYLES
   ============================================ */

/* Live control toggle row */
.camera-live-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.camera-live-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.camera-live-row input[type="checkbox"] {
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Action button inside camera editor */
.camera-action-btn {
  width: 100%;
  padding: 8px 14px;
  background: rgba(12, 154, 161, 0.1);
  border: 1px solid rgba(12, 154, 161, 0.3);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.camera-action-btn:hover {
  background: rgba(12, 154, 161, 0.22);
  box-shadow: 0 0 12px rgba(12, 154, 161, 0.2);
}

/* Section group labels (Position / Look At / Scale) */
.editor-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 4px;
  margin-top: 4px;
}

/* ============================================
   SHARED LOG OUTPUT STYLES
   ============================================ */
#editor-log-output,
#camera-log-output,
#bass-log-output,
#tree-log-output,
#boat-log-output,
#scene-log-output,
#water-log-output,
#screen-log-output {
  margin: 8px 20px 20px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.7rem;
  line-height: 1.5;
  max-height: 250px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

/* ============================================
   COLOR PICKER STYLES
   ============================================ */
.editor-group input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  width: 100%;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  margin-top: 4px;
}
.editor-group input[type="color"]::-webkit-color-swatch {
  border-radius: 4px;
  border: none;
}
.editor-group input[type="color"]::-moz-color-swatch {
  border-radius: 4px;
  border: none;
}

/* ============================================
   UNIFIED DEV MENU STYLES
   ============================================ */

#dev-menu-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

#dev-menu-main-btn {
  padding: 12px 24px;
  background: rgba(12, 154, 161, 0.2);
  border: 1px solid var(--cyan);
  border-radius: 100px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#dev-menu-main-btn:hover {
  background: var(--cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
}

#dev-menu-dropdown {
  display: flex;
  flex-direction: column;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  /* Absolute position so it grows upward from the button */
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
}

.dev-dropdown-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.dev-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

