/* mydesignbox Quicksilver Aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-color: #060608;
  --panel-bg: rgba(10, 10, 14, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --accent-color: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Base interactive canvas */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

canvas.webgl {
  width: 100%;
  height: 100%;
  display: block;
}

/* Subtle background overlay grids for industrial tech aesthetic */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  z-index: 2;
  opacity: 0.6;
}

/* Vignette/scrim layer to concentrate lighting */
.scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(6, 6, 8, 0.8) 100%);
  z-index: 3;
}

/* Custom luxury cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Interface Shell */
.app-shell {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  z-index: 10;
  pointer-events: none;
}

.app-shell * {
  pointer-events: auto;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff;
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 12px;
  margin-left: 4px;
}

nav.nav-links {
  display: flex;
  gap: 32px;
}

nav.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

nav.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-links a:hover {
  color: var(--text-primary);
}

nav.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Center Brand Info Statement */
.hero-copy {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  max-width: 460px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow-line {
  width: 30px;
  height: 1px;
  background-color: var(--text-secondary);
}

.hero-copy h1 {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-copy h1 span {
  font-weight: 300;
  color: var(--text-secondary);
  display: block;
}

.hero-copy p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 32px;
}

.cta-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
}

.cta-button:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* Floating Glass UI Controls (Bottom Layout) */
.bottom-dock {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: auto;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

/* Glass card design */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  pointer-events: auto;
}

/* Left Controller: Metal Quicksilver Presets */
.preset-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 280px;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.preset-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-dot.platinum { background: linear-gradient(135deg, #e0e0e5, #b5b5c0); }
.color-dot.gold { background: linear-gradient(135deg, #f3d078, #c8963e); }
.color-dot.obsidian { background: linear-gradient(135deg, #2b2b35, #0a0a0f); }
.color-dot.copper { background: linear-gradient(135deg, #e2906e, #b85e3a); }

/* Right Controller: Uniform Sliders */
.tweak-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 320px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
}

.control-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Mode Switcher Button Group */
.mode-group {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Status Info in Corner */
.status-indicator {
  position: absolute;
  top: 92px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(6, 6, 8, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 11;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px #00ff88;
}

/* Technical Details Overlay Toggle */
.details-toggle {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.details-toggle:hover {
  color: var(--text-primary);
}

.details-panel {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%) translateX(120%);
  width: 280px;
  z-index: 12;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-panel.open {
  transform: translateY(-50%) translateX(0);
}

.details-panel .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
}

.details-panel .close-btn:hover {
  color: var(--text-primary);
}

.details-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.details-panel li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.details-panel .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.details-panel .val {
  font-size: 13px;
  font-weight: 300;
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
  }
}

/* Adjustments for smaller screen layouts */
@media (max-width: 900px) {
  .app-shell {
    padding: 24px;
    overflow-y: auto;
  }
  .bottom-dock {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 80px 0 40px;
    max-width: 100%;
  }
  .details-toggle {
    display: none;
  }
}
