/* Deviant Bench - Main Stylesheet (v1.1.1) */

:root {
  --bg-dark: #070b14;
  --bg-card: #0f172a;
  --bg-card-hover: #162238;
  --border-color: #1e293b;
  --accent-orange: #ff6b00;
  --accent-orange-light: #ff8533;
  --accent-orange-glow: rgba(255, 107, 0, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.2);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --min-site-width: 320px;
}

/* Width constraint & layout stability safeguard (CrunchLabs style) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-width: var(--min-site-width);
}

body {
  min-width: var(--min-site-width);
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

/* Blueprint Grid Background Patterns */
.blueprint-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.blueprint-grid-dense {
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255, 107, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 107, 0, 0.05) 1px, transparent 1px);
}

/* Radial Glows */
.hero-glow {
  background: radial-gradient(circle 600px at 50% 10%, rgba(255, 107, 0, 0.12), transparent 70%),
              radial-gradient(circle 500px at 80% 40%, rgba(6, 182, 212, 0.08), transparent 60%);
}

.section-glow {
  background: radial-gradient(circle 500px at 50% 50%, rgba(255, 107, 0, 0.06), transparent 70%);
}

/* Glassmorphic Navbar & Cards */
.glass-nav {
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(22, 34, 56, 0.9);
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(255, 107, 0, 0.15);
}

.glass-card-static {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Technical Monospace Elements */
.font-mono-tech {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', Courier, monospace;
}

/* Animated Pulse Dots */
@keyframes tech-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

.live-indicator {
  animation: tech-pulse 2s infinite ease-in-out;
}

/* Mobile Drawer Styles */
#mobile-drawer {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-drawer.open {
  transform: translateX(0);
}

#mobile-backdrop {
  transition: opacity 0.3s ease-in-out;
}

/* Lightbox Modal for Schematics & Photos */
.lightbox-modal {
  display: none !important;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Auto-advancing Photo Carousel */
.carousel-track-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-slide {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #070b14;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6b00;
}

/* Tag / Badge styles */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 107, 0, 0.1);
  color: #ff8533;
  border: 1px solid rgba(255, 107, 0, 0.25);
}

.badge-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
