/* Production Grade Engineering Theme for BackflowTestingCertification.com */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-main: #070c18;
  --bg-card: #0d1527;
  --bg-card-subtle: #111c34;
  --border-card: #1e293b;
  --border-focus: #3b82f6;
  --accent-blue: #2563eb;
  --accent-sky: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: #f1f5f9;
  overflow-x: hidden;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090e1d;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glassmorphism Accents */
.glass-panel {
  background: rgba(13, 21, 39, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3D Canvas Box */
#three-canvas-container {
  width: 100%;
  height: 540px;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: radial-gradient(circle at 50% 30%, #152243 0%, #070c18 80%);
}

#three-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
  cursor: grab;
}

#three-canvas-container canvas:active {
  cursor: grabbing;
}

/* 3D Flashcard Flip Mechanics */
.perspective-1000 {
  perspective: 1000px;
}
.transform-style-3d {
  transform-style: preserve-3d;
}
.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.rotate-y-180 {
  transform: rotateY(180deg);
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.25);
}
.glow-emerald {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

/* Transitions */
.transition-smooth {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
